0030145: Modeling Algorithms - Boolean Operations on open solids
[occt.git] / tests / boolean / opensolid / A4
CommitLineData
13c0e402 1box b1 40 10 10
2box b2 0 0 30 40 10 10
3box b3 10 10 40
4box b4 30 0 0 10 10 40
5
6bclearobjects
7bcleartools
8baddobjects b1 b2 b3 b4
9bfillds
10bbuild r
11
12# fuse of all
13buildbop r1 -o b1 b2 b3 b4 -op fuse
14buildbop r2 -o b1 b2 b3 -t b4 -op fuse
15buildbop r3 -o b1 b2 -t b3 b4 -op fuse
16buildbop r4 -o b1 -t b2 b3 b4 -op fuse
17buildbop r5 -t b1 b2 b3 b4 -op fuse
18
19foreach r {r1 r2 r3 r4 r5} {
20 checkshape $r
21 checknbshapes $r -vertex 32 -edge 64 -wire 32 -face 32 -shell 1 -solid 1
22 checkprops $r -s 4800 -v 12000
23}
24
25# Cut
26buildbop r1 -o b1 b2 -t b3 b4 -op cut
27buildbop r2 -o b1 b2 -t b3 b4 -op tuc
28
29foreach r {r1 r2} {
30 checkshape $r
31 checknbshapes $r -vertex 16 -edge 24 -wire 12 -face 12 -shell 2 -solid 2
32 checkprops $r -s 2000 -v 4000
33}
34
35buildbop r1 -o b1 -t b3 b4 -op cut
36buildbop r2 -o b2 -t b3 b4 -op cut
37
38foreach r {r1 r2} {
39 checkshape $r
40 checknbshapes $r -vertex 8 -edge 12 -wire 6 -face 6 -shell 1 -solid 1
41 checkprops $r -s 1000 -v 2000
42}
43
44# Common
45buildbop r1 -o b1 b2 -t b3 b4 -op common
46checkshape r1
47checknbshapes r1 -vertex 32 -edge 48 -wire 24 -face 24 -shell 4 -solid 4
48checkprops r1 -s 2400 -v 4000
49
50buildbop r1 -o b1 -t b3 b4 -op common
51buildbop r2 -o b2 -t b3 b4 -op common
52
53checkshape r1
54checkshape r2
55
56foreach r {r1 r2} {
57 checkshape $r
58 checknbshapes $r -vertex 16 -edge 24 -wire 12 -face 12 -shell 2 -solid 2
59 checkprops $r -s 1200 -v 2000
60}