Skip to content

Commit 8f733ac

Browse files
authored
Merge pull request #165 from Geode-solutions/fix/relation-strati-unit-to-block-in-repair
Fix/relation strati unit to block in repair
2 parents f765dd5 + c801d34 commit 8f733ac

6 files changed

Lines changed: 490 additions & 1 deletion

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright (c) 2019 - 2025 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+
24+
#pragma once
25+
26+
#include <geode/basic/uuid.hpp>
27+
28+
#include <geode/geosciences/implicit/common.hpp>
29+
30+
namespace geode
31+
{
32+
class ImplicitStructuralModel;
33+
} // namespace geode
34+
35+
namespace geode
36+
{
37+
struct opengeode_geosciences_implicit_api StratigraphicUnitToBlockResult
38+
{
39+
std::vector< uuid > already_assigned_blocks;
40+
std::vector< uuid > assigned_blocks;
41+
std::vector< uuid > unassigned_blocks;
42+
};
43+
44+
StratigraphicUnitToBlockResult opengeode_geosciences_implicit_api
45+
complete_stratigraphic_unit_block_relationships(
46+
ImplicitStructuralModel& implicit_model );
47+
} // namespace geode

include/geode/geosciences/implicit/representation/core/implicit_structural_model.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ namespace geode
4545
{
4646
/*!
4747
* An Implicit Model is a Structural model where each block has a specific
48-
* attribute to store the implicit value on its vertices.
48+
* attribute to store the implicit value on its vertices. Moreover, an
49+
* ImplicitStructuralModel is associated to a HorizonsStack. If one or
50+
* several horizons of the HorizonsStack is explicited in the model, they
51+
* have the same uuid as in the HorizonsStack. Either way, each horizon of
52+
* the HorizonsStack is associated to a specific value of the Implicit
53+
* attribute.
4954
*/
5055
class opengeode_geosciences_implicit_api ImplicitStructuralModel
5156
: public StructuralModel

src/geode/geosciences/implicit/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ add_geode_library(
3232
"representation/builder/stratigraphic_model_builder.cpp"
3333
"representation/builder/stratigraphic_section_builder.cpp"
3434
"representation/builder/horizons_stack_builder.cpp"
35+
"representation/builder/helpers/implicit_structural_model_stratigraphic_blocks_builder.cpp"
3536
"representation/core/detail/helpers.cpp"
3637
"representation/core/implicit_cross_section.cpp"
3738
"representation/core/implicit_structural_model.cpp"
@@ -63,6 +64,7 @@ add_geode_library(
6364
"representation/builder/stratigraphic_model_builder.hpp"
6465
"representation/builder/stratigraphic_section_builder.hpp"
6566
"representation/builder/horizons_stack_builder.hpp"
67+
"representation/builder/helpers/implicit_structural_model_stratigraphic_blocks_builder.hpp"
6668
"representation/core/detail/helpers.hpp"
6769
"representation/core/implicit_cross_section.hpp"
6870
"representation/core/implicit_structural_model.hpp"

0 commit comments

Comments
 (0)