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