Skip to content
Draft

V18 #190

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
3b1a656
feat(Attribute): add uuid to attributes changes
BenPinet Jun 23, 2026
b1b3b8c
Apply prepare changes
BenPinet Jun 23, 2026
727aded
fix
BenPinet Jun 23, 2026
748b5c1
fix python
BenPinet Jun 23, 2026
ae1af3d
changes for implicit
BenPinet Jul 16, 2026
2226e82
remove uuid
BenPinet Jul 16, 2026
3a59f2b
fix geosciences
BenPinet Jul 16, 2026
23ffe24
fix test stratigraphic section
BenPinet Jul 16, 2026
ec8c6a5
fix
BenPinet Jul 16, 2026
8a0435c
a
BenPinet Jul 16, 2026
fbdaa61
no move
BenPinet Jul 16, 2026
59d1a87
add log
BenPinet Jul 16, 2026
6eff9e6
test
BenPinet Jul 16, 2026
e523171
test
BenPinet Jul 16, 2026
6d2e220
test
BenPinet Jul 16, 2026
0a10f69
test
BenPinet Jul 16, 2026
381e56b
test
BenPinet Jul 16, 2026
9e4ecfe
test
BenPinet Jul 16, 2026
5ed67ac
test
BenPinet Jul 16, 2026
3ea0c41
fixes
BenPinet Jul 16, 2026
434c1ea
test
BenPinet Jul 16, 2026
7f68bfa
fix test
BenPinet Jul 17, 2026
cfa0d4b
implicit object fixes
BenPinet Jul 20, 2026
ce688ec
fix
BenPinet Jul 22, 2026
48f76a3
Merge pull request #185 from Geode-solutions/feat/add_uuid_to_attribute
BotellaA Jul 23, 2026
4ed81b8
feat(Attributes): add no-value property support
BenPinet Jul 30, 2026
2aa1aea
Merge pull request #187 from Geode-solutions/feat/add_no_value_proper…
BotellaA Jul 31, 2026
60b1537
fix(Logger): replace warn with warning
BenPinet Aug 3, 2026
cf8a667
fix(SIGN): rename signe struct
BenPinet Aug 3, 2026
f58ad96
Merge pull request #188 from Geode-solutions/feat/replace_replace_war…
BotellaA Aug 3, 2026
2f0d4d9
feat(Passkey): add explicit to passkey constructor
BenPinet Aug 4, 2026
4c6ead7
Merge pull request #189 from Geode-solutions/feat/put_sign_struct_in_…
BotellaA Aug 4, 2026
71bd708
Merge branch 'v18' into feat/add_explicit_to_passkey_constructor
BenPinet Aug 5, 2026
8fd35dd
Merge pull request #191 from Geode-solutions/feat/add_explicit_to_pas…
BotellaA Aug 5, 2026
6e0bc11
feat(ModelBuilders): model builder changes
BenPinet Aug 12, 2026
09c4221
BREAKING CHANGE: change parameters for geological model builders
BenPinet Aug 12, 2026
86e2838
Merge pull request #192 from Geode-solutions/feat/change_input_parame…
BotellaA Aug 12, 2026
01a7366
Merge branch 'next' into v18
BenPinet Aug 13, 2026
bcd78b3
fix(ComponentID): change componentid class to struct
BenPinet Aug 13, 2026
b3bd48b
Merge pull request #193 from Geode-solutions/fix/change_ComponentID_t…
BotellaA Aug 14, 2026
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
Expand Up @@ -27,9 +27,9 @@

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

Check failure on line 30 in bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp:30:52 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
pybind11::class_< ImplicitStructuralModelBuilder,

Check failure on line 32 in bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp:32:27 [clang-diagnostic-error]

'ImplicitStructuralModelBuilder' does not refer to a value

Check failure on line 32 in bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/implicit_structural_model_builder.hpp:32:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
StructuralModelBuilder >( module, "ImplicitStructuralModelBuilder" )
.def( pybind11::init< ImplicitStructuralModel& >() )
.def( "copy",
Expand All @@ -50,6 +50,9 @@
.def( "set_horizon_implicit_value",
&ImplicitStructuralModelBuilder::set_horizon_implicit_value )
.def( "horizons_stack_builder",
&ImplicitStructuralModelBuilder::horizons_stack_builder );
&ImplicitStructuralModelBuilder::horizons_stack_builder )
.def( "import_old_implicit_attribute_values_from_attribute_name",
&ImplicitStructuralModelBuilder::
import_old_implicit_attribute_values_from_attribute_name );
}
} // namespace geode
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

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

Check failure on line 30 in bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp:30:46 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
pybind11::class_< StratigraphicModelBuilder, StructuralModelBuilder >(

Check failure on line 32 in bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp:32:27 [clang-diagnostic-error]

'StratigraphicModelBuilder' does not refer to a value

Check failure on line 32 in bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/builder/stratigraphic_model_builder.hpp:32:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
module, "StratigraphicModelBuilder" )
.def( pybind11::init< StratigraphicModel& >() )
.def( "copy",
Expand All @@ -43,6 +43,13 @@
.def( "set_stratigraphic_location",
&StratigraphicModelBuilder::set_stratigraphic_location )
.def( "set_stratigraphic_coordinates",
&StratigraphicModelBuilder::set_stratigraphic_coordinates );
&StratigraphicModelBuilder::set_stratigraphic_coordinates )
.def(
"import_old_stratigraphic_attribute_values_from_attribute_name",
&StratigraphicModelBuilder::
import_old_stratigraphic_attribute_values_from_attribute_name )
.def( "copy_stratigraphic_attribute_values",
&StratigraphicModelBuilder::
copy_stratigraphic_attribute_values );
}
} // namespace geode
9 changes: 4 additions & 5 deletions bindings/python/src/implicit/representation/core/helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
#include <geode/geosciences/implicit/representation/core/stratigraphic_model.hpp>
#include <geode/geosciences/implicit/representation/core/stratigraphic_section.hpp>

namespace geode

Check warning on line 33 in bindings/python/src/implicit/representation/core/helpers.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/core/helpers.hpp:33:1 [modernize-concat-nested-namespaces]

