File: J5

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 (50 lines) | stat: -rw-r--r-- 1,439 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
48
49
50
puts "========"
puts "OCC28528"
puts "========"
puts ""
#######################################################################
# Make the CellsBuilder algorithm to work with multi-dimensional arguments
#######################################################################

puts "Arguments: face and an edge"

cylinder c 0 0 0 0 0 1 10
mkface f c 0 2*pi -20 20
viso l c 0
mkedge e l

bclearobjects
bcleartools
baddobjects f e
bfillds
bcbuild r

puts "Results"

puts "All split shapes"
bcaddall result
checknbshapes result -face 2 -m "Number of FACEs in the result containing all splits"
checknbshapes result -edge 5 -m "Number of EDGEs in the result containing all splits"
checkprops result -s 2513.27 -l 394.159

puts "Cut face from edge"
bcremoveall
bcadd result e 1 f 0
checknbshapes result -edge 0 -m "Number of EDGEs in the result of CUT(e, f) operation"

puts "Cut edge from face"
bcremoveall
bcadd result f 1 e 0
checknbshapes result -face 2 -m "Number of FACE in the result of CUT(f, e) operation"

puts "Common between face and edge"
bcremoveall
bcadd result f 1 e 1
checknbshapes result -edge 1 -m "Number of EDGEs in the result of COMMON(f, e) operation"

puts "Fuse operation between face and edge"
bcremoveall
bcadd result f 1
bcadd result e 1 s 0
checknbshapes result -face 2 -m "Number of FACEs in the result of FUSE(f, e) operation"
checknbshapes result -edge 5 -m "Number of EDGEs in the result of FUSE(f, e) operation"