1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/moddata_3/bug31661_1
ifv 1f37f1d50a 0031661: Modeling Data - Exception when projecting parabola or hyperbola to plane
ProjLib/ProjLib_ProjectOnPlane.cxx - formatting

0031661: Modeling Data - Algorithm crashes when projecting parabola or hyperbola to plane

ProjLib/ProjLib_ProjectOnPlane.cxx - building of analytical parabola and hyperbola is added
bugs/moddata_3/bug31661_* - new test cases are added
2022-04-06 03:15:07 +03:00

27 lines
747 B
Plaintext

puts ""
puts "=========================================================================="
puts "OCC31661: Modeling Data - Algorithm crashes when projecting parabola or hyperbola to plane"
puts "=========================================================================="
puts ""
parabola p 0 0 0 1 1 1 2 0 -2 10
plane pln 0 0 0 0 0 1
projonplane r p pln 0
if {![regexp {Parabola} [dump r]]} {
puts "ERROR: Projected curve is not a parabola"
}
trim p p -100 100
projonplane rp p pln 0
if {![regexp {Parabola} [dump rp]]} {
puts "ERROR: Projected curve is not a parabola"
}
checklength rp -l 408.40363195229503
bounds rp t1 t2
checkreal t1 [dval t1] -91.077748943768597 1.e-7 1.e-7
checkreal t2 [dval t2] 72.221567418462357 1.e-7 1.e-7