Grasshopper

algorithmic modeling for Rhino

hello, I'm interested in removing the rectangle closest to the ref point..I thought about taking the one who's center point is closest to the refferrence point but I can't seem to link the closest point to the actual rectangle ..does any1 have a clue

Views: 304

Attachments:

Replies to This Discussion

Hi kipodi,

you'll need to make sure your rectangles are in a single list, then you sort that list based on rectangle-distance-to-point. You can then either remove the first item from this list or sort a set of indices in parallel and remove the appropriate rectangle out of the original list (see attached).

--
David Rutten
david@mcneel.com
Seattle, WA
Attachments:
thanx david, I'm going to check it out.

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service