Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
VRage.Game.Models.MyModel Class Reference
Inheritance diagram for VRage.Game.Models.MyModel:
BulletXNA.BulletCollision.IPrimitiveManagerBase

Public Member Functions

Vector3 GetVertexInt (int vertexIndex)
 
MyTriangleVertexIndices GetTriangle (int triangleIndex)
 
Vector3 GetVertex (int vertexIndex)
 
void SetVertexPosition (int vertexIndex, ref Vector3 newPosition)
 
void GetVertex (int vertexIndex1, int vertexIndex2, int vertexIndex3, out Vector3 v1, out Vector3 v2, out Vector3 v3)
 
MyTriangle_BoneIndicesWeigths GetBoneIndicesWeights (int triangleIndex)
 
Vector3 GetVertexNormal (int vertexIndex)
 
Vector3 GetVertexTangent (int vertexIndex)
 
 MyModel (string assetName)
 
 MyModel (string assetName, bool keepInMemory)
 c-tor - this constructor should be used just for max models - not voxels! More...
 
List< MyMeshGetMeshList ()
 
MyMeshSection GetMeshSection (string name)
 
bool TryGetMeshSection (string name, out MyMeshSection section)
 
void LoadData ()
 
bool LoadTexCoordData ()
 
void LoadAnimationData ()
 
bool UnloadData ()
 
IMyTriangePruningStructure GetTrianglePruningStructure ()
 
void GetTriangleBoundingBox (int triangleIndex, ref BoundingBox boundingBox)
 
int GetTrianglesCount ()
 
int GetVerticesCount ()
 
int GetBVHSize ()
 
MyMeshDrawTechnique GetDrawTechnique (int triangleIndex)
 
void Dispose ()
 Dispose More...
 
void LoadOnlyDummies ()
 
void LoadOnlyModelInfo ()
 
void CheckLoadingErrors (MyModContext context, out bool errorFound)
 
void Rescale (float scaleFactor)
 

Static Public Member Functions

static string GetById (int id)
 
static int GetId (string assetName)
 

Public Attributes

readonly int UniqueId
 
MyTriangleVertexIndices[] Triangles
 
Dictionary< string, MyModelDummyDummies
 
MyModelInfo ModelInfo
 
ModelAnimations Animations
 
MyModelBone[] Bones
 
byte[] HavokData
 
MyModelFractures ModelFractures
 
bool m_loadUV = false
 
bool ExportedWrong
 
HkShape[] HavokCollisionShapes
 
HkdBreakableShape[] HavokBreakableShapes
 
byte[] HavokDestructionData
 
VRageMath.Vector3I[] BoneMapping
 
float PatternScale = 1
 

Properties

bool KeepInMemory [get]
 
int DataVersion [get]
 
int[] Indices [get]
 
ushort[] Indices16 [get]
 
bool HasUV [get]
 
bool LoadUV [set]
 
HalfVector2[] TexCoords [get]
 
bool LoadedData [get]
 
float ScaleFactor [get]
 
string AssetName [get]
 File path of the model More...
 
BoundingSphere BoundingSphere [get]
 
BoundingBox BoundingBox [get]
 
Vector3 BoundingBoxSize [get]
 
Vector3 BoundingBoxSizeHalf [get]
 

Detailed Description

Definition at line 50 of file MyModel.cs.

Constructor & Destructor Documentation

VRage.Game.Models.MyModel.MyModel ( string  assetName)
inline

Definition at line 304 of file MyModel.cs.

VRage.Game.Models.MyModel.MyModel ( string  assetName,
bool  keepInMemory 
)
inline

c-tor - this constructor should be used just for max models - not voxels!

Definition at line 313 of file MyModel.cs.

Member Function Documentation

void VRage.Game.Models.MyModel.CheckLoadingErrors ( MyModContext  context,
out bool  errorFound 
)
inline

Definition at line 1032 of file MyModel.cs.

void VRage.Game.Models.MyModel.Dispose ( )
inline

Dispose

Definition at line 904 of file MyModel.cs.

MyTriangle_BoneIndicesWeigths VRage.Game.Models.MyModel.GetBoneIndicesWeights ( int  triangleIndex)
inline

Definition at line 241 of file MyModel.cs.

int VRage.Game.Models.MyModel.GetBVHSize ( )
inline

Definition at line 882 of file MyModel.cs.

static string VRage.Game.Models.MyModel.GetById ( int  id)
inlinestatic

Definition at line 194 of file MyModel.cs.

MyMeshDrawTechnique VRage.Game.Models.MyModel.GetDrawTechnique ( int  triangleIndex)
inline

Definition at line 887 of file MyModel.cs.

static int VRage.Game.Models.MyModel.GetId ( string  assetName)
inlinestatic

Definition at line 199 of file MyModel.cs.

List<MyMesh> VRage.Game.Models.MyModel.GetMeshList ( )
inline

Definition at line 323 of file MyModel.cs.

MyMeshSection VRage.Game.Models.MyModel.GetMeshSection ( string  name)
inline

Definition at line 328 of file MyModel.cs.

MyTriangleVertexIndices VRage.Game.Models.MyModel.GetTriangle ( int  triangleIndex)
inline

Definition at line 219 of file MyModel.cs.

void VRage.Game.Models.MyModel.GetTriangleBoundingBox ( int  triangleIndex,
ref BoundingBox  boundingBox 
)
inline

Definition at line 860 of file MyModel.cs.

IMyTriangePruningStructure VRage.Game.Models.MyModel.GetTrianglePruningStructure ( )
inline

Definition at line 854 of file MyModel.cs.