nested namespaces can be concatenated
{
namespace detail
{
void define_implicit_model_helpers( pybind11::module& module )

Check failure on line 37 in bindings/python/src/implicit/representation/core/helpers.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/core/helpers.hpp:37:45 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
module
.def( "rescale_model_implicit_value",
Expand Down Expand Up @@ -67,15 +67,14 @@
.def( "horizon_id_from_name_2d", &horizon_id_from_name< 2 > )
.def( "horizon_id_from_name_3d", &horizon_id_from_name< 3 > )
.def( "implicit_section_from_cross_section_scalar_field",
[]( CrossSection& model, std::string_view attribute_name ) {
[]( CrossSection& model, const uuid& attribute_id ) {
return implicit_section_from_cross_section_scalar_field(
model.clone(), attribute_name );
model.clone(), attribute_id );
} )
.def( "implicit_model_from_structural_model_scalar_field",
[]( StructuralModel& model,
std::string_view attribute_name ) {
[]( StructuralModel& model, const uuid& attribute_id ) {
return implicit_model_from_structural_model_scalar_field(
model.clone(), attribute_name );
model.clone(), attribute_id );
} )
.def( "stratigraphic_model_from_implicit_model_and_coords",
[]( ImplicitStructuralModel& implicit_model,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,19 @@

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

Check failure on line 36 in bindings/python/src/implicit/representation/core/stratigraphic_model.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/core/stratigraphic_model.hpp:36:38 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
{
pybind11::class_< StratigraphicModel, ImplicitStructuralModel,

Check failure on line 38 in bindings/python/src/implicit/representation/core/stratigraphic_model.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/core/stratigraphic_model.hpp:38:27 [clang-diagnostic-error]

'StratigraphicModel' does not refer to a value

Check failure on line 38 in bindings/python/src/implicit/representation/core/stratigraphic_model.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

bindings/python/src/implicit/representation/core/stratigraphic_model.hpp:38:9 [clang-diagnostic-error]

use of undeclared identifier 'pybind11'
pybind11::smart_holder >( module, "StratigraphicModel" )
.def( pybind11::init<>() )
.def( pybind11::init( []( ImplicitStructuralModel& model ) {
Logger::info( "Converting ImplicitStructuralModel to "
"StratigraphicModel" );
return StratigraphicModel{ model.clone() };
} ) )
.def( pybind11::init( []( StructuralModel& model ) {
Logger::info(
"Converting StructuralModel to StratigraphicModel" );
return StratigraphicModel{ model.clone() };
} ) )
.def( "stratigraphic_coordinates_from_vertex_id",
Expand Down Expand Up @@ -72,6 +76,8 @@
.def( "native_extension", &StratigraphicModel::native_extension )
.def( "stratigraphic_model_component",
&StratigraphicModel::component,
pybind11::return_value_policy::reference );
pybind11::return_value_policy::reference )
.def( "stratigraphic_location_attribute_id",
&StratigraphicModel::stratigraphic_location_attribute_id );
}
} // namespace geode
12 changes: 6 additions & 6 deletions bindings/python/tests/explicit/test-py-cross-section.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def add_faults(model, builder):
raise ValueError("[Test] Addition of a Fault in CrossSection is not correct")

fault1 = builder.add_fault()
builder.set_fault_name(fault1, "fault1")
builder.set_fault_name(model.fault(fault1), "fault1")
if model.nb_faults() != 2:
raise ValueError("[Test] Number of faults in CrossSection should be 2")
if model.fault(fault1).name() != "fault1":
Expand All @@ -54,7 +54,7 @@ def add_horizons(model, builder):

horizon1 = builder.add_horizon()
horizon2 = builder.add_horizon()
builder.set_horizon_name(horizon2, "horizon2")
builder.set_horizon_name(model.horizon(horizon2),"horizon2")
if model.nb_horizons() != 3:
raise ValueError("[Test] Number of horizons in CrossSection should be 3")
if model.horizon(horizon2).name() != "horizon2":
Expand All @@ -65,7 +65,7 @@ def add_fault_blocks(model, builder):
fault_block0 = builder.add_fault_block()
fault_block1 = builder.add_fault_block()
builder.add_fault_block()
builder.set_fault_block_name(fault_block1, "hanging_wall")
builder.set_fault_block_name(model.fault_block(fault_block1), "hanging_wall")
if model.nb_fault_blocks() != 3:
raise ValueError("[Test] Number of fault blocks in CrossSection should be 3")
builder.remove_fault_block(model.fault_block(fault_block0))
Expand All @@ -79,7 +79,7 @@ def add_stratigraphic_units(model, builder):
stratigraphic_unit0 = builder.add_stratigraphic_unit()
stratigraphic_unit1 = builder.add_stratigraphic_unit()
builder.add_stratigraphic_unit()
builder.set_stratigraphic_unit_name(stratigraphic_unit1, "cretaceous")
builder.set_stratigraphic_unit_name(model.stratigraphic_unit(stratigraphic_unit1), "cretaceous")
if model.nb_stratigraphic_units() != 3:
raise ValueError(
"[Test] Number of stratigraphic_units in CrossSection should be 3"
Expand Down Expand Up @@ -341,14 +341,14 @@ def modify_model(model, builder):
for horizon in model.horizons():
horizons_ids.append(horizon.id())
builder.set_horizon_contact_type(
horizon.id(), geosciences.Horizon2D.CONTACT_TYPE.TOPOGRAPHY
horizon, geosciences.Horizon2D.CONTACT_TYPE.TOPOGRAPHY
)

for horizon_id in horizons_ids:
builder.remove_horizon(model.horizon(horizon_id))

for fault in model.faults():
builder.set_fault_type(fault.id(), geosciences.Fault2D.FAULT_TYPE.LISTRIC)
builder.set_fault_type(fault, geosciences.Fault2D.FAULT_TYPE.LISTRIC)
if fault.has_type() == False:
raise ValueError("[Test] All faults should have a type")

Expand Down
12 changes: 6 additions & 6 deletions bindings/python/tests/explicit/test-py-structural-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def add_faults(model, builder):
raise ValueError("[Test] Addition of a Fault in StructuralModel is not correct")

fault1 = builder.add_fault()
builder.set_fault_name(fault1, "fault1")
builder.set_fault_name(model.fault(fault1), "fault1")
if model.nb_faults() != 2:
raise ValueError("[Test] Number of faults in StructuralModel should be 2")
if model.fault(fault1).name() != "fault1":
Expand All @@ -46,7 +46,7 @@ def add_faults(model, builder):
for fault in model.faults():
name = fault.name()
if name is not None:
builder.set_fault_name(fault.id(), "new_" + name)
builder.set_fault_name(fault, "new_" + name)
if model.fault(fault1).name() != "new_fault1":
raise ValueError("[Test] Wrong modified Fault name")

Expand All @@ -63,7 +63,7 @@ def add_horizons(model, builder):

horizon1 = builder.add_horizon()
horizon2 = builder.add_horizon()
builder.set_horizon_name(horizon2, "horizon2")
builder.set_horizon_name(model.horizon(horizon2), "horizon2")
if model.nb_horizons() != 3:
raise ValueError("[Test] Number of horizons in StructuralModel should be 3")
if model.horizon(horizon2).name() != "horizon2":
Expand All @@ -72,7 +72,7 @@ def add_horizons(model, builder):
for horizon in model.horizons():
name = horizon.name()
if name is not None:
builder.set_horizon_name(horizon.id(), "new_" + name)
builder.set_horizon_name(horizon, "new_" + name)
if model.horizon(horizon2).name() != "new_horizon2":
raise ValueError("[Test] Wrong modified Horizon name")

Expand Down Expand Up @@ -212,14 +212,14 @@ def modify_model(model, builder):
for horizon in model.horizons():
horizons_ids.append(horizon.id())
builder.set_horizon_contact_type(
horizon.id(), geosciences.Horizon3D.CONTACT_TYPE.TOPOGRAPHY
horizon, geosciences.Horizon3D.CONTACT_TYPE.TOPOGRAPHY
)

for horizon_id in horizons_ids:
builder.remove_horizon(model.horizon(horizon_id))

for fault in model.faults():
builder.set_fault_type(fault.id(), geosciences.Fault3D.FAULT_TYPE.LISTRIC)
builder.set_fault_type(fault, geosciences.Fault3D.FAULT_TYPE.LISTRIC)
if fault.has_type() == False:
raise ValueError("[Test] All faults should have a type")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def test_save_stratigraphic_surfaces(model):
data_dir = os.path.abspath(os.path.join(test_dir, "../../../../tests/data"))
structural_model = geode_exp.load_structural_model(data_dir + "/vri2.og_strm")
stratigraphic_model = geode_imp.StratigraphicModel(structural_model)

builder_implicit = geode_imp.ImplicitStructuralModelBuilder(stratigraphic_model)
builder_implicit.import_old_implicit_attribute_values_from_attribute_name("geode_implicit_attribute")
builder_stratigraphic = geode_imp.StratigraphicModelBuilder(stratigraphic_model)
builder_stratigraphic.import_old_stratigraphic_attribute_values_from_attribute_name("geode_stratigraphic_location")
test_model(stratigraphic_model)
test_save_stratigraphic_surfaces(stratigraphic_model)
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ def import_section_with_stratigraphy():

for surface in stratigraphic_section.surfaces():
mesh = surface.mesh()
scalar_attribute = mesh.vertex_attribute_manager().find_attribute_double(
scalar_attributes = mesh.vertex_attribute_manager().attribute_ids_matching_name(
"curvature_min"
)
scalar_attribute = mesh.vertex_attribute_manager().find_read_only_attribute_double(
scalar_attributes[0]
)
for vertex_id in range(mesh.nb_vertices()):
model_builder.set_stratigraphic_coordinates(
surface,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

namespace geode
{
struct opengeode_geosciences_explicit_api GeographicCoordinateSystemInfo

Check warning on line 39 in include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp:39:47 [cppcoreguidelines-special-member-functions]

class 'GeographicCoordinateSystemInfo' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator
{
GeographicCoordinateSystemInfo( std::string authority_in,
std::string code_in,
Expand All @@ -59,7 +59,7 @@
{
archive.ext( *this,
Growable< Archive, GeographicCoordinateSystemInfo >{
{ []( Archive& a, GeographicCoordinateSystemInfo& info ) {

Check warning on line 62 in include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp:62:36 [readability-identifier-length]

parameter name 'a' is too short, expected at least 3 characters
a.text1b( info.authority, info.authority.max_size() );
a.text1b( info.code, info.code.max_size() );
a.text1b( info.name, info.name.max_size() );
Expand All @@ -72,7 +72,7 @@
};

template < index_t dimension >
class GeographicCoordinateSystem

Check warning on line 75 in include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/geometry/geographic_coordinate_system.hpp:75:11 [cppcoreguidelines-special-member-functions]

class 'GeographicCoordinateSystem' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator
: public AttributeCoordinateReferenceSystem< dimension >
{
friend class bitsery::Access;
Expand All @@ -80,6 +80,11 @@
public:
GeographicCoordinateSystem(
AttributeManager& manager, GeographicCoordinateSystemInfo info );

GeographicCoordinateSystem( AttributeManager& manager,
const uuid& uuid,
GeographicCoordinateSystemInfo info );

~GeographicCoordinateSystem();

[[nodiscard]] static GeographicCoordinateSystem< dimension >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ namespace geode
public:
void load_fault_blocks( std::string_view directory );

void set_fault_block_name( const uuid& id, std::string_view name );
void set_fault_block_name(
const FaultBlock< dimension >& fault_block, std::string_view name );

protected:
explicit FaultBlocksBuilder( FaultBlocks< dimension >& fault_blocks )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ namespace geode
public:
void load_faults( std::string_view directory );

void set_fault_type( const uuid& fault_id,
void set_fault_type( const Fault< dimension >& fault,
typename Fault< dimension >::FAULT_TYPE type );

void set_fault_name( const uuid& id, std::string_view name );
void set_fault_name(
const Fault< dimension >& fault, std::string_view name );

protected:
explicit FaultsBuilder( Faults< dimension >& faults )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ namespace geode
void load_horizons( std::string_view directory );

void set_horizon_contact_type(
const uuid& horizon_id, CONTACT_TYPE contact_type );
const Horizon< dimension >& horizon, CONTACT_TYPE contact_type );

void set_horizon_name( const uuid& id, std::string_view name );
void set_horizon_name(
const Horizon< dimension >& horizon, std::string_view name );

protected:
explicit HorizonsBuilder( Horizons< dimension >& horizons )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ namespace geode
void load_stratigraphic_units( std::string_view directory );

void set_stratigraphic_unit_name(
const uuid& id, std::string_view name );
const StratigraphicUnit< dimension >& stratigraphic_unit,
std::string_view name );

protected:
explicit StratigraphicUnitsBuilder(
Expand Down
2 changes: 2 additions & 0 deletions include/geode/geosciences/explicit/mixin/core/fault.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,16 @@
* This component is described by a fault type.
*/
template < index_t dimension >
class Fault final : public Component< dimension >

Check warning on line 46 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:46:11 [cppcoreguidelines-special-member-functions]

class 'Fault' defines a destructor, a copy constructor, a copy assignment operator and a move constructor but does not define a move assignment operator
{
OPENGEODE_DISABLE_COPY( Fault );

public:
PASSKEY( Faults< dimension >, FaultsKey );
PASSKEY( FaultsBuilder< dimension >, FaultsBuilderKey );

public:
enum struct FAULT_TYPE

Check warning on line 55 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:55:21 [performance-enum-size]

enum 'FAULT_TYPE' uses a larger base type ('int', size: 4 bytes) than necessary for its value set, consider using 'std::uint8_t' (1 byte) as the base type to reduce its size
{
/// Default value - No fault type defined
no_type,
Expand Down Expand Up @@ -80,12 +82,12 @@
[[nodiscard]] FAULT_TYPE type() const;

public:
Fault( FaultsKey ) : Fault() {}

Check warning on line 85 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:85:26 [hicpp-named-parameter]

all parameters should be named in a function

Check warning on line 85 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:85:9 [google-explicit-constructor]

single-argument constructors must be marked explicit to avoid unintentional implicit conversions
Fault( FAULT_TYPE type, FaultsKey ) : Fault( type ) {}

Check warning on line 86 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:86:43 [hicpp-named-parameter]

all parameters should be named in a function

void set_type( FAULT_TYPE type, FaultsBuilderKey );

void set_fault_name( std::string_view name, FaultsBuilderKey )

Check warning on line 90 in include/geode/geosciences/explicit/mixin/core/fault.hpp

View workflow job for this annotation

GitHub Actions / test / tidy

include/geode/geosciences/explicit/mixin/core/fault.hpp:90:70 [hicpp-named-parameter]

all parameters should be named in a function
{
this->set_name( name );
}
Expand Down
4 changes: 2 additions & 2 deletions include/geode/geosciences/explicit/mixin/core/fault_block.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ namespace geode
class FaultBlock final : public Component< dimension >
{
OPENGEODE_DISABLE_COPY( FaultBlock );
PASSKEY( FaultBlocks< dimension >, FaultBlocksKey );
PASSKEY( FaultBlocksBuilder< dimension >, FaultBlocksBuilderKey );

friend class bitsery::Access;

public:
PASSKEY( FaultBlocks< dimension >, FaultBlocksKey );
PASSKEY( FaultBlocksBuilder< dimension >, FaultBlocksBuilderKey );
FaultBlock( FaultBlock&& other ) noexcept;
~FaultBlock();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ namespace geode
class opengeode_geosciences_explicit_api FaultBlocks
{
OPENGEODE_DISABLE_COPY( FaultBlocks );
PASSKEY( FaultBlocksBuilder< dimension >, FaultBlocksBuilderKey );

public:
PASSKEY( FaultBlocksBuilder< dimension >, FaultBlocksBuilderKey );
using Builder = FaultBlocksBuilder< dimension >;
using Type = FaultBlock< dimension >;

Expand Down
2 changes: 1 addition & 1 deletion include/geode/geosciences/explicit/mixin/core/faults.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ namespace geode
class opengeode_geosciences_explicit_api Faults
{
OPENGEODE_DISABLE_COPY( Faults );
PASSKEY( FaultsBuilder< dimension >, FaultsBuilderKey );

public:
PASSKEY( FaultsBuilder< dimension >, FaultsBuilderKey );
using Builder = FaultsBuilder< dimension >;
using Type = Fault< dimension >;

Expand Down
2 changes: 2 additions & 0 deletions include/geode/geosciences/explicit/mixin/core/horizon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace geode
class Horizon final : public Component< dimension >
{
OPENGEODE_DISABLE_COPY( Horizon );

public:
PASSKEY( HorizonsBuilder< dimension >, HorizonsBuilderKey );
PASSKEY( Horizons< dimension >, HorizonsKey );

Expand Down
2 changes: 1 addition & 1 deletion include/geode/geosciences/explicit/mixin/core/horizons.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ namespace geode
class Horizons
{
OPENGEODE_DISABLE_COPY( Horizons );
PASSKEY( HorizonsBuilder< dimension >, HorizonsBuilderKey );

public:
PASSKEY( HorizonsBuilder< dimension >, HorizonsBuilderKey );
using Builder = HorizonsBuilder< dimension >;
using Type = Horizon< dimension >;
using CONTACT_TYPE = typename Horizon< dimension >::CONTACT_TYPE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ namespace geode
class StratigraphicUnit final : public Component< dimension >
{
OPENGEODE_DISABLE_COPY( StratigraphicUnit );

public:
PASSKEY( StratigraphicUnits< dimension >, StratigraphicUnitsKey );
PASSKEY( StratigraphicUnitsBuilder< dimension >,
StratigraphicUnitsBuilderKey );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ namespace geode
class opengeode_geosciences_explicit_api StratigraphicUnits
{
OPENGEODE_DISABLE_COPY( StratigraphicUnits );
PASSKEY( StratigraphicUnitsBuilder< dimension >,
StratigraphicUnitsBuilderKey );

public:
PASSKEY( StratigraphicUnitsBuilder< dimension >,
StratigraphicUnitsBuilderKey );
using Builder = StratigraphicUnitsBuilder< dimension >;
using Type = StratigraphicUnit< dimension >;

Expand Down
Loading
Loading