Curvy  8.3.0
CGVSubMesh Class Reference
+ Inheritance diagram for CGVSubMesh:
+ Collaboration diagram for CGVSubMesh:

Detailed Description

SubMesh data (triangles, material)

Public Attributes

Material Material
 
- Public Attributes inherited from CGData
string Name
 

Properties

override int Count [get]
 
int[] Triangles [get, set]
 Vertex indices constituting the mesh's triangles More...
 
SubArray< int > TrianglesList [get, set]
 Vertex indices constituting the mesh's triangles More...
 
- Properties inherited from CGData
virtual int Count [get]
 

Public Member Functions

void Add (CGVSubMesh other, int shiftIndexOffset=0)
 
 CGVSubMesh (Material material=null)
 
 CGVSubMesh (int[] triangles, Material material=null)
 
 CGVSubMesh (SubArray< int > triangles, Material material=null)
 
 CGVSubMesh (int triangleCount, Material material=null)
 
 CGVSubMesh (CGVSubMesh source)
 
override T Clone< T > ()
 
void ShiftIndices (int offset, int startIndex=0)
 
- Public Member Functions inherited from CGData
void Dispose ()
 Disposes an instance that is no more used, allowing it to free its resources immediately. Dispose is called automatically when an instance is Finalized More...
 

Static Public Member Functions

static CGVSubMesh Get (CGVSubMesh data, int triangleCount, Material material=null)
 
- Static Public Member Functions inherited from CGData
static implicit operator bool (CGData a)
 

Protected Member Functions

override bool Dispose (bool disposing)
 
- Protected Member Functions inherited from CGData
int getGenericFIndex (SubArray< float > FMapArray, float fValue, out float frag)
 Searches FMapArray and returns the index that covers the fValue as well as the percentage between index and index+1 More...
 

Constructor & Destructor Documentation

CGVSubMesh ( Material  material = null)
CGVSubMesh ( int[]  triangles,
Material  material = null 
)
CGVSubMesh ( SubArray< int >  triangles,
Material  material = null 
)
CGVSubMesh ( int  triangleCount,
Material  material = null 
)
CGVSubMesh ( CGVSubMesh  source)

Member Function Documentation

void Add ( CGVSubMesh  other,
int  shiftIndexOffset = 0 
)
override T Clone< T > ( )
virtual

Reimplemented from CGData.

override bool Dispose ( bool  disposing)
protectedvirtual

Reimplemented from CGData.

static CGVSubMesh Get ( CGVSubMesh  data,
int  triangleCount,
Material  material = null 
)
static
void ShiftIndices ( int  offset,
int  startIndex = 0 
)

Member Data Documentation

Material Material

Property Documentation

override int Count
get
int [] Triangles
getset

Vertex indices constituting the mesh's triangles

This getter returns a copy of the actual array. For performance reasons, use the equivalent getter returning a SubArray<T> instance, which allows you to directly access and modify the underlying array

SubArray<int> TrianglesList
getset

Vertex indices constituting the mesh's triangles

Setting a new SubArray<T> will ArrayPool<T>.Free(ToolBuddy.Pooling.Collections.SubArray<T>) the current SubArray<T> instance


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