【OCC学习9】Draw的布尔运算命令

 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
bopfuse
bopcut
标题

                          

buotuc
bopsection

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]

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值