1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

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().
This commit is contained in:
gka
2016-02-25 16:41:05 +03:00
parent dd65d9dff5
commit 373f8e8b7c

View 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