mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-05 14:27:45 +02:00
removed triangle indexes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# shape_ellipse
|
# 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
|
## Parameters
|
||||||
|
|
||||||
@@ -12,7 +12,7 @@ Returns shape points and triangle indexes of an ellipse. They can be used with x
|
|||||||
include <shape_ellipse.scad>;
|
include <shape_ellipse.scad>;
|
||||||
|
|
||||||
polygon(
|
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;
|
$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,
|
radius = 40,
|
||||||
levels = 5,
|
levels = 5,
|
||||||
level_dist = 20,
|
level_dist = 20
|
||||||
triangles = shape_pts_tris[1]
|
|
||||||
);
|
);
|
||||||
|
|
||||||

|

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