ModelEntity Methods |
The ModelEntity type exposes the following members.
Name | Description | |
---|---|---|
CopyMaterials |
Copy materials from another dictionary of materials.
| |
DoEntityDraw |
Draw this model.
(Overrides BaseRenderableEntityDoEntityDraw(Matrix).) | |
Draw |
Draw the entity.
(Inherited from BaseRenderableEntity.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetBoundingBox |
Get the bounding box of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.) | |
GetBoundingSphere |
Get the bounding sphere of this entity, either from cache or calculate it.
(Inherited from BaseRenderableEntity.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLastBoundingBox |
Return the last calculated bounding box.
Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.) | |
GetLastBoundingSphere |
Return the last calculated bounding sphere.
Note: this value may be out-of-date if transformations changed since last calculation.
(Inherited from BaseRenderableEntity.) | |
GetMaterial |
Get material for a given mesh id.
| |
GetMaterials |
Return a list with all materials in model.
Note: if alternative materials are set, will return them.
Note2: prevent duplications, eg if even if more than one part uses the same material it will only return it once.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetMaterial |
Set alternative material for a specific mesh id.
| |
SetMaterials |
Set alternative materials for a specific mesh id.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |