mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-04-20 22:21:52 +02:00
removed triangle indexes
This commit is contained in:
parent
f323f354d8
commit
02e5de5a08
@ -1,6 +1,6 @@
|
||||
# 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.
|
||||
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
|
||||
|
||||
@ -12,7 +12,7 @@ Returns shape points and triangle indexes of an ellipse. They can be used with x
|
||||
include <shape_ellipse.scad>;
|
||||
|
||||
polygon(
|
||||
shape_ellipse([40, 20])[0]
|
||||
shape_ellipse([40, 20])
|
||||
);
|
||||
|
||||

|
||||
@ -27,13 +27,12 @@ Returns shape points and triangle indexes of an ellipse. They can be used with x
|
||||
|
||||
$fn = 8;
|
||||
|
||||
shape_pts_tris = shape_ellipse([20, 10]);
|
||||
shape_pts = shape_ellipse([20, 10]);
|
||||
|
||||
helix_extrude(shape_pts_tris[0],
|
||||
helix_extrude(shape_pts,
|
||||
radius = 40,
|
||||
levels = 5,
|
||||
level_dist = 20,
|
||||
triangles = shape_pts_tris[1]
|
||||
level_dist = 20
|
||||
);
|
||||
|
||||

|
||||
|
@ -13,7 +13,6 @@
|
||||
**/
|
||||
|
||||
include <__private__/__frags.scad>;
|
||||
include <__private__/__triangles_radial.scad>;
|
||||
|
||||
function shape_ellipse(axes) =
|
||||
let(
|
||||
@ -22,10 +21,5 @@ function shape_ellipse(axes) =
|
||||
shape_pts = [
|
||||
for(a = [0:step_a:360 - step_a])
|
||||
[axes[0] * cos(a), axes[1] * sin(a)]
|
||||
],
|
||||
triangles = __triangles_radial(shape_pts)
|
||||
)
|
||||
[
|
||||
shape_pts,
|
||||
triangles
|
||||
];
|
||||
]
|
||||
) shape_pts;
|
Loading…
x
Reference in New Issue
Block a user