mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 14:04:53 +02:00
updated docs
This commit is contained in:
@@ -52,9 +52,12 @@ Some modules may depend on other modules. For example, the `polyline2d` module d
|
|||||||
- [archimedean_spiral](https://openhome.cc/eGossip/OpenSCAD/lib-archimedean_spiral.html)
|
- [archimedean_spiral](https://openhome.cc/eGossip/OpenSCAD/lib-archimedean_spiral.html)
|
||||||
- [sphere_spiral](https://openhome.cc/eGossip/OpenSCAD/lib-sphere_spiral.html)
|
- [sphere_spiral](https://openhome.cc/eGossip/OpenSCAD/lib-sphere_spiral.html)
|
||||||
|
|
||||||
- Other
|
- Extrude
|
||||||
- [box_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-box_extrude.html)
|
- [box_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-box_extrude.html)
|
||||||
|
- [ellipse_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-ellipse_extrude.html)
|
||||||
- [stereographic_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-stereographic_extrude.html)
|
- [stereographic_extrude](https://openhome.cc/eGossip/OpenSCAD/lib-stereographic_extrude.html)
|
||||||
|
|
||||||
|
- Other
|
||||||
- [turtle2d](https://openhome.cc/eGossip/OpenSCAD/lib-turtle2d.html)
|
- [turtle2d](https://openhome.cc/eGossip/OpenSCAD/lib-turtle2d.html)
|
||||||
- [turtle3d](https://openhome.cc/eGossip/OpenSCAD/lib-turtle3d.html)
|
- [turtle3d](https://openhome.cc/eGossip/OpenSCAD/lib-turtle3d.html)
|
||||||
- [log](https://openhome.cc/eGossip/OpenSCAD/lib-log.html)
|
- [log](https://openhome.cc/eGossip/OpenSCAD/lib-log.html)
|
||||||
|
BIN
docs/images/lib-ellipse_extrude-1.JPG
Normal file
BIN
docs/images/lib-ellipse_extrude-1.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
docs/images/lib-ellipse_extrude-2.JPG
Normal file
BIN
docs/images/lib-ellipse_extrude-2.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 32 KiB |
BIN
docs/images/lib-ellipse_extrude-3.JPG
Normal file
BIN
docs/images/lib-ellipse_extrude-3.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
docs/images/lib-ellipse_extrude-4.JPG
Normal file
BIN
docs/images/lib-ellipse_extrude-4.JPG
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
49
docs/lib-ellipse_extrude.md
Normal file
49
docs/lib-ellipse_extrude.md
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# ellipse_extrude
|
||||||
|
|
||||||
|
Extrudes a 2D object along the path of an ellipse from 0 to 180 degrees. The semi-major axis is not necessary because it's eliminated while calculating.
|
||||||
|
|
||||||
|
## Parameters
|
||||||
|
|
||||||
|
- `semi_minor_axis` : The semi-minor axis of the ellipse.
|
||||||
|
- `height` : The extruded height. It defaults to `semi_minor_axis` if ignored. The `height` should not greater than `semi_minor_axis`. If it's greater than `semi_minor_axis`, the module will use `semi_minor_axis`.
|
||||||
|
- `center`, `convexity`, `twist`, `slices`: The same as respective parameters of `linear_extrude`.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
include <ellipse_extrude.scad>;
|
||||||
|
|
||||||
|
semi_minor_axis = 5;
|
||||||
|
|
||||||
|
ellipse_extrude(semi_minor_axis)
|
||||||
|
circle(semi_minor_axis * 2);
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
include <ellipse_extrude.scad>;
|
||||||
|
|
||||||
|
semi_minor_axis = 5;
|
||||||
|
|
||||||
|
ellipse_extrude(semi_minor_axis, height = 4.5)
|
||||||
|
text("A", valign = "center", halign = "center");
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
include <ellipse_extrude.scad>;
|
||||||
|
|
||||||
|
semi_minor_axis = 5;
|
||||||
|
|
||||||
|
ellipse_extrude(semi_minor_axis)
|
||||||
|
text("♥", size = 40, valign = "center", halign = "center");
|
||||||
|
mirror([0, 0, 1]) ellipse_extrude(semi_minor_axis)
|
||||||
|
text("♥", size = 40, valign = "center", halign = "center");
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
include <ellipse_extrude.scad>;
|
||||||
|
|
||||||
|
semi_minor_axis = 10;
|
||||||
|
|
||||||
|
ellipse_extrude(semi_minor_axis, twist = 30, slices = 10)
|
||||||
|
text("♥", size = 40, valign = "center", halign = "center");
|
||||||
|
|
||||||
|

|
Reference in New Issue
Block a user