# Curve Massing through Marching Cubes (Coccoon Plug-in)

Hello World,

It's been a minute, but there are many things I've been working on I'd like to share. Essentially, I've been establishing a strong core in computational design for myself by creating teaching tools that help me communicate my ideas on 3D concept design.

This plug-in is called Cocoon, and works with the fundamentals of Marching Cubes. If you'd like to know more, I highly recommend reading __BeSpoke's page__ where the plug-in is available.

One particular Grasshopper 3D plug-in called Cocoon has been very helpful in seeing the spatial potential of many curve designs by creating massing. It gives a different perspective than the instinct to loft curves together, but can be just as simple to create. I'll be going over different examples where I found it particularly interesting to use.

This first image shows how Cocoon can generate mesh volumes from something as simple as sets of curves. A radius parameter can be assigned to a curve, point, or surface and translates to "base body" for that geometry. The charge parameters however, is what determines how much volume actually "grows" from that initial geometry. A negative value can be input for charge, making it a subtraction process as well. The image below demonstrates this on curves that are derived from a field force simulation.

Fields first caught my attention because they allow to create interpolated curves that are based on forces calculated from basic parameters. There are different kinds of fields, but they all have a direction and a strength. Rather than determine interpolation points and tangents, the designer can mix and match difference kinds of forces of different sizes and strengths with points that project their projected path. These are simulations that resemble those performed by space crafts to determine long voyages.

Besides the spin forces shown above one can also determine forces by a line, forces can be merged together into a system by merging all converging vectors. Points that are within the influence of the forces will be moved according to the field's strength. The path the point would take can be represented by a field curve; a step parameter determines the length at which we project the point's travel.

If the field is symmetrical, or is composed in a way that the point will return to its original location, additional steps would make the curve overlap itself.

Another exploration using Cocoon on curves involves another plug-in's component.

As opposed to fields, Puffer-fish's "Pinch'n'Spread" designates a region of influence for either flocking or repelling points contained in the region.

Another exploration using Cocoon on curves involves another plug-in's component.

As opposed to fields, Puffer-fish's "Pinch'n'Spread" designates a region of influence for either flocking or repelling points contained in the region.

Check out the script on the file share library!

For Pufferfish, visit https://www.food4rhino.com/app/pufferfish