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.
Tags:
Some of the misses lines, it is my fault, Mea Culpa, I put a limit on the while " while ((panels.Count > 0) && (test < 100))"
Here is a script without the limit.
If you need surface Daniel made an offset with variable distance.
http://www.grasshopper3d.com/photo/the-variable-offset-component-sp...
I corrected some parameter, n_u was not test so n_u of 1 is not good ...
here with a mesh
Thanks for testing and giving feed back.
Nice results Laurent!
great job, is it possible to reduce the number of veins?
Yes it is possible. I havent' done the script to do the networks. It is Christian job. There are some explanation on his image
To generate points, he uses meshmachine
works great now - thank you for this (and also the other nice contributions you made on the forum)!
I wasn't aware of Daniels tools but yours is more flexible now I think.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by