From 9f2bfb33c71e7c318a01d4a9ae5437fc233099eb Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 25 Sep 2022 23:02:18 +0100 Subject: [PATCH] reference: add //spline --- Chat-Command-Reference.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index 3f1cbaf..c6cd9bd 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -189,6 +189,21 @@ If `h` or `hollow` is specified at the end, then the resulting dome shape is mad ``` +### `//spline [ []]` +Draws a curved line, using all the currently defined points as control points. The starting and ending widths of the line can be controlled, and the width will be linearly interpolated. + +**Note:** `//spline` uses the **new** WorldEditAdditions positions! Use the [multipoint wand](#multi-point-wand) to define the control points for the resulting line. + +For those interested, WorldEditAdditions uses the [chaikin curve algorithm](https://starbeamrainbowlabs.com/blog/article.php?article=posts/196-Chaikin-Curve-Generator.html) to draw the curve. + +```weacmd +//spline dirt 5 2 +//spline glass 3 +//spline bakedclay:violet 3 +``` + +![An example of what //spline can do.](https://raw.githubusercontent.com/sbrl/Minetest-WorldEditAdditions/main/.docs/images/reference/spline.jpeg) + ## Misc