Grasshopper

algorithmic modeling for Rhino

After playing with Kangaroo on this discussion and as I like a lot Marc Fornes structures I wanted to go a bit further with Kangaroo and also making some mesh automation.  

So the question is: how to make quad mesh usable with Kangaroo and with limited inputs parameters in order to simulate funicular structures like "Vaulted Willow" or "Pleated Inflation" from Marc Fornes and the Verymany.

Here is a first attempt script.

As inputs there are :

Lines_in, just lines, no duplicates, on XY plane could have Z values, but the algorithm works on a , on XY plane could have Z values, but the algorithm works on a  flat representation.

Tolerance is used to glue lines when points are closer than tolerance

Width is the half width of the “roads” going through the network

Angle is the shape of the ends of the roads, 0° means flat end, 180° a totally rounded end

Deviation is the shift generating spikes or enabling to generate pleated geometry

 

N_u is the number of subdivision along the “roads”, image above with 3 subdivisions on the roads

N_u is the number of subdivision across the “roads”

Zbool if false everything is flat, if true the mesh is in 3d, best with angle = 180° or -180°

 

For the outputs there is the topology of the network (like Sandbox)

As outputs geometry are put on datatree, each branch represent a path on the road, above 3 paths, which are brep output.

Adding a diagonal there are now 4 paths so 4 branches

 

The mesh M goes with F which are fixed points, anchor in Kangaroo.

U and V are lines in datatree, there will be used as spring in Kangaroo, U above

 

 

This script could be used to draw sort of roads, like in here https://codequotidien.wordpress.com/2013/03/22/hemfunction/

But the primary purpose is to do that.

 

Views: 28942

Attachments:

Replies to This Discussion

Hi there dear Laurent, I've encountered an issue here.

I wanted to apply this amazing script of yours into multiple trees for my project so I went testing with simple lines to see if its possible to apply it on three set of trees for example. I've tried my best to find and make PP LP for those trees but in the last script which is Vb which I have no idea about, it's not showing the right geometry.actually all applies into one mesh.

Would you please help me out here I'm stuck in two days trying to fix it but no luck.

I want to make custom profile for lots of lines and your script really would do the job if it was possible to be applied into multiple trees. or actually a way to duplicate the script in a parametric way to match with number of trees and then merging into one set.

thanks a million 

, amir heart_thickened_edgsdsde.gh

Hello Laurent,

It's pretty impressive, moreover I was actually wondering how Marc Fornes gave different weight to different mesh wireframe networks. 

Do you think it could be possible to rechannel the mesh wireframe to have a clean UV wireframe like you did, on a open polysurface for instance? I'm trying to do the same but on a free form like a Tspline

regards,

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