C# Class hyades.MeshReader

Mostra file Open project: zfedoran/bubblebound Class Usage Examples

Public Methods

Method Description
ExtractTrianglesFrom ( Model model, List vertices, List indices, Matrix world ) : void

Private Methods

Method Description
ExtractModelMeshData ( Microsoft.Xna.Framework.Graphics.ModelMesh mesh, Matrix &transform, List vertices, List indices ) : void

Get all the triangles from all mesh parts

ExtractModelMeshPartData ( Microsoft.Xna.Framework.Graphics.ModelMeshPart meshPart, Matrix &transform, List vertices, List indices ) : void

Get all the triangles from each mesh part (Changed for XNA 4)

GetAbsoluteTransform ( Microsoft.Xna.Framework.Graphics.ModelBone bone ) : Matrix

Transform by a bone position or Identity if no bone is supplied

Method Details

ExtractTrianglesFrom() public static method

public static ExtractTrianglesFrom ( Model model, List vertices, List indices, Matrix world ) : void
model Microsoft.Xna.Framework.Graphics.Model
vertices List
indices List
world Matrix
return void