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