File tree Expand file tree Collapse file tree 5 files changed +44
-45
lines changed
src/sofa/collisionAlgorithm/geometry Expand file tree Collapse file tree 5 files changed +44
-45
lines changed Original file line number Diff line number Diff line change 11#include < sofa/collisionAlgorithm/geometry/EdgeGeometry.h>
22#include < sofa/core/ObjectFactory.h>
33
4- namespace sofa {
5-
6- namespace collisionAlgorithm {
7-
8- int EdgeGeometryClass = core::RegisterObject(" EdgeGeometry" )
9- .add< EdgeGeometry<sofa::defaulttype::Vec3dTypes> >();
10-
11- }
12-
4+ namespace sofa ::collisionAlgorithm
5+ {
6+ void registerEdgeGeometry (sofa::core::ObjectFactory* factory)
7+ {
8+ factory->registerObjects (
9+ sofa::core::ObjectRegistrationData (
10+ " A class bridging edge topological information with the proximity detection algorithm" )
11+ .add <EdgeGeometry<sofa::defaulttype::Vec3dTypes> >());
1312}
13+ } // namespace sofa::collisionAlgorithm
Original file line number Diff line number Diff line change 11#include < sofa/collisionAlgorithm/geometry/PointGeometry.h>
22#include < sofa/core/ObjectFactory.h>
33
4- namespace sofa {
5-
6- namespace collisionAlgorithm {
7-
8- int PointGeometryClass = core::RegisterObject(" PointGeometry" )
9- .add< PointGeometry<sofa::defaulttype::Vec3dTypes> >();
10-
4+ namespace sofa ::collisionAlgorithm
5+ {
6+ void registerPointGeometry (sofa::core::ObjectFactory* factory)
7+ {
8+ factory->registerObjects (
9+ sofa::core::ObjectRegistrationData (
10+ " A class bridging point topological information with the proximity detection algorithm" )
11+ .add <PointGeometry<sofa::defaulttype::Vec3dTypes> >());
1112}
12-
13- }
14-
15-
13+ } // namespace sofa::collisionAlgorithm
Original file line number Diff line number Diff line change 11#include < sofa/collisionAlgorithm/geometry/SubsetGeometry.h>
22#include < sofa/core/ObjectFactory.h>
33
4- namespace sofa {
5-
6- namespace collisionAlgorithm {
7-
8- int SubsetGeometryClass = core::RegisterObject( " SubsetGeometry " )
9- .add< SubsetGeometry< sofa::defaulttype::Vec3dTypes> >();
10-
4+ namespace sofa ::collisionAlgorithm
5+ {
6+ void registerSubsetGeometry (sofa::core::ObjectFactory* factory)
7+ {
8+ factory-> registerObjects (
9+ sofa::core::ObjectRegistrationData ( " " )
10+ . add <SubsetGeometry<sofa::defaulttype::Vec3dTypes> >());
1111}
12-
13- }
14-
15-
12+ } // namespace sofa::collisionAlgorithm
Original file line number Diff line number Diff line change 11#include < sofa/collisionAlgorithm/geometry/TetrahedronGeometry.h>
22#include < sofa/core/ObjectFactory.h>
33
4- namespace sofa {
5-
6- namespace collisionAlgorithm {
7-
8- int TetrahedronGeometryClass = core::RegisterObject(" TetrahedronGeometry" )
9- .add< TetrahedronGeometry<sofa::defaulttype::Vec3dTypes> >();
10-
11- }
12-
4+ namespace sofa ::collisionAlgorithm
5+ {
6+ void registerTetrahedronGeometry (sofa::core::ObjectFactory* factory)
7+ {
8+ factory->registerObjects (sofa::core::ObjectRegistrationData (
9+ " A class bridging tetrahedron topological information with "
10+ " the proximity detection algorithm" )
11+ .add <TetrahedronGeometry<sofa::defaulttype::Vec3dTypes> >());
1312}
13+ } // namespace sofa::collisionAlgorithm
Original file line number Diff line number Diff line change 11#include < sofa/collisionAlgorithm/geometry/TriangleGeometry.h>
22#include < sofa/core/ObjectFactory.h>
33
4- namespace sofa ::collisionAlgorithm {
5-
6- int TriangleGeometryClass = core::RegisterObject(" TriangleGeometry" )
7- .add< TriangleGeometry<sofa::defaulttype::Vec3dTypes> >();
8-
4+ namespace sofa ::collisionAlgorithm
5+ {
6+ void registerTriangleGeometry (sofa::core::ObjectFactory* factory)
7+ {
8+ factory->registerObjects (
9+ sofa::core::ObjectRegistrationData (" A class bridging triangle topological information with "
10+ " the proximity detection algorithm" )
11+ .add <TriangleGeometry<sofa::defaulttype::Vec3dTypes> >());
912}
13+ } // namespace sofa::collisionAlgorithm
You can’t perform that action at this time.
0 commit comments