Grasshopper

algorithmic modeling for Rhino

How to break down the curve into small rectangles

Such as title, I want to break down the curve into small regular rectangles,how to do ?

thanks.

Views: 1255

Attachments:

Replies to This Discussion

See this?  It derives a "best fit grid size", though it ended up being a suggested new perimeter curve because dimensions had no common divisor:

square grid inside a non regular shape
http://www.grasshopper3d.com/forum/topics/square-grid-inside-a-non-...

It works on your shapes too, one at a time.  Your "columns" are internalized in this GH code, with 'Join' to connect the separate lines into perimeter curves.

Attachments:

thanks very muck. I want to get rectangle like following:

This is version 'e' from the other thread, adapted to use your curves (again, internalized here).  Grafting them makes this code work with all columns at once.  You manually adjust the 'grid size' slider.  Will need a little work to give you what you want but it's a start, eh?

Attachments:

does anyone have a suggestion? thanks.

help!
If it is just for 5 curves you could make it by hand.
If you need automatic algorithm it is doable with a custom program
Close your curves
Take point 0
Point 1
Point 2
If point 3 = point 0 end
Else make a rectangle with point 0 1 2 substract from the first closed polyline and continue
There are surely other alternatives using surfaces. David Rutten did a program tu transform a trimmed surfaces in I trimmed surfaces

thanks you veru much, i'll try it.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service