0030829: BRepExtrema_ShapeProximity crashes with shape from STL/WRL
[occt.git] / tests / bugs / moddata_2 / bug593
CommitLineData
352ffd73 1puts "TODO OCC12345 ALL: Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
2
3puts "========================"
4puts " OCC593 "
5puts "========================"
6puts ""
7#############################################################
8## Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect
9#############################################################
10
11restore [locate_data_file OCC593.brep] ff48
12
13set tolerance [maxtolerance ff48]
14regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
15
16vertex vv -19.561252535222 17.89876466186 71.408126285268
17distmini dd vv ff48
18regexp {([-0-9.+eE]+)$} [dump dd_val] full ddval
19
20mksurface gs ff48
21
22proj gs -19.561252535222 17.89876466186 71.408126285268
23
24set pp1 [lindex [dump ext_1] 9]
25set pp2 [lindex [dump ext_1] 10]
26
27set err [expr abs ([expr $pp2 - $pp1])]
28puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
29puts [format "MaxDistance = %s" $err]
30if { $err < $MaxFaceTolerance } {
31 puts "OCC593 (case 1) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
32} else {
33 puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
34}
35copy ext_1 oldext_1
36
37puts ""
38puts "***** Another example: *****"
39
40svalue gs 0.56 0.4 x y z
41point p x y z
42proj gs x y z
43
44set p1 [lindex [dump ext_1] 9]
45set p2 [lindex [dump ext_1] 10]
46
47set err1 [expr abs ([expr $p2 - $p1])]
48puts [format "MaxFaceTolerance = %s" $MaxFaceTolerance]
49puts [format "MaxDistance = %s" $err1]
50if { $err1 < $MaxFaceTolerance } {
51 puts "OCC593 (case 2) : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works properly"
52} else {
53 puts "Error : Projection of a 3D point on surface using GeomAPI_ProjectPointOnSurf works incorrect"
54}