0024326: Get rid of confusing extension line
[occt.git] / tests / thrusection / specific / B4
1 puts "============"
2 puts "OCC7166"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Improvement of API of ThruSection
7 #######################################################################
8
9 set BugNumber OCC7166
10
11 circle c1 0 0 0 10
12 mkedge e1 c1
13 wire w1 e1
14
15 vertex v1 40 0 20
16 vertex v2 40 0 -20
17
18 set issolid 0
19 set isruled 1
20 catch {thrusections result ${issolid} ${isruled} v1 w1 v2}
21
22
23 set square 2160.94
24
25 set nb_v_good 3
26 set nb_e_good 5
27 set nb_w_good 2
28 set nb_f_good 2
29 set nb_sh_good 1
30 set nb_sol_good 0
31 set nb_compsol_good 0
32 set nb_compound_good 0
33 set nb_shape_good 13
34
35
36
37 set index [lsearch [whatis result] Closed]
38 if {$index == -1} {
39   puts "Faulty ${BugNumber} : result is not Closed shape"
40   
41 }
42
43 set 3dviewer 0
44