Bezier Mesh Surface V1.0 by WilliamAAdams 3d model
3dmdb logo
Thingiverse
Bezier Mesh Surface V1.0 by WilliamAAdams

Bezier Mesh Surface V1.0 by WilliamAAdams

by Thingiverse
Last crawled date: 3 years ago
Well, I started out wanting to do some nicer fillets on my OpenScad designs, and suddenly, I have a full blown Bezier surface/solids library!
This thing is the Version 1.0 for this stuff. I think it's actually good enough to produce some nice looking objects.
The technique used here is a linear extrusion of a bezier surface. The surface itself is described by 16 control points in a mesh. The machinery then takes care of rendering that to the thickness that you want.
The workhorse module can be found in the Renderer.scad file: DisplaySurfaceMesh()
This will generate a surface, according to your mesh, and extruded to the thickness that you specify (default 1mm). It is a solid, so it will play nicely with the other CSG functions in OpenScad.
There are a few demo/test/samples provided in the .scad files, so it should be fairly easy to make up your own examples.
I use colors in the examples because it makes for some pretty pictures. They don't affect the rendering process at all. If you don't like the color ramps, you can select your own.
Although this version provides only one mechanism for doing solids from the Bezier surface mesh, it has all the fundamentals for you to do other forms as well. you don't even have to use the Bezier functions for bezier surfaces, you can use them for anything where you'd like something to vary in a parametric sort of way in your designs. The color ramps are another example of how the Bezier curves can be used.
At any rate, there are other forms of curves, and more rendering methods to be pursued. RapCAD is doing some interesting work, and hopefully Bezier shows up as a core feature of these various text based tools.
But, until that day... enjoy!
UPDATE: Blog entry to go with it:http://williamaadams.wordpress.com/2011/05/26/linear-extrusion-of-bezier-surfaces/

Tags