diff --git a/src/geode/inspector/topology/brep_lines_topology.cpp b/src/geode/inspector/topology/brep_lines_topology.cpp index d031e698..80f723f0 100644 --- a/src/geode/inspector/topology/brep_lines_topology.cpp +++ b/src/geode/inspector/topology/brep_lines_topology.cpp @@ -51,9 +51,17 @@ namespace geode bool BRepLinesTopology::brep_vertex_lines_topology_is_valid( index_t unique_vertex_index ) const { - const auto lines = brep_.component_mesh_vertices( - unique_vertex_index, Line3D::component_type_static() ); - if( lines.empty() ) + bool part_of_line{ false }; + for( const auto cmv : + brep_.component_mesh_vertices( unique_vertex_index ) ) + { + if( cmv.component_id.type() == Line3D::component_type_static() ) + { + part_of_line = true; + break; + } + } + if( !part_of_line ) { return true; }