0026742: Update test cases for using checknbshapes procedure instead of global variables
[occt.git] / tests / thrusection / specific / M3
1 puts "TODO OCC7166 ALL: Error : The square of the resulting shape is"
2
3 puts "============"
4 puts "OCC7166"
5 puts "============"
6 puts ""
7 #######################################################################
8 # Improvement of API of ThruSection
9 #######################################################################
10
11 set BugNumber OCC7166
12
13 # spine
14 polyline s1 0 0 20 0 0 -20
15
16 # profile
17 pbsplinecurve pbs1 3 9 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 -1 0 0 1 -2 2 0 1 0 1 0 1 2 2 0 1 1 0 0 1 2 -2 0 1 0 -1 0 1 -2 -2 0 1
18 mkedge e1 pbs1
19 wire s2 e1
20
21 # 1 vertex
22 vertex v1 40 0 -20
23
24 mksweep s1
25
26 addsweep v1 -T
27 addsweep s2
28
29 catch {buildsweep result}
30
31
32 set square 898.589
33
34 checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 8
35
36
37 set 3dviewer 0
38