Show / Hide Table of Contents

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
DataDrivenGrid
MeshGrid
MeshPrismGrid
CubiusGrid
Implements
IGrid
Inherited Members
MeshGrid.meshData
MeshGrid.is2d
MeshGrid.GetCellCorner(Cell, CellCorner)
MeshGrid.FindCell(Vector3, Cell)
MeshGrid.Raycast(Vector3, Vector3, Single)
MeshGrid.FindCell(Matrix4x4, Cell, CellRotation)
MeshGrid.GetCellsIntersectsApprox(Vector3, Vector3)
MeshGrid.GetFaceIndices(Cell)
MeshGrid.GetPolygon(Cell, Vector3[], Matrix4x4)
MeshGrid.Is2d
MeshGrid.Is3d
MeshGrid.IsPlanar
MeshGrid.CoordinateDimension
DataDrivenGrid.GetCellTypes()
DataDrivenGrid.GetCells()
DataDrivenGrid.GetCellType(Cell)
DataDrivenGrid.IsCellInGrid(Cell)
DataDrivenGrid.TryMove(Cell, CellDir, Cell, CellDir, Connection)
DataDrivenGrid.TryMoveByOffset(Cell, Vector3Int, Vector3Int, CellRotation, Cell, CellRotation)
DataDrivenGrid.ParallelTransport(IGrid, Cell, Cell, Cell, CellRotation, Cell, CellRotation)
DataDrivenGrid.GetCellDirs(Cell)
DataDrivenGrid.GetCellCorners(Cell)
DataDrivenGrid.FindBasicPath(Cell, Cell)
DataDrivenGrid.GetIndex(Cell)
DataDrivenGrid.GetCellByIndex(Int32)
DataDrivenGrid.GetBound()
DataDrivenGrid.GetBound(IEnumerable<Cell>)
DataDrivenGrid.BoundBy(IBound)
DataDrivenGrid.IntersectBounds(IBound, IBound)
DataDrivenGrid.UnionBounds(IBound, IBound)
DataDrivenGrid.GetCellsInBounds(IBound)
DataDrivenGrid.IsCellInBound(Cell, IBound)
DataDrivenGrid.GetCellCenter(Cell)
DataDrivenGrid.GetTRS(Cell)
DataDrivenGrid.GetDeformation(Cell)
DataDrivenGrid.FindGridSymmetry(ISet<Cell>, ISet<Cell>, Cell, CellRotation)
DataDrivenGrid.TryApplySymmetry(GridSymmetry, IBound, IBound)
DataDrivenGrid.TryApplySymmetry(GridSymmetry, Cell, Cell, CellRotation)
DataDrivenGrid.Moves
DataDrivenGrid.CellData
DataDrivenGrid.IsRepeating
DataDrivenGrid.IsOrientable
DataDrivenGrid.IsFinite
DataDrivenGrid.IsSingleCellType
DataDrivenGrid.Unbounded
DataDrivenGrid.Unwrapped
DataDrivenGrid.IndexCount
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class MeshPrismGrid : MeshGrid, IGrid

Constructors

MeshPrismGrid(MeshData, MeshPrismGridOptions)

Declaration
public MeshPrismGrid(MeshData meshData, MeshPrismGridOptions meshPrismOptions)
Parameters
Type Name Description
MeshData meshData
MeshPrismGridOptions meshPrismOptions

Methods

ComputeBounds(Cell)

Declaration
protected override (Vector3, Vector3) ComputeBounds(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
System.ValueTuple<Vector3, Vector3>
Overrides
MeshGrid.ComputeBounds(Cell)

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
Type Name Description
Cell cell
MeshData meshData
TRS trs
System.Linq.ILookup<CellDir, System.Int32> faces

GetDual()

Declaration
public override IDualMapping GetDual()
Returns
Type Description
IDualMapping
Overrides
MeshGrid.GetDual()

GetMeshData(Cell, out MeshData, out Matrix4x4)

Declaration
public override void GetMeshData(Cell cell, out MeshData meshData, out Matrix4x4 transform)
Parameters
Type Name Description
Cell cell
MeshData meshData
Matrix4x4 transform
Overrides
MeshGrid.GetMeshData(Cell, out MeshData, out Matrix4x4)

GetTriangleMesh(Cell)

Declaration
public override IEnumerable<(Vector3, Vector3, Vector3, CellDir)> GetTriangleMesh(Cell cell)
Parameters
Type Name Description
Cell cell
Returns
Type Description
System.Collections.Generic.IEnumerable<System.ValueTuple<Vector3, Vector3, Vector3, CellDir>>
Overrides
MeshGrid.GetTriangleMesh(Cell)

IsPointInCell(Vector3, Cell)

Declaration
protected override bool IsPointInCell(Vector3 position, Cell cell)
Parameters
Type Name Description
Vector3 position
Cell cell
Returns
Type Description
System.Boolean
Overrides
MeshGrid.IsPointInCell(Vector3, Cell)

RaycastCell(Cell, Vector3, Vector3)

Declaration
protected override Nullable<RaycastInfo> RaycastCell(Cell cell, Vector3 rayOrigin, Vector3 direction)
Parameters
Type Name Description
Cell cell
Vector3 rayOrigin
Vector3 direction
Returns
Type Description
System.Nullable<RaycastInfo>
Overrides
MeshGrid.RaycastCell(Cell, Vector3, Vector3)

Implements

IGrid
In This Article
Back to top Generated by DocFX