Implementation wish: rs.GetPointOn(Line or Plane)


#1

rs.GetPointOnPlane()
rs.GetPointOnLine()

And as a general question for both vb and python implementations of rhinoscriptsyntax, I wonder whether GetPoint and GetPoints could accept an arbitrary plane as argument for what is currently blnPlane or in_plane…

If that argument gets passed nothing or False, the point is unconstrained. If True is passed, it does what it does now, constrain to the active CPlane. If a plane is passed, then the points are constrained to that plane. Since the default behavior is not modified, this change should be “transparent” and not affect existing scripts.

Thx, --Mitch


(Menno Deij - van Rijswijk) #2

Maybe not the answer you’re looking for, but with RhinoCommon you can already do this:

http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Input_Custom_GetPoint_Constrain_7.htm
http://4.rhino3d.com/5/rhinocommon/html/M_Rhino_Input_Custom_GetPoint_Constrain_5.htm


#3

Hi Menno,

Thanks, yes, that’s what I did yesterday… Just think this would be a good addition to basic rhinoscriptsyntax…

–Mitch