1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 05:52:16 +02:00
This commit is contained in:
Justin Lin
2020-02-12 20:01:22 +08:00
parent 0486b85f2a
commit b1b5efe022
2 changed files with 6 additions and 4 deletions

View File

@@ -9,6 +9,8 @@ wall_thickness = 1;
angle = 180; angle = 180;
// $fn = 24; // $fn = 24;
function tf_twist(size, p, ) =
function y_twist(walls, angle, rows, columns, block_width) = function y_twist(walls, angle, rows, columns, block_width) =
let( let(
x_offset = columns * block_width / 2, x_offset = columns * block_width / 2,

View File

@@ -2,14 +2,14 @@ use <rotate_p.scad>;
/* /*
size: The size of the rectangle mapping to a sphere. size: The size of the rectangle mapping to a sphere.
p: A point in the rectangle. point: A point in the rectangle.
r: sphere radius. r: sphere radius.
angle: [za, xa] mapping angles. angle: [za, xa] mapping angles.
*/ */
function tf_sphere(size, p, r, angle = [180, 360]) = function tf_sphere(size, point, r, angle = [180, 360]) =
let( let(
x = p[0], x = point[0],
y = p[1], y = point[1],
za = angle[0], za = angle[0],
xa = angle[1], xa = angle[1],
xlen = size[0], xlen = size[0],