Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ endif()
if(OPENGEODE_INSPECTOR_WITH_TESTS)
# Enable testing with CTest
enable_testing()
message(STATUS "Configuring OpenGeode-inspector with tests")
message(STATUS "Configuring OpenGeode-Inspector with tests")
add_subdirectory(tests)
endif()

Expand Down
3 changes: 2 additions & 1 deletion bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ add_geode_python_wheel(
DESCRIPTION
"Open source framework for inspecting the validity of geometric models"
MODULES
"inspector.py"
"inspection.py"
"validity.py"
LICENSE "MIT"
)
27 changes: 27 additions & 0 deletions bindings/python/inspection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (c) 2019 - 2026 Geode-solutions
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#

import opengeode

from opengeode_inspector_py_inspection import *

OpenGeodeInspectorInspectionLibrary.initialize()
3 changes: 2 additions & 1 deletion bindings/python/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

add_subdirectory(inspector)
add_subdirectory(inspection)
add_subdirectory(validity)
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# SOFTWARE.

add_geode_python_binding(
NAME "py_inspector"
NAME "py_inspection"
SOURCES
"criterion/adjacency/surface_adjacency.hpp"
"criterion/adjacency/solid_adjacency.hpp"
Expand Down Expand Up @@ -50,7 +50,7 @@ add_geode_python_binding(
"criterion/section_meshes_inspector.hpp"
"topology/brep_topology.hpp"
"topology/section_topology.hpp"
"inspector.cpp"
"inspection.cpp"
"edgedcurve_inspector.hpp"
"brep_inspector.hpp"
"pointset_inspector.hpp"
Expand All @@ -59,5 +59,5 @@ add_geode_python_binding(
"surface_inspector.hpp"
"information.hpp"
DEPENDENCIES
${PROJECT_NAME}::inspector
${PROJECT_NAME}::inspection
)
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@

#include <geode/model/representation/core/brep.hpp>

#include <geode/inspector/brep_inspector.hpp>
#include <geode/inspector/inspection/brep_inspector.hpp>

namespace geode
{
void define_brep_inspector( pybind11::module& module )

Check failure on line 30 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:30:33 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
pybind11::class_< BRepInspectionResult >(

Check failure on line 32 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:32:27 [clang-diagnostic-error]

'BRepInspectionResult' does not refer to a value

Check failure on line 32 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:32:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
module, "BRepInspectionResult" )
.def( pybind11::init<>() )

Check failure on line 34 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:34:36 [clang-diagnostic-error]

expected expression

Check failure on line 34 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:34:34 [clang-diagnostic-error]

expected expression

Check failure on line 34 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:34:19 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
.def_readwrite( "meshes", &BRepInspectionResult::meshes )
.def_readwrite( "topology", &BRepInspectionResult::topology )
.def( "string", &BRepInspectionResult::string )
.def( "inspection_type", &BRepInspectionResult::inspection_type );

pybind11::class_< BRepInspector, BRepMeshesInspector,

Check failure on line 40 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:40:27 [clang-diagnostic-error]

'BRepInspector' does not refer to a value

Check failure on line 40 in bindings/python/src/inspection/brep_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/brep_inspector.hpp:40:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
BRepTopologyInspector >( module, "BRepInspector" )
.def( pybind11::init< const BRep& >() )
.def( "inspect_brep", &BRepInspector::inspect_brep );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

#include <geode/model/representation/core/brep.hpp>

#include <geode/inspector/criterion/adjacency/brep_meshes_adjacency.hpp>
#include <geode/inspector/inspection/criterion/adjacency/brep_meshes_adjacency.hpp>

namespace geode
{
void define_brep_meshes_adjacency( pybind11::module& module )

Check failure on line 30 in bindings/python/src/inspection/criterion/adjacency/brep_meshes_adjacency.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/criterion/adjacency/brep_meshes_adjacency.hpp:30:40 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
pybind11::class_< BRepMeshesAdjacencyInspectionResult >(

Check failure on line 32 in bindings/python/src/inspection/criterion/adjacency/brep_meshes_adjacency.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/criterion/adjacency/brep_meshes_adjacency.hpp:32:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
module, "BRepMeshesAdjacencyInspectionResult" )
.def( pybind11::init<>() )
.def_readwrite( "surfaces_edges_with_wrong_adjacencies",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/adjacency/section_meshes_adjacency.hpp>
#include <geode/inspector/inspection/criterion/adjacency/section_meshes_adjacency.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/criterion/adjacency/solid_adjacency.hpp>
#include <geode/inspector/inspection/criterion/adjacency/solid_adjacency.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/surface_mesh.hpp>

#include <geode/inspector/criterion/adjacency/surface_adjacency.hpp>
#include <geode/inspector/inspection/criterion/adjacency/surface_adjacency.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/brep.hpp>

#include <geode/inspector/criterion/brep_meshes_inspector.hpp>
#include <geode/inspector/inspection/criterion/brep_meshes_inspector.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <geode/model/representation/core/brep.hpp>
#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/colocation/component_meshes_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/component_meshes_colocation.hpp>

#define PYTHON_COMPONENTS_COLOCATION( type, suffix ) \
const auto name##type = \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/edged_curve.hpp>

#include <geode/inspector/criterion/colocation/edgedcurve_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/edgedcurve_colocation.hpp>

#define PYTHON_EDGEDCURVE_COLOCATION( dimension )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/point_set.hpp>

#include <geode/inspector/criterion/colocation/pointset_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/pointset_colocation.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/criterion/colocation/solid_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/solid_colocation.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/surface_mesh.hpp>

#include <geode/inspector/criterion/colocation/surface_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/surface_colocation.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <geode/model/representation/core/brep.hpp>
#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/colocation/unique_vertices_colocation.hpp>
#include <geode/inspector/inspection/criterion/colocation/unique_vertices_colocation.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/brep.hpp>

#include <geode/inspector/criterion/degeneration/brep_meshes_degeneration.hpp>
#include <geode/inspector/inspection/criterion/degeneration/brep_meshes_degeneration.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/edged_curve.hpp>

#include <geode/inspector/criterion/degeneration/edgedcurve_degeneration.hpp>
#include <geode/inspector/inspection/criterion/degeneration/edgedcurve_degeneration.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/degeneration/section_meshes_degeneration.hpp>
#include <geode/inspector/inspection/criterion/degeneration/section_meshes_degeneration.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/criterion/degeneration/solid_degeneration.hpp>
#include <geode/inspector/inspection/criterion/degeneration/solid_degeneration.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/surface_mesh.hpp>

#include <geode/inspector/criterion/degeneration/surface_degeneration.hpp>
#include <geode/inspector/inspection/criterion/degeneration/surface_degeneration.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <geode/model/representation/core/brep.hpp>
#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/intersections/model_intersections.hpp>
#include <geode/inspector/inspection/criterion/intersections/model_intersections.hpp>

#define PYTHON_MODEL_INTERSECTIONS( type, suffix ) \
const auto name##type = absl::StrCat( #type, "MeshesIntersections" ); \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <geode/mesh/core/edged_curve.hpp>
#include <geode/mesh/core/triangulated_surface.hpp>

#include <geode/inspector/criterion/intersections/surface_curve_intersections.hpp>
#include <geode/inspector/inspection/criterion/intersections/surface_curve_intersections.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/surface_mesh.hpp>

#include <geode/inspector/criterion/intersections/surface_intersections.hpp>
#include <geode/inspector/inspection/criterion/intersections/surface_intersections.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/brep.hpp>

#include <geode/inspector/criterion/manifold/brep_meshes_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/brep_meshes_manifold.hpp>

#include "../../information.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/manifold/section_meshes_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/section_meshes_manifold.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <geode/mesh/core/detail/vertex_cycle.hpp>

#include <geode/inspector/criterion/manifold/solid_edge_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/solid_edge_manifold.hpp>
namespace geode
{
template < index_t dimension >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <geode/mesh/core/detail/vertex_cycle.hpp>
#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/criterion/manifold/solid_facet_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/solid_facet_manifold.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/criterion/manifold/solid_vertex_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/solid_vertex_manifold.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <geode/mesh/core/detail/vertex_cycle.hpp>

#include <geode/inspector/criterion/manifold/surface_edge_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/surface_edge_manifold.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/surface_mesh.hpp>

#include <geode/inspector/criterion/manifold/surface_vertex_manifold.hpp>
#include <geode/inspector/inspection/criterion/manifold/surface_vertex_manifold.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/section_meshes_inspector.hpp>
#include <geode/inspector/inspection/criterion/section_meshes_inspector.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/edged_curve.hpp>

#include <geode/inspector/edgedcurve_inspector.hpp>
#include <geode/inspector/inspection/edgedcurve_inspector.hpp>

namespace geode
{
Expand All @@ -34,7 +34,7 @@
using EdgedCurve = EdgedCurve< dimension >;
using EdgedCurveInspector = geode::EdgedCurveInspector< dimension >;

const auto name = absl::StrCat( "EdgedCurveInspector", dimension, "D" );

Check warning on line 37 in bindings/python/src/inspection/edgedcurve_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/edgedcurve_inspector.hpp:37:20 [bugprone-unused-local-non-trivial-variable]

unused local variable 'name' of type 'const std::string' (aka 'const basic_string<char>')
pybind11::class_< EdgedCurveInspector,
EdgedCurveColocation< dimension >,
EdgedCurveDegeneration< dimension > >( module, name.c_str() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <string>

#include <geode/inspector/information.hpp>
#include <geode/inspector/inspection/information.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#include "solid_inspector.hpp"
#include "surface_inspector.hpp"

namespace pybind11

Check warning on line 72 in bindings/python/src/inspection/inspection.cpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/inspection.cpp:72:1 [modernize-concat-nested-namespaces]

nested namespaces can be concatenated
{
namespace detail
{
Expand All @@ -87,13 +87,13 @@
} // namespace detail
} // namespace pybind11

PYBIND11_MODULE( opengeode_inspector_py_inspector, module )
PYBIND11_MODULE( opengeode_inspector_py_inspection, module )
{
module.doc() = "OpenGeode-Inspector Python binding";
pybind11::class_< geode::OpenGeodeInspectorInspectorLibrary >(
module, "OpenGeodeInspectorInspectorLibrary" )
pybind11::class_< geode::OpenGeodeInspectorInspectionLibrary >(
module, "OpenGeodeInspectorInspectionLibrary" )
.def( "initialize",
&geode::OpenGeodeInspectorInspectorLibrary::initialize );
&geode::OpenGeodeInspectorInspectionLibrary::initialize );
geode::define_information( module );
geode::define_surface_adjacency( module );
geode::define_solid_adjacency( module );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/point_set.hpp>

#include <geode/inspector/pointset_inspector.hpp>
#include <geode/inspector/inspection/pointset_inspector.hpp>

namespace geode
{
Expand All @@ -33,7 +33,7 @@
{
using PointSet = PointSet< dimension >;
using PointSetInspector = PointSetInspector< dimension >;
const auto name = absl::StrCat( "PointSetInspector", dimension, "D" );

Check warning on line 36 in bindings/python/src/inspection/pointset_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/pointset_inspector.hpp:36:20 [bugprone-unused-local-non-trivial-variable]

unused local variable 'name' of type 'const std::string' (aka 'const basic_string<char>')
pybind11::class_< PointSetInspector, PointSetColocation< dimension > >(
module, name.c_str() )
.def( pybind11::init< const PointSet& >() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@

#include <geode/model/representation/core/section.hpp>

#include <geode/inspector/criterion/section_meshes_inspector.hpp>
#include <geode/inspector/inspection/criterion/section_meshes_inspector.hpp>

#include <geode/inspector/section_inspector.hpp>
#include <geode/inspector/inspection/section_inspector.hpp>

namespace geode
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <geode/mesh/core/solid_mesh.hpp>

#include <geode/inspector/solid_inspector.hpp>
#include <geode/inspector/inspection/solid_inspector.hpp>

namespace geode
{
Expand All @@ -33,7 +33,7 @@
{
using SolidMesh = geode::SolidMesh< dimension >;
using SolidMeshInspector = geode::SolidMeshInspector< dimension >;
const auto name = absl::StrCat( "SolidMeshInspector", dimension, "D" );

Check warning on line 36 in bindings/python/src/inspection/solid_inspector.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/inspection/solid_inspector.hpp:36:20 [bugprone-unused-local-non-trivial-variable]

unused local variable 'name' of type 'const std::string' (aka 'const basic_string<char>')
pybind11::class_< SolidMeshInspector, SolidMeshAdjacency< dimension >,
SolidMeshColocation< dimension >,
SolidMeshDegeneration< dimension >,
Expand Down
Loading
Loading