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

Method addSeparateEdgeLoop

source/MRMesh/MRMesh.cpp:255–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255EdgeId Mesh::addSeparateEdgeLoop( const std::vector<Vector3f>& contourPoints )
256{
257 if ( contourPoints.size() < 3 )
258 return {};
259
260 auto newEdges = sMakeEdgePath( *this, contourPoints);
261 // close loop
262 topology.splice( newEdges.front(), newEdges.back().sym() );
263
264 invalidateCaches();
265
266 return newEdges.front();
267}
268
269EdgeId Mesh::addSeparateContours( const Contours3f& contours, const AffineXf3f* xf )
270{

Callers 4

TESTFunction · 0.80
TESTFunction · 0.80
polylineToDegenerateMeshFunction · 0.80
offsetPolylineFunction · 0.80

Calls 4

sMakeEdgePathFunction · 0.85
sizeMethod · 0.45
spliceMethod · 0.45
symMethod · 0.45

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64