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

Method newFaces

source/MRMesh/MRBooleanOperation.cpp:342–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342FaceBitSet BooleanResultMapper::newFaces() const
343{
344 FaceBitSet res;
345 res.reserve( std::max( maps[0].cut2newFaces.size(), maps[1].cut2newFaces.size() ) );
346 for ( const auto& map : maps )
347 {
348 for ( FaceId newF = 0_f; newF < map.cut2origin.size(); ++newF )
349 {
350 if ( newF == map.cut2origin[newF] || !map.cut2origin[newF].valid() )
351 continue;
352 if ( auto resF = map.cut2newFaces[newF] )
353 res.autoResizeSet( resF );
354 }
355 }
356 return res;
357}
358
359FaceBitSet BooleanResultMapper::filteredOldFaceBitSet( const FaceBitSet& oldBS, MapObject obj ) const
360{

Callers 6

TESTFunction · 0.80
TestMapperMethod · 0.80
EMSCRIPTEN_BINDINGSFunction · 0.80
unitePairOfMeshesFunction · 0.80
joinMethod · 0.80

Calls 5

maxFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
validMethod · 0.45
autoResizeSetMethod · 0.45

Tested by 2

TESTFunction · 0.64
TestMapperMethod · 0.64