Select points inside a boundary rectangle

Hi, Any idea of ​​how I can select the points that are inside a bounding rectangle that I draw in Rhino? the points are the vertices of a polyline that I have in Grasshopper and I need to have them in order, thank you very much.

Hi,

You could try this:

Mainly using the Point In Curve component. It outputs 0 for outside, 1 for on the border of the rectangle and 2 for inside. To be safe, it’s best practice to project the rectangle and the points on the XY plane, to make sure they’re in the same plane.

Cheers

Arie

1 Like

This did it perfectly, thanks! :slight_smile: