1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-29 09:19:59 +02:00

change param name

This commit is contained in:
Justin Lin
2021-02-18 10:45:44 +08:00
parent d3385b1c2c
commit cb1ffdfac4
19 changed files with 97 additions and 98 deletions

View File

@@ -7,7 +7,7 @@ use <ptf/ptf_y_twist.scad>;
rows = 10;
columns = 10;
cell_width = 4;
wall_thickness = 1;
line_diameter = 1;
angle = 90;
axis = "X_AXIS"; // [X_AXIS, Y_AXIS]
// $fn = 24;
@@ -21,5 +21,5 @@ walls = mz_square_walls(cells, rows, columns, cell_width);
size = [columns * cell_width, rows * cell_width];
for(wall_pts = walls) {
transformed = [for(pt = wall_pts) axis == "X_AXIS" ? ptf_x_twist(size, pt, angle) : ptf_y_twist(size, pt, angle)];
hull_polyline3d(transformed, wall_thickness);
hull_polyline3d(transformed, line_diameter);
}