Skip to content

Commit d092125

Browse files
committed
fix(Solid): missing call to negative element check
1 parent 8c20e23 commit d092125

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

include/geode/inspector/solid_inspector.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <geode/inspector/criterion/manifold/solid_edge_manifold.hpp>
3131
#include <geode/inspector/criterion/manifold/solid_facet_manifold.hpp>
3232
#include <geode/inspector/criterion/manifold/solid_vertex_manifold.hpp>
33+
#include <geode/inspector/criterion/negative_elements/solid_negative_elements.hpp>
3334
#include <geode/inspector/mixin/add_inspectors.hpp>
3435

3536
namespace geode
@@ -58,6 +59,9 @@ namespace geode
5859
InspectionIssues< PolyhedronFacetVertices > non_manifold_facets{
5960
"Manifold of facets not tested"
6061
};
62+
InspectionIssues< index_t > negative_polyhedra{
63+
"Negative polyhedra not tested"
64+
};
6165

6266
[[nodiscard]] std::string string() const;
6367

@@ -76,7 +80,8 @@ namespace geode
7680
SolidMeshDegeneration< dimension >,
7781
SolidMeshVertexManifold< dimension >,
7882
SolidMeshEdgeManifold< dimension >,
79-
SolidMeshFacetManifold< dimension > >
83+
SolidMeshFacetManifold< dimension >,
84+
SolidMeshNegativeElements< dimension > >
8085
{
8186
OPENGEODE_DISABLE_COPY( SolidMeshInspector );
8287
OPENGEODE_TEMPLATE_ASSERT_3D( dimension );

src/geode/inspector/solid_inspector.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace geode
3636
degenerated_edges.string(), "\n", degenerated_polyhedra.string(),
3737
"\n", non_manifold_vertices.string(), "\n",
3838
non_manifold_edges.string(), "\n", non_manifold_facets.string(),
39-
"\n" );
39+
"\n", negative_polyhedra.string(), "\n" );
4040
}
4141

4242
std::string SolidInspectionResult::inspection_type() const
@@ -53,7 +53,8 @@ namespace geode
5353
SolidMeshDegeneration< dimension >,
5454
SolidMeshVertexManifold< dimension >,
5555
SolidMeshEdgeManifold< dimension >,
56-
SolidMeshFacetManifold< dimension > >{ mesh }
56+
SolidMeshFacetManifold< dimension >,
57+
SolidMeshNegativeElements< dimension > >{ mesh }
5758
{
5859
}
5960

@@ -84,6 +85,9 @@ namespace geode
8485
},
8586
[&result, this] {
8687
result.non_manifold_facets = this->non_manifold_facets();
88+
},
89+
[&result, this] {
90+
result.negative_polyhedra = this->negative_polyhedra();
8791
} );
8892
return result;
8993
}

0 commit comments

Comments
 (0)