]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Correction apex in computeConeProperties
authorEl Hadi Moussi <moussi@phimeca.com>
Wed, 7 Aug 2024 08:06:04 +0000 (10:06 +0200)
committerEl Hadi Moussi <moussi@phimeca.com>
Wed, 7 Aug 2024 08:06:04 +0000 (10:06 +0200)
src/ShapeRecogn/Areas.cxx

index 4c90411680e2ec60d46f5b0425193f451c64d6c7..cd4709e31693b8058ea6dccdcb40bd1f1e6dabc1 100644 (file)
@@ -397,7 +397,7 @@ void Areas::computeConeProperties(mcIdType areaId)
         }
     }
     for (size_t j = 0; j < 3; ++j)
-        area.apex[j] /= (double)q1_indices.size();
+        area.apex[j] /= (double)min_q_size;
 }
 
 void Areas::computeTorusProperties(mcIdType areaId)