File: J2

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (51 lines) | stat: -rw-r--r-- 1,597 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
puts "========"
puts "OCC28528"
puts "========"
puts ""
#######################################################################
# Make the CellsBuilder algorithm to work with multi-dimensional arguments
#######################################################################

puts "Arguments: solid and a face"

box b 10 10 10
plane p 5 5 5 1 0 0
mkface f p 0 10 0 10

bclearobjects
bcleartools
baddobjects b f
bfillds
bcbuild r

puts "Results"

puts "All split shapes"
bcaddall result
checknbshapes result -solid 1 -m "Number of SOLIDs in the result containing all splits"
checknbshapes result -face 8 -m "Number of FACEs in the result containing all splits"
checkprops result -v 1000 -s 725

puts "Cut solid from face"
bcremoveall
bcadd result f 1 b 0
checknbshapes result -face 1 -m "Number of FACEs in the result of CUT(f, b) operation"

puts "Cut face from solid"
bcremoveall
bcadd result b 1 f 0
checknbshapes result -solid 1 -m "Number of SOLIDs in the result of CUT(b, f) operation"
checknbshapes result -face 7 -m "Number of FACEs in the result of CUT(b, f) operation"

puts "Common between face and solid"
bcremoveall
bcadd result b 1 f 1
checknbshapes result -face 1 -m "Number of FACEs in the result of COMMON(b, f) operation"

puts "Fuse operation between face and solid"
bcremoveall
bcadd result b 1 -m 1 -u
checknbshapes result -face 7 -m "Number of faces in unified split of solid"
bcadd result f 1 b 0
checknbshapes result -solid 1 -m "Number of SOLIDs in the result of FUSE(b, f) operation"
checknbshapes result -face 8 -m "Number of FACEs in the result of FUSE(b, f) operation"