Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
3d097a032This file is pinned to the selected release. Download the original to open it in your design tool.
puts "========"
puts "OCC23706"
puts "========"
puts ""
####################################
## Cannot project point on curve
####################################
set x 3.0
set y 3.0
set z 2.0
set pp_ch1 1.1738953633378706
set pp_ch2 2.1611867552406454
set pp_ch3 3.5000000000000004
set pp_ch4 5.9602785616437703
set pp_ch5 7.1681148131621049
restore [locate_data_file bug23706_c14.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
if { $pp1 != $pp_ch1 ||
$pp2 != $pp_ch2 ||
$pp3 != $pp_ch3 ||
$pp4 != $pp_ch4 ||
$pp5 != $pp_ch5} {
puts "Error : Projection is not correct"
} else {
puts "OK: Projection is correct"
}