1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-01-17 14:18:13 +01:00

removed triangle indexes

This commit is contained in:
Justin Lin 2017-05-10 16:50:56 +08:00
parent 8fcc96a516
commit f323f354d8
2 changed files with 8 additions and 15 deletions

View File

@ -1,6 +1,6 @@
# shape_pie
Returns shape points and triangle indexes of a pie (circular sector) shape. 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 a pie (circular sector) shape. 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,8 +12,8 @@ Returns shape points and triangle indexes of a pie (circular sector) shape. They
include <shape_pie.scad>;
shape_pts_tris = shape_pie(10, [45, 315], $fn = 24);
polygon(shape_pts_tris[0]);
shape_pts = shape_pie(10, [45, 315], $fn = 24);
polygon(shape_pts);
![shape_pie](images/lib-shape_pie-1.JPG)
@ -24,13 +24,12 @@ Returns shape points and triangle indexes of a pie (circular sector) shape. They
include <polysections.scad>;
include <helix_extrude.scad>;
shape_pts_tris = shape_pie(10, [45, 315], $fn = 8);
shape_pts = shape_pie(10, [45, 315], $fn = 8);
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
);
![shape_pie](images/lib-shape_pie-2.JPG)

View File

@ -13,7 +13,6 @@
**/
include <__private__/__frags.scad>;
include <__private__/__triangles_radial.scad>;
function shape_pie(radius, angles) =
let(
@ -32,10 +31,5 @@ function shape_pie(radius, angles) =
radius * [cos(a), sin(a)]
],
[edge_r_end * [cos(angles[1]), sin(angles[1])]]
),
triangles = __triangles_radial(shape_pts)
)
[
shape_pts,
triangles
];
)
) shape_pts;