1 puts "================"
3 puts "================"
5 #######################################################################
6 # Exception during projection of the point on the face
7 #######################################################################
16 point p 0.753071156928785 4.98580193823337 0
18 set proj_fp [projponf f p -t]
19 regexp {proj dist = ([-0-9.+eE]+)} ${proj_fp} full dist
20 regexp {uvproj = ([-0-9.+eE]+) ([-0-9.+eE]+)} ${proj_fp} full uproj vproj
21 regexp {pproj = ([-0-9.+eE]+) ([-0-9.+eE]+) ([-0-9.+eE]+)} ${proj_fp} full proj1 proj2
29 set CMP_TOL [checkmaxtol f]
31 puts "CMP_TOL=${CMP_TOL}"
33 set good_dist 9.16061678111512e-10
34 set good_uproj 1.4954178490327235
35 set good_vproj -2.3095450102606156e-12
36 set good_proj1 0.75307115689421944
37 set good_proj2 4.9858019373179632
39 if { [expr abs(${dist} - ${good_dist}) ] > ${CMP_TOL} } {
40 puts "Error: invalid dist"
42 if { [expr abs(${uproj} - ${good_uproj}) ] > ${CMP_TOL} } {
43 puts "Error: invalid uproj"
45 if { [expr abs(${vproj} - ${good_vproj}) ] > ${CMP_TOL} } {
46 puts "Error: invalid vproj"
48 if { [expr abs(${proj1} - ${good_proj1}) ] > ${CMP_TOL} } {
49 puts "Error: invalid proj1"
51 if { [expr abs(${proj2} - ${good_proj2}) ] > ${CMP_TOL} } {
52 puts "Error: invalid proj2"