1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-11 19:04:32 +01:00
dotSCAD/docs/lib-shape_ellipse.md
2017-05-06 15:41:25 +08:00

1.2 KiB

shape_ellipse

Returns shape points and triangle indexes 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])[0]
);

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_tris = shape_ellipse([20, 10]);

helix_extrude(shape_pts_tris[0], 
	radius = 40, 
	levels = 5, 
	level_dist = 20,
	triangles = shape_pts_tris[1]
);

shape_ellipse