1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_5/bug23706_51
aml c8bf1eb747 0026351: Wrong result found by the projection algorithm
C2 continuity intervals changed to Knots intervals in case of Bspline curve.
Fixed incorrect extremaPC usage.

Test case for issue CR26351
Update of test-cases according to the new behavior
2015-07-20 18:44:14 +03:00

35 lines
977 B
Plaintext

puts "========"
puts "OCC23706"
puts "========"
puts ""
####################################
## Cannot project point on curve
####################################
set x 5.0
set y 7.0
set z 8.0
set pp_ch1 1
set pp_ch2 2.8126840147763663
set pp_ch3 3.5195936992321926
set pp_ch4 3.9600115496393977
set pp_ch5 5.5000000059308434
set pp_ch6 7.2883607799598096
restore [locate_data_file bug23706_c11.draw] c
set info [proj c $x $y $z]
regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
regexp {parameter 2 += +([-0-9.+eE]+)} $info full pp2
regexp {parameter 3 += +([-0-9.+eE]+)} $info full pp3
regexp {parameter 4 += +([-0-9.+eE]+)} $info full pp4
regexp {parameter 5 += +([-0-9.+eE]+)} $info full pp5
regexp {parameter 6 += +([-0-9.+eE]+)} $info full pp6
if { $pp1 != $pp_ch1 || $pp2 != $pp_ch2 ||
$pp3 != $pp_ch3 || $pp4 != $pp_ch4 ||
$pp5 != $pp_ch5 || $pp6 != $pp_ch6} {
puts "Error : Projection is not correct"
} else {
puts "OK: Projection is correct"
}