Determining the points in a closed curve

python

(Kamyar69kamani) #1

Hi,

I have more than 100 points and about 30 closed curves. I want to determine, which points are locating in a certain curve, by selecting the curve or typing the name of it. Each point and curve has its own name.

Thank you very much.

Kamyar


#2

You probably want to use the PointInPlanarClosedCurve() method… Feed it the curve and all the points in a loop, keep the ones that return True. Also done with 3 components in Grasshopper… --Mitch


#3

echoing Helvetosaur’s solution
all the result 2s are points in curve. 0 means outside.


(Kamyar69kamani) #4

Thanks guys… It was helpful :slight_smile: