1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 22:28:16 +01:00
dotSCAD/docs/lib-shape_ellipse.md
2017-05-17 11:12:03 +08:00

1.1 KiB

shape_ellipse

Returns shape points of an ellipse. They can be used with xxx_extrude modules of dotSCAD. The shape points can be also used with the built-in polygon module.

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 function 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 for more details.

Examples

include <shape_ellipse.scad>;

polygon(
	shape_ellipse([40, 20])
);

shape_ellipse

include <shape_ellipse.scad>;
include <circle_path.scad>;
include <helix.scad>;
include <rotate_p.scad>;
include <cross_sections.scad>;
include <polysections.scad>;
include <helix_extrude.scad>;

$fn = 8;
	
shape_pts = shape_ellipse([20, 10]);

helix_extrude(shape_pts, 
	radius = 40, 
	levels = 5, 
	level_dist = 20,
    rt_dir = "CLK"
);

shape_ellipse