File: bug13140

package info (click to toggle)
oce 0.15-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 302,472 kB
  • ctags: 210,903
  • sloc: cpp: 1,165,052; ansic: 75,256; sh: 11,901; tcl: 4,488; python: 2,867; makefile: 337; perl: 37; csh: 12
file content (47 lines) | stat: -rwxr-xr-x 1,125 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
puts "============"
puts "OCC13140"
puts "============"
puts ""
#######################################################################
# Exception during creation pipe on from attached spine and profile
#######################################################################

restore [locate_data_file OCC13140_Spine.brep] Spine
restore [locate_data_file OCC13140_Profile.brep] Profile

pipe result Spine Profile

set square 3.48689
set good_vertex 2
set good_edge 3
set good_wire 1
set good_face 1

set explode_v_length  [llength [explode result v] ]
set explode_e_length  [llength [explode result e] ]
set explode_w_length  [llength [explode result w] ]
set explode_f_length  [llength [explode result f] ]

if { ${explode_v_length} != ${good_vertex} } {
   puts "vertex: Faulty"
} else {
   puts "vertex: OK"
}
if { ${explode_e_length} != ${good_edge} } {
   puts "edge: Faulty"
} else {
   puts "edge: OK"
}
if { ${explode_w_length} != ${good_wire} } {
   puts "wire: Faulty"
} else {
   puts "wire: OK"
}
if { ${explode_f_length} != ${good_face} } {
   puts "face: Faulty"
} else {
   puts "face: OK"
}

set 2dviewer 0