From: El Hadi Moussi Date: Wed, 7 Aug 2024 07:56:17 +0000 (+0200) Subject: Use adimensional principal curvatures to find types of the nodes X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a313ab39e2e9dbf7968ca078ddac6da613eca72a;p=tools%2Fmedcoupling.git Use adimensional principal curvatures to find types of the nodes --- diff --git a/src/ShapeRecogn/NodeCurvatureCalculator.cxx b/src/ShapeRecogn/NodeCurvatureCalculator.cxx index 7b796aa54..778724086 100644 --- a/src/ShapeRecogn/NodeCurvatureCalculator.cxx +++ b/src/ShapeRecogn/NodeCurvatureCalculator.cxx @@ -144,7 +144,8 @@ void NodeCurvatureCalculator::computeCurvatures(mcIdType nodeId, double tol) mainDirection = direction2; weakDirection = direction1; } - primitive = findPrimitiveType(k1, k2, kdiff0, kis0); + double averageDistance = computeAverageDistance(nodeId, neighborIds); + primitive = findPrimitiveType(k1 * averageDistance, k2 * averageDistance, kdiff0 * averageDistance, kis0 * averageDistance); } // Populate nodes nodes->isConvex[nodeId] = isConvex;