THIS FORUM IS NO LONGER ACTIVE. PLEASE POST ANY NEW QUESTIONS OR DISCUSSION ON:
https://discourse.mcneel.com/c/grasshopper/kangaroo
The discussions here are preserved for reference, but new questions posted here are likely to go unanswered.
Kangaroo is a Live Physics engine for interactive simulation, optimization and form-finding directly within Grasshopper.
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.
emlplsn
Cool! Thanks for sharing. Also a big fan of Marc Fornes stuff.
Jan 10, 2016
Christian Schmidts
Dear Laurent + All,
as im drawing a lot of 2D stuff with my pen plotter at the moment - your tool gives really nice pattern in combination with weaver bird and branching structures - but would it be complicated to add a variable width value for each curve - or 2 values for each curve (start and end value basically like the t spline pipe command works)?
Jan 11, 2016
Nicolas Senemo
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,
Oct 11, 2016