Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / tests / bugs / modalg_1 / bug13395
CommitLineData
3bea4c16 1puts "============"
2puts "OCC13395"
3puts "============"
4puts ""
5#######################################################################
6# Pipe is constructed wrongly on a result of revolution
7#######################################################################
8
9# revolution of an edge to obtain half-disk
10line line1 0 0 0 1 0 0
11mkedge edge1 line1 0 10
12revol revol1 edge1 0 0 0 0 1 0 180
13
14# spine for pipe
15line line2 0 0 0 0 1 0
16mkedge edge2 line2 0 10
17wire wire_spine edge2
18
19# invalid pipe
20pipe result wire_spine revol1
21
22set square 828.319
23set good_vertex 6
24set good_edge 9
25set good_wire 5
26set good_face 5
27set explode_v_length [llength [explode result v] ]
28set explode_e_length [llength [explode result e] ]
29set explode_w_length [llength [explode result w] ]
30set explode_f_length [llength [explode result f] ]
31
32if { ${explode_v_length} != ${good_vertex} } {
33 puts "vertex: Faulty"
34} else {
35 puts "vertex: OK"
36}
37if { ${explode_e_length} != ${good_edge} } {
38 puts "edge: Faulty"
39} else {
40 puts "edge: OK"
41}
42if { ${explode_w_length} != ${good_wire} } {
43 puts "wire: Faulty"
44} else {
45 puts "wire: OK"
46}
47if { ${explode_f_length} != ${good_face} } {
48 puts "face: Faulty"
49} else {
50 puts "face: OK"
51}
52
53set 2dviewer 0
54