ModelPrimitiveLoad Method (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. |
If the model includes articulations, they can be accessed using Articulations.
If the model's AutomaticallyComputeBoundingSphere property is true, BoundingSphere is set to fit around the model. Otherwise, it is the caller's responsibility to update the model's BoundingSphere to a sphere that encompasses the model.
Loading a new model does not change the model's Position, Orientation, or Scale.