1puts "============"
2puts "OCC7166"
3puts "============"
4puts ""
5#######################################################################
6# Improvement of API of ThruSection
7#######################################################################
8
9set BugNumber OCC7166
10
11beziercurve bc1 5 5 5 0 5 -5 0 -5 -5 0 -5 5 0 5 5 0
12mkedge e1 bc1
13wire w1 e1
14
15vertex v1 0 0 20
16vertex v2 0 0 -20
17
18set issolid 1
19set isruled 0
20catch {thrusections result ${issolid} ${isruled} v1 w1 v2 }
21
22
23checkprops result -s 597.473
24
25
26checknbshapes result -vertex 2 -edge 3 -wire 1 -face 1 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 9
27
28
29set index [lsearch [whatis result] Closed]
30if {$index == -1} {
31  puts "Faulty ${BugNumber} : result is not Closed shape"
32
33}
34
35
36