const Standard_Real FmOZ = myOF - myOZ;
return P2d * FmOZ * FmOZ / (FmOZ * (myOF * myVX + P2d * myVZ) + myOF * myOX * myVZ);
}
- return P2d / myVX;
+ return ((myVX <= gp::Resolution())? P2d : (P2d / myVX));
}
else if (myType == GeomAbs_Ellipse) {
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vaxo
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vback
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vbottom
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vfront
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vleft
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vright
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1
--- /dev/null
+puts "========="
+puts "OCC24842"
+puts "========="
+puts ""
+##############################################################################
+# Crash on change of HLR-algo in top and bottom views of customer's shape
+##############################################################################
+
+restore [locate_data_file bug24842_10265.brep] b
+
+vinit
+vdisplay b
+
+vtop
+
+vfit
+vhlr on
+vhlrtype algo b
+
+set only_screen 1