1 puts "TODO OCC12345 ALL: Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
3 puts "========================"
5 puts "========================"
7 #############################################################
8 ## Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect
9 #############################################################
11 restore [locate_data_file OCC593.brep] ff48
13 set tolerance [maxtolerance ff48]
14 regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
16 vertex vv -19.561252535222 17.89876466186 71.408126285268
18 regexp {([-0-9.+eE]+)$} [dump dd_val] full ddval
22 proj gs -19.561252535222 17.89876466186 71.408126285268
24 set pp1 [lindex [dump ext_1] 9]
25 set pp2 [lindex [dump ext_1] 10]
27 set err [expr abs ([expr $pp2 - $pp1])]
28 puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
29 puts [format "MaxDistance = %s" $err]
30 if { $err < $MaxFaceTolerance } {
31 puts "OCC593 (case 1) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
33 puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
38 puts "***** Another example: *****"
40 svalue gs 0.56 0.4 x y z
44 set p1 [lindex [dump ext_1] 9]
45 set p2 [lindex [dump ext_1] 10]
47 set err1 [expr abs ([expr $p2 - $p1])]
48 puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
49 puts [format "MaxDistance = %s" $err1]
50 if { $err1 < $MaxFaceTolerance } {
51 puts "OCC593 (case 2) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
53 puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"