Skip to content

Commit

Permalink
fix(vertices_around_vertex): fix ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
MelchiorSchuh committed Feb 1, 2024
1 parent 1b53385 commit 81d6c60
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/geode/inspector/topology/brep_lines_topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81d6c60

Please sign in to comment.