周长画圆,周长,[Python]代码im
周长画圆,周长,[Python]代码im
[Python]代码
import rhinoscriptsyntax as rsimport mathdef CreateCircle(circumference=None): center = rs.GetPoint("Center point of circle") if center: plane = rs.MovePlane(rs.ViewCPlane(), center) length = circumference if length is None: length = rs.GetReal("Circle circumference") if length and length>0: radius = length/(2*math.pi) objectId = rs.AddCircle(plane, radius) rs.SelectObject(objectId) return length return Noneif __name__ == '__main__': CreateCircle()
相关内容
- for循环,,[Python]代码ki
- 格式化数字及其单位,格式化数字单位,[Python]代码de
- python socket单工聊天工具,pythonsocket单工,socket单工聊天
- 用Python编写的列举所有对称日的小程序--菜鸟写的,请
- python监控网卡流量,python监控网卡,[Python]代码im
- Find the coefficients of the polynomial that fits the specified data
- tinyipdate最新ip库 python操作类,tinyipdatepython,发布最新版
- Linux下歌词编辑器,Linux歌词编辑器,#!/usr/bin/e
- 支持编辑的词典,编辑词典,DictForGeeks
- Python倒计时代码,python倒计时,#!/usr/bin/e
评论关闭