mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-03 03:33:08 +02:00
renamed module name
This commit is contained in:
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -1,6 +1,6 @@
|
||||
# bezier
|
||||
# bezier_curve
|
||||
|
||||
Given a set of control points, the bezier function returns points of the Bézier path. Combined with the `polyline`, `polyline3d` or `hull_polyline3d` module defined in my lib-openscad, you can create a Bézier curve.
|
||||
Given a set of control points, the bezier_curve function returns points of the Bézier path. Combined with the `polyline`, `polyline3d` or `hull_polyline3d` module defined in my lib-openscad, you can create a Bézier curve.
|
||||
|
||||
## Parameters
|
||||
|
||||
@@ -12,7 +12,7 @@ Given a set of control points, the bezier function returns points of the Bézier
|
||||
If you have four control points and combine with the `hull_polyline3d` module:
|
||||
|
||||
include <hull_polyline3d.scad>;
|
||||
include <bezier.scad>;
|
||||
include <bezier_curve.scad>;
|
||||
|
||||
t_step = 0.05;
|
||||
width = 2;
|
||||
@@ -22,10 +22,10 @@ If you have four control points and combine with the `hull_polyline3d` module:
|
||||
p2 = [-50, 90, 0];
|
||||
p3 = [0, 200, -35];
|
||||
|
||||
points = bezier(t_step,
|
||||
points = bezier_curve(t_step,
|
||||
[p0, p1, p2, p3]
|
||||
);
|
||||
|
||||
hull_polyline3d(points, width);
|
||||
|
||||

|
||||

|
Reference in New Issue
Block a user