mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0024842: Crash on change of HLR-algo in top and bottom views of customer's shape
Test cases for issues CR24842
This commit is contained in:
parent
69b558c435
commit
5ec5d80d0e
@ -94,7 +94,7 @@ HLRBRep_Curve::Parameter3d (const Standard_Real P2d) const
|
|||||||
const Standard_Real FmOZ = myOF - myOZ;
|
const Standard_Real FmOZ = myOF - myOZ;
|
||||||
return P2d * FmOZ * FmOZ / (FmOZ * (myOF * myVX + P2d * myVZ) + myOF * myOX * myVZ);
|
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) {
|
else if (myType == GeomAbs_Ellipse) {
|
||||||
|
20
tests/bugs/modalg_5/bug24842_axo
Normal file
20
tests/bugs/modalg_5/bug24842_axo
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_back
Normal file
20
tests/bugs/modalg_5/bug24842_back
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_bottom
Normal file
20
tests/bugs/modalg_5/bug24842_bottom
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_front
Normal file
20
tests/bugs/modalg_5/bug24842_front
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_left
Normal file
20
tests/bugs/modalg_5/bug24842_left
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_right
Normal file
20
tests/bugs/modalg_5/bug24842_right
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
20
tests/bugs/modalg_5/bug24842_top
Normal file
20
tests/bugs/modalg_5/bug24842_top
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user