1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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().

Test case

Test-case for issue #26485
This commit is contained in:
oan
2015-07-30 12:52:44 +03:00
committed by bugmaster
parent 8c820969cc
commit db6c6404bc
3 changed files with 85 additions and 1 deletions

View File

@@ -460,7 +460,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