暂停并等待用户在一条无限延长的曲线上选择一个点。
rhinoscript.userinterface.GetPointOnLine (message, start_point, end_point, track=True)
message |
Required.字符串。A prompt or message. |
start_point |
Required.List of 3 numbers or Point3d.The starting point of the line. |
end_point |
Required.List of 3 numbers or Point3d.The ending point of the line. |
track |
可选参数。Boolean.Draw a tracking line from start_point.If omitted, a tracking line is drawn (True). |
Point3d |
The 3-D point selected by the user if successful. |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
start = plane.Origin
end = start + plane.Normal
point = rs.GetPointOnLine("Pick location", start, end)