File: bug2785_2

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 (40 lines) | stat: -rwxr-xr-x 922 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
puts "============"
puts "OCC2785"
puts "============"
puts ""
######################################################
# Cut and fuse operations for two faces that share same domain give invalid result
######################################################
# Cut and fuse operations for two faces that share same domain gives invalid
# result, if one face has a hole and other face touches a boundary of this hole.
######################################################
## (old topology)
## (cut)
## (fuse)
######################################################

############# data #############
pcylinder c1 2 10
pcylinder c2 2 2
explode c1 f
explode c2 f
mksurface gs c2_1
trim trgs gs 1 2 2 4
mkface ff trgs
trim trgs gs 0 1 2 4
mkface ff2 trgs

bcut rcut1 c1_1 ff
checkshape rcut1

bcut rcut2 rcut1 ff2
checkshape rcut2

bfuse fuse1 rcut2 ff2
checkshape fuse1

bfuse result fuse1 ff

set square 125.664
set 3dviewer 1