本帖最后由 深蓝 于 2015-3-1 22:33 编辑
其实没大看懂你的意思,如果是曲线,可以选中曲线,输入What 指令,查看详细数据
当然用代码可以实现你的要求,以Python Script为例,以下代码都是Help中的示例。
如果是曲线
[mw_shl_code=python,true]import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a curve")
if rs.IsCurve(obj):
knots = rs.CurveKnots(obj)
if knots:
for knot in knots: print "Curve knot value:", knot[/mw_shl_code]
如果是曲面
[mw_shl_code=python,true]import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a surface")
if rs.IsSurface(obj):
knots = rs.SurfaceKnots(obj)
if knots:
vector = knots[0]
print "Knot vector in U direction"
for item in vector: print "Surface knot value: ", item
vector = knots[1]
print "Knot vector in V direction"
for item in vector: print "Surface knot value: ", item[/mw_shl_code]
|