mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-06 14:56:47 +02:00
removed triangle indexes
This commit is contained in:
@@ -13,8 +13,8 @@ Returns shape points and triangle indexes of an arc shape. They can be used with
|
|||||||
|
|
||||||
include <shape_arc.scad>;
|
include <shape_arc.scad>;
|
||||||
|
|
||||||
pts_tris = shape_arc(radius = 10, angles = [-90, 90], width = 5);
|
shape_pts = shape_arc(radius = 10, angles = [-90, 90], width = 5);
|
||||||
polygon(pts_tris[0]);
|
polygon(shape_pts);
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ Returns shape points and triangle indexes of an arc shape. They can be used with
|
|||||||
t_step = 0.05;
|
t_step = 0.05;
|
||||||
width = 2;
|
width = 2;
|
||||||
|
|
||||||
pts_tris = shape_arc(radius = 10, angles = [-90, 90], width = 5);
|
shape_pts = shape_arc(radius = 10, angles = [-90, 90], width = 5);
|
||||||
|
|
||||||
p0 = [0, 0, 0];
|
p0 = [0, 0, 0];
|
||||||
p1 = [40, 60, 35];
|
p1 = [40, 60, 35];
|
||||||
@@ -39,6 +39,6 @@ Returns shape points and triangle indexes of an arc shape. They can be used with
|
|||||||
[p0, p1, p2, p3, p4]
|
[p0, p1, p2, p3, p4]
|
||||||
);
|
);
|
||||||
|
|
||||||
path_extrude(pts_tris[0], path_pts, pts_tris[1]);
|
path_extrude(shape_pts, path_pts);
|
||||||
|
|
||||||

|

|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
include <__private__/__frags.scad>;
|
include <__private__/__frags.scad>;
|
||||||
include <__private__/__triangles_tape.scad>;
|
|
||||||
include <__private__/__ra_to_xy.scad>;
|
include <__private__/__ra_to_xy.scad>;
|
||||||
|
|
||||||
function _edge_r_begin(orig_r, a, a_step, m) =
|
function _edge_r_begin(orig_r, a, a_step, m) =
|
||||||
@@ -53,10 +52,5 @@ function shape_arc(radius, angles, width, width_mode = "LINE_CROSS") =
|
|||||||
|
|
||||||
],
|
],
|
||||||
[__ra_to_xy(_edge_r_begin(r_inner, angles[0], a_step, m), angles[0])]
|
[__ra_to_xy(_edge_r_begin(r_inner, angles[0], a_step, m), angles[0])]
|
||||||
),
|
)
|
||||||
triangles = __triangles_tape(points)
|
) points;
|
||||||
)
|
|
||||||
[
|
|
||||||
points,
|
|
||||||
triangles
|
|
||||||
];
|
|
Reference in New Issue
Block a user