Grasshopper

algorithmic modeling for Rhino

How can I sort/group surfaces so that surfaces on the same plane sort into their own list?

My ultimate goal is to merge any overlapping surfaces together so that I can bring complex architecture models into Unreal Engine 4 (which doesn't like anything to overlap).  I could easy use Region Union to merge everything together properly but it won't work for a list of surfaces that aren't co-planar.  For now, I'm just concerned with flat, planar surfaces.  In case you have a better idea please let me know.

I have been able to evaluate the surfaces to identify those that share the same plane, but am not sure how I can dispatch those surfaces to separate data branches.  The result should be something like:

{0,0} (surfaces on same plane A)

surface 1

surface 2

etc.

{0,1} (surfaces on same plane B)

surface 1

surface 2

etc.

Please help me out if you have any ideas!  Thanks.

Views: 1757

Attachments:

Replies to This Discussion

Hi, did you find a way how to sort coplanar surfaces?

I need to do the same.

Hi Tom,

many thanks for your file. I have tried it but in my case, the output geometry is different then my input geometry. I don't know why.

I have attached my input geometry. My aim is to combine all planar surfaces on one plane into one surface.

If you could help me just filtering the planar surfaces on one plane that would be great!

Best regards,

Alex

Attachments:

thanks so much!

is there a way to adjust the tolerances? not all of the surfaces on one plane will be filtered into one group. I have attached a screenshot:

thanks again for you reply and help!

what are tiltet surfaces? at the beginning of the definition I tested for planar surfaces. I think all the surfaces I use in for your part of definition should be planar.

I have noticed, that when I test different tolerance settings, I often get out more surfaces than input surfaces. The script dublicates some.

I attached a screenshot, where i look at path 13 of the tree. It contains 3 surfaces but not the right onces...

Do you have any idea?

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service