0028642: BRepOffsetAPI_ThruSections/BRepFill_Generator are modifying the input shape...
[occt.git] / tests / thrusection / specific_locked / C4
1 puts "============"
2 puts "OCC7166"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Improvement of API of ThruSection
7 #######################################################################
8
9 set BugNumber OCC7166
10
11 ellipse ellipse1 0 0 0 10 5
12 mkedge e1 ellipse1
13 wire w1 e1
14
15 vertex v1 40 0 20
16 vertex v2 40 0 -20
17
18 set issolid 1
19 set isruled 1
20
21 setflags w1 locked
22 setflags v1 locked
23 setflags v2 locked
24
25 catch {thrusections result ${issolid} ${isruled} v1 w1 v2 -safe}
26
27
28 checkprops result -s 1353.78
29
30
31 checknbshapes result -vertex 3 -edge 5 -wire 2 -face 2 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 14
32
33
34 set index [lsearch [whatis result] Closed]
35 if {$index == -1} {
36   puts "Faulty ${BugNumber} : result is not Closed shape"
37   
38 }
39
40