Table of Contents

Class PeriodicGridMeshData

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Used to specify mesh data for periodic grids.

[CreateAssetMenu(fileName = "MeshData", menuName = "Grids/MeshData/Periodic")]
[Serializable]
public class PeriodicGridMeshData : MeshData
Inheritance
PeriodicGridMeshData
Inherited Members
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.name
Object.hideFlags

Remarks

Periodic grids use the same grid data for cells with the same color. The color is determined by the specified coloring.

Fields

colorFunction1

Color function to use for 1D grids.

colorFunction2

Color function to use for 2D grids.

colorFunction3
normals

The normals to use for the cell of each color type. The first entry corresponds to color 0, the second to color 1, and so on.

triangles

The triangles to use for the cell of each color type. The first entry corresponds to color 0, the second to color 1, and so on.

uvs

The UVs to use for the cell of each color type. The first entry corresponds to color 0, the second to color 1, and so on.

vertices

The vertices to use for the cell of each color type. The first entry corresponds to color 0, the second to color 1, and so on.

Methods

GetNormals(IExplicitShape<GridPoint2>, GridMap<GridPoint2>, bool)

Gets the normals for the given shape.

GetNormals(IExplicitShape<GridPoint3>, GridMap<GridPoint3>, bool)

Gets the normals for the given shape.

GetNormals(IExplicitShape<int>, GridMap<int>, bool)

Gets the normals for the given shape.

GetTriangles(IExplicitShape<GridPoint2>, bool, bool)

Gets a list of triangle indices for the given shape.

GetTriangles(IExplicitShape<GridPoint3>, bool, bool)

Gets a list of triangle indices for the given shape.

GetTriangles(IExplicitShape<int>, bool, bool)

Gets a list of triangle indices for the given shape.

GetUVs(IExplicitShape<GridPoint2>)

Gets the UVs for the given shape.

GetUVs(IExplicitShape<GridPoint3>)

Gets the UVs for the given shape.

GetUVs(IExplicitShape<int>)

Gets the UVs for the given shape.

GetVertices(IExplicitShape<GridPoint2>, GridMap<GridPoint2>)

Gets a list of vertices of a mesh for the given shape.

GetVertices(IExplicitShape<GridPoint3>, GridMap<GridPoint3>)

Gets a list of vertices of a mesh for the given shape.

GetVertices(IExplicitShape<int>, GridMap<int>)

Gets a list of vertices of a mesh for the given shape.

See Also