mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added bbox calculation on the fem part for #312
This concludes #312 for now. Wellpaths are now shown in the Geomech views
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
|
||||
#include "RigFemPartCollection.h"
|
||||
#include "cvfBoundingBox.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -98,3 +99,16 @@ float RigFemPartCollection::characteristicElementSize()
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::BoundingBox RigFemPartCollection::boundingBox()
|
||||
{
|
||||
cvf::BoundingBox bBox;
|
||||
for (int i = 0; i < partCount(); i++)
|
||||
{
|
||||
bBox.add(part(i)->boundingBox());
|
||||
}
|
||||
return bBox;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user