GetPointOnLine - PYTHON 不支持

暂停并等待用户在一条无限延长的曲线上选择一个点。

语法

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)

同见

GetPoint

GetPoints