Grasshopper

algorithmic modeling for Rhino

Hi,

I have lots of little mesh pipes nested inside of larger mesh pipes. Is there a way to find any mesh that is completely nested and delete them? Sample attached.

Thanks

Views: 548

Attachments:

Replies to This Discussion

Hi Al,

You can cull the smaller pieces by setting a volume "threshold".
Select all your meshes from the .3dm drawing to the initial "mesh" parameter.

Attachments:

And here's how to remove meshes inside other meshes.

It will not work for intersecting meshes. The logic is thus:

  1. Get a point on every mesh. In this case, it's just the first vertex.
  2. For all these points, test for all existing meshes whether it is inside any of them.
  3. It will always be 'inside' the original mesh, so if the total count is 2 or more, it'll also be inside another mesh.
  4. Get the total count by using Mass Addition.
  5. Compare the result to 2.
  6. Cull using this comparison.

--

David Rutten

david@mcneel.com

Tirol, Austria

Forgot to attach the file.

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

Thanks Djordje and David.  I appreciate 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