Skip to content

Commit ab74b6d

Browse files
authored
Merge pull request #178 from Geode-solutions/feat/new_validity_library
feat(Validity): New validity library, and renaming of previous library
2 parents 1aa0d5a + 3436980 commit ab74b6d

216 files changed

Lines changed: 1531 additions & 925 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ endif()
5858
if(OPENGEODE_INSPECTOR_WITH_TESTS)
5959
# Enable testing with CTest
6060
enable_testing()
61-
message(STATUS "Configuring OpenGeode-inspector with tests")
61+
message(STATUS "Configuring OpenGeode-Inspector with tests")
6262
add_subdirectory(tests)
6363
endif()
6464

bindings/python/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ add_geode_python_wheel(
2929
DESCRIPTION
3030
"Open source framework for inspecting the validity of geometric models"
3131
MODULES
32-
"inspector.py"
32+
"inspection.py"
33+
"validity.py"
3334
LICENSE "MIT"
3435
)

bindings/python/inspection.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# Copyright (c) 2019 - 2026 Geode-solutions
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining a copy
5+
# of this software and associated documentation files (the "Software"), to deal
6+
# in the Software without restriction, including without limitation the rights
7+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
# copies of the Software, and to permit persons to whom the Software is
9+
# furnished to do so, subject to the following conditions:
10+
#
11+
# The above copyright notice and this permission notice shall be included in
12+
# all copies or substantial portions of the Software.
13+
#
14+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
# SOFTWARE.
21+
#
22+
23+
import opengeode
24+
25+
from opengeode_inspector_py_inspection import *
26+
27+
OpenGeodeInspectorInspectionLibrary.initialize()

bindings/python/src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
add_subdirectory(inspector)
21+
add_subdirectory(inspection)
22+
add_subdirectory(validity)

bindings/python/src/inspector/CMakeLists.txt renamed to bindings/python/src/inspection/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# SOFTWARE.
2020

2121
add_geode_python_binding(
22-
NAME "py_inspector"
22+
NAME "py_inspection"
2323
SOURCES
2424
"criterion/adjacency/surface_adjacency.hpp"
2525
"criterion/adjacency/solid_adjacency.hpp"
@@ -50,7 +50,7 @@ add_geode_python_binding(
5050
"criterion/section_meshes_inspector.hpp"
5151
"topology/brep_topology.hpp"
5252
"topology/section_topology.hpp"
53-
"inspector.cpp"
53+
"inspection.cpp"
5454
"edgedcurve_inspector.hpp"
5555
"brep_inspector.hpp"
5656
"pointset_inspector.hpp"
@@ -59,5 +59,5 @@ add_geode_python_binding(
5959
"surface_inspector.hpp"
6060
"information.hpp"
6161
DEPENDENCIES
62-
${PROJECT_NAME}::inspector
62+
${PROJECT_NAME}::inspection
6363
)

bindings/python/src/inspector/brep_inspector.hpp renamed to bindings/python/src/inspection/brep_inspector.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

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

26-
#include <geode/inspector/brep_inspector.hpp>
26+
#include <geode/inspector/inspection/brep_inspector.hpp>
2727

2828
namespace geode
2929
{

bindings/python/src/inspector/criterion/adjacency/brep_meshes_adjacency.hpp renamed to bindings/python/src/inspection/criterion/adjacency/brep_meshes_adjacency.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

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

26-
#include <geode/inspector/criterion/adjacency/brep_meshes_adjacency.hpp>
26+
#include <geode/inspector/inspection/criterion/adjacency/brep_meshes_adjacency.hpp>
2727

2828
namespace geode
2929
{

bindings/python/src/inspector/criterion/adjacency/section_meshes_adjacency.hpp renamed to bindings/python/src/inspection/criterion/adjacency/section_meshes_adjacency.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

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

26-
#include <geode/inspector/criterion/adjacency/section_meshes_adjacency.hpp>
26+
#include <geode/inspector/inspection/criterion/adjacency/section_meshes_adjacency.hpp>
2727

2828
namespace geode
2929
{

bindings/python/src/inspector/criterion/adjacency/solid_adjacency.hpp renamed to bindings/python/src/inspection/criterion/adjacency/solid_adjacency.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

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

27-
#include <geode/inspector/criterion/adjacency/solid_adjacency.hpp>
27+
#include <geode/inspector/inspection/criterion/adjacency/solid_adjacency.hpp>
2828

2929
namespace geode
3030
{

bindings/python/src/inspector/criterion/adjacency/surface_adjacency.hpp renamed to bindings/python/src/inspection/criterion/adjacency/surface_adjacency.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

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

27-
#include <geode/inspector/criterion/adjacency/surface_adjacency.hpp>
27+
#include <geode/inspector/inspection/criterion/adjacency/surface_adjacency.hpp>
2828

2929
namespace geode
3030
{

0 commit comments

Comments
 (0)