1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0033369: Modeling Algorithms - BRepBuilderAPI_Transform makes invalid shape after transformation

Added check to avoid setting parametric boundaries to infinity.
This commit is contained in:
anv
2023-04-28 04:26:11 +01:00
committed by vglukhik
parent c3f6267d24
commit bcfc5f0d5a
2 changed files with 13 additions and 2 deletions

View File

@@ -394,11 +394,11 @@ Standard_Boolean BRepTools_TrsfModification::NewCurve2d
if(l - lc > Precision::PConfusion()) l = lc;
if(Abs(l - f) < Precision::PConfusion())
{
if(Abs(f - fc) < Precision::PConfusion())
if(Abs(f - fc) < Precision::PConfusion() && !Precision::IsInfinite(lc))
{
l = lc;
}
else
else if (!Precision::IsInfinite(fc))
{
f = fc;
}