algorithmic modeling for Rhino
There is some description here, and it's based off a script I put out a ways back that's written about here. It's derived from Paul Bourke's published code for marching cubes and distance functions for implicit surfaces.
The inputs to all of the components adjust the parameters outlined in these links (Cell Size is the sampling grid size for the cubes...so smaller cell size result in better resolution, but take longer to solve...Radius is the range of influence for a charge, and Strength is the multiplier used in the metaball distance function you will see in the links above, etc.)
Cell size is the important one that you want to make just small enough to work, or else it bogs down. That's the sample cube size that creates the surface and small values must fill up the whole volume with little cubes, which can be too many thousands of them to work fast enough and within memory limits.
Size, strength and iso all do about the same thing, and are merely ways to control the radius of volume around points, curves and surfaces, in slightly different ways. So standardize to iso and strength that work OK, then just change size as needed. The strength and size are how the field is generated and iso is what fixed field value is surfaced.
Refine is much more complicated than the original Cocoon values! It is more of a "black box" that so far I often give up on if it won't work well, and it blows up often too. A small SI (sample interval) value is often a good trick, as in small 0.01 or 0.001 sort of thing. Play around until something works and take notes.
I think Refine should be refined! It should be robust instead of so tweaky. It usually fails, again and again to give any useful output, but when it works, the result is beautiful.
I often resort to Kangaroo MeshMachine to refine the output of Cocoon, instead.
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
© 2024 Created by Scott Davidson. Powered by