ModelPrimitive Constructor (Uri, ModelUpAxis) |
Namespace: AGI.Foundation.Graphics
Exception | Condition |
---|---|
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.