8574e329 |
1 | puts "# ====================================================================" |
2 | puts "# 0028968: Incorrect offset for the faces with singularities " |
3 | puts "# ====================================================================" |
4 | puts "" |
5 | puts "# This test checks that offset does not fail and produces valid shape with" |
6 | puts "# reasonable tolerance; however the real check for the problem is to be" |
7 | puts "# made visually using generated images that should have no loops" |
8 | puts "# (see images attached to Mantis issue)" |
9 | puts "" |
10 | |
11 | set models { |
12 | bug28968_HA-3828b-31.brep |
13 | bug28968_HA-3781-31.brep |
14 | bug28968_HA-3781-25.brep |
15 | bug28968_HA-3781-01.brep |
16 | bug28968_HA-3623g-31.brep |
17 | bug28968_HA-3623g-22.brep |
18 | bug28968_HA-3623c-20.brep |
19 | bug28968_HA-3623c-19.brep |
20 | bug28968_HA-3623c-15.brep |
21 | bug28968_HA-3623b-31.brep |
22 | bug28968_HA-3623b-22.brep |
23 | bug28968_HA-3623a-28.brep |
24 | bug28968_HA-3623a-27.brep |
25 | bug28968_HA-3623a-26.brep |
26 | bug28968_HA-3623a-17.brep |
27 | } |
28 | |
29 | set i 0 |
30 | foreach file $models { |
31 | incr i |
32 | restore [locate_data_file $file] s$i |
33 | |
34 | foreach command {offsetshapesimple} { |
35 | catch {$command res$i s$i 20. 0.01} |
36 | checkmaxtol res$i -min_tol 0.002 |
37 | checkshape res$i |
38 | |
39 | smallview |
40 | donly s$i res$i |
41 | fit |
42 | |
43 | xwd "${imagedir}/${casename}_${command}_${i}_[file rootname $file].png" |
44 | # checkview -2d smallview -display face$i -display res$i -screenshot -path $savepath |
45 | } |
46 | } |