]> OCCT Git - occt-copy.git/commitdiff
0026485: Problem with the normals of a triangulated shape
authorgka <gka@opencascade.com>
Thu, 25 Feb 2016 13:41:05 +0000 (16:41 +0300)
committergka <gka@opencascade.com>
Thu, 25 Feb 2016 13:41:05 +0000 (16:41 +0300)
Use gp::Resolution() instead of Precision::SquareConfustion() in order to normalize normal vectors according to implementation of gp_Vec::Normalize().

src/Poly/Poly.cxx

index 09797e225d921441274762941968280f9888a0a8..56aa847b30e92dffb6441742eabb0344dab43277 100644 (file)
@@ -454,7 +454,7 @@ void  Poly::ComputeNormals(const Handle(Poly_Triangulation)& Tri)
   Standard_Real                 aCoord[3];
   Standard_Integer              iNode[3] = {0, 0, 0};
   Standard_Integer              iN, iTri;
-  const Standard_Real eps2 = Precision::SquareConfusion();
+  const Standard_Real eps2 = gp::Resolution();
 
   for (iTri = 1; iTri <= arrTri.Length(); iTri++) {
     // Get the nodes of the current triangle