本帖最后由 太平公主主主 于 2018-12-22 13:18 编辑
RhinoPpython TaperSpaceMorph 怎么锥状化?下面这个做法不成功,不知道错在什么地方了,请教各位老师们![Python] 纯文本查看 复制代码 #coding=utf-8
import Rhino.Geometry as rg
import Rhino as r
import rhinoscriptsyntax as rs
import scriptcontext as sc
object=rs.GetObject ("选择物体", 16)
geometry=sc.doc.Objects.FindGeometry(object)
point1=rs.Str2Pt("0,5,0")
point2=rs.Str2Pt("0,-5,0")
taper=rg.Morphs.TaperSpaceMorph(point1,point2,1,2,False,False)
taper.PreserveStructure= False
taper.QuickPreview =False
morph=taper.Morph(geometry)
print morph
if morph:
sc.doc.Objects.AddBrep(taper)
sc.doc.Views.Redraw()
|