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