Skip to content

Commit 7891c28

Browse files
committed
[src] Fix compilation due to change in SOFA code source
1 parent c7ffcfe commit 7891c28

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tearing/Controllers/TriangleCuttingController.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ template <class DataTypes>
9393
void TriangleCuttingController<DataTypes>::doTest()
9494
{
9595
// Get points coordinates
96-
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::ConstVecCoordId::position())->getValue();
96+
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::vec_id::read_access::position)->getValue();
9797
sofa::Size nbrPoints = Topology::PointID(this->m_topoContainer->getNbPoints());
9898

9999
// Get triangle to subdivide information
@@ -443,7 +443,7 @@ void TriangleCuttingController<DataTypes>::processCut()
443443
type::fixed_array< Topology::Triangle, 2> theTris = { triangles[triIds[0]], triangles[triIds[1]] };
444444

445445
// Get points coordinates
446-
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::ConstVecCoordId::position())->getValue();
446+
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::vec_id::read_access::position)->getValue();
447447

448448
const Coord pA = (x[theTris[0][0]] + x[theTris[0][1]] + x[theTris[0][2]]) / 3;
449449
const Coord pB = (x[theTris[1][0]] + x[theTris[1][1]] + x[theTris[1][2]]) / 3;

src/Tearing/VolumeTearingEngine.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ void VolumeTearingEngine<DataTypes>::updateTetrahedronInformation()
330330
{
331331
VecTetrahedra tetrahedraList;
332332
tetrahedraList = m_topology->getTetrahedra();
333-
d_tetrahedronFEMInfo = m_tetraFEM->tetrahedronInfo.getValue();
333+
d_tetrahedronFEMInfo = m_tetraFEM->d_tetrahedronInfo.getValue();
334334
helper::WriteAccessor< Data<VecTetrahedronFEMInformation> > tetraFEMInf(d_tetrahedronFEMInfo);
335335

336336
if (tetraFEMInf.size() != tetrahedraList.size())

0 commit comments

Comments
 (0)