We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0db87 commit 8df9054Copy full SHA for 8df9054
src/geode/model/helpers/component_mensurations.cpp
@@ -31,6 +31,7 @@
31
#include <geode/geometry/point.hpp>
32
33
#include <geode/mesh/core/edged_curve.hpp>
34
+#include <geode/mesh/core/solid_mesh.hpp>
35
#include <geode/mesh/core/surface_mesh.hpp>
36
37
#include <geode/model/helpers/component_mesh_edges.hpp>
@@ -174,6 +175,10 @@ namespace geode
174
175
176
BoundingBox3D block_bounding_box( const BRep& brep, const Block3D& block )
177
{
178
+ if( block.mesh().nb_vertices() != 0 )
179
+ {
180
+ return block.mesh().bounding_box();
181
+ }
182
BoundingBox3D result;
183
for( const auto& surface : brep.boundaries( block ) )
184
0 commit comments