Skip to content

Commit cdc5a9d

Browse files
committed
remove custom class name
1 parent 0e2f875 commit cdc5a9d

2 files changed

Lines changed: 7 additions & 29 deletions

File tree

src/Elasticity/component/ElementHyperelasticityFEMForceField.cpp

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,17 @@ namespace elasticity
1010

1111
void registerElementHyperelasticityFEMForceField(sofa::core::ObjectFactory* factory)
1212
{
13-
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity on linear beams")
13+
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity")
1414
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec1Types, sofa::geometry::Edge> >()
1515
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec2Types, sofa::geometry::Edge> >()
16-
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Edge> >(true));
17-
18-
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity on linear triangles")
16+
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Edge> >()
1917
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec2Types, sofa::geometry::Triangle> >()
20-
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Triangle> >(true));
21-
22-
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity on linear quads")
18+
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Triangle> >()
2319
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec2Types, sofa::geometry::Quad> >()
24-
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Quad> >(true));
25-
26-
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity on linear tetrahedra")
27-
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Tetrahedron> >(true));
28-
29-
factory->registerObjects(sofa::core::ObjectRegistrationData("Hyperelasticity on linear hexahedra")
30-
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Hexahedron> >(true));
20+
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Quad> >()
21+
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Tetrahedron> >()
22+
.add< ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec3Types, sofa::geometry::Hexahedron> >()
23+
);
3124
}
3225

3326
template class ELASTICITY_API ElementHyperelasticityFEMForceField<sofa::defaulttype::Vec1Types, sofa::geometry::Edge>;

src/Elasticity/component/ElementHyperelasticityFEMForceField.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@ class ElementHyperelasticityFEMForceField :
2727

2828
using DataTypes = TDataTypes;
2929

30-
/**
31-
* The purpose of this function is to register the name of this class according to the provided
32-
* pattern.
33-
*
34-
* Example: ElementHyperelasticityFEMForceField<Vec3Types, sofa::geometry::Edge> will produce
35-
* the class name "EdgeHyperelasticityFEMForceField".
36-
*/
37-
static const std::string GetCustomClassName()
38-
{
39-
return std::string(sofa::geometry::elementTypeToString(TElementType::Element_type)) +
40-
"HyperelasticityFEMForceField";
41-
}
42-
43-
static const std::string GetCustomTemplateName() { return TDataTypes::Name(); }
44-
4530
private:
4631
using DataVecCoord = sofa::DataVecDeriv_t<TDataTypes>;
4732
using DataVecDeriv = sofa::DataVecDeriv_t<TDataTypes>;

0 commit comments

Comments
 (0)