From 373f8e8b7cd75d8c7dd794cba8dde806b5349382 Mon Sep 17 00:00:00 2001 From: gka Date: Thu, 25 Feb 2016 16:41:05 +0300 Subject: [PATCH] 0026485: Problem with the normals of a triangulated shape Use gp::Resolution() instead of Precision::SquareConfustion() in order to normalize normal vectors according to implementation of gp_Vec::Normalize(). --- src/Poly/Poly.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Poly/Poly.cxx b/src/Poly/Poly.cxx index 09797e225d..56aa847b30 100644 --- a/src/Poly/Poly.cxx +++ b/src/Poly/Poly.cxx @@ -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 -- 2.39.5