Table of Contents

Method GetTriangles

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetTriangles(IExplicitShape<int>, bool, bool)

Gets a list of triangle indices for the given shape.

public virtual IEnumerable<int> GetTriangles(IExplicitShape<int> shape, bool doubleSided, bool flip)

Parameters

shape IExplicitShape<int>

The shape for which vertices should be returned.

doubleSided bool

Whether the returned triangles should be double sided.

flip bool

Whether the returned triangles should be flipped.

Returns

IEnumerable<int>

Remarks

implement

Override this method to support 1D grids.

GetTriangles(IExplicitShape<GridPoint2>, bool, bool)

Gets a list of triangle indices for the given shape.

public virtual IEnumerable<int> GetTriangles(IExplicitShape<GridPoint2> shape, bool doubleSided, bool flip)

Parameters

shape IExplicitShape<GridPoint2>

The shape for which vertices should be returned.

doubleSided bool

Whether the returned triangles should be double sided.

flip bool

Whether the returned triangles should be flipped.

Returns

IEnumerable<int>

Remarks

implement

Override this method to support 1D grids.

GetTriangles(IExplicitShape<GridPoint3>, bool, bool)

Gets a list of triangle indices for the given shape.

public virtual IEnumerable<int> GetTriangles(IExplicitShape<GridPoint3> shape, bool doubleSided, bool flip)

Parameters

shape IExplicitShape<GridPoint3>

The shape for which vertices should be returned.

doubleSided bool

Whether the returned triangles should be double sided.

flip bool

Whether the returned triangles should be flipped.

Returns

IEnumerable<int>

Remarks

implement

Override this method to support 1D grids.