int VRage.Game.Models.MyModel.GetTrianglesCount ( )
inline

Definition at line 872 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.GetVertex ( int  vertexIndex)
inline

Definition at line 224 of file MyModel.cs.

void VRage.Game.Models.MyModel.GetVertex ( int  vertexIndex1,
int  vertexIndex2,
int  vertexIndex3,
out Vector3  v1,
out Vector3  v2,
out Vector3  v3 
)
inline

Definition at line 234 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.GetVertexInt ( int  vertexIndex)
inline

Definition at line 214 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.GetVertexNormal ( int  vertexIndex)
inline

Definition at line 270 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.GetVertexTangent ( int  vertexIndex)
inline

Definition at line 275 of file MyModel.cs.

int VRage.Game.Models.MyModel.GetVerticesCount ( )
inline

Definition at line 877 of file MyModel.cs.

void VRage.Game.Models.MyModel.LoadAnimationData ( )
inline

Definition at line 660 of file MyModel.cs.

void VRage.Game.Models.MyModel.LoadData ( )
inline

Definition at line 341 of file MyModel.cs.

void VRage.Game.Models.MyModel.LoadOnlyDummies ( )
inline

Definition at line 910 of file MyModel.cs.

void VRage.Game.Models.MyModel.LoadOnlyModelInfo ( )
inline

Definition at line 953 of file MyModel.cs.

bool VRage.Game.Models.MyModel.LoadTexCoordData ( )
inline

Definition at line 635 of file MyModel.cs.

void VRage.Game.Models.MyModel.Rescale ( float  scaleFactor)
inline

Definition at line 1047 of file MyModel.cs.

void VRage.Game.Models.MyModel.SetVertexPosition ( int  vertexIndex,
ref Vector3  newPosition 
)
inline

Definition at line 229 of file MyModel.cs.

bool VRage.Game.Models.MyModel.TryGetMeshSection ( string  name,
out MyMeshSection  section 
)
inline

Definition at line 333 of file MyModel.cs.

bool VRage.Game.Models.MyModel.UnloadData ( )
inline

Definition at line 803 of file MyModel.cs.

Member Data Documentation

ModelAnimations VRage.Game.Models.MyModel.Animations

Definition at line 85 of file MyModel.cs.

VRageMath.Vector3I [] VRage.Game.Models.MyModel.BoneMapping

Definition at line 115 of file MyModel.cs.

MyModelBone [] VRage.Game.Models.MyModel.Bones

Definition at line 86 of file MyModel.cs.

Dictionary<string, MyModelDummy> VRage.Game.Models.MyModel.Dummies

Definition at line 81 of file MyModel.cs.

bool VRage.Game.Models.MyModel.ExportedWrong

Definition at line 98 of file MyModel.cs.

HkdBreakableShape [] VRage.Game.Models.MyModel.HavokBreakableShapes

Definition at line 100 of file MyModel.cs.

HkShape [] VRage.Game.Models.MyModel.HavokCollisionShapes

Definition at line 99 of file MyModel.cs.

byte [] VRage.Game.Models.MyModel.HavokData

Definition at line 88 of file MyModel.cs.

byte [] VRage.Game.Models.MyModel.HavokDestructionData

Definition at line 101 of file MyModel.cs.

bool VRage.Game.Models.MyModel.m_loadUV = false

Definition at line 96 of file MyModel.cs.

MyModelFractures VRage.Game.Models.MyModel.ModelFractures

Definition at line 90 of file MyModel.cs.

MyModelInfo VRage.Game.Models.MyModel.ModelInfo

Definition at line 82 of file MyModel.cs.

float VRage.Game.Models.MyModel.PatternScale = 1

Definition at line 116 of file MyModel.cs.

MyTriangleVertexIndices [] VRage.Game.Models.MyModel.Triangles

Definition at line 80 of file MyModel.cs.

readonly int VRage.Game.Models.MyModel.UniqueId

Definition at line 67 of file MyModel.cs.

Property Documentation

string VRage.Game.Models.MyModel.AssetName
get

File path of the model

Definition at line 182 of file MyModel.cs.

BoundingBox VRage.Game.Models.MyModel.BoundingBox
get

Definition at line 187 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.BoundingBoxSize
get

Definition at line 189 of file MyModel.cs.

Vector3 VRage.Game.Models.MyModel.BoundingBoxSizeHalf
get

Definition at line 190 of file MyModel.cs.

BoundingSphere VRage.Game.Models.MyModel.BoundingSphere
get

Definition at line 186 of file MyModel.cs.

int VRage.Game.Models.MyModel.DataVersion
get

Definition at line 69 of file MyModel.cs.

bool VRage.Game.Models.MyModel.HasUV
get

Definition at line 157 of file MyModel.cs.

int [] VRage.Game.Models.MyModel.Indices
get

Definition at line 146 of file MyModel.cs.

ushort [] VRage.Game.Models.MyModel.Indices16
get

Definition at line 151 of file MyModel.cs.

bool VRage.Game.Models.MyModel.KeepInMemory
get

Definition at line 65 of file MyModel.cs.

bool VRage.Game.Models.MyModel.LoadedData
get

Definition at line 172 of file MyModel.cs.

bool VRage.Game.Models.MyModel.LoadUV
set

Definition at line 162 of file MyModel.cs.

float VRage.Game.Models.MyModel.ScaleFactor
get

Definition at line 176 of file MyModel.cs.

HalfVector2 [] VRage.Game.Models.MyModel.TexCoords
get

Definition at line 167 of file MyModel.cs.


The documentation for this class was generated from the following file: