Skip to content

Commit eea905c

Browse files
authored
Merge pull request #96 from Geode-solutions/fix/homogenize_eged_curve_names
fix(inspect_edgedcurve): Changed names towards inspect_edged_curve an…
2 parents bca4e0f + a2f6467 commit eea905c

18 files changed

+62
-63
lines changed

bindings/python/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile bindings/python/requirements.in
5+
# pip-compile --pre bindings/python/requirements.in
66
#
7-
opengeode-core==14.*,>=14.19.2
7+
opengeode-core==14.*,>=14.19.3
88
# via -r bindings/python/requirements.in

bindings/python/src/inspector/criterion/colocation/edgedcurve_colocation.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
namespace geode
3232
{
3333
template < index_t dimension >
34-
void do_define_edgedcurve_colocation( pybind11::module& module )
34+
void do_define_edged_curve_colocation( pybind11::module& module )
3535
{
3636
using EdgedCurve = EdgedCurve< dimension >;
3737
using EdgedCurveColocation = EdgedCurveColocation< dimension >;
@@ -45,9 +45,9 @@ namespace geode
4545
.def( "colocated_points_groups",
4646
&EdgedCurveColocation::colocated_points_groups );
4747
}
48-
void define_edgedcurve_colocation( pybind11::module& module )
48+
void define_edged_curve_colocation( pybind11::module& module )
4949
{
50-
do_define_edgedcurve_colocation< 2 >( module );
51-
do_define_edgedcurve_colocation< 3 >( module );
50+
do_define_edged_curve_colocation< 2 >( module );
51+
do_define_edged_curve_colocation< 3 >( module );
5252
}
5353
} // namespace geode

bindings/python/src/inspector/criterion/colocation/pointset_colocation.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
namespace geode
3030
{
3131
template < index_t dimension >
32-
void do_define_pointset_colocation( pybind11::module& module )
32+
void do_define_point_set_colocation( pybind11::module& module )
3333
{
3434
using PointSet = PointSet< dimension >;
3535
using PointSetColocation = PointSetColocation< dimension >;
@@ -41,9 +41,9 @@ namespace geode
4141
.def( "colocated_points_groups",
4242
&PointSetColocation::colocated_points_groups );
4343
}
44-
void define_pointset_colocation( pybind11::module& module )
44+
void define_point_set_colocation( pybind11::module& module )
4545
{
46-
do_define_pointset_colocation< 2 >( module );
47-
do_define_pointset_colocation< 3 >( module );
46+
do_define_point_set_colocation< 2 >( module );
47+
do_define_point_set_colocation< 3 >( module );
4848
}
4949
} // namespace geode

bindings/python/src/inspector/criterion/degeneration/edgedcurve_degeneration.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
namespace geode
3030
{
3131
template < index_t dimension >
32-
void do_define_edgedcurve_degeneration( pybind11::module& module )
32+
void do_define_edged_curve_degeneration( pybind11::module& module )
3333
{
3434
using EdgedCurve = EdgedCurve< dimension >;
3535
using EdgedCurveDegeneration = EdgedCurveDegeneration< dimension >;
@@ -42,9 +42,9 @@ namespace geode
4242
.def( "degenerated_edges",
4343
&EdgedCurveDegeneration::degenerated_edges );
4444
}
45-
void define_edgedcurve_degeneration( pybind11::module& module )
45+
void define_edged_curve_degeneration( pybind11::module& module )
4646
{
47-
do_define_edgedcurve_degeneration< 2 >( module );
48-
do_define_edgedcurve_degeneration< 3 >( module );
47+
do_define_edged_curve_degeneration< 2 >( module );
48+
do_define_edged_curve_degeneration< 3 >( module );
4949
}
5050
} // namespace geode

