File: bug13140

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (47 lines) | stat: -rw-r--r-- 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