Table of Contents

Method InitMesh

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

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

mesh Mesh

The mesh to modify.

shape IExplicitShape<int>

The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).

map GridMap<int>

The map to use for calculating vertex positions.

meshData MeshData

The mesh data to use to construct the mesh.

doubleSided bool

Whether the mesh should be double sided.

flipTriangles bool

Whether 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

mesh Mesh

The mesh to modify.

shape IExplicitShape<GridPoint2>

The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).

map GridMap<GridPoint2>

The map to use for calculating vertex positions.

meshData MeshData

The mesh data to use to construct the mesh.

doubleSided bool

Whether the mesh should be double sided.

flipTriangles bool

Whether 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

mesh Mesh

The mesh to modify.

shape IExplicitShape<GridPoint3>

The logical shape of the resulting mesh (that is, the set of grid points it is meant to represent).

map GridMap<GridPoint3>

The map to use for calculating vertex positions.

meshData MeshData

The mesh data to use to construct the mesh.

doubleSided bool

Whether the mesh should be double sided.

flipTriangles bool

Whether triangles should be flipped.