Model
Public / Constructors
Load
2 overloads
Loads a 3D model from a file using ModelFormat.Any.
- ValidatingException
-
If file in is not an existing file or directory or if the model reader has reported an error, for example because of an unsupported file format feature.
- IOException
-
If an I/O error has occurred while loading file in.
- See also
Loads a 3D model from a file using ModelFormat.Any.
- ValidatingException
-
If file in is invalid or if the model reader has reported an error, for example because of an unsupported file format feature.
- IOException
-
If an I/O error has occurred while loading file in.
- See also
Model
3 overloads
Creates a new instance of Model.
Creates a new instance of Model.
Creates a new instance of Model.
Read
2 overloads
Reads a 3D model from a file using ModelFormat.Any.
- ValidatingException
-
If file in is not an existing file or directory or if the model reader has reported an error, for example because of an unsupported file format feature.
- IOException
-
If an I/O error has occurred while loading file in.
- See also
Reads a 3D model from a file using ModelFormat.Any.
- ValidatingException
-
If file in is invalid or if the model reader has reported an error, for example because of an unsupported file format feature.
- IOException
-
If an I/O error has occurred while loading file in.
- See also
Public / Methods
ChildAdd
6 overloads
Adds a child model.
Adds a child model.
The child-to-parent transformation is specified with the given translation.
Adds a child model.
The child-to-parent transformation is specified with the given translation and rotation, i.e. the child model is rotated first and then translated.
Adds a child model.
The child-to-parent transformation is specified with the given translation, rotation and scale components, i.e. the child model is scaled first, then rotated and finally translated.
Adds a child model.
Adds a child model.
ChildRemove
Removes a child model.
If the given model is not a child of this model, the method silently returns.
ChildTransformAt
2 overloads
Sets the child-to-parent transformation matrix of the index in-th child model.
- See also
ChildTransformWithUnitScaleAt
2 overloads
Sets the child-to-parent transformation matrix of the index in-th child model.
- See also
ColliderDirty
Invalidates the model hierarchy of the current IModel.Collider and IModel.Bounds objects.
Call this method when the model structure has been modified. A new model collider resp. new spatial bounds will be created the next time the IModel.Collider or IModel.Bounds property is get.
The following methods resp. setter will invalidate the model hierarchy automatically; when using these, it is not necessary to call the ColliderDirty method:
-
ChildAdd*
-
ChildRemove*
- See also
ColliderDirtyParts
Invalidates the model parts of the current IModel.Collider and IModel.Bounds objects.
Call this method when the model geometry has been modified. A new model collider resp. new spatial bounds will be created the next time the IModel.Collider or IModel.Bounds property is get.
The following methods resp. setter will invalidate the model parts automatically; when using these, it is not necessary to call the ColliderDirtyParts method:
-
PartRemove*
- See also
UpdateFlags
Updates the value of Flags.
Flags that are present in both set in and clear in will be cleared.
Public / Attributes
FadeIn
The fade-in range of this model.
When Fade.Compute would 0
for all points on model surface, the model will not be visible at all. Rendering of the model and its descendants will be skipped entirely if Fade.Compute would return 0
for all points on the surface of the bounding sphere (see ISpatialBounds.Sphere of Bounds).
Defaults to Fade.AlwaysOne, i.e. always faded in.
FadeOut
The fade-out range of this model.
When Fade.Compute would 1
for all points on model surface, the model will not be visible at all. Rendering of the model and its descendants will be skipped entirely if Fade.Compute would return 1
for all points on the surface of the bounding sphere (see ISpatialBounds.Sphere of Bounds).
Defaults to Fade.AlwaysZero, i.e. never faded out.
Unit
The unit of measure in which the vertex coordinates of the model parts are expressed.
Defaults to UnitOfMeasure.Metre.