OpenScad Surface Solids by WilliamAAdams 3d model
3dmdb logo
Thingiverse
OpenScad Surface Solids by WilliamAAdams

OpenScad Surface Solids by WilliamAAdams

by Thingiverse
Last crawled date: 3 years, 1 month ago
The 1.0 version of the Bezier library included a simple linear extrusion of the bezier surface. The things this derives from added a quick and easy 'shell extrusion', which took into account the normals on the quads to create true 'inner' and 'outer' quads.
This thing makes a few improvements to both the normal calculations, and rearranges the libraries slightly to accomodate for future curved surface/solid things.
As a bonus, the hermite.scad file is thrown in. At the moment, it only has basic Hermite calculations. It even has a surface thing. So, if you want to play with that, here it is.
Also, in terms of library function naming, I've switched to being more explicit and rational.
linear_extrude_bezier - extrusion in the z-axis
shell_extrude_bezier - extrusion along the normals
So, for Hermite, it would be linear_extrude_hermite, shell_extrude_hermite
One of the cool features is the ability to show the normals, per vertex. This is extremely handy for debugging purposes. This, combined with being able to show the control mesh, makes for some nice visualization. I was actually able to spot a bug in my derivatives calculations by looking at which way a couple of normals were pointing.
Also, I've combined the bezier functions into the maths.scad library, so there is just one fewer files to download.
UPDATE: One more change I forgot to mention. I introduced the terms 'berp' and 'berpm'. Bezier Interpolation (berp - formerly PtOnBez). Bezier Interpolation of Mesh (berpm). I thought they would be fun names, and in line with the classic Linear Interpolation (lerp).

Tags