From 02d8d27acdf3e0d6829c1311d9a40a95b211555f Mon Sep 17 00:00:00 2001 From: Hugo Talbot Date: Wed, 28 Feb 2024 12:05:22 +0100 Subject: [PATCH] unused var --- src/SoftRobots/component/constraint/model/CableModel.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SoftRobots/component/constraint/model/CableModel.inl b/src/SoftRobots/component/constraint/model/CableModel.inl index f113e1f5..bb276290 100644 --- a/src/SoftRobots/component/constraint/model/CableModel.inl +++ b/src/SoftRobots/component/constraint/model/CableModel.inl @@ -561,6 +561,7 @@ SReal CableModel::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;