A* Pathfinding Project  3.8
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
ExtraMesh Struct Reference

Represents a custom mesh. More...

Detailed Description

Represents a custom mesh.

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.

See Also
SceneMesh
A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Public Member Functions

 ExtraMesh (Vector3[] v, int[] t, Bounds b)
 
 ExtraMesh (Vector3[] v, int[] t, Bounds b, 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
 

Constructor & Destructor Documentation

ExtraMesh ( Vector3[]  v,
int[]  t,
Bounds  b 
)
ExtraMesh ( Vector3[]  v,
int[]  t,
Bounds  b,
Matrix4x4  matrix 
)

Member Function Documentation

void RecalculateBounds ( )

Recalculate the bounds based on vertices and matrix.

Member Data Documentation

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

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