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:
parent
e9cac5ffcb
commit
c60e501bd2
@ -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;
|
||||||
}
|
}
|
||||||
|
11
tests/bugs/modalg_7/bug33369
Normal file
11
tests/bugs/modalg_7/bug33369
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user