1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-12 01:34:12 +02:00

refactored before adding test

This commit is contained in:
Justin Lin
2017-06-19 17:45:51 +08:00
parent 84a18a2e67
commit c7f9cb424e

View File

@@ -22,17 +22,17 @@ module bend(size, angle, frags = 24) {
r = half_frag_width / sin(half_frag_angle);
h = r * cos(half_frag_angle);
tri_frag_pts = [
[0, 0],
[half_frag_width, h],
[frag_width, 0],
[0, 0]
];
module triangle_frag() {
translate([0, -z, 0])
linear_extrude(y)
polygon(
[
[0, 0],
[half_frag_width, h],
[frag_width, 0],
[0, 0]
]
);
polygon(tri_frag_pts);
}
module get_frag(i) {