pub enum NavMeshDiagnostic {
Show 19 variants
EmptyMesh,
TriangleCapacity {
count: usize,
maximum: usize,
},
LinkCapacity {
count: usize,
maximum: usize,
},
NonFiniteVertex {
triangle: usize,
vertex: usize,
},
VertexOutOfRange {
triangle: usize,
vertex: usize,
},
DegenerateTriangle {
triangle: usize,
},
DuplicateTriangle {
triangle: usize,
other: usize,
},
NonManifoldEdge {
triangle: usize,
edge: usize,
first_neighbor: usize,
second_neighbor: usize,
},
InconsistentWinding {
triangle: usize,
edge: usize,
neighbor: usize,
neighbor_edge: usize,
},
SourceOutOfBounds {
link: usize,
triangle: usize,
},
DestinationOutOfBounds {
link: usize,
triangle: usize,
},
SelfLink {
link: usize,
triangle: usize,
},
InvalidLinkCost {
link: usize,
},
InvalidEntry {
link: usize,
triangle: usize,
},
InvalidExit {
link: usize,
triangle: usize,
},
MissingSharedEdge {
link: usize,
from: usize,
to: usize,
},
PortalMismatch {
link: usize,
},
PortalOffEdge {
link: usize,
triangle: usize,
edge: usize,
},
RevisionExhausted,
}Expand description
First authoring failure from a checked mesh operation, with zero-based input
indices. Edge e runs from vertex e to vertex (e + 1) % 3.
Geometry is checked before adjacency, then links in input order. Correct the reported issue and validate again to find subsequent issues. Both global winding directions are accepted; neighbors must traverse a shared edge in opposite directions. Disconnected components need not share an orientation.
Variants§
EmptyMesh
TriangleCapacity
LinkCapacity
NonFiniteVertex
VertexOutOfRange
A vertex component exceeds the supported absolute limit of 1,000,000.
DegenerateTriangle
Repeated/collinear vertices or squared cross-product magnitude < 1e-6.
DuplicateTriangle
The same three exact vertices appear in two faces, in any order.
NonManifoldEdge
More than two faces use the same exact edge.
InconsistentWinding
SourceOutOfBounds
DestinationOutOfBounds
SelfLink
InvalidLinkCost
InvalidEntry
Entry is non-finite or outside the indicated face’s containment tolerance.
InvalidExit
Exit is non-finite or outside the destination face’s containment tolerance.
PortalMismatch
Walk entry/exit differ by more than 0.001 world units.
PortalOffEdge
Walk entry or exit is more than 0.001 units from the shared edge segment.
RevisionExhausted
The shared mesh/grid identity counter is exhausted; no mesh was installed.
Trait Implementations§
Source§fn clone(&self) -> NavMeshDiagnostic
fn clone(&self) -> NavMeshDiagnostic
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more