0024696: Lower performance of the new Edge/Edge intersection algorithm
[occt.git] / tests / thrusection / specific / F4
1 puts "TODO OCC7166 ALL: Faulty OCC7166 : result is not Closed shape"
2 puts "TODO OCC7166 ALL: The resulting shape is WRONG "
3 puts "============"
4 puts "OCC7166"
5 puts "============"
6 puts ""
7 #######################################################################
8 # Improvement of API of ThruSection
9 #######################################################################
10
11 set BugNumber OCC7166
12
13 pbsplinecurve pbc1 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
14 mkedge e1 pbc1
15 wire w1 e1
16
17 #vertex v1 0 0 20
18 #vertex v2 0 0 -20
19 circle c1 0 0 20  0 0 -1  -1 1 0  0.1
20 mkedge ec1 c1
21 wire wc1 ec1
22
23 circle c2 0 0 -20  0 0 -1  -1 1 0  0.1
24 mkedge ec2 c2
25 wire wc2 ec2
26
27 set issolid 0
28 set isruled 1
29 #catch {thrusections result ${issolid} ${isruled} v1 w1 v2}
30 catch {thrusections result ${issolid} ${isruled} wc1 w1 wc2}
31
32
33 set square 256.812
34
35 set nb_v_good 6
36 set nb_e_good 10
37 set nb_w_good 4
38 set nb_f_good 4
39 set nb_sh_good 1
40 set nb_sol_good 0
41 set nb_compsol_good 0
42 set nb_compound_good 0
43 set nb_shape_good 25
44
45
46
47 set index [lsearch [whatis result] Closed]
48 if {$index == -1} {
49   puts "Faulty ${BugNumber} : result is not Closed shape"
50   
51 }
52
53 set 3dviewer 0
54