Fluid-Forms-Libs is a library for Processing (Java) that aids in the creation of fluid forms (parametrically changeable forms). It includes useful function for generating, modifying, importing and exporting geometry. At present STL and OBJ are supported as input and export formats.
It was initially conceived at Fluid Forms for exporting coded forms for physical production using CNC Technologies or 3D-Printing. In future we will be adding more useful features and more file formats so stay tuned.
The advantage of this library is that the file formats are described using templates. In order to support a new ascii file format you don't have to write a new library, you just have to write a new template. If you want to support a binary file format you can extend the base classes of the library.
Like all processing libraries FluidIO must be downloaded and placed within the "libraries" folder of your Processing sketchbook. To find the Processing sketchbook location on your computer, open the Preferences window from the Processing application and look for the "Sketchbook location" item at the top. Copy the contributed library's folder into the "libraries" folder at this location. You will need to create the "libraries" folder if this is the firs library you have install for this sketch.
import eu.fluidforms.processing.*;
void setup(){
size(500, 800, P3D);
FluidFormsLibs.setup(this);
noStroke();
}
// Press ctrl-e to export an STL file.
void draw(){
Blob blob = new Blob();
FluidFormsLibs.drawUV(blob);
}