Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5817

rs.GetPoints() - base_point argument not hooked up?

$
0
0

I was playing around with something and I stumbled on this… I looked at the code for rs.GetPoints() and although the method’s input arguments do include an optional argument base_point (starting point), it doesn’t appear to be hooked up to anything else in the code. Seems odd that nobody has discovered this yet?

Here is an image of the full rs.GetPoints() code in the editor, if I highlight the base_point argument, you can see that the only other thing that gets highlighted is in the initial comment section:

Just to confirm my finding after inspecting the code, I tested with this:

import rhinoscriptsyntax as rs
import Rhino

start_pt=Rhino.Geometry.Point3d(0,0,0)
pts=rs.GetPoints(True,base_point=start_pt)

If you run that, you can see that the first point pick can be anywhere, not just constrained to 0.

While I’m here, I made the following request concerning rs.GetPoints() about a year ago, seems to have gone unanswered…

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5817

Trending Articles