0028245: Result of Cells Builder algorithm becomes invalid after removal of internal...
[occt.git] / tests / boolean / cells_test / J2
1 puts "========"
2 puts "OCC28528"
3 puts "========"
4 puts ""
5 #######################################################################
6 # Make the CellsBuilder algorithm to work with multi-dimensional arguments
7 #######################################################################
8
9 puts "Arguments: solid and a face"
10
11 box b 10 10 10
12 plane p 5 5 5 1 0 0
13 mkface f p 0 10 0 10
14
15 bclearobjects
16 bcleartools
17 baddobjects b f
18 bfillds
19 bcbuild r
20
21 puts "Results"
22
23 puts "All split shapes"
24 bcaddall result
25 checknbshapes result -solid 1 -m "Number of SOLIDs in the result containing all splits"
26 checknbshapes result -face 8 -m "Number of FACEs in the result containing all splits"
27 checkprops result -v 1000 -s 725
28
29 puts "Cut solid from face"
30 bcremoveall
31 bcadd result f 1 b 0
32 checknbshapes result -face 1 -m "Number of FACEs in the result of CUT(f, b) operation"
33
34 puts "Cut face from solid"
35 bcremoveall
36 bcadd result b 1 f 0
37 checknbshapes result -solid 1 -m "Number of SOLIDs in the result of CUT(b, f) operation"
38 checknbshapes result -face 7 -m "Number of FACEs in the result of CUT(b, f) operation"
39
40 puts "Common between face and solid"
41 bcremoveall
42 bcadd result b 1 f 1
43 checknbshapes result -face 1 -m "Number of FACEs in the result of COMMON(b, f) operation"
44
45 puts "Fuse operation between face and solid"
46 bcremoveall
47 bcadd result b 1 -m 1 -u
48 checknbshapes result -face 7 -m "Number of faces in unified split of solid"
49 bcadd result f 1 b 0
50 checknbshapes result -solid 1 -m "Number of SOLIDs in the result of FUSE(b, f) operation"
51 checknbshapes result -face 8 -m "Number of FACEs in the result of FUSE(b, f) operation"