Search Results for

    Show / Hide Table of Contents

    Struct VoxelMesher.GeneratedMesh

    Contains the output of a call to CreateAndGenerateMesh(IVoxelGrid, Vector3).

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    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 and get the voxel index behind the face and in front of the face.

    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 + and get the voxel index behind the face and in front of the face. These FaceData will only have voxels behind the face as the front faces out of the map.

    Declaration
    public List<VoxelMesher.FaceData> voxelsTouchingBorderTrianglesToFaceData
    Field Value
    Type Description
    System.Collections.Generic.List<VoxelMesher.FaceData>
    In This Article
    Generated by DocFX Wildtile Documentation