File: A2

package info (click to toggle)
opencascade 7.8.1%2Bdfsg1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 293,924 kB
  • sloc: cpp: 1,249,635; tcl: 15,974; cs: 5,173; java: 1,554; sh: 1,354; ansic: 821; xml: 737; makefile: 30; javascript: 22
file content (33 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (5)
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
# Section between shell and a plane

boptions -default

plane p 0 0 0 0 0 1
mkface f1 p -10 10 -10 10
mkface f2 p 10 30 -10 10
mkface f3 p 30 50 -10 10
sewing shell f1 f2 f3

plane p 0 5 0 0 1 0
mkface f p -100 100 -100 100

bclearobjects
bcleartools
baddobjects shell
baddtools f
bfillds

# build not simplified result
bapibop sec 4
checkshape sec
checknbshapes sec -vertex 4 -edge 3
checkprops sec -l 60

# set option to simplify result
bsimplify -e 1
bapibop sec_simple 4
checkshape sec_simple
checknbshapes sec_simple -vertex 2 -edge 1
checkprops sec_simple -l 60

boptions -default