diff --git a/src/geode/inspector/topology/brep_blocks_topology.cpp b/src/geode/inspector/topology/brep_blocks_topology.cpp index 37bf2837..b24488a2 100644 --- a/src/geode/inspector/topology/brep_blocks_topology.cpp +++ b/src/geode/inspector/topology/brep_blocks_topology.cpp @@ -755,6 +755,10 @@ namespace geode BRepBlocksTopology::inspect_blocks() const { BRepBlocksTopologyInspectionResult result; + if( brep_.nb_blocks() == 0 || brep_.nb_active_blocks() == 0 ) + { + return result; + } std::vector< geode::uuid > meshed_blocks; const auto not_boundary_surfaces = find_not_boundary_surfaces( brep_ ); const auto dangling_surfaces =