Added check to avoid setting parametric boundaries to infinity.
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;
}
--- /dev/null
+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
+