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
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright (c) 2019 - 2025 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.
*
*/

#pragma once

#include <geode/basic/uuid.hpp>

#include <geode/geosciences/implicit/common.hpp>

namespace geode
{
class ImplicitStructuralModel;
} // namespace geode

namespace geode
{
struct opengeode_geosciences_implicit_api StratigraphicUnitToBlockResult
{
std::vector< uuid > already_assigned_blocks;
std::vector< uuid > assigned_blocks;
std::vector< uuid > unassigned_blocks;
};

StratigraphicUnitToBlockResult opengeode_geosciences_implicit_api
complete_stratigraphic_unit_block_relationships(
ImplicitStructuralModel& implicit_model );
} // namespace geode
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ namespace geode
{
/*!
* An Implicit Model is a Structural model where each block has a specific
* attribute to store the implicit value on its vertices.
* attribute to store the implicit value on its vertices. Moreover, an
* ImplicitStructuralModel is associated to a HorizonsStack. If one or
* several horizons of the HorizonsStack is explicited in the model, they
* have the same uuid as in the HorizonsStack. Either way, each horizon of
* the HorizonsStack is associated to a specific value of the Implicit
* attribute.
*/
class opengeode_geosciences_implicit_api ImplicitStructuralModel
: public StructuralModel
Expand Down
2 changes: 2 additions & 0 deletions src/geode/geosciences/implicit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ add_geode_library(
"representation/builder/stratigraphic_model_builder.cpp"
"representation/builder/stratigraphic_section_builder.cpp"
"representation/builder/horizons_stack_builder.cpp"
"representation/builder/helpers/implicit_structural_model_stratigraphic_blocks_builder.cpp"
"representation/core/detail/helpers.cpp"
"representation/core/implicit_cross_section.cpp"
"representation/core/implicit_structural_model.cpp"
Expand Down Expand Up @@ -63,6 +64,7 @@ add_geode_library(
"representation/builder/stratigraphic_model_builder.hpp"
"representation/builder/stratigraphic_section_builder.hpp"
"representation/builder/horizons_stack_builder.hpp"
"representation/builder/helpers/implicit_structural_model_stratigraphic_blocks_builder.hpp"
"representation/core/detail/helpers.hpp"
"representation/core/implicit_cross_section.hpp"
"representation/core/implicit_structural_model.hpp"
Expand Down
Loading