Click or drag to resize

ModelPrimitive Constructor (Uri, ModelUpAxis)

Initializes a model primitive with the specified uri and up axis.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 23.1.416.0 (23.1.416.0)
public ModelPrimitive(
	Uri uri,
	ModelUpAxis upAxis


Type: SystemUri
The URI of the model file to load.
Type: AGI.Foundation.GraphicsModelUpAxis
The axis representing the up direction of the model file.
FileNotFoundException Could not find or access uri.
ArgumentException Only file URIs are supported at this time. uri must start with file:///.
ArgumentException Only MDL models can have their up axis specified.

After constructing the primitive, set Position, Orientation, and Scale to place, orientate, and size the model in the 3D scene.

If the model includes articulations, they can be accessed using Articulations.

The primitive's properties are initialized to the following values:

Once the primitive is constructed, it must be added to Primitives before it will be rendered.

See Also