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

Method fitDataViewport

source/MRViewer/MRViewer.cpp:2421–2430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2419}
2420
2421void Viewer::fitDataViewport( MR::ViewportMask vpList, float fill, bool snapView )
2422{
2423 for( auto& viewport : viewport_list )
2424 {
2425 if( viewport.id.value() & vpList.value() )
2426 {
2427 viewport.fitData( fill, snapView );
2428 }
2429 }
2430}
2431
2432void Viewer::fitBoxViewport( const Box3f& box, MR::ViewportMask vpList /*= MR::ViewportMask::all()*/, float fill /*= 0.6f*/, bool snapView /*= true */ )
2433{

Callers

nothing calls this directly

Calls 2

fitDataMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected