1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0027595: Mesh - faces without triangulations due to gp_VectorWithNullMagnitude exception

Zero magnitude check has been added before gp::Vec::Angle() usage
This commit is contained in:
oan
2016-06-22 18:20:15 +03:00
committed by bugmaster
parent 576e306647
commit 782467fd42
2 changed files with 4 additions and 2 deletions

View File

@@ -969,7 +969,9 @@ void BRepMesh_FastDiscretFace::insertInternalVerticesOther(
if (aDist < aDefFace)
{
// Lets check parameters for angular deflection.
if (aPrevVec2.Angle (aTmpVec) < myAngle)
if (aPrevVec2.SquareMagnitude() < gp::Resolution() ||
aTmpVec.SquareMagnitude() < gp::Resolution() ||
aPrevVec2.Angle (aTmpVec) < myAngle)
{
// For current Iso line we can remove this parameter.
aToRemove2.Add (aParam2);