Bezier Library for OpenScad

Bezier Library for OpenScad

thingiverse

This repository contains updated code for the 'BezierScad' library, last modified on 5/10/13. The latest version fixes triangle winding issues in centered BezWall and introduces a new feature that uses polyhedron to create variable-height BezArc. The developer initially sought a bezier library capable of handling an arbitrary number of control points while working on a project for thingiverse.com/thing:77586. They introduced the 'BezWall' function, which accepts between 1-8 bezier control points and static values for width and height to define the wall shape. Alternatively, the function can use arrays of 'widthCtls' and 'heightCtls' to interpolate along the wall length. The 'centered' parameter determines whether the wall is centered on the path defined by 'ctlPts'. The code currently lacks documentation but includes a test file showcasing most features. Additionally, the developer used coffeescript to generate bezier interpolation functions with arbitrary control points and generate openscad code automatically. The library can handle up to 8 control points, but this can be modified in the coffeescript file. Besides 'BezWall', the library includes simpler 'BezLine' function that generates lines with a subset of BezWall functionality, using an array of 1-8 control points and an array of 1-8 width values interpolated as line widths. Unlike BezWall, 'BezLine' takes a 'resolution' parameter rather than steps, determining the number of segments in the resulting line. Another function, 'BezArc', generates shapes similar to WilliamAAdams' 'BezQuadCurve'. Please find the code on github for further details and usage instructions.

Download Model from thingiverse

With this file you will be able to print Bezier Library for OpenScad with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Bezier Library for OpenScad.