1. 两个物体之间的运算
1.1 bop, bopfuse, bopcut, boptuc, bopcommon, bopsection
- bop指定两个进行运算的shape,并将结果存储到内部数据结构中。其他命令提取对应的结果;
- bopfuse:提取bop结果的并集;
- bopcut:提取第一个物体减第二个;
- boptuc:提取第二个物体减第一个,跟bopcut相反;
- bopcommon:提取交集;
- bopsection:提取相交的边及顶点;
Example:
box b 0 -10 5 20 20 10
pcylinder c 5 20
# intersect the shape, storing results into data structure
bop b c
# fuse operation
bopfuse s1
# cut operation
bopcut s2
# opposite cut operation
boptuc s3
# common operation
bopcommon s4
# section operation
bopsection s5
![](https://i-blog.csdnimg.cn/blog_migrate/44d3ead41c14e6fb1317ea124a826f6f.png)
![](https://i-blog.csdnimg.cn/blog_migrate/bf4f0e6529b2818c4756a89d207ca91f.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8bf2fa213837dbbda42597291630236b.png)
![](https://i-blog.csdnimg.cn/blog_migrate/6afe82a5291b81292205099a347de57a.png)
![](https://i-blog.csdnimg.cn/blog_migrate/88776df3be7fc720fb70aa8d48ea5580.png)
1.2 bfuse, bcut, btuc, bcommon, bsection
相对于bop是直接提取结果,保存到新的shap中
bcommon result shape1 shape2
bfuse result shape1 shape2
bcut result shape1 shape2
btuc result shape1 shape2
bsection result shape1 shape2 [-n2d/-n2d1/-n2d2] [-na]