Method InitMesh
InitMesh(Mesh, IExplicitShape<int>, GridMap<int>, MeshData, bool, bool)
Assigns the properties (such as vertices and triangles) for a mesh for a shape.
public static void InitMesh(Mesh mesh, IExplicitShape<int> shape, GridMap<int> map, MeshData meshData, bool doubleSided, bool flipTriangles)
Parameters
meshMeshThe mesh to modify.
shapeIExplicitShape<int>The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).
mapGridMap<int>The map to use for calculating vertex positions.
meshDataMeshDataThe mesh data to use to construct the mesh.
doubleSidedboolWhether the mesh should be double sided.
flipTrianglesboolWhether triangles should be flipped.
InitMesh(Mesh, IExplicitShape<GridPoint2>, GridMap<GridPoint2>, MeshData, bool, bool)
Assigns the properties (such as vertices and triangles) for a mesh for a shape.
public static void InitMesh(Mesh mesh, IExplicitShape<GridPoint2> shape, GridMap<GridPoint2> map, MeshData meshData, bool doubleSided, bool flipTriangles)
Parameters
meshMeshThe mesh to modify.
shapeIExplicitShape<GridPoint2>The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).
mapGridMap<GridPoint2>The map to use for calculating vertex positions.
meshDataMeshDataThe mesh data to use to construct the mesh.
doubleSidedboolWhether the mesh should be double sided.
flipTrianglesboolWhether triangles should be flipped.
InitMesh(Mesh, IExplicitShape<GridPoint3>, GridMap<GridPoint3>, MeshData, bool, bool)
Assigns the properties (such as vertices and triangles) for a mesh for a shape.
public static void InitMesh(Mesh mesh, IExplicitShape<GridPoint3> shape, GridMap<GridPoint3> map, MeshData meshData, bool doubleSided, bool flipTriangles)
Parameters
meshMeshThe mesh to modify.
shapeIExplicitShape<GridPoint3>The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).
mapGridMap<GridPoint3>The map to use for calculating vertex positions.
meshDataMeshDataThe mesh data to use to construct the mesh.
doubleSidedboolWhether the mesh should be double sided.
flipTrianglesboolWhether triangles should be flipped.