Grasshopper

algorithmic modeling for Rhino

Hi guys, I'm trying to iterate the division of a rectangle in a quadtree of smaller rectangles. If a curve intersects the rectangle I want to divide it, if the curve doesn't I don't want to divide the rectangle.
Do you have any idea on how I can apply that rule in GH?

Views: 2190

Attachments:

Replies to This Discussion

Hi.

Lunchbox plug-in has "Subdivide Quad" component.

Take a look at the attached definition. Best.

Attachments:

Thank you very much! This will be a lot of help!
I'm sorry if I didn't reply you sooner, I saw your post while I was finishing my second post and then the internet connection failed me.
Thank you again!
Best :)

I made a few enhancement to the algorithm but I can't solve the fact that some rectangles intersected by the curve don't get divided... any suggestions?

Problem solved,
thanks to Hyungsoo Kim :)

I attach the final file, in case someone may need it.
Live long and prosper

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service