File: A2

package info (click to toggle)
opencascade 7.5.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 290,544 kB
  • sloc: cpp: 1,190,524; tcl: 15,703; cs: 5,173; java: 1,557; ansic: 1,174; sh: 901; xml: 699; perl: 54; makefile: 27
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