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

Function getContourSizes

source/MRMesh/MR2DContoursTriangulation.cpp:133–139  ·  view source on GitHub ↗

per-contour vertex counts; lets the queue build the initial edge loops independently of coordinate dimension

Source from the content-addressed store, hash-verified

131
132// per-contour vertex counts; lets the queue build the initial edge loops independently of coordinate dimension
133static std::vector<int> getContourSizes( const Contours2f& contours )
134{
135 std::vector<int> sizes( contours.size() );
136 for ( int i = 0; i < int( contours.size() ); ++i )
137 sizes[i] = int( contours[i].size() );
138 return sizes;
139}
140
141// map an input vertex (its index within the concatenated hole loops) back to its source mesh VertId;
142// mirrors the walk in mergeSamePoints_

Callers 3

getOutlineMeshFunction · 0.85
triangulateContoursFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected