|
15371
大叔很忙 发表于 2016-6-24 11:28:47
楼主
首先是Rhino Ironpython帮助文件中AddInterpCrvOnSrfUV方法词条下实例代码有两处错误。其次是在版本的rhino5.0rs1没办法运行修改后的代码,始终报错啊,求大神解????
import rhinoscriptsyntax as rs
surface_id = rs.GetObject("Select surface to draw curve on", rs.filter.surface)
if surface_id:
domainU = rs.SurfaceDomain( surface_id, 0)
u0 = domainU[0]/2
u1 = domainU[1]/2
domainV = rs.SurfaceDomain( surface_id, 1)
v0 = domainV[0]/2
v1 = domainV[1]/2
rs.AddInterpCrvOnSrfUV( surface_id, [[u0,v0],[u1,v1]])
|
|