Table of Contents

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

int

HexPrismVertexCount

Number of vertices in a hex-prism diagnostic cell.

public const int HexPrismVertexCount = 12

Field Value

int

RectangularPrismEdgeCount

Number of wireframe edges in a rectangular-prism diagnostic cell.

public const int RectangularPrismEdgeCount = 12

Field Value

int

RectangularPrismVertexCount

Number of vertices in a rectangular-prism diagnostic cell.

public const int RectangularPrismVertexCount = 8

Field Value

int

Methods

GetEdgeCount(GridTopologyKind)

Gets the number of edges exposed for the supplied topology kind.

public static int GetEdgeCount(GridTopologyKind topologyKind)

Parameters

topologyKind GridTopologyKind

Returns

int

GetEdges(GridTopologyKind)

Gets immutable edge topology for the supplied cell topology kind.

public static ReadOnlySpan<GridDiagnosticEdge> GetEdges(GridTopologyKind topologyKind)

Parameters

topologyKind GridTopologyKind

Returns

ReadOnlySpan<GridDiagnosticEdge>

GetVertexCount(GridTopologyKind)

Gets the number of vertices written for the supplied topology kind.

public static int GetVertexCount(GridTopologyKind topologyKind)

Parameters

topologyKind GridTopologyKind

Returns

int

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

cell GridDiagnosticCell
vertices Span<Vector3d>

Returns

int

The number of vertices written, or 0 when the span is too small.