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

Method filteredOldFaceBitSet

source/MRMesh/MRBooleanOperation.cpp:359–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359FaceBitSet BooleanResultMapper::filteredOldFaceBitSet( const FaceBitSet& oldBS, MapObject obj ) const
360{
361 const auto& map = maps[int( obj )];
362 FaceBitSet outBs( oldBS.size() );
363 for ( FaceId i = 0_f; i < map.cut2origin.size(); ++i )
364 {
365 auto orgF = map.cut2origin[i];
366 if ( !orgF || !oldBS.test( orgF ) )
367 continue;
368 if ( map.cut2newFaces[i] )
369 outBs.set( orgF );
370 }
371 return outBs;
372}
373
374FaceMap BooleanResultMapper::getNew2OldFaceMap( MapObject obj ) const
375{

Callers 2

test_boolean_exposingFunction · 0.95
EMSCRIPTEN_BINDINGSFunction · 0.80

Calls 3

sizeMethod · 0.45
testMethod · 0.45
setMethod · 0.45

Tested by 1

test_boolean_exposingFunction · 0.76