Grasshopper

algorithmic modeling for Rhino

Hi,

I have worked on a project where i have a hex grid with an offset placed within a curve. My question is, is it possible to warp a grid so the offset cells match a specific overall shape, in this case, the curve shape?

I've tried attractors (point and curve), lunch box and even paneling but with no success so far. The closest solution that i've seen is Kangaroo but not sure how to set everything up

I'm attaching a image for reference (hex grid within a curve with no offset)

and the definition as well. Any help would be greatly appreciated.

Thanks.

Views: 1121

Attachments:

Replies to This Discussion

In general ... indeed you can do it via K1/K2 ( getting the "included" segments after relaxation is rather easy but VERY slow). 

Get this for a start and I'll post some other far more complex defs (as soon as ... er ... I can find them [blame Alzheimer, he he]).

Get the other def as well as an indication upon what K1/2 can do.

Attachments:

Hey Peter,

Thank you for the help, really appreciate it. I'll dissect the definitions and let you know how it went. Some funny stuff embedded as well.

Cheers.

Funny? Me? Never (at least in 0.01% of cases, he he).

BTW: With regard "culling" (Split) the hexagons, get the Trim curves with Brep thingy as well that is in fact ... er ... hmm ... the Curve.Split method (we live in a confused word, I guess).

This makes things (via Lunchbox) using the underlying surface and then does the massacre using the thickened brep (BrepFace) as the cutter.

best, Peter

Attachments:

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