Skip to content

Commit a446688

Browse files
committed
fix(Topology): Replaced call to component mesh by clearer functions
1 parent 0a312e0 commit a446688

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/geode/inspector/topology/private/brep_lines_topology_impl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ namespace
4040
{
4141
for( const auto& block : brep.blocks() )
4242
{
43-
if( brep.block( block.component_id().id() ).mesh().nb_vertices()
44-
== 0 )
43+
if( block.mesh().nb_vertices() == 0 )
4544
{
4645
return false;
4746
}

src/geode/inspector/topology/private/brep_surfaces_topology_impl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ namespace
6565
{
6666
for( const auto& block : brep.blocks() )
6767
{
68-
if( brep.block( block.component_id().id() ).mesh().nb_vertices()
69-
== 0 )
68+
if( block.mesh().nb_vertices() == 0 )
7069
{
7170
return false;
7271
}

src/geode/inspector/topology/private/section_lines_topology_impl.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ namespace
3939
{
4040
for( const auto& surface : section.surfaces() )
4141
{
42-
if( section.surface( surface.component_id().id() )
43-
.mesh()
44-
.nb_vertices()
45-
== 0 )
42+
if( surface.mesh().nb_vertices() == 0 )
4643
{
4744
return false;
4845
}

0 commit comments

Comments
 (0)