SubMesh data (triangles, material)
Public Attributes | |
Material | Material |
![]() | |
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... | |
![]() | |
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) |
![]() | |
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 implicit | operator bool (CGData a) |
Protected Member Functions | |
override bool | Dispose (bool disposing) |
![]() | |
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... | |
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 | ) |
void Add | ( | CGVSubMesh | other, |
int | shiftIndexOffset = 0 |
||
) |
|
virtual |
Reimplemented from CGData.
|
protectedvirtual |
Reimplemented from CGData.
|
static |
void ShiftIndices | ( | int | offset, |
int | startIndex = 0 |
||
) |
Material Material |
|
get |
|
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
|
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