Grasshopper

algorithmic modeling for Rhino

Hi guys,

I have a question and will appreciate it if someone know how to solve it:

I've divided a srf with some rectangels, and now i'm trying to pick the srf without the little rectangles. So I calculated the areas, resorted it, used Item to pick the first and largest object from the list (asuming it would be the srf without the recs...)- and it won't work no matter what. Does someone know what to do?

Thanks!

Views: 644

Attachments:

Replies to This Discussion

Hello Arnit,

you need to give the F output of split surface as input to A of the sort component. this will sort the surfaces according to their area. The output a of the sort list component has the list with the sorted surfaces. So the list item needs this List (the A output) so that you can start selecting through sorted surfaces.

best

alex

Tried it, the sort won't accept the srfsplit as A, only as F :\

tried, didn't work either...

Yo, post code!  We know our advice works.  It's something you're doing wrong that words and pictures don't convey.  ALWAYS POST CODE please!

OK, uploaded it. thanks!

Attachments:

An error message appears opening your GH file and a component appears to be missing:

Plugin version: 0.9.0076

Missing object chunk in archive. An object could not be found in the document,it will be missing once the file is loaded.

Object list read

Consequently, the 'Bnd (Bounds)' and 'ReMap' components fail and all that follows.

So I first had to implement code that arranges small rectangular holes to be cut.

The step you might have forgotten is to reverse the list of the 'Sort A' output to give you the largest first instead of the smallest.

Attachments:

My re-implementation to create the rectangular holes layout (improved code):

Attachments:

I suppose that to be complete, there is an alternative to sorting results from 'SrfSplit' that should be mentioned, using 'Boundary' instead, for one result - simple and fast.

Attachments:

Worked like magic! Thank you so much all for the help :)

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