A* Pathfinding Project
3.8.5
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 | RecalculateBounds () |
Recalculate the bounds based on vertices and matrix. | |
Public Attributes | |
int | area |
Bounds | bounds |
World bounds of the mesh. | |
Matrix4x4 | matrix |
MeshFilter | original |
Source of the mesh. | |
int[] | triangles |
Vector3[] | vertices |
RasterizationMesh | ( | Vector3[] | vertices, |
int[] | triangles, | ||
Bounds | bounds | ||
) |
RasterizationMesh | ( | Vector3[] | vertices, |
int[] | triangles, | ||
Bounds | bounds, | ||
Matrix4x4 | matrix | ||
) |
void RecalculateBounds | ( | ) |
Recalculate the bounds based on vertices and matrix.
int area |
Bounds bounds |
World bounds of the mesh.
Assumed to already be multiplied with the matrix
Matrix4x4 matrix |
MeshFilter original |
Source of the mesh.
May be null if the source was not a mesh filter
int [] triangles |
Vector3 [] vertices |