File: bug23881

package info (click to toggle)
oce 0.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 297,992 kB
  • ctags: 203,291
  • sloc: cpp: 1,176,369; ansic: 67,206; sh: 11,647; tcl: 6,890; cs: 5,221; python: 2,867; java: 1,522; makefile: 338; xml: 292; perl: 37
file content (32 lines) | stat: -rw-r--r-- 917 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
puts "============"
puts "OCC23881"
puts "============"
puts ""
############################################################################
# BRepAlgoAPI_Section HasAnsectorFaceOn1 returned False on the boundary
############################################################################

polyline w1 0 0 0 1 0 0 1 1 0 0 1 0 0 0 0 
polyline w2 0 1 0 1 1 0 1 2 0 0 2 0 0 1 0
mkplane f1 w1
mkplane f2 w2
sewing s1 0.0001 f1 f2

plane pl 0 1 0 0 1 0
mkface f3 pl

bsection r s1 f3

# check that section edge (r) is the edge from original shape (s1)
compound r s1 c
if { ! [regexp {EDGE\s*:\s*([0-9]+)} [nbshapes s1] str nbedges_s1] ||
     ! [regexp {EDGE\s*:\s*([0-9]+)} [nbshapes c ] str nbedges_c] } {
    error "Could not get number of edges from resulting shapes"
}
 
if { $nbedges_s1 != $nbedges_c } {
    puts "Error: section does not share common edge with original shape"
}

renamevar r result
set 2dviewer 0