GetPointOnCurve extend cursor distance

python

#1

Hello,

Prevoiously I had a question how to add points that is located on a line however I realised when I drag the cursor far away from the line the selection does not function. The cursor needs to be very close to the line to apply the point. Is there any way to increase the cursor distance from the line?

Previous post:


(Dale Fugier) #2

Hi @onrender,

Try replacing this:

gp.Constrain(Rhino.Geometry.Line(ptA,ptB))

with this:

gp.Constrain(Rhino.Geometry.LineCurve(ptA,ptB), False) 

Any better?

– Dale


#3

Thank you Dale,

Actually, I tried with Python code but the C# code works like as I expected, so the point follows the cursor regardless of its position on the screen.