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
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]