From a31618b677cfffd656843536f94dc36263f722a9 Mon Sep 17 00:00:00 2001 From: MelchiorSchuh Date: Fri, 3 Jul 2026 09:43:09 +0200 Subject: [PATCH] fix(binaries): Moved binaries to Inspector-Geosciences --- src/bin/CMakeLists.txt | 64 ---------------- src/bin/geode-inspector-cross-section.cpp | 73 ------------------ ...geode-inspector-implicit-cross-section.cpp | 75 ------------------- ...de-inspector-implicit-structural-model.cpp | 75 ------------------- src/bin/geode-inspector-structural-model.cpp | 73 ------------------ 5 files changed, 360 deletions(-) delete mode 100644 src/bin/geode-inspector-cross-section.cpp delete mode 100644 src/bin/geode-inspector-implicit-cross-section.cpp delete mode 100644 src/bin/geode-inspector-implicit-structural-model.cpp delete mode 100644 src/bin/geode-inspector-structural-model.cpp diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 61d9a520..320b3778 100755 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -33,22 +33,6 @@ add_geode_binary( ${PROJECT_NAME}::inspection ) -add_geode_binary( - SOURCE "geode-inspector-cross-section.cpp" - DEPENDENCIES - Async++ - absl::flags - absl::flags_parse - absl::flags_usage - OpenGeode::basic - OpenGeode::geometry - OpenGeode::mesh - OpenGeode::model - OpenGeode-Geosciences::explicit - OpenGeode-GeosciencesIO::model - ${PROJECT_NAME}::inspection -) - add_geode_binary( SOURCE "geode-inspector-edgedcurve.cpp" DEPENDENCIES @@ -63,38 +47,6 @@ add_geode_binary( ${PROJECT_NAME}::inspection ) -add_geode_binary( - SOURCE "geode-inspector-implicit-cross-section.cpp" - DEPENDENCIES - Async++ - absl::flags - absl::flags_parse - absl::flags_usage - OpenGeode::basic - OpenGeode::geometry - OpenGeode::mesh - OpenGeode::model - OpenGeode-Geosciences::implicit - OpenGeode-GeosciencesIO::model - ${PROJECT_NAME}::inspection -) - -add_geode_binary( - SOURCE "geode-inspector-implicit-structural-model.cpp" - DEPENDENCIES - Async++ - absl::flags - absl::flags_parse - absl::flags_usage - OpenGeode::basic - OpenGeode::geometry - OpenGeode::mesh - OpenGeode::model - OpenGeode-Geosciences::implicit - OpenGeode-GeosciencesIO::model - ${PROJECT_NAME}::inspection -) - add_geode_binary( SOURCE "geode-inspector-pointset.cpp" DEPENDENCIES @@ -138,22 +90,6 @@ add_geode_binary( ${PROJECT_NAME}::inspection ) -add_geode_binary( - SOURCE "geode-inspector-structural-model.cpp" - DEPENDENCIES - Async++ - absl::flags - absl::flags_parse - absl::flags_usage - OpenGeode::basic - OpenGeode::geometry - OpenGeode::mesh - OpenGeode::model - OpenGeode-Geosciences::explicit - OpenGeode-GeosciencesIO::model - ${PROJECT_NAME}::inspection -) - add_geode_binary( SOURCE "geode-inspector-surface.cpp" DEPENDENCIES diff --git a/src/bin/geode-inspector-cross-section.cpp b/src/bin/geode-inspector-cross-section.cpp deleted file mode 100644 index 798b4a5d..00000000 --- a/src/bin/geode-inspector-cross-section.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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. - * - */ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include - -#include - -#include - -ABSL_FLAG( std::string, input, "/path/my/model.og_xsctn", "Input model" ); - -void inspect_cross_section( const geode::CrossSection& cross_section ) -{ - const geode::SectionInspector cross_section_inspector{ cross_section }; - auto result = cross_section_inspector.inspect_section(); - - geode::Logger::info( result.string() ); -} - -int main( int argc, char* argv[] ) -{ - try - { - absl::SetProgramUsageMessage( absl::StrCat( - "CrossSection inspector from Geode-solutions.\n", "Sample usage:\n", - argv[0], " --input my_cross_section.og_xsctn\n", - "Default behavior tests all available criteria, to disable one " - "use --noXXX, e.g. --nocomponent_linking" ) ); - absl::ParseCommandLine( argc, argv ); - - geode::OpenGeodeGeosciencesIOModelLibrary::initialize(); - const auto filename = absl::GetFlag( FLAGS_input ); - - inspect_cross_section( geode::load_cross_section( filename ) ); - - return 0; - } - catch( ... ) - { - return geode::geode_lippincott(); - } -} diff --git a/src/bin/geode-inspector-implicit-cross-section.cpp b/src/bin/geode-inspector-implicit-cross-section.cpp deleted file mode 100644 index c2e26929..00000000 --- a/src/bin/geode-inspector-implicit-cross-section.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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. - * - */ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include - -#include - -#include - -ABSL_FLAG( std::string, input, "/path/my/model.og_ixsctn", "Input model" ); - -void inspect_implicit_cross_section( - const geode::ImplicitCrossSection& cross_section ) -{ - const geode::SectionInspector cross_section_inspector{ cross_section }; - auto result = cross_section_inspector.inspect_section(); - - geode::Logger::info( result.string() ); -} - -int main( int argc, char* argv[] ) -{ - try - { - absl::SetProgramUsageMessage( absl::StrCat( - "ImplicitCrossSection inspector from Geode-solutions.\n", - "Sample usage:\n", argv[0], " --input my_cross_section.og_ixsctn\n", - "Default behavior tests all available criteria, to disable one " - "use --noXXX, e.g. --nocomponent_linking" ) ); - absl::ParseCommandLine( argc, argv ); - - geode::OpenGeodeGeosciencesIOModelLibrary::initialize(); - const auto filename = absl::GetFlag( FLAGS_input ); - - inspect_implicit_cross_section( - geode::load_implicit_cross_section( filename ) ); - - return 0; - } - catch( ... ) - { - return geode::geode_lippincott(); - } -} diff --git a/src/bin/geode-inspector-implicit-structural-model.cpp b/src/bin/geode-inspector-implicit-structural-model.cpp deleted file mode 100644 index d3947bdb..00000000 --- a/src/bin/geode-inspector-implicit-structural-model.cpp +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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. - * - */ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include - -#include - -#include - -ABSL_FLAG( std::string, input, "/path/my/model.og_istrm", "Input model" ); - -void inspect_implicit_structural_model( - const geode::ImplicitStructuralModel& model ) -{ - const geode::BRepInspector model_inspector{ model }; - auto result = model_inspector.inspect_brep(); - geode::Logger::info( result.string() ); -} - -int main( int argc, char* argv[] ) -{ - try - { - absl::SetProgramUsageMessage( absl::StrCat( - "ImplicitStructuralModel inspector from Geode-solutions.\n", - "Sample usage:\n", argv[0], - " --input my_implicit_structural_model.og_istrm\n", - "Default behavior tests all available criteria, to disable one " - "use --noXXX, e.g. --nocomponent_linking" ) ); - absl::ParseCommandLine( argc, argv ); - - geode::OpenGeodeGeosciencesIOModelLibrary::initialize(); - const auto filename = absl::GetFlag( FLAGS_input ); - - inspect_implicit_structural_model( - geode::load_implicit_structural_model( filename ) ); - - return 0; - } - catch( ... ) - { - return geode::geode_lippincott(); - } -} diff --git a/src/bin/geode-inspector-structural-model.cpp b/src/bin/geode-inspector-structural-model.cpp deleted file mode 100644 index d9fbec76..00000000 --- a/src/bin/geode-inspector-structural-model.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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. - * - */ - -#include -#include -#include - -#include - -#include -#include -#include - -#include -#include - -#include - -#include - -ABSL_FLAG( std::string, input, "/path/my/model.og_strm", "Input model" ); - -void inspect_model( const geode::StructuralModel& model ) -{ - const geode::BRepInspector model_inspector{ model }; - auto result = model_inspector.inspect_brep(); - geode::Logger::info( result.string() ); -} - -int main( int argc, char* argv[] ) -{ - try - { - absl::SetProgramUsageMessage( - absl::StrCat( "StructuralModel inspector from Geode-solutions.\n", - "Sample usage:\n", argv[0], - " --input my_structural_model.og_strm\n", - "Default behavior tests all available criteria, to disable one " - "use --noXXX, e.g. --nocomponent_linking" ) ); - absl::ParseCommandLine( argc, argv ); - - geode::OpenGeodeGeosciencesIOModelLibrary::initialize(); - const auto filename = absl::GetFlag( FLAGS_input ); - - inspect_model( geode::load_structural_model( filename ) ); - - return 0; - } - catch( ... ) - { - return geode::geode_lippincott(); - } -}