Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Tearing/Controllers/TriangleCuttingController.inl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ template <class DataTypes>
void TriangleCuttingController<DataTypes>::doTest()
{
// Get points coordinates
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::ConstVecCoordId::position())->getValue();
sofa::helper::ReadAccessor<VecCoord> x = m_state->read(sofa::core::vec_id::read_access::position)->getValue();
sofa::Size nbrPoints = Topology::PointID(this->m_topoContainer->getNbPoints());

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

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

const Coord pA = (x[theTris[0][0]] + x[theTris[0][1]] + x[theTris[0][2]]) / 3;
const Coord pB = (x[theTris[1][0]] + x[theTris[1][1]] + x[theTris[1][2]]) / 3;
Expand Down
2 changes: 1 addition & 1 deletion src/Tearing/VolumeTearingEngine.inl
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ void VolumeTearingEngine<DataTypes>::updateTetrahedronInformation()
{
VecTetrahedra tetrahedraList;
tetrahedraList = m_topology->getTetrahedra();
d_tetrahedronFEMInfo = m_tetraFEM->tetrahedronInfo.getValue();
d_tetrahedronFEMInfo = m_tetraFEM->d_tetrahedronInfo.getValue();
helper::WriteAccessor< Data<VecTetrahedronFEMInformation> > tetraFEMInf(d_tetrahedronFEMInfo);

if (tetraFEMInf.size() != tetrahedraList.size())
Expand Down
Loading