Class MeshPrismGrid
Represents a 3d grid, where each cell is an extrusion of a face along the normals, offset to a given height.
Inheritance
System.Object
MeshPrismGrid
Assembly: Sylves.dll
Syntax
public class MeshPrismGrid : MeshGrid, IGrid
Constructors
MeshPrismGrid(MeshData, MeshPrismGridOptions)
Declaration
public MeshPrismGrid(MeshData meshData, MeshPrismGridOptions meshPrismOptions)
Parameters
Methods
ComputeBounds(Cell)
Declaration
protected override (Vector3, Vector3) ComputeBounds(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
GetCellMesh(Cell, out MeshData, out TRS, out ILookup<CellDir, Int32>)
Declaration
public void GetCellMesh(Cell cell, out MeshData meshData, out TRS trs, out ILookup<CellDir, int> faces)
Parameters
GetDual()
Declaration
public override IDualMapping GetDual()
Returns
Overrides
GetMeshData(Cell, out MeshData, out Matrix4x4)
Declaration
public override void GetMeshData(Cell cell, out MeshData meshData, out Matrix4x4 transform)
Parameters
Overrides
GetTriangleMesh(Cell)
Declaration
public override IEnumerable<(Vector3, Vector3, Vector3, CellDir)> GetTriangleMesh(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Overrides
IsPointInCell(Vector3, Cell)
Declaration
protected override bool IsPointInCell(Vector3 position, Cell cell)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
RaycastCell(Cell, Vector3, Vector3)
Declaration
protected override Nullable<RaycastInfo> RaycastCell(Cell cell, Vector3 rayOrigin, Vector3 direction)
Parameters
Returns
Overrides
Implements