A lightweight reference to a mesh in unmanaged memory. More...
Public Member Functions | |
MeshUnmanagedTrianglesRef () | |
Creates an empty MeshUnmanagedTrianglesRef. More... | |
MeshUnmanagedTrianglesRef (UnmanagedTriangleArray triangles, Int32 first, Int32 capacity, Int32 usedCount) | |
Creates a new instance of MeshUnmanagedTrianglesRef. More... | |
MeshUnmanagedTrianglesRef (UnmanagedTriangleArray triangles, Int32 first, Int32 usedCount) | |
Obsolete. Use overload that takes 'capacity' parameter instead. See MeshUnmanagedTrianglesRef. More... | |
TriangleCCW * | GetFreeTriangles (out int freeCount) |
Gets a buffer of unused triangles on this mesh collider. More... | |
TriangleCCW * | GetTriangles (out Int32 usedCount) |
Gets a pointer to the first triangle of the mesh and the number of used triangles. Mesh triangles are allocated in a contiguous buffer starting from the first triangle. More... | |
TriangleCCW * | GetTriangles (out Int32 usedCount, out Int32 capacity) |
Gets a pointer to the first triangle of the mesh, the number of used triangles and the capacity of the buffer. More... | |
bool | TryGetFreeTriangles (out TriangleCCW *freeTriangles, out int freeCount) |
Gets a buffer of unused triangles on this mesh collider. More... | |
bool | TryGetTriangles (out TriangleCCW *triangles, out Int32 usedCount) |
bool | TryGetTriangles (out TriangleCCW *triangles, out Int32 usedCount, out Int32 capacity) |
Tries to get a buffer of the triangles on this mesh collider. More... | |
Public Attributes | |
readonly Int32 | Capacity |
The capacity of the buffer. More... | |
Int32 | Count => UsedCount |
Obsolete. Use UsedCount instead. More... | |
readonly Int32 | First |
The index of the first triangle of this mesh in the buffer. More... | |
readonly UnmanagedTriangleArray | Triangles |
The unmanaged buffer containing all triangles. More... | |
readonly Int32 | UsedCount |
The amount of triangles used. More... | |
A lightweight reference to a mesh in unmanaged memory.
|
inline |
Obsolete. Use overload that takes 'capacity' parameter instead. See MeshUnmanagedTrianglesRef.
|
inline |
Creates a new instance of MeshUnmanagedTrianglesRef.
triangles | The unmanaged buffer containing all triangles. |
first | The index of the first triangle of this mesh in the buffer. |
capacity | The capacity of the buffer. |
usedCount | The amount of triangles used. |
|
inline |
Creates an empty MeshUnmanagedTrianglesRef.
|
inline |
Gets a pointer to the first triangle of the mesh and the number of used triangles. Mesh triangles are allocated in a contiguous buffer starting from the first triangle.
usedCount | the number of used triangles in the mesh. |
|
inline |
Gets a pointer to the first triangle of the mesh, the number of used triangles and the capacity of the buffer.
usedCount | The number of used triangles in the mesh. |
capacity | The capacity of the buffer allocated for the mesh. |
|
inline |
Tries to get a buffer of the triangles on this mesh collider.
triangles | A pointer to the first triangles in this mesh collider, if any. null otherwise. |
usedCount | How many triangles are used. |
capacity | The capacity of the buffer allocated for this mesh. |
true
if this mesh collider has triangles. false
otherwise.
|
inline |
Gets a buffer of unused triangles on this mesh collider.
freeCount | How many triangles are free. |
null
otherwise.
|
inline |
Gets a buffer of unused triangles on this mesh collider.
freeTriangles | A pointer to the first free triangles in this mesh collider, if any. null otherwise. |
freeCount | How many triangles are free. |
true
if this mesh collider has free triangles. false
otherwise.readonly UnmanagedTriangleArray Quantum.MeshUnmanagedTrianglesRef.Triangles |
The unmanaged buffer containing all triangles.
readonly Int32 Quantum.MeshUnmanagedTrianglesRef.First |
The index of the first triangle of this mesh in the buffer.
readonly Int32 Quantum.MeshUnmanagedTrianglesRef.UsedCount |
The amount of triangles used.
readonly Int32 Quantum.MeshUnmanagedTrianglesRef.Capacity |
The capacity of the buffer.