0025945: Make stable checking of shape global properties in tests
[occt.git] / tests / pipe / specific / K2
CommitLineData
228148b3 1puts "============"
2puts "OCC1477"
3puts "============"
4puts ""
5######################################################
6# Problems in MakePipeShell
7# (case 18)
8# test5.tcl
9######################################################
10
11polyline s1 0 0 0 10 0 0 10 10 0
12
13polyline w2 0 -10 0 20 -10 10 20 10 0
14
15pbsplinecurve c3 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 0 -1 0 1 0 -2 2 1 0 0 1 1 0 2 2 1 0 1 0 1 0 2 -2 1 0 0 -1 1 0 -2 -2 1
16mkedge e3 c3
17wire s2 e3
18
19puts "###############################################################################"
20puts "# (case /-G/-/-R/)"
21puts "###############################################################################"
22
a4eba920 23checkshape s1
24checkshape s2
228148b3 25
a4eba920 26mksweep s1
27
28setsweep -G w2 0 0
29addsweep s2
30if [catch { buildsweep result -R} res] {
31 puts "Faulty OCC1477: buildsweep is wrong"
32}
228148b3 33
58cf74e0 34checkprops result -s 242.434
228148b3 35
a4eba920 36checknbshapes result -vertex 7 -edge 13 -wire 4 -face 4 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 29
228148b3 37set 2dviewer 0