Skip to content

Commit b313135

Browse files
committed
fix(BRepTopologyInspector): handle empty surface mesh
1 parent 32b7ee6 commit b313135

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/geode/inspector/topology/brep_blocks_topology.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ namespace
278278
for( const auto& surface_id : not_boundary_surfaces )
279279
{
280280
const auto& surface_mesh = brep.surface( surface_id ).mesh();
281+
if( surface_mesh.nb_polygons() == 0 )
282+
{
283+
continue;
284+
}
281285
const auto polygon_barycenter =
282286
surface_mesh.polygon_barycenter( 0 );
283287
bool is_dangling{ true };

0 commit comments

Comments
 (0)