NCF参数化建筑论坛

标题: py小练习小问题2 [打印本页]

作者: carcass    时间: 2012-10-11 13:56
标题: py小练习小问题2
本帖最后由 carcass 于 2012-10-11 14:48 编辑

1.py程序运行,能不能运行结束,上方出现times,纪录运行时间?
import rhinoscriptsyntax as rs
import math
a=rs.GetObject('get a closed curve')
b=rs.GetObject('pick a point')
c=rs.PointInPlanarClosedCurve(b,a)
if c=0:
    print('point is on the curve')
elif c=1:
     print('point is in the curve')
else c=2
     print('point is out the curve')    pointsinplanarclosedcurve返回值是0,1,2,c=0报错

File "C:\Documents and Settings\xieyoujun\Desktop\aa.py", line 7
    if c=0:






欢迎光临 NCF参数化建筑论坛 (http://ncf-china.com/) Powered by Discuz! X3.2