Class GridDiagnosticGeometry
- Namespace
- GridForge.Diagnostics
- Assembly
- GridForge.dll
Topology-aware diagnostic geometry helpers for cell descriptors.
public static class GridDiagnosticGeometry
- Inheritance
-
GridDiagnosticGeometry
- Inherited Members
Fields
HexPrismEdgeCount
Number of wireframe edges in a hex-prism diagnostic cell.
public const int HexPrismEdgeCount = 18
Field Value
HexPrismVertexCount
Number of vertices in a hex-prism diagnostic cell.
public const int HexPrismVertexCount = 12
Field Value
RectangularPrismEdgeCount
Number of wireframe edges in a rectangular-prism diagnostic cell.
public const int RectangularPrismEdgeCount = 12
Field Value
RectangularPrismVertexCount
Number of vertices in a rectangular-prism diagnostic cell.
public const int RectangularPrismVertexCount = 8
Field Value
Methods
GetEdgeCount(GridTopologyKind)
Gets the number of edges exposed for the supplied topology kind.
public static int GetEdgeCount(GridTopologyKind topologyKind)
Parameters
topologyKindGridTopologyKind
Returns
GetEdges(GridTopologyKind)
Gets immutable edge topology for the supplied cell topology kind.
public static ReadOnlySpan<GridDiagnosticEdge> GetEdges(GridTopologyKind topologyKind)
Parameters
topologyKindGridTopologyKind
Returns
GetVertexCount(GridTopologyKind)
Gets the number of vertices written for the supplied topology kind.
public static int GetVertexCount(GridTopologyKind topologyKind)
Parameters
topologyKindGridTopologyKind
Returns
WriteVertices(in GridDiagnosticCell, Span<Vector3d>)
Writes topology-aware world-space cell vertices into caller-owned storage.
public static int WriteVertices(in GridDiagnosticCell cell, Span<Vector3d> vertices)
Parameters
cellGridDiagnosticCellverticesSpan<Vector3d>
Returns
- int
The number of vertices written, or
0when the span is too small.