toxiclibs pumpkin function
since helloween is comming nearer I made a processing sketch that generates a 3D pumpkin using the toxiclibs mesh builder. Generating a pumpkin-shape isn't very hard to do when using polar coordinates.
I use a sin of the phi angle to make the shape a litte bit more flat on top and bottom
and than i subtract the absolute of a sin of the tetha angle to generate the segments.
click here to start the sketch or download the sourcecode.
Spikes and Bumps with Toxiclibs
My next toxiclibs surfacebuilder experiment generates spikes and bumps on a spherical surface
click here to see it in action or download the code
read more ...how to make a tentacle using processing and toxiclibs
the Toxiclibs are a very interesting collection of processing libraries. One of the libraries is called volumeutils and allows to use a volumetric space to model a 3D object.
I used it to generate a tentacle and export it as a stl file to make it printable on my 3D-printer.
click here to see it live or download the source-code
In the setup method i define a volumetric space containing 100x100x100 voxel, a iso surface and a Triangle mesh (which is needed to display the object and export it later)
gfx = new ToxiclibsSupport(this);
VolumetricSpace volume = new VolumetricSpaceArray( new Vec3D(100,200,100), 100, 100, 100 );
IsoSurface surface = new ArrayIsoSurface( volume );
mesh = new TriangleMesh();
read more ...