diff --git a/README.md b/README.md index aec561e1..92a557cb 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,6 @@ Too many dependencies? Because OpenSCAD doesn't provide namespace management, I - 2D - [arc](https://openhome.cc/eGossip/OpenSCAD/lib-arc.html) - [pie](https://openhome.cc/eGossip/OpenSCAD/lib-pie.html) - - [ellipse](https://openhome.cc/eGossip/OpenSCAD/lib-ellipse.html) - [rounded_square](https://openhome.cc/eGossip/OpenSCAD/lib-rounded_square.html) - [line2d](https://openhome.cc/eGossip/OpenSCAD/lib-line2d.html) - [polyline2d](https://openhome.cc/eGossip/OpenSCAD/lib-polyline2d.html) diff --git a/docs/images/lib-ellipse-1.JPG b/docs/images/lib-ellipse-1.JPG deleted file mode 100644 index 1926ea2e..00000000 Binary files a/docs/images/lib-ellipse-1.JPG and /dev/null differ diff --git a/docs/images/lib-ellipse-2.JPG b/docs/images/lib-ellipse-2.JPG deleted file mode 100644 index c4297ba2..00000000 Binary files a/docs/images/lib-ellipse-2.JPG and /dev/null differ diff --git a/docs/lib-ellipse.md b/docs/lib-ellipse.md deleted file mode 100644 index d958e4d3..00000000 --- a/docs/lib-ellipse.md +++ /dev/null @@ -1,24 +0,0 @@ -# ellipse - -Creates an ellipse. - -## Parameters - -- `axes` : 2 element vector `[x, y]` where x is the semi-major axis and y is the semi-minor axis. -- `$fa`, `$fs`, `$fn` : The shape created by this module can be viewd as `resize([x, y]) circle(r = x)` (but not the real implementation inside the module) so you can use these global variables to control it. Check [the circle module](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_the_2D_Subsystem#circle) for more details. - -## Examples - - include ; - - ellipse([40, 20]); - -![ellipse](images/lib-ellipse-1.JPG) - - include ; - - $fn = 8; - ellipse([20, 40]); - -![ellipse](images/lib-ellipse-2.JPG) - diff --git a/src/ellipse.scad b/src/ellipse.scad deleted file mode 100644 index 86309388..00000000 --- a/src/ellipse.scad +++ /dev/null @@ -1,24 +0,0 @@ - -/** -* ellipse.scad -* -* Creates an ellipse. -* -* @copyright Justin Lin, 2017 -* @license https://opensource.org/licenses/lgpl-3.0.html -* -* @see https://openhome.cc/eGossip/OpenSCAD/lib-ellipse.html -* -**/ - -include <__private__/__frags.scad>; - -module ellipse(axes) { - step_a = 360 / __frags(axes[0]); - polygon( - [ - for(a = [0:step_a:360 - step_a]) - [axes[0] * cos(a), axes[1] * sin(a)] - ] - ); -} \ No newline at end of file