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: 24.2.419.0 (24.2.419.0)
Syntax
public ModelPrimitive(
	Uri uri,
	ModelUpAxis upAxis
)

Parameters

uri
Type: SystemUri
The URI of the model file to load.
upAxis
Type: AGI.Foundation.GraphicsModelUpAxis
The axis representing the up direction of the model file.
Exceptions
ExceptionCondition
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.
Remarks

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