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