Get Curve Length
来源:互联网 发布:js 切换视频播放 编辑:程序博客网 时间:2024/06/04 23:32
import rhinoscriptsyntax as rsdef CurveLength(): "Calculate the length of one or more curves" # Get the curve objects arrObjects = rs.GetObjects("Select Objects", rs.filter.curve, True, True) if( arrObjects==None ): return rs.UnselectObjects(arrObjects) length = 0.0 count = 0 for object in arrObjects: if rs.IsCurve(object): #Get the curve length length += rs.CurveLength(object) count += 1 if (count>0): print "Curves selected:", count, " Total Length:", length# Check to see if this file is being executed as the "main" python# script instead of being used as a module by some other python script# This allows us to use the module which ever way we want.if( __name__ == "__main__" ): CurveLength()
阅读全文
0 0
- Get Curve Length
- Quadratic Bezier curve length
- Curve
- linux_Small0318 fstat get length
- get web url content length
- lots of "GET variable length limit exceeded"
- [LinkedIn] Add Interval (get total covered length)
- Get Jenkins job build queue length
- js: how to get length of dict
- Curve Fitting
- curve代码
- Learning Curve
- Curve Estimation
- ROC Curve
- drawing Curve
- Animation Curve
- Interpolate-Curve
- Curve Bezier
- HDU 1874 迪杰斯特拉
- Volatile和Synchronized关键字
- IEEE 802.3以太网帧封装
- TCP协议的3次握手和4次挥手
- JavaScript 读写Cookie扩展
- Get Curve Length
- matlab中的max和min
- 原生JS实现走马灯效果
- leetcode581. Shortest Unsorted Continuous Subarray
- |BZOJ 1660|单调栈|[Usaco2006 Nov]Bad Hair Day 乱发节
- 洛谷 P1083 借教室
- Android APK获取平台系统签名权限
- 关于跨域问题
- 集合类源码解读