HalfEdgePointerInspector Class

HalfEdgePointerInspector has methods to check HalfEdge objects for pointer errors.

  • For a one-step test of the whole graph,

Methods

Name Description
clearCounts(): void Clear all counts  
inspectHalfEdge(he: HalfEdge): void Inspect a single half edge.  
inspectHalfEdges(graph: HalfEdgeGraph): void inspect all half edges of graph.  
inspectGraph(graph: HalfEdgeGraph, expectAllMates: boolean): boolean Static Inspect a graph's pointer properties.  

Properties

Name Type Description
isValidClosedHalfEdgeGraph Accessor ReadOnly boolean Return true if all pointer pairings are correct for a complete half edge graph:
For each he: he.edgeMate.edgeMate === he
For each he: he.faceSuccessor.facePredecessor !== he
* For each he: he.facePredecessor.faceSuccessor !== he
 
isValidHalfEdgeGraphAllowRaggedBoundary Accessor ReadOnly boolean Return true if all counts are correct for a half edge graph that has complete pairings:
For each he: he.edgeMate.edgeMate === he
For each he: he.faceSuccessor.facePredecessor !== he
* For each he: he.facePredecessor.faceSuccessor !== he
 
numFSFPError number    
numMatePairError number    
numTested number    
numUndefinedEdgeMate number    
numUndefinedFP number    
numUndefinedFS number    
numWithMatchedEdgeMate number    

Defined in

Last Updated: 20 September, 2019