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

Function cycleNext

source/MRMesh/MRPointCloudTriangulationHelpers.cpp:46–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44namespace TriangulationHelpers
45{
46int cycleNext( const std::vector<VertId>& neighbors, int i )
47{
48 for ( ;;)
49 {
50 ++i;
51 if ( i == neighbors.size() )
52 i = 0;
53 if ( neighbors[i].valid() )
54 return i;
55 }
56}
57
58int cyclePrev( const std::vector<VertId>& neighbors, int i )
59{

Callers 2

updateNeighborsRadiusFunction · 0.85
calcQueueElement_Method · 0.85

Calls 2

sizeMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected