1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-11 10:44:53 +03:00
occt/tests/bugs/modalg_5/bug23706_33
aml a010375290 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

Conflicts:
	tests/de/step_2/U8
2015-09-02 14:38:19 +03:00

25 lines
558 B
Plaintext

puts "========"
puts "OCC23706"
puts "========"
puts ""
####################################
## Cannot project point on curve
####################################
set x 5.0
set y 8.0
set z -2.0
set pp_ch1 0.81347582180695377
set pp_ch2 1
restore [locate_data_file bug23706_c04.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
if { $pp1 != $pp_ch1 || $pp2 != $pp_ch2 } {
puts "Error : Projection is not correct"
} else {
puts "OK: Projection is correct"
}