Skip to content

Commit 7711eb2

Browse files
authored
Merge pull request #95 from Geode-solutions/fix/default_message_if_inspection_is_not_done
fix(MeshesInspectors): Added default messages in InspectionResult str…
2 parents 8b21835 + 2d4ac15 commit 7711eb2

File tree

6 files changed

+56
-20
lines changed

6 files changed

+56
-20
lines changed

bindings/python/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile bindings/python/requirements.in
5+
# pip-compile --pre bindings/python/requirements.in
66
#
7-
opengeode-core==14.*,>=14.19.1
7+
opengeode-core==14.*,>=14.19.2
88
# via -r bindings/python/requirements.in

bindings/python/src/inspector/surface_inspector.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ namespace geode
6464
return inspector.inspect_surface();
6565
} );
6666

67-
module.def( "inspect_triangulated_surface",
67+
const auto inspect_function_name2 =
68+
absl::StrCat( "inspect_triangulated_surface", dimension, "D" );
69+
module.def( inspect_function_name2.c_str(),
6870
[]( const TriangulatedSurface& surface ) {
6971
TriangulatedSurfaceInspector inspector{ surface };
7072
return inspector.inspect_surface();

include/geode/inspector/edgedcurve_inspector.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ namespace geode
3232
{
3333
struct opengeode_inspector_inspector_api EdgedCurveInspectionResult
3434
{
35-
InspectionIssues< std::vector< index_t > > colocated_points_groups;
36-
InspectionIssues< index_t > degenerated_edges;
35+
InspectionIssues< std::vector< index_t > > colocated_points_groups{
36+
"Colocation of vertices not tested"
37+
};
38+
InspectionIssues< index_t > degenerated_edges{
39+
"Degeneration of edges not tested"
40+
};
3741

3842
std::string string() const;
3943

include/geode/inspector/pointset_inspector.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ namespace geode
3131
{
3232
struct opengeode_inspector_inspector_api PointSetInspectionResult
3333
{
34-
InspectionIssues< std::vector< index_t > > colocated_points_groups;
34+
InspectionIssues< std::vector< index_t > > colocated_points_groups{
35+
"Colocation of vertices not tested"
36+
};
3537

3638
std::string string() const;
3739

include/geode/inspector/solid_inspector.h

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,27 @@ namespace geode
3737
struct opengeode_inspector_inspector_api SolidInspectionResult
3838
{
3939
InspectionIssues< PolyhedronFacet >
40-
polyhedron_facets_with_wrong_adjacency;
41-
InspectionIssues< std::vector< index_t > > colocated_points_groups;
42-
InspectionIssues< index_t > degenerated_edges;
43-
InspectionIssues< index_t > degenerated_polyhedra;
44-
InspectionIssues< index_t > non_manifold_vertices;
45-
InspectionIssues< std::array< index_t, 2 > > non_manifold_edges;
46-
InspectionIssues< PolyhedronFacetVertices > non_manifold_facets;
40+
polyhedron_facets_with_wrong_adjacency{
41+
"Adjacencies of facets not tested"
42+
};
43+
InspectionIssues< std::vector< index_t > > colocated_points_groups{
44+
"Colocation of vertices not tested"
45+
};
46+
InspectionIssues< index_t > degenerated_edges{
47+
"Degeneration of edges not tested"
48+
};
49+
InspectionIssues< index_t > degenerated_polyhedra{
50+
"Degeneration of polyhedra not tested"
51+
};
52+
InspectionIssues< index_t > non_manifold_vertices{
53+
"Manifold of vertices not tested"
54+
};
55+
InspectionIssues< std::array< index_t, 2 > > non_manifold_edges{
56+
"Manifold of edges not tested"
57+
};
58+
InspectionIssues< PolyhedronFacetVertices > non_manifold_facets{
59+
"Manifold of facets not tested"
60+
};
4761

4862
std::string string() const;
4963

include/geode/inspector/surface_inspector.h

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,27 @@ namespace geode
3636
{
3737
struct opengeode_inspector_inspector_api SurfaceInspectionResult
3838
{
39-
InspectionIssues< PolygonEdge > polygon_edges_with_wrong_adjacency;
40-
InspectionIssues< std::vector< index_t > > colocated_points_groups;
41-
InspectionIssues< index_t > degenerated_edges;
42-
InspectionIssues< index_t > degenerated_polygons;
43-
InspectionIssues< std::array< index_t, 2 > > non_manifold_edges;
44-
InspectionIssues< index_t > non_manifold_vertices;
45-
InspectionIssues< std::pair< index_t, index_t > > intersecting_elements;
39+
InspectionIssues< PolygonEdge > polygon_edges_with_wrong_adjacency{
40+
"Adjacencies between polygon edges not tested"
41+
};
42+
InspectionIssues< std::vector< index_t > > colocated_points_groups{
43+
"Colocation of vertices not tested"
44+
};
45+
InspectionIssues< index_t > degenerated_edges{
46+
"Degeneration of edges not tested"
47+
};
48+
InspectionIssues< index_t > degenerated_polygons{
49+
"Degeneration of polygons not tested"
50+
};
51+
InspectionIssues< std::array< index_t, 2 > > non_manifold_edges{
52+
"Manifold of edges not tested"
53+
};
54+
InspectionIssues< index_t > non_manifold_vertices{
55+
"Manifold of vertices not tested"
56+
};
57+
InspectionIssues< std::pair< index_t, index_t > > intersecting_elements{
58+
"Intersection between mesh elements not tested"
59+
};
4660

4761
std::string string() const;
4862

0 commit comments

Comments
 (0)