From 26dca9fd04d85dc35007a4317a5d9b53271ce166 Mon Sep 17 00:00:00 2001 From: Richard Milewski Date: Sat, 8 Jun 2024 12:31:05 -0700 Subject: [PATCH] =?UTF-8?q?Create=20B=C3=A9ziers=5Ffor=5FBeginners.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tutorials/Béziers_for_Beginners.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tutorials/Béziers_for_Beginners.md diff --git a/tutorials/Béziers_for_Beginners.md b/tutorials/Béziers_for_Beginners.md new file mode 100644 index 0000000..5d66f1c --- /dev/null +++ b/tutorials/Béziers_for_Beginners.md @@ -0,0 +1,16 @@ +# Béziers for Beginners + +Bézier curves are parametric curves defined by a set of control points. These points’ positions in relation to one another define the shape of the curve. In OpenSCAD these points are contained in a list. The simplest cubic Bézier curve has 4 control points. The first and last control points are the endpoints of the curve, but the other two control points do not lie on the curve itself. + +To work with Béziers in OpenSCAD we need to load the Bézier extension BOSL2/beziers.scad in addition to BOSL2/std.scad. + +To visualize a Bézier curve we can use the module debug_bezier(). + +```openscad2d +include +include + +bez = [[20,0], [40,10], [0,40], [20,60]]; +debug_bezier(bez); +``` +