From 697368b3a323b412dd7801656ae54cbb19e91306 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 5 Jan 2021 17:53:03 -0800 Subject: [PATCH] Fix projection_on_plane() example. --- geometry.scad | 13 ++++++++++--- version.scad | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/geometry.scad b/geometry.scad index 7fa07cc..bb23674 100644 --- a/geometry.scad +++ b/geometry.scad @@ -1005,10 +1005,17 @@ function plane_transform(plane) = // Arguments: // plane = The `[A,B,C,D]` plane definition where `Ax+By+Cz=D` is the formula of the plane. // points = List of points to project -// Example(3D): -// points = move([10,20,30], p=yrot(25, p=path3d(circle(d=100)))); -// plane = plane3pt([1,0,0],[0,1,0],[0,0,1]); +// Example(3D,FlatSpin): +// plane = plane_from_normal([1,0,1]); // proj = projection_on_plane(plane,points); +// color("red") move_copies(points) sphere(d=2,$fn=12); +// color("blue") move_copies(proj) sphere(d=2,$fn=12); +// rot(from=UP,to=plane_normal(plane)) { +// left(10) { +// anchor_arrow(30); +// %cube([120,150,0.1],center=true); +// } +// } function projection_on_plane(plane, points) = assert( _valid_plane(plane), "Invalid plane." ) assert( is_path(points), "Invalid list of points or dimension." ) diff --git a/version.scad b/version.scad index 39f29a6..20c5e9c 100644 --- a/version.scad +++ b/version.scad @@ -6,7 +6,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,514]; +BOSL_VERSION = [2,0,515]; // Section: BOSL Library Version Functions