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

Function addTriangles

source/MRMesh/MRMeshBuilder.cpp:321–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321size_t addTriangles( MeshTopology & res, const Triangulation & t, const BuildSettings & settings )
322{
323 MR_TIMER;
324 if ( t.empty() )
325 return 0;
326
327 // reserve enough elements for faces and vertices
328 const auto maxVertId = findMaxVertId( t, settings.region );
329 res.faceResize( t.size() + settings.shiftFaceId );
330 res.vertResize( maxVertId + 1 );
331
332 return addTrianglesSeqCore( res, t, settings );
333}
334
335void addTriangles( MeshTopology & res, std::vector<VertId> & vertTriples,
336 FaceBitSet * createdFaces )

Callers 3

makeMesh_Method · 0.85
fromTrianglesSeqFunction · 0.85
uniteCloseVerticesFunction · 0.85

Calls 13

findMaxVertIdFunction · 0.85
addTrianglesSeqCoreFunction · 0.85
faceResizeMethod · 0.80
lastValidFaceMethod · 0.80
push_backMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
vertResizeMethod · 0.45
reserveMethod · 0.45
resizeMethod · 0.45
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected