Grasshopper

algorithmic modeling for Rhino

Hi guys. When I link my shapes to GSH I would like that GSH select only the external shapes instead of internal. Any idea? Thanks a lot!! 

Views: 1006

Replies to This Discussion

Sort by area and select the largest?

mmmm ... nope because geometry can be unclosed (sorry)

if the geometry isn't closed, then there's no real way to determine "inside" and "outside."

The two pairs of highlighted curves below are identical but have their "insides" and "outsides" flipped. 

Is there any more information available about these shapes that might help us find a solution? If they are all convex, then you can rely on the curve length... but as illustrated above for non-convex, non-closed shapes more information is necessary.

Maybe defining a "centroid" it's possible to choose furthest shapes ... 

OK, maybe it's simple do it with CLOSED SHAPE. I need to choose the external shape of each shapes. If I select all 6 shapes, with the Area method, GSH select 2 rectangles (see below) ... while I need only the external of each "grouped shapes".

Here is a definition that will do it for the case of closed curves.

Attachments:

Awesome, thanks a lot Andrew!! ;-)

Sorry guys if I go back on this topic, but I really need to select the external curves of an unclosed shape. As mentioned by Andrew, more informations are necessary; what kind of informations do U need? Hope that someone could help me!! ;-)

Try this (explode all your floor plan curves first):

Definition is not perfect. It will not work in case you have some inner or outer edge of the wall shorter than thickness of the wall.
You can add as many different floor plans as you want, just copy the initial "curve" ("floor plan N") parameter, and plug it into the "Entwine" component.

Attachments:

Many many many thanks Djordje, your definition works fine for me!! Thanks a lot!!!!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service