C# Class Universe.Physics.Meshing.Mesh

Inheritance: IMesh
Show file Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Public Methods

Method Description
Deserialize ( OpenMetaverse.StructuredData.OSD cachedMesh ) : void
GetCentroid ( ) : System.Vector3
Mesh ( ulong key ) : System
Serialize ( ) : OpenMetaverse.StructuredData.OSD
Set ( List vertices, List faces ) : void
getIndexListAsInt ( ) : int[]
getIndexListAsPtrToIntArray ( IntPtr &indices, int &triStride, int &indexCount ) : void
getVertexListAsFloat ( ) : float[]
getVertexListAsPtrToFloatArray ( IntPtr &vertices, int &vertexStride, int &vertexCount ) : void
releasePinned ( ) : void
releaseSourceMeshData ( ) : void

frees up the source mesh data to minimize memory - call this method after calling get*Locked() functions

setIndexListAsInt ( List faces ) : void

Private Methods

Method Description
setVertexListAsFloat ( List coords ) : void

Method Details

Deserialize() public method

public Deserialize ( OpenMetaverse.StructuredData.OSD cachedMesh ) : void
cachedMesh OpenMetaverse.StructuredData.OSD
return void

GetCentroid() public method

public GetCentroid ( ) : System.Vector3
return System.Vector3

Mesh() public method

public Mesh ( ulong key ) : System
key ulong
return System

Serialize() public method

public Serialize ( ) : OpenMetaverse.StructuredData.OSD
return OpenMetaverse.StructuredData.OSD

Set() public method

public Set ( List vertices, List faces ) : void
vertices List
faces List
return void

getIndexListAsInt() public method

public getIndexListAsInt ( ) : int[]
return int[]

getIndexListAsPtrToIntArray() public method

public getIndexListAsPtrToIntArray ( IntPtr &indices, int &triStride, int &indexCount ) : void
indices System.IntPtr
triStride int
indexCount int
return void

getVertexListAsFloat() public method

public getVertexListAsFloat ( ) : float[]
return float[]

getVertexListAsPtrToFloatArray() public method

public getVertexListAsPtrToFloatArray ( IntPtr &vertices, int &vertexStride, int &vertexCount ) : void
vertices System.IntPtr
vertexStride int
vertexCount int
return void

releasePinned() public method

public releasePinned ( ) : void
return void

releaseSourceMeshData() public method

frees up the source mesh data to minimize memory - call this method after calling get*Locked() functions
public releaseSourceMeshData ( ) : void
return void

setIndexListAsInt() public method

public setIndexListAsInt ( List faces ) : void
faces List
return void