C# Class Universe.Physics.Meshing.Mesh

Inheritance: IMesh
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
setVertexListAsFloat ( List coords ) : void

Method Details

Deserialize() public méthode

public Deserialize ( OpenMetaverse.StructuredData.OSD cachedMesh ) : void
cachedMesh OpenMetaverse.StructuredData.OSD
Résultat void

GetCentroid() public méthode

public GetCentroid ( ) : System.Vector3
Résultat System.Vector3

Mesh() public méthode

public Mesh ( ulong key ) : System
key ulong
Résultat System

Serialize() public méthode

public Serialize ( ) : OpenMetaverse.StructuredData.OSD
Résultat OpenMetaverse.StructuredData.OSD

Set() public méthode

public Set ( List vertices, List faces ) : void
vertices List
faces List
Résultat void

getIndexListAsInt() public méthode

public getIndexListAsInt ( ) : int[]
Résultat int[]

getIndexListAsPtrToIntArray() public méthode

public getIndexListAsPtrToIntArray ( IntPtr &indices, int &triStride, int &indexCount ) : void
indices System.IntPtr
triStride int
indexCount int
Résultat void

getVertexListAsFloat() public méthode

public getVertexListAsFloat ( ) : float[]
Résultat float[]

getVertexListAsPtrToFloatArray() public méthode

public getVertexListAsPtrToFloatArray ( IntPtr &vertices, int &vertexStride, int &vertexCount ) : void
vertices System.IntPtr
vertexStride int
vertexCount int
Résultat void

releasePinned() public méthode

public releasePinned ( ) : void
Résultat void

releaseSourceMeshData() public méthode

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

setIndexListAsInt() public méthode

public setIndexListAsInt ( List faces ) : void
faces List
Résultat void