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:
@@ -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
|
||||
|
Reference in New Issue
Block a user