0022886: Bug in Boolean
[occt.git] / tests / bugs / modalg_7 / bug28968
CommitLineData
8574e329 1puts "# ===================================================================="
2puts "# 0028968: Incorrect offset for the faces with singularities "
3puts "# ===================================================================="
4puts ""
5puts "# This test checks that offset does not fail and produces valid shape with"
6puts "# reasonable tolerance; however the real check for the problem is to be"
7puts "# made visually using generated images that should have no loops"
8puts "# (see images attached to Mantis issue)"
9puts ""
10
11set models {
12bug28968_HA-3828b-31.brep
13bug28968_HA-3781-31.brep
14bug28968_HA-3781-25.brep
15bug28968_HA-3781-01.brep
16bug28968_HA-3623g-31.brep
17bug28968_HA-3623g-22.brep
18bug28968_HA-3623c-20.brep
19bug28968_HA-3623c-19.brep
20bug28968_HA-3623c-15.brep
21bug28968_HA-3623b-31.brep
22bug28968_HA-3623b-22.brep
23bug28968_HA-3623a-28.brep
24bug28968_HA-3623a-27.brep
25bug28968_HA-3623a-26.brep
26bug28968_HA-3623a-17.brep
27}
28
29set i 0
30foreach 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}