Loading...
Logo
Processing Forum
Shapes3D V1.9.1 now includes a new shape, the BezTube, This is a tube that follows the path of a 3D Bezier curve and can vary in diameter along it's length. Two examples of its use can be seen at Knot and Borg Travel.

If you want to experiment and create your own Bezier tubes then I have created an editor for anyone to use. Once you have designed your tube there is an option to copy the code to the clipboard to paste in your own Processing sketch so you can see it independantly of  the editor. The sketch code produced requires the PeasyCam library to view the tube from any angle. NOTE: This feature is only available if you download the application available from the Editor's webpage since the applet is unsigned.

Click for the BezTube Editor.

Replies(7)

great, i just tested it. I really like your tube editor. Especially the interpolation of the points. well done!
Great library, it impliments something I've been working on....well done.
now a question:
say I'm building a tree, two tubes join to form a branch. How can I merge the meshes to maintain a watertight manifold shape?
sounds like not possible with this library. Correct me if i am wrong quarks.
maybe wbluts hemesh library is useful for you : http://www.wblut.com/2010/05/04/hemesh-a-3d-mesh-library-for-processing/
not sure what you are up to, but it might help.

I'm still very new at processing, I'm still learning fundamentals while I explore and feel my way towards my goal.  I'm working on creating a series of sketches that will generate watertight, manifold shapes to be exported as STL files and printed in 3D.  I'm flailing around with more ideas than knowledge.  I'm trying to slow the ideas and pick up the knowledge.

You're right, W:blut has a great library, as does Toxi.  However, at my level of knowledge, I'm hesitant to try to mix libraries...I wish I could. The void in my knowledge is filling frustratingly slowly.

say I'm building a tree, two tubes join to form a branch. How can I merge the meshes to maintain a watertight manifold shape?
Unfortunately it is not possible to merge the meshes in this library.

Thanks to cedrickiefer for pointing out the hemesh library (I had not come across it before) it looks it very exciting and may well provide a solution to the robby's problem.
Hi,

Do you think your library could resolve my problem?

http://forum.processing.org/topic/how-to-use-modelbuilder-library-to-export-a-drawing-to-stl
When the drawing is over, then i go through the arraylist, and by using those coordinates maybe it's possible to create the tube shape?
Thank you!!
I watched the vdieo you posted in the other thread and was impressed with what you had done.

It should be fairly straightforward to create tubes from an arraylist of 3D positions but I am not sure the best way to translate that into a suitable format format for STL.

Since all the attributes of the Tube class are protected you might create a new class that inherits from Tube so you can access the mesh coordinates and add a suitable method to export the mesh in STL format.

HTH