@@ -143,7 +143,7 @@ void ShapeMatchingRotationFinder<DataTypes>::computeNeighborhood()
143
143
}
144
144
else
145
145
{
146
- const VecCoord& X0 = l_mechanicalState->read (sofa::core::ConstVecCoordId:: restPosition () )->getValue ();
146
+ const VecCoord& X0 = l_mechanicalState->read (sofa::core::vec_id::read_access:: restPosition)->getValue ();
147
147
type::vector< unsigned int > clusterInPoint;
148
148
149
149
clusterInPoint.resize (nbPoints);
@@ -262,7 +262,7 @@ void ShapeMatchingRotationFinder<DataTypes>::computeQT()
262
262
m_Xcm.resize (m_pointNeighborhood.size ());
263
263
m_Xcm0.resize (m_pointNeighborhood.size ());
264
264
265
- const VecCoord& restPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: restPosition () )->getValue ();
265
+ const VecCoord& restPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: restPosition)->getValue ();
266
266
267
267
for (unsigned int i=0 ;i<m_pointNeighborhood.size ();++i)
268
268
{
@@ -295,8 +295,8 @@ void ShapeMatchingRotationFinder<DataTypes>::flipAxis(typename ShapeMatchingRota
295
295
template <class DataTypes >
296
296
const type::vector<typename ShapeMatchingRotationFinder<DataTypes>::Mat3x3>& ShapeMatchingRotationFinder<DataTypes>::getRotations()
297
297
{
298
- const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: position () )->getValue ();
299
- const VecCoord& restPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: restPosition () )->getValue ();
298
+ const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: position)->getValue ();
299
+ const VecCoord& restPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: restPosition)->getValue ();
300
300
301
301
if (currentPositions.size () < 3 )
302
302
{
@@ -369,8 +369,8 @@ void ShapeMatchingRotationFinder<DataTypes>::getRotations(linearalgebra::BaseMat
369
369
{
370
370
if (auto * diag = dynamic_cast <linearalgebra::RotationMatrix<Real> *>(m))
371
371
{
372
- const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: position () )->getValue ();
373
- const VecCoord& restPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: restPosition () )->getValue ();
372
+ const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: position)->getValue ();
373
+ const VecCoord& restPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: restPosition)->getValue ();
374
374
375
375
if (currentPositions.size () < 3 )
376
376
{
@@ -492,7 +492,7 @@ const type::vector<typename ShapeMatchingRotationFinder<DataTypes>::Mat3x3>& Sha
492
492
getDRotations ();
493
493
}
494
494
495
- const VecCoord& restPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: restPosition () )->getValue ();
495
+ const VecCoord& restPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: restPosition)->getValue ();
496
496
497
497
const auto nbShapes = m_pointNeighborhood.size ();
498
498
@@ -552,7 +552,7 @@ void ShapeMatchingRotationFinder<DataTypes>::draw(const core::visual::VisualPara
552
552
if (d_showRotations.getValue ())
553
553
{
554
554
555
- const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: position () )->getValue ();
555
+ const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: position)->getValue ();
556
556
557
557
getRotations ();
558
558
@@ -583,7 +583,7 @@ void ShapeMatchingRotationFinder<DataTypes>::draw(const core::visual::VisualPara
583
583
584
584
if (vparams->displayFlags ().getShowForceFields ())
585
585
{
586
- const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::ConstVecCoordId:: position () )->getValue ();
586
+ const VecCoord& currentPositions = l_mechanicalState->read (sofa::core::vec_id::read_access:: position)->getValue ();
587
587
588
588
if (!d_showRotations.getValue ())
589
589
getRotations ();
0 commit comments