0026833: Create command checkview containing all viewer types
[occt.git] / tests / thrusection / specific / K3
CommitLineData
3bea4c16 1puts "============"
2puts "OCC7166"
3puts "============"
4puts ""
5#######################################################################
6# Improvement of API of ThruSection
7#######################################################################
8
9set BugNumber OCC7166
10
11# spine
12polyline s1 0 0 20 0 0 -20
13
14# profile
15ellipse ellipse1 0 0 0 10 5
16mkedge e1 ellipse1
17wire s2 e1
18
19# 1 vertex
20vertex v1 40 0 -20
21
22# 2 vertex
23vertex v2 40 0 20
24
25mksweep s1
26
27addsweep v1
28addsweep s2
29addsweep v2
30
31buildsweep result
32
33
58cf74e0 34checkprops result -s 1683.87
3bea4c16 35
a4eba920 36checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 0 -compsolid 0 -compound 0 -shape 8
3bea4c16 37
38
39set index [lsearch [whatis result] Closed]
40if {$index == -1} {
41 puts "Faulty ${BugNumber} : result is not Closed shape"
42
43}
44
3bea4c16 45