MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / findEdge

Method findEdge

source/MRMesh/MRGraph.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31Graph::EdgeId Graph::findEdge( VertId a, VertId b ) const
32{
33 assert( a.valid() && validVerts_.test( a ) );
34 assert( b.valid() && validVerts_.test( b ) );
35 assert( a != b );
36 for ( EdgeId e : neighboursPerVertex_[a] )
37 {
38 if ( endsPerEdge_[e].otherEnd( a ) == b )
39 return e;
40 }
41 return {};
42}
43
44void Graph::merge( VertId remnant, VertId dead, std::function<void(EdgeId, EdgeId)> onMergeEdges )
45{

Callers 15

TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
fromSameTriangleFunction · 0.45
fromSameTriangleFunction · 0.45
smoothRegionBoundaryFunction · 0.45
addMethod · 0.45

Calls 3

otherEndMethod · 0.80
validMethod · 0.45
testMethod · 0.45

Tested by 4

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36