VRage.Game.ModAPI
IMyModel
Assembly: VRage.Game.dll
public interface IMyModel
Describes 3D model (mods interface)
Properties
| Member | Description |
|---|---|
| AssetName | File path of the model |
| BoneMapping | |
| BoundingBox | Gets bounding box |
| BoundingBoxSize | Gets bounding box size |
| BoundingBoxSizeHalf | Gets bounding box size |
| BoundingSphere | Gets bounding sphere |
| DataVersion | Get version of model |
| PatternScale | Used in texturing of armor blocks. Default is 1 |
| ScaleFactor | Scale of model. Default 1. Greater number - bigger model |
| UniqueId | Gets id of model |
Methods
| Member | Description |
|---|---|
| GetDrawTechnique(int) | Gets MyMeshDrawTechnique by triangle index |
| GetDummies(IDictionary<string, IMyModelDummy>) | Gets the dummies from the model |
| GetTriangle(int) | Gets the vertex indices that complete a triangle at the index |
| GetTrianglesCount() | Gets amount of triangles |
| GetVertex(int) | Gets the vertex |
| GetVertex(int, int, int, out Vector3, out Vector3, out Vector3) | Gets a set of three vertices |
| GetVerticesCount() | Gets amount of vertices |