Skip to content

Commit

Permalink
Add a comment in BaseCOsseratMapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
damienmarchal committed Jun 12, 2024
1 parent 3e73639 commit dc496d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cosserat/mapping/BaseCosseratMapping.inl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ void BaseCosseratMapping<TIn1, TIn2, TOut>::init()
// Fill the initial vector
const OutDataVecCoord *xfromData =
m_toModel->read(sofa::core::ConstVecCoordId::position());

//TODO(dmarchal, 2024/07/12): is this line really needed ?
// it initialize a local variable, is it to force a xfromData updates ?
const OutVecCoord xfrom = xfromData->getValue();
}

Expand All @@ -83,8 +86,7 @@ void BaseCosseratMapping<TIn1, TIn2, TOut>::computeExponentialSE3(
SE3 _g_X;
se3 Xi_hat_n = buildXiHat(strain_n);

if (d_debug.getValue())
msg_info("BaseCosserat: ") << "matrix Xi : " << Xi_hat_n;
msg_info() << "matrix Xi : " << Xi_hat_n;

if (theta <= std::numeric_limits<double>::epsilon()) {
_g_X = I4 + curv_abs_x_n * Xi_hat_n;
Expand Down

0 comments on commit dc496d8

Please sign in to comment.