Skip to content

Commit dfe093b

Browse files
fredroyepernod
andauthored
MultiAdaptiveBeamMapping: Fix collision sampling (sofa-framework#204)
* fix collision model with multidaptivebeammapping and several tools * use collision sampling for collision creation in IRC --------- Co-authored-by: erik pernod <erik.pernod@gmail.com>
1 parent 56f61d9 commit dfe093b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/BeamAdapter/component/controller/InterventionalRadiologyController.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ void InterventionalRadiologyController<DataTypes>::interventionalRadiologyCollis
672672

673673
// 3. we look for the mechanical sampling of the current instrument in order to "place" the following point
674674
Real xIncr;
675-
m_instrumentsList[firstInstruOnx]->getMechanicalSampling(xIncr, xPointList[i]);
675+
m_instrumentsList[firstInstruOnx]->getCollisionSampling(xIncr, xPointList[i]);
676676
xAbsCurv -= xIncr;
677677

678678
// the following point could not have x_abs_curv<0;

0 commit comments

Comments
 (0)