又有问题要问了,先谢过了
在RHINO的object种类中有block和hatch,其中BLOCK的解释如下
A block is a collection of objects linked together to form a single entity. Using blocks lets you keep model size smaller by using block instances instead of copying identical geometry.
感觉BLOCK相当于模型引用,类似SKETCHUP中的组件,可以减少模型的文件大小
于是尝试了一下,
def test2():
s = rs.AddSphere([0,0,0], 10)
block = rs.AddBlock(s, [0, 0, 0])
if(block != None):
rs.InsertBlock(block, [0, 0, 50])
else:
print 'err'
if __name__=="__main__":
rs.EnableRedraw(False)
test2()
rs.EnableRedraw(True)
但是在AddBlock是就失败了,
Message: iteration over non-sequence of type Guid
不知道为什么。
另外还有一种HATCH类型,根本不知道是干什么用的,英文的解释也看不明白,希望高手解释一下。
|
|