Skip to content

Commit 0a37868

Browse files
committed
old style
1 parent 13cf8c8 commit 0a37868

File tree

4 files changed

+20
-25
lines changed

4 files changed

+20
-25
lines changed

include/geode/model/representation/core/brep.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,11 @@ namespace geode
5959
* @extends ModelBoundaries
6060
*/
6161
class opengeode_model_api BRep : public Topology,
62-
public AddComponents< 3,
63-
Corners,
64-
Lines,
65-
Surfaces,
66-
Blocks,
67-
ModelBoundaries >,
62+
public Corners3D,
63+
public Lines3D,
64+
public Surfaces3D,
65+
public Blocks3D,
66+
public ModelBoundaries3D,
6867
public Identifier
6968
{
7069
public:

include/geode/model/representation/core/section.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ namespace geode
5656
* @extends Surfaces
5757
* @extends ModelBoundaries
5858
*/
59-
class opengeode_model_api Section
60-
: public Topology,
61-
public AddComponents< 2, Corners, Lines, Surfaces, ModelBoundaries >,
62-
public Identifier
59+
class opengeode_model_api Section : public Topology,
60+
public Corners2D,
61+
public Lines2D,
62+
public Surfaces2D,
63+
public ModelBoundaries2D,
64+
public Identifier
6365
{
6466
public:
6567
class opengeode_model_api BoundaryCornerRange

src/geode/model/representation/core/brep.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -420,14 +420,11 @@ namespace geode
420420

421421
BRep::BRep( BRep&& brep )
422422
: Topology{ std::move( brep ) },
423-
AddComponents< 3, Corners, Lines, Surfaces, Blocks, ModelBoundaries >{
424-
std::move( static_cast< AddComponents< 3,
425-
Corners,
426-
Lines,
427-
Surfaces,
428-
Blocks,
429-
ModelBoundaries >& >( brep ) )
430-
},
423+
Corners3D{ std::move( brep ) },
424+
Lines3D{ std::move( brep ) },
425+
Surfaces3D{ std::move( brep ) },
426+
Blocks3D{ std::move( brep ) },
427+
ModelBoundaries3D{ std::move( brep ) },
431428
Identifier{ std::move( brep ) }
432429
{
433430
}

src/geode/model/representation/core/section.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,13 +271,10 @@ namespace geode
271271

272272
Section::Section( Section&& section )
273273
: Topology{ std::move( section ) },
274-
AddComponents< 2,
275-
Corners,
276-
Lines,
277-
Surfaces,
278-
ModelBoundaries >{ std::move( static_cast<
279-
AddComponents< 2, Corners, Lines, Surfaces, ModelBoundaries >& >(
280-
section ) ) },
274+
Corners2D{ std::move( section ) },
275+
Lines2D{ std::move( section ) },
276+
Surfaces2D{ std::move( section ) },
277+
ModelBoundaries2D{ std::move( section ) },
281278
Identifier{ std::move( section ) }
282279
{
283280
}

0 commit comments

Comments
 (0)