Skip to content

Commit

Permalink
unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Feb 28, 2024
1 parent a43c2a8 commit 02d8d27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SoftRobots/component/constraint/model/CableModel.inl
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ SReal CableModel<DataTypes>::getDistanceToTriangle(const Coord& position, const
Vec3 projection { sofa::type::NOINIT };
const bool r = sofa::geometry::proximity::computeClosestPointOnTriangleToPoint(Vec3(p0), Vec3(p1), Vec3(p2), Vec3(position), projection);
assert(r);
SOFA_UNUSED(r);
projectionOnTriangle = projection;
const Real distanceToTriangle = (projectionOnTriangle - position).norm();
return distanceToTriangle;
Expand Down

0 comments on commit 02d8d27

Please sign in to comment.