1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +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 e9cac5ffcb
commit c60e501bd2
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(l - lc > Precision::PConfusion()) l = lc;
if(Abs(l - f) < Precision::PConfusion()) if(Abs(l - f) < Precision::PConfusion())
{ {
if(Abs(f - fc) < Precision::PConfusion()) if(Abs(f - fc) < Precision::PConfusion() && !Precision::IsInfinite(lc))
{ {
l = lc; l = lc;
} }
else else if (!Precision::IsInfinite(fc))
{ {
f = fc; f = fc;
} }

View File

@ -0,0 +1,11 @@
puts "======================================================="
puts "0033369: OCCT:Modeling Algorithms - BRepBuilderAPI_Transform makes invalid shape after transformation"
puts "======================================================="
puts ""
restore [locate_data_file bug33369.brep] f
ttranslate f 1 1 1 -copy
checkshape f