Skip to content

Commit ef1a9b4

Browse files
Merge pull request #139 from Geode-solutions/fix/segfault_when_ine_with_no_edges
fix(BRepLineInspector): Fixed inspection introducing SegFault in case…
2 parents 2ce7c58 + 12c7093 commit ef1a9b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/geode/inspector/topology/brep_lines_topology.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ namespace geode
292292
{
293293
continue;
294294
}
295+
if( brep_.line( cmv.component_id.id() ).mesh().nb_edges() == 0 )
296+
{
297+
continue;
298+
}
295299
const auto cme = geode::component_mesh_edges(
296300
brep_, brep_.line( cmv.component_id.id() ), 0 );
297301
if( brep_.nb_incidences( cmv.component_id.id() ) >= 1 )

0 commit comments

Comments
 (0)