Skip to content

Commit 8896b98

Browse files
committed
Revert "[src] Fix some warnings and error due to change in SOFA master"
This reverts commit da35503.
1 parent ace8d4d commit 8896b98

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/InfinyToolkit/InteractionTools/ArticulatedToolManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#include <sofa/component/topology/container/dynamic/TetrahedronSetTopologyModifier.h>
3131
#include <sofa/core/topology/TopologyData.inl>
3232

33-
#include <sofa/component/collision/geometry/SphereCollisionModel.h>
33+
#include <sofa/component/collision/geometry/SphereModel.h>
3434

3535

3636
namespace sofa::infinytoolkit

src/InfinyToolkit/InteractionTools/BaseJawModel.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <InfinyToolkit/config.h>
2323
#include <sofa/type/Vec.h>
24-
#include <sofa/core/objectmodel/BaseComponent.h>
24+
#include <sofa/core/objectmodel/BaseObject.h>
2525
#include <sofa/core/behavior/BaseMechanicalState.h>
2626
#include <sofa/core/topology/BaseMeshTopology.h>
2727
#include <sofa/core/CollisionModel.h>
@@ -42,10 +42,10 @@ class GrabContactInfo
4242
double dist; // equalt to (pB - pA).norm - contactDistance
4343
};
4444

45-
class SOFA_INFINYTOOLKIT_API BaseJawModel : public core::objectmodel::BaseComponent
45+
class SOFA_INFINYTOOLKIT_API BaseJawModel : public core::objectmodel::BaseObject
4646
{
4747
public:
48-
SOFA_CLASS(BaseJawModel, core::objectmodel::BaseComponent);
48+
SOFA_CLASS(BaseJawModel, core::objectmodel::BaseObject);
4949

5050
using Vec3 = sofa::type::Vec3;
5151

src/InfinyToolkit/PliersPositionsMapper.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ void PliersPositionsMapper::doUpdate()
8686

8787
const BaseMeshTopology::Tetra& tetra = m_topo->getTetra(idTetra);
8888

89-
sofa::type::Vec3 p0 = _positions[tetra[0]];
90-
sofa::type::Vec3 p1 = _positions[tetra[1]];
91-
sofa::type::Vec3 p2 = _positions[tetra[2]];
92-
sofa::type::Vec3 p3 = _positions[tetra[3]];
89+
sofa::type::Vec3f p0 = _positions[tetra[0]];
90+
sofa::type::Vec3f p1 = _positions[tetra[1]];
91+
sofa::type::Vec3f p2 = _positions[tetra[2]];
92+
sofa::type::Vec3f p3 = _positions[tetra[3]];
9393

9494
tubePositions[i] = (p0 + p1 + p2 + p3) / 4;
9595
}
@@ -214,10 +214,10 @@ void PliersPositionsMapper::draw(const core::visual::VisualParams* vparams)
214214
{
215215
const BaseMeshTopology::Tetra& tetra = m_topo->getTetra(_tetraTube[i]);
216216

217-
sofa::type::Vec3 p0 = _positions[tetra[0]];
218-
sofa::type::Vec3 p1 = _positions[tetra[1]];
219-
sofa::type::Vec3 p2 = _positions[tetra[2]];
220-
sofa::type::Vec3 p3 = _positions[tetra[3]];
217+
sofa::type::Vec3f p0 = _positions[tetra[0]];
218+
sofa::type::Vec3f p1 = _positions[tetra[1]];
219+
sofa::type::Vec3f p2 = _positions[tetra[2]];
220+
sofa::type::Vec3f p3 = _positions[tetra[3]];
221221
vparams->drawTool()->drawTetrahedron(p0, p1, p2, p3, color);
222222
}
223223

0 commit comments

Comments
 (0)