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

Function computeBoundingBox

source/MRMesh/MRMeshMath.cpp:400–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400Box3f computeBoundingBox( const MeshTopology & topology, const VertCoords & points, const FaceBitSet * region, const AffineXf3f* toWorld )
401{
402 if ( !region )
403 return computeBoundingBox( points, topology.getValidVerts(), toWorld );
404
405 MR_TIMER;
406 const auto lastValidFace = topology.lastValidFace();
407
408 FaceBoundingBoxCalc calc( topology, points, *region, toWorld );
409 parallel_reduce( tbb::blocked_range<FaceId>( 0_f, lastValidFace + 1 ), calc );
410 return calc.box();
411}
412
413double holePerimeter( const MeshTopology & topology, const VertCoords & points, EdgeId e0 )
414{

Callers 11

pointsGridSamplingMethod · 0.70
computeBoundingBoxMethod · 0.70
findCenterFromBBoxMethod · 0.70
multiModelGridSamplingFunction · 0.70
computeBoundingBoxMethod · 0.70
loadSingleModelFromObjFunction · 0.70
findOverhangsFunction · 0.70
findCenterFromBBoxFunction · 0.70
computeBoundingBoxMethod · 0.70
initMethod · 0.70
terrainTriangulationFunction · 0.70

Calls 1

lastValidFaceMethod · 0.80

Tested by

no test coverage detected