bindings/python/src/inspector/edgedcurve_inspector.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
namespace geode
3030
{
3131
template < index_t dimension >
32-
void do_define_edgedcurve_inspector( pybind11::module& module )
32+
void do_define_edged_curve_inspector( pybind11::module& module )
3333
{
3434
using EdgedCurve = EdgedCurve< dimension >;
3535
using EdgedCurveInspector = geode::EdgedCurveInspector< dimension >;
@@ -39,19 +39,19 @@ namespace geode
3939
EdgedCurveColocation< dimension >,
4040
EdgedCurveDegeneration< dimension > >( module, name.c_str() )
4141
.def( pybind11::init< const EdgedCurve& >() )
42-
.def( "inspect_edgedcurve",
43-
&EdgedCurveInspector::inspect_edgedcurve );
42+
.def( "inspect_edged_curve",
43+
&EdgedCurveInspector::inspect_edged_curve );
4444

4545
const auto inspect_function_name =
46-
absl::StrCat( "inspect_edgedcurve", dimension, "D" );
46+
absl::StrCat( "inspect_edged_curve", dimension, "D" );
4747
module.def(
48-
inspect_function_name.c_str(), []( const EdgedCurve& edgedcurve ) {
49-
EdgedCurveInspector inspector{ edgedcurve };
50-
return inspector.inspect_edgedcurve();
48+
inspect_function_name.c_str(), []( const EdgedCurve& edged_curve ) {
49+
EdgedCurveInspector inspector{ edged_curve };
50+
return inspector.inspect_edged_curve();
5151
} );
5252
}
5353

54-
void define_edgedcurve_inspector( pybind11::module& module )
54+
void define_edged_curve_inspector( pybind11::module& module )
5555
{
5656
pybind11::class_< EdgedCurveInspectionResult >(
5757
module, "EdgedCurveInspectionResult" )
@@ -64,7 +64,7 @@ namespace geode
6464
.def( "inspection_type",
6565
&EdgedCurveInspectionResult::inspection_type );
6666

67-
do_define_edgedcurve_inspector< 2 >( module );
68-
do_define_edgedcurve_inspector< 3 >( module );
67+
do_define_edged_curve_inspector< 2 >( module );
68+
do_define_edged_curve_inspector< 3 >( module );
6969
}
7070
} // namespace geode

bindings/python/src/inspector/inspector.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ PYBIND11_MODULE( opengeode_inspector_py_inspector, module )
9898
geode::define_solid_adjacency( module );
9999
geode::define_section_meshes_adjacency( module );
100100
geode::define_brep_meshes_adjacency( module );
101-
geode::define_edgedcurve_colocation( module );
102-
geode::define_pointset_colocation( module );
101+
geode::define_edged_curve_colocation( module );
102+
geode::define_point_set_colocation( module );
103103
geode::define_surface_colocation( module );
104104
geode::define_solid_colocation( module );
105105
geode::define_models_meshes_colocation( module );
106106
geode::define_models_uv_colocation( module );
107-
geode::define_edgedcurve_degeneration( module );
107+
geode::define_edged_curve_degeneration( module );
108108
geode::define_solid_degeneration( module );
109109
geode::define_surface_degeneration( module );
110110
geode::define_brep_meshes_degeneration( module );
@@ -125,8 +125,8 @@ PYBIND11_MODULE( opengeode_inspector_py_inspector, module )
125125
geode::define_section_meshes_inspector( module );
126126
geode::define_brep_inspector( module );
127127
geode::define_section_inspector( module );
128-
geode::define_pointset_inspector( module );
129-
geode::define_edgedcurve_inspector( module );
128+
geode::define_point_set_inspector( module );
129+
geode::define_edged_curve_inspector( module );
130130
geode::define_surface_inspector( module );
131131
geode::define_solid_inspector( module );
132132
}

