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