Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug498
CommitLineData
0e94a94e 1puts "TODO OCC12345 ALL: Faulty OCC498: Wrong 3d point from offset surface by parameters"
2
3puts "========="
4puts " OCC498 "
5puts "========="
6puts ""
7######################################
8## Wrong 3d point from offset surface by parameters
9######################################
10
11restore [locate_data_file OCC498.draw] su
12
13set u1 4.71238898038469
14set u2 7.85398163397449
15
16svalue su 0 $u1 x1 y1 z1
17vertex v1 x1 y1 z1
18
19svalue su 0 $u2 x2 y2 z2
20vertex v2 x2 y2 z2
21
22set newU1 [expr $u1 - 1e-11]
23set newU2 [expr $u2 + 1e-11]
24
25svalue su 0 $newU1 x1 y1 z1
26vertex vv1 x1 y1 z1
27
28svalue su 0 $newU2 x2 y2 z2
29vertex vv2 x2 y2 z2
30
31distmini d v1 vv1
32regexp {([-0-9.+eE]+)} [dump d_val] full err1
33
34distmini d v2 vv2
35regexp {([-0-9.+eE]+)} [dump d_val] full err2
36
37if { $err1 > 1.e-7 || $err2 > 1.e-7} {
38 puts "Faulty OCC498: Wrong 3d point from offset surface by parameters "
39} else {
40 puts "OCC498 OK: Correct 3d point from offset surface by parameters"
41}
42
43
44
45
46
47
48