Struct VoxelMesher.GeneratedMesh
Contains the output of a call to CreateAndGenerateMesh(IVoxelGrid, Vector3).
Inherited Members
Namespace: CarbideFunction.Wildtile
Syntax
public struct GeneratedMesh
Fields
borderTrianglesToFaceData
A list which contains the same number of items as the triangles for the border model in the mesh. Each triangle's index can be used to lookup in this list minus the length of the
Declaration
public List<VoxelMesher.FaceData> borderTrianglesToFaceData
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<VoxelMesher.FaceData> |
mesh
A mesh containing the surface of a cuboid tile map in submesh 0 and the outer boundary of the map in submesh 1.
Declaration
public Mesh mesh
Field Value
Type | Description |
---|---|
Mesh |
trianglesToFaceData
A list which contains the same number of items as the triangles for the main model of the mesh. If the triangle index is less than the length of this list, use the triangle's index to lookup the value in this list and get the voxel index behind the face and in front of the face.
Declaration
public List<VoxelMesher.FaceData> trianglesToFaceData
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<VoxelMesher.FaceData> |
voxelsTouchingBorderTrianglesToFaceData
A list which contains the same number of items as the triangles for the voxels touching the border model in the mesh. Each triangle's index can be used to lookup in this list minus the length of the
Declaration
public List<VoxelMesher.FaceData> voxelsTouchingBorderTrianglesToFaceData
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<VoxelMesher.FaceData> |