我对此完全陌生,搜索没有帮助。
这有效:
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select a curve", rs.filter.curve)
if rs.IsCurve(obj):
i=0
while i < 100:
rs.OffsetCurve( obj, [0,0,0], -i )
i += 0.2
rs.OffsetCurve( obj, [0,0,0], -i )
i += 0.7
这不会:
import rhinoscriptsyntax as rs
a = raw_input("Please enter first number: ")
b = raw_input("Please enter second number: ")
obj = rs.GetObject("Select a curve", rs.filter.curve)
if rs.IsCurve(obj):
i=0
while i < 100:
rs.OffsetCurve( obj, [0,0,0], -i )
i += a
rs.OffsetCurve( obj, [0,0,0], -i )
i += b
对于整数,它是,i += int(a)
但必须是小数。a
b
我没有任何线索。帮助 :)
丹科