bindings/python/src/inspector/pointset_inspector.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,26 @@
2929
namespace geode
3030
{
3131
template < index_t dimension >
32-
void do_define_pointset_inspector( pybind11::module& module )
32+
void do_define_point_set_inspector( pybind11::module& module )
3333
{
3434
using PointSet = PointSet< dimension >;
3535
using PointSetInspector = PointSetInspector< dimension >;
3636
const auto name = absl::StrCat( "PointSetInspector", dimension, "D" );
3737
pybind11::class_< PointSetInspector, PointSetColocation< dimension > >(
3838
module, name.c_str() )
3939
.def( pybind11::init< const PointSet& >() )
40-
.def( "inspect_pointset", &PointSetInspector::inspect_pointset );
40+
.def( "inspect_point_set", &PointSetInspector::inspect_point_set );
4141

4242
const auto inspect_function_name =
43-
absl::StrCat( "inspect_pointset", dimension, "D" );
43+
absl::StrCat( "inspect_point_set", dimension, "D" );
4444
module.def(
45-
inspect_function_name.c_str(), []( const PointSet& pointset ) {
46-
PointSetInspector inspector{ pointset };
47-
return inspector.inspect_pointset();
45+
inspect_function_name.c_str(), []( const PointSet& point_set ) {
46+
PointSetInspector inspector{ point_set };
47+
return inspector.inspect_point_set();
4848
} );
4949
}
5050

51-
void define_pointset_inspector( pybind11::module& module )
51+
void define_point_set_inspector( pybind11::module& module )
5252
{
5353
pybind11::class_< PointSetInspectionResult >(
5454
module, "PointSetInspectionResult" )
@@ -59,7 +59,7 @@ namespace geode
5959
.def(
6060
"inspection_type", &PointSetInspectionResult::inspection_type );
6161

62-
do_define_pointset_inspector< 2 >( module );
63-
do_define_pointset_inspector< 3 >( module );
62+
do_define_point_set_inspector< 2 >( module );
63+
do_define_point_set_inspector< 3 >( module );
6464
}
6565
} // namespace geode

include/geode/inspector/edgedcurve_inspector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace geode
5959
public:
6060
EdgedCurveInspector( const EdgedCurve< dimension >& mesh );
6161

62-
EdgedCurveInspectionResult inspect_edgedcurve() const;
62+
EdgedCurveInspectionResult inspect_edged_curve() const;
6363
};
6464
ALIAS_2D_AND_3D( EdgedCurveInspector );
6565
} // namespace geode

include/geode/inspector/pointset_inspector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace geode
5353
public:
5454
PointSetInspector( const PointSet< dimension >& mesh );
5555

56-
PointSetInspectionResult inspect_pointset() const;
56+
PointSetInspectionResult inspect_point_set() const;
5757
};
5858
ALIAS_2D_AND_3D( PointSetInspector );
5959
} // namespace geode

src/bin/geode-inspector-edgedcurve.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@
4242
ABSL_FLAG( std::string, input, "/path/my/curve.og_edc3d", "Input edged curve" );
4343

4444
template < geode::index_t dimension >
45-
void inspect_edgedcurve( const geode::EdgedCurve< dimension >& edgedcurve )
45+
void inspect_edged_curve( const geode::EdgedCurve< dimension >& edged_curve )
4646
{
47-
const geode::EdgedCurveInspector< dimension > inspector{ edgedcurve };
48-
const auto result = inspector.inspect_edgedcurve();
47+
const geode::EdgedCurveInspector< dimension > inspector{ edged_curve };
48+
const auto result = inspector.inspect_edged_curve();
4949

5050
geode::Logger::info( result.string() );
5151
}
@@ -68,11 +68,11 @@ int main( int argc, char* argv[] )
6868

6969
if( geode::EdgedCurveInputFactory3D::has_creator( ext ) )
7070
{
71-
inspect_edgedcurve( *geode::load_edged_curve< 3 >( filename ) );
71+
inspect_edged_curve( *geode::load_edged_curve< 3 >( filename ) );
7272
}
7373
else if( geode::EdgedCurveInputFactory2D::has_creator( ext ) )
7474
{
75-
inspect_edgedcurve( *geode::load_edged_curve< 2 >( filename ) );
75+
inspect_edged_curve( *geode::load_edged_curve< 2 >( filename ) );
7676
}
7777
else
7878
{

0 commit comments

Comments
 (0)