Skip to content

Commit bca2ce6

Browse files
committed
Apply prepare changes
1 parent 21ca866 commit bca2ce6

3 files changed

Lines changed: 30 additions & 29 deletions

File tree

commitlint.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default {
1+
const Configuration = {
22
extends: ["@commitlint/config-angular"],
33
rules: {
44
"scope-empty": [2, "never"],
@@ -12,5 +12,8 @@ export default {
1212
"subject-full-stop": [0],
1313
"type-case": [0],
1414
"type-empty": [0],
15+
"type-enum": [2, "always", ["feat", "fix", "perf"]],
1516
},
1617
}
18+
19+
export default Configuration

include/geode/geosciences/explicit/geometry/geographic_coordinate_system_helper.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,79 +49,79 @@ namespace geode
4949
const EdgedCurve< dimension >& mesh,
5050
EdgedCurveBuilder< dimension >& builder,
5151
std::string_view crs_name,
52-
typename GeographicCoordinateSystem< dimension >::Info info );
52+
GeographicCoordinateSystemInfo info );
5353

5454
template < index_t dimension >
5555
void assign_point_set_geographic_coordinate_system_info(
5656
const PointSet< dimension >& mesh,
5757
PointSetBuilder< dimension >& builder,
5858
std::string_view crs_name,
59-
typename GeographicCoordinateSystem< dimension >::Info info );
59+
GeographicCoordinateSystemInfo info );
6060

6161
template < index_t dimension >
6262
void assign_solid_mesh_geographic_coordinate_system_info(
6363
const SolidMesh< dimension >& mesh,
6464
SolidMeshBuilder< dimension >& builder,
6565
std::string_view crs_name,
66-
typename GeographicCoordinateSystem< dimension >::Info info );
66+
GeographicCoordinateSystemInfo info );
6767

6868
template < index_t dimension >
6969
void assign_surface_mesh_geographic_coordinate_system_info(
7070
const SurfaceMesh< dimension >& mesh,
7171
SurfaceMeshBuilder< dimension >& builder,
7272
std::string_view crs_name,
73-
typename GeographicCoordinateSystem< dimension >::Info info );
73+
GeographicCoordinateSystemInfo info );
7474

7575
void opengeode_geosciences_explicit_api
7676
assign_brep_geographic_coordinate_system_info( const BRep& brep,
7777
BRepBuilder& builder,
7878
std::string_view crs_name,
79-
const GeographicCoordinateSystem3D::Info& info );
79+
const GeographicCoordinateSystemInfo& info );
8080

8181
void opengeode_geosciences_explicit_api
8282
assign_section_geographic_coordinate_system_info(
8383
const Section& section,
8484
SectionBuilder& builder,
8585
std::string_view crs_name,
86-
const GeographicCoordinateSystem2D::Info& info );
86+
const GeographicCoordinateSystemInfo& info );
8787

8888
template < index_t dimension >
8989
void convert_edged_curve_coordinate_reference_system(
9090
const EdgedCurve< dimension >& mesh,
9191
EdgedCurveBuilder< dimension >& builder,
9292
std::string_view crs_name,
93-
typename GeographicCoordinateSystem< dimension >::Info info );
93+
GeographicCoordinateSystemInfo info );
9494

9595
template < index_t dimension >
9696
void convert_point_set_coordinate_reference_system(
9797
const PointSet< dimension >& mesh,
9898
PointSetBuilder< dimension >& builder,
9999
std::string_view crs_name,
100-
typename GeographicCoordinateSystem< dimension >::Info info );
100+
GeographicCoordinateSystemInfo info );
101101

102102
template < index_t dimension >
103103
void convert_solid_mesh_coordinate_reference_system(
104104
const SolidMesh< dimension >& mesh,
105105
SolidMeshBuilder< dimension >& builder,
106106
std::string_view crs_name,
107-
typename GeographicCoordinateSystem< dimension >::Info info );
107+
GeographicCoordinateSystemInfo info );
108108

109109
template < index_t dimension >
110110
void convert_surface_mesh_coordinate_reference_system(
111111
const SurfaceMesh< dimension >& mesh,
112112
SurfaceMeshBuilder< dimension >& builder,
113113
std::string_view crs_name,
114-
typename GeographicCoordinateSystem< dimension >::Info info );
114+
GeographicCoordinateSystemInfo info );
115115

116116
void opengeode_geosciences_explicit_api
117117
convert_brep_coordinate_reference_system( const BRep& brep,
118118
BRepBuilder& builder,
119119
std::string_view crs_name,
120-
const GeographicCoordinateSystem3D::Info& info );
120+
const GeographicCoordinateSystemInfo& info );
121121

122122
void opengeode_geosciences_explicit_api
123123
convert_section_coordinate_reference_system( const Section& section,
124124
SectionBuilder& builder,
125125
std::string_view crs_name,
126-
const GeographicCoordinateSystem2D::Info& info );
126+
const GeographicCoordinateSystemInfo& info );
127127
} // namespace geode

src/geode/geosciences/explicit/geometry/geographic_coordinate_system_helper.cpp

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ namespace
8484
typename Range,
8585
typename GetMeshBuilder >
8686
void convert_components_coordinate_reference_system(
87-
const typename geode::GeographicCoordinateSystem< dimension >::Info&
88-
info,
87+
const GeographicCoordinateSystemInfo& info,
8988
std::string_view crs_name,
9089
Range range,
9190
GetMeshBuilder get_mesh_builder )
@@ -129,8 +128,7 @@ namespace
129128
typename Range,
130129
typename GetMeshBuilder >
131130
void convert_components_attribute_to_geographic_coordinate_reference_system(
132-
const typename geode::GeographicCoordinateSystem< dimension >::Info&
133-
info,
131+
const GeographicCoordinateSystemInfo& info,
134132
std::string_view crs_name,
135133
Range range,
136134
GetMeshBuilder get_mesh_builder )
@@ -152,7 +150,7 @@ namespace geode
152150
const EdgedCurve< dimension >& mesh,
153151
EdgedCurveBuilder< dimension >& builder,
154152
std::string_view crs_name,
155-
typename GeographicCoordinateSystem< dimension >::Info info )
153+
GeographicCoordinateSystemInfo info )
156154
{
157155
convert_attribute_to_geographic_coordinate_reference_system(
158156
mesh, builder, crs_name, std::move( info ) );
@@ -163,7 +161,7 @@ namespace geode
163161
const PointSet< dimension >& mesh,
164162
PointSetBuilder< dimension >& builder,
165163
std::string_view crs_name,
166-
typename GeographicCoordinateSystem< dimension >::Info info )
164+
GeographicCoordinateSystemInfo info )
167165
{
168166
convert_attribute_to_geographic_coordinate_reference_system(
169167
mesh, builder, crs_name, std::move( info ) );
@@ -174,7 +172,7 @@ namespace geode
174172
const SolidMesh< dimension >& mesh,
175173
SolidMeshBuilder< dimension >& builder,
176174
std::string_view crs_name,
177-
typename GeographicCoordinateSystem< dimension >::Info info )
175+
GeographicCoordinateSystemInfo info )
178176
{
179177
convert_attribute_to_geographic_coordinate_reference_system(
180178
mesh, builder, crs_name, std::move( info ) );
@@ -185,7 +183,7 @@ namespace geode
185183
const SurfaceMesh< dimension >& mesh,
186184
SurfaceMeshBuilder< dimension >& builder,
187185
std::string_view crs_name,
188-
typename GeographicCoordinateSystem< dimension >::Info info )
186+
GeographicCoordinateSystemInfo info )
189187
{
190188
convert_attribute_to_geographic_coordinate_reference_system(
191189
mesh, builder, crs_name, std::move( info ) );
@@ -194,7 +192,7 @@ namespace geode
194192
void assign_brep_geographic_coordinate_system_info( const BRep& brep,
195193
BRepBuilder& builder,
196194
std::string_view crs_name,
197-
const GeographicCoordinateSystem3D::Info& info )
195+
const GeographicCoordinateSystemInfo& info )
198196
{
199197
convert_components_attribute_to_geographic_coordinate_reference_system<
200198
3 >( info, crs_name, brep.corners(), [&builder]( const uuid& id ) {
@@ -218,7 +216,7 @@ namespace geode
218216
const Section& section,
219217
SectionBuilder& builder,
220218
std::string_view crs_name,
221-
const GeographicCoordinateSystem2D::Info& info )
219+
const GeographicCoordinateSystemInfo& info )
222220
{
223221
convert_components_attribute_to_geographic_coordinate_reference_system<
224222
2 >(
@@ -241,7 +239,7 @@ namespace geode
241239
const EdgedCurve< dimension >& mesh,
242240
EdgedCurveBuilder< dimension >& builder,
243241
std::string_view crs_name,
244-
typename GeographicCoordinateSystem< dimension >::Info info )
242+
GeographicCoordinateSystemInfo info )
245243
{
246244
convert_coordinate_reference_system(
247245
mesh, builder, crs_name, std::move( info ) );
@@ -252,7 +250,7 @@ namespace geode
252250
const PointSet< dimension >& mesh,
253251
PointSetBuilder< dimension >& builder,
254252
std::string_view crs_name,
255-
typename GeographicCoordinateSystem< dimension >::Info info )
253+
GeographicCoordinateSystemInfo info )
256254
{
257255
convert_coordinate_reference_system(
258256
mesh, builder, crs_name, std::move( info ) );
@@ -263,7 +261,7 @@ namespace geode
263261
const SolidMesh< dimension >& mesh,
264262
SolidMeshBuilder< dimension >& builder,
265263
std::string_view crs_name,
266-
typename GeographicCoordinateSystem< dimension >::Info info )
264+
GeographicCoordinateSystemInfo info )
267265
{
268266
convert_coordinate_reference_system(
269267
mesh, builder, crs_name, std::move( info ) );
@@ -274,7 +272,7 @@ namespace geode
274272
const SurfaceMesh< dimension >& mesh,
275273
SurfaceMeshBuilder< dimension >& builder,
276274
std::string_view crs_name,
277-
typename GeographicCoordinateSystem< dimension >::Info info )
275+
GeographicCoordinateSystemInfo info )
278276
{
279277
convert_coordinate_reference_system(
280278
mesh, builder, crs_name, std::move( info ) );
@@ -283,7 +281,7 @@ namespace geode
283281
void convert_brep_coordinate_reference_system( const BRep& brep,
284282
BRepBuilder& builder,
285283
std::string_view crs_name,
286-
const GeographicCoordinateSystem3D::Info& info )
284+
const GeographicCoordinateSystemInfo& info )
287285
{
288286
convert_components_coordinate_reference_system< 3 >(
289287
info, crs_name, brep.corners(), [&builder]( const uuid& id ) {
@@ -306,7 +304,7 @@ namespace geode
306304
void convert_section_coordinate_reference_system( const Section& section,
307305
SectionBuilder& builder,
308306
std::string_view crs_name,
309-
const GeographicCoordinateSystem2D::Info& info )
307+
const GeographicCoordinateSystemInfo& info )
310308
{
311309
convert_components_coordinate_reference_system< 2 >(
312310
info, crs_name, section.corners(), [&builder]( const uuid& id ) {

0 commit comments

Comments
 (0)