A* Pathfinding Project
4.1.19
The A* Pathfinding Project for Unity 3D
|
Represents a mesh which will be rasterized. More...
Represents a mesh which will be rasterized.
The vertices will be multiplied with the matrix when rasterizing it to voxels. The vertices and triangles array may be used in multiple instances, it is not changed when voxelizing.
Public Member Functions | |
RasterizationMesh () | |
RasterizationMesh (Vector3[] vertices, int[] triangles, Bounds bounds) | |
RasterizationMesh (Vector3[] vertices, int[] triangles, Bounds bounds, Matrix4x4 matrix) | |
void | Pool () |
Pool the vertices and triangles arrays if the pool field is true. More... | |
void | RecalculateBounds () |
Recalculate the bounds based on vertices and matrix. More... | |
Public Attributes | |
int | area |
Bounds | bounds |
World bounds of the mesh. More... | |
Matrix4x4 | matrix |
int | numTriangles |
Number of triangles in the triangles array. More... | |
int | numVertices |
Number of vertices in the vertices array. More... | |
MeshFilter | original |
Source of the mesh. More... | |
bool | pool |
If true, the vertex and triangle arrays will be pooled after they have been used. More... | |
int [] | triangles |
Vector3 [] | vertices |
RasterizationMesh | ( | Vector3 [] | vertices, |
int [] | triangles, | ||
Bounds | bounds | ||
) |
RasterizationMesh | ( | Vector3 [] | vertices, |
int [] | triangles, | ||
Bounds | bounds, | ||
Matrix4x4 | matrix | ||
) |
int area |
Bounds bounds |
World bounds of the mesh.
Assumed to already be multiplied with the matrix
Matrix4x4 matrix |
int numTriangles |
Number of triangles in the triangles array.
The triangles array is often pooled and then it sometimes makes sense to use a larger array than is actually necessary.
int numVertices |
Number of vertices in the vertices array.
The vertices array is often pooled and then it sometimes makes sense to use a larger array than is actually necessary.
MeshFilter original |
Source of the mesh.
May be null if the source was not a mesh filter
bool pool |
If true, the vertex and triangle arrays will be pooled after they have been used.
Should be used only if the vertex and triangle arrays were originally taken from a pool.
int [] triangles |
Vector3 [] vertices |