通过三点添加一个圆弧。
rhinoscriptsyntax.AddArc3Pt (start, end, point_on_arc)
rhinoscript.curve.AddArc3Pt (start, end, point_on_arc)
start |
圆弧起点。 |
end |
圆弧终点。 |
point_on_arc |
圆弧上的点。 |
Guid |
执行成功,返回新物件的ID。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
start = rs.GetPoint("Start of arc")
if start is not None:
end = rs.GetPoint("End of arc")
if end is not None:
pton = rs.GetPoint("Point on arc")
if pton is not None:
rs.AddArc3Pt(start, end, pton)