Skip to content

Commit 55d4a71

Browse files
committed
review changes
1 parent f6e6c74 commit 55d4a71

File tree

5 files changed

+27
-27
lines changed

5 files changed

+27
-27
lines changed

include/geode/inspector/criterion/degeneration/brep_meshes_degeneration.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ namespace geode
7575
inspect_elements_degeneration() const;
7676

7777
[[nodiscard]] BRepMeshesDegenerationInspectionResult
78-
inspect_polygons_degeneration( double threshold ) const;
78+
inspect_edges_degeneration( double threshold ) const;
7979

8080
[[nodiscard]] BRepMeshesDegenerationInspectionResult
81-
inspect_edges_degeneration( double threshold ) const;
81+
inspect_polygons_degeneration( double threshold ) const;
8282

8383
[[nodiscard]] BRepMeshesDegenerationInspectionResult
8484
inspect_polyhedra_degeneration( double threshold ) const;

include/geode/inspector/criterion/internal/degeneration_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ namespace geode
4747
[[nodiscard]] InspectionIssues< index_t > degenerated_edges() const;
4848

4949
private:
50-
[[nodiscard]] bool is_edge_smaller_than_threshold(
50+
[[nodiscard]] bool edge_is_smaller_than_threshold(
5151
index_t edge_index, double threshold ) const;
5252

5353
[[nodiscard]] bool edge_is_degenerated( index_t edge_index ) const;

src/geode/inspector/criterion/degeneration/brep_meshes_degeneration.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,24 @@ namespace geode
7777
}
7878

7979
void add_solid_small_elements(
80-
InspectionIssuesMap< index_t >& degenerated_edges_map,
81-
InspectionIssuesMap< index_t >& degenerated_polyhedra_map,
80+
InspectionIssuesMap< index_t >& small_edges_map,
81+
InspectionIssuesMap< index_t >& small_polyhedra_map,
8282
double threshold ) const
8383
{
8484
for( const auto& block : model().blocks() )
8585
{
8686
const geode::SolidMeshDegeneration3D inspector{ block.mesh() };
87-
auto degenerated_edges = inspector.small_edges( threshold );
88-
degenerated_edges.set_description( absl::StrCat(
89-
"Block ", block.id().string(), " degenerated edges" ) );
90-
degenerated_edges_map.add_issues_to_map(
91-
block.id(), std::move( degenerated_edges ) );
92-
auto degenerated_polyhedra =
87+
auto small_edges = inspector.small_edges( threshold );
88+
small_edges.set_description( absl::StrCat(
89+
"Block ", block.id().string(), " small edges" ) );
90+
small_edges_map.add_issues_to_map(
91+
block.id(), std::move( small_edges ) );
92+
auto small_polyhedra =
9393
inspector.small_height_polyhedra( threshold );
94-
degenerated_polyhedra.set_description( absl::StrCat(
95-
"Block ", block.id().string(), " degenerated polyhedra" ) );
96-
degenerated_polyhedra_map.add_issues_to_map(
97-
block.id(), std::move( degenerated_polyhedra ) );
94+
small_polyhedra.set_description( absl::StrCat( "Block ",
95+
block.id().string(), " small height polyhedra" ) );
96+
small_polyhedra_map.add_issues_to_map(
97+
block.id(), std::move( small_polyhedra ) );
9898
}
9999
}
100100

src/geode/inspector/criterion/internal/component_meshes_degeneration.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ namespace geode
4848

4949
template < typename Model >
5050
void ComponentMeshesDegeneration< Model >::add_small_edges(
51-
InspectionIssuesMap< index_t >& components_degenerated_edges,
51+
InspectionIssuesMap< index_t >& components_small_edges,
5252
double threshold ) const
5353
{
5454
for( const auto& line : model_.lines() )
@@ -58,8 +58,8 @@ namespace geode
5858
};
5959
auto issues = inspector.small_edges( threshold );
6060
issues.set_description( absl::StrCat(
61-
"Line ", line.id().string(), " degenerated edges" ) );
62-
components_degenerated_edges.add_issues_to_map(
61+
"Line ", line.id().string(), " small edges" ) );
62+
components_small_edges.add_issues_to_map(
6363
line.id(), std::move( issues ) );
6464
}
6565
for( const auto& surface : model_.surfaces() )
@@ -69,8 +69,8 @@ namespace geode
6969
};
7070
auto issues = inspector.small_edges( threshold );
7171
issues.set_description( absl::StrCat(
72-
"Surface ", surface.id().string(), " degenerated edges" ) );
73-
components_degenerated_edges.add_issues_to_map(
72+
"Surface ", surface.id().string(), " small edges" ) );
73+
components_small_edges.add_issues_to_map(
7474
surface.id(), std::move( issues ) );
7575
}
7676
}
@@ -84,7 +84,7 @@ namespace geode
8484

8585
template < typename Model >
8686
void ComponentMeshesDegeneration< Model >::add_small_height_polygons(
87-
InspectionIssuesMap< index_t >& components_degenerated_polygons,
87+
InspectionIssuesMap< index_t >& components_small_polygons,
8888
double threshold ) const
8989
{
9090
for( const auto& surface : model_.surfaces() )
@@ -93,9 +93,9 @@ namespace geode
9393
surface.mesh()
9494
};
9595
auto issues = inspector.small_height_polygons( threshold );
96-
issues.set_description( absl::StrCat( "Surface ",
97-
surface.id().string(), " degenerated polygons" ) );
98-
components_degenerated_polygons.add_issues_to_map(
96+
issues.set_description( absl::StrCat(
97+
"Surface ", surface.id().string(), " small polygons" ) );
98+
components_small_polygons.add_issues_to_map(
9999
surface.id(), std::move( issues ) );
100100
}
101101
}

src/geode/inspector/criterion/internal/degeneration_impl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace geode
7979
};
8080
for( const auto edge_index : Range{ mesh_.edges().nb_edges() } )
8181
{
82-
if( is_edge_smaller_than_threshold( edge_index, threshold ) )
82+
if( edge_is_smaller_than_threshold( edge_index, threshold ) )
8383
{
8484
const auto edge_vertices =
8585
mesh_.edges().edge_vertices( edge_index );
@@ -102,7 +102,7 @@ namespace geode
102102
}
103103

104104
template < class MeshType >
105-
bool DegenerationImpl< MeshType >::is_edge_smaller_than_threshold(
105+
bool DegenerationImpl< MeshType >::edge_is_smaller_than_threshold(
106106
index_t edge_index, double threshold ) const
107107
{
108108
const auto edge_vertices =
@@ -116,7 +116,7 @@ namespace geode
116116
bool DegenerationImpl< MeshType >::edge_is_degenerated(
117117
index_t edge_index ) const
118118
{
119-
return is_edge_smaller_than_threshold( edge_index, GLOBAL_EPSILON );
119+
return edge_is_smaller_than_threshold( edge_index, GLOBAL_EPSILON );
120120
}
121121

122122
template < class MeshType >

0 commit comments

Comments
 (0)