From: gka Date: Thu, 25 Feb 2016 13:41:05 +0000 (+0300) Subject: 0026485: Problem with the normals of a triangulated shape X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=373f8e8b7cd75d8c7dd794cba8dde806b5349382;p=occt-copy.git 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(). --- 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