@@ -150,7 +150,7 @@ void RefineCarvingPerformer::simpleCarving()
150150{
151151 component::statecontainer::MechanicalObject< sofa::defaulttype::Vec3Types>* meca = nullptr ;
152152 m_topologyCon->getContext ()->get (meca);
153- helper::ReadAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->read (core::VecCoordId:: position () );
153+ helper::ReadAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->read (sofa:: core::vec_id::write_access:: position);
154154 const SReal& carvingDistance = m_carvingMgr->d_carvingDistance .getValue ();
155155
156156 // check all tetra dist from carving element
@@ -179,7 +179,7 @@ void RefineCarvingPerformer::surfaceCarving()
179179{
180180 component::statecontainer::MechanicalObject< sofa::defaulttype::Vec3Types>* meca = nullptr ;
181181 m_topologyCon->getContext ()->get (meca);
182- helper::WriteAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->write (core::VecCoordId:: position () );
182+ helper::WriteAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->write (sofa:: core::vec_id::write_access:: position);
183183 const SReal& carvingDistance = m_carvingMgr->d_carvingDistance .getValue ();
184184
185185 // check all point to be considered
@@ -222,7 +222,7 @@ void RefineCarvingPerformer::surfaceCarving2()
222222
223223 component::statecontainer::MechanicalObject< sofa::defaulttype::Vec3Types>* meca = nullptr ;
224224 m_topologyCon->getContext ()->get (meca);
225- helper::WriteAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->write (core::VecCoordId:: position () );
225+ helper::WriteAccessor< Data<sofa::defaulttype::Vec3Types::VecCoord> > vertices = meca->write (sofa:: core::vec_id::write_access:: position);
226226
227227 sofa::component::topology::container::dynamic::TetrahedronSetGeometryAlgorithms< sofa::defaulttype::Vec3Types>* tetraGeo = nullptr ;
228228 m_topologyCon->getContext ()->get (tetraGeo);
0 commit comments