mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-29 17:30:11 +02:00
rename
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use <pixel/px_gray.scad>;
|
||||
use <experimental/tf_sphere.scad>;
|
||||
use <experimental/ptf_sphere.scad>;
|
||||
|
||||
photo_size = [100, 100];
|
||||
radius = 50;
|
||||
@@ -110,14 +110,14 @@ dots = px_gray(levels, center = true, normalize = true);
|
||||
|
||||
color("white")
|
||||
for(dot = dots) {
|
||||
translate(tf_sphere(photo_size, dot[0] + photo_size / 2, radius, [180, 180]))
|
||||
translate(ptf_sphere(photo_size, dot[0] + photo_size / 2, radius, [180, 180]))
|
||||
square(dot[1] * 2.5);
|
||||
}
|
||||
|
||||
rotate([180, 0, 0])
|
||||
color("white")
|
||||
for(dot = dots) {
|
||||
translate(tf_sphere(photo_size, dot[0] + photo_size / 2, radius, [180, 180]))
|
||||
translate(ptf_sphere(photo_size, dot[0] + photo_size / 2, radius, [180, 180]))
|
||||
square(dot[1] * 2.5);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
use <hull_polyline3d.scad>;
|
||||
use <util/rand.scad>;
|
||||
use <experimental/tri_bisectors.scad>;
|
||||
use <experimental/tf_bend.scad>;
|
||||
use <experimental/ptf_bend.scad>;
|
||||
|
||||
width = 5;
|
||||
columns = 30;
|
||||
@@ -47,7 +47,7 @@ lines = concat(
|
||||
);
|
||||
|
||||
for(line = lines) {
|
||||
transformed = [for(pt = line) tf_bend([columns * width, rows * width], pt, radius, angle)];
|
||||
transformed = [for(pt = line) ptf_bend([columns * width, rows * width], pt, radius, angle)];
|
||||
hull_polyline3d(transformed, thickness, $fn = 4);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
use <hull_polyline3d.scad>;
|
||||
use <experimental/mz_blocks.scad>;
|
||||
use <experimental/mz_walls.scad>;
|
||||
use <experimental/tf_ring.scad>;
|
||||
use <experimental/ptf_ring.scad>;
|
||||
|
||||
rows = 48;
|
||||
columns = 8;
|
||||
@@ -24,6 +24,6 @@ walls = mz_walls(blocks, rows, columns, block_width, bottom_border = false);
|
||||
|
||||
size = [columns * block_width, rows * block_width];
|
||||
for(wall_pts = walls) {
|
||||
transformed = [for(pt = wall_pts) tf_ring(size, pt, radius, 360, angle)];
|
||||
transformed = [for(pt = wall_pts) ptf_ring(size, pt, radius, 360, angle)];
|
||||
hull_polyline3d(transformed, wall_thickness);
|
||||
}
|
@@ -2,7 +2,7 @@ use <hull_polyline3d.scad>;
|
||||
use <matrix/m_rotation.scad>;
|
||||
use <experimental/mz_blocks.scad>;
|
||||
use <experimental/mz_walls.scad>;
|
||||
use <experimental/tf_sphere.scad>;
|
||||
use <experimental/ptf_sphere.scad>;
|
||||
|
||||
r = 10;
|
||||
rows = 24;
|
||||
@@ -26,7 +26,7 @@ module sphere_maze() {
|
||||
for(wall_pts = walls) {
|
||||
rxpts = [
|
||||
for(p = wall_pts)
|
||||
tf_sphere(size, mr * [p[0], p[1], 0, 0] + p_offset, r)
|
||||
ptf_sphere(size, mr * [p[0], p[1], 0, 0] + p_offset, r)
|
||||
];
|
||||
hull_polyline3d(rxpts, wall_thickness, $fn = 6);
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
use <hull_polyline3d.scad>;
|
||||
use <experimental/tf_torus.scad>;
|
||||
use <experimental/ptf_torus.scad>;
|
||||
use <experimental/mz_blocks.scad>;
|
||||
use <experimental/mz_walls.scad>;
|
||||
|
||||
@@ -24,7 +24,7 @@ walls = mz_walls(blocks, rows, columns, block_width, left_border = false, bottom
|
||||
|
||||
size = [columns * block_width, rows * block_width];
|
||||
for(wall_pts = walls) {
|
||||
transformed = [for(pt = wall_pts) tf_torus(size, pt, [radius, radius / 2], twist = twist)];
|
||||
transformed = [for(pt = wall_pts) ptf_torus(size, pt, [radius, radius / 2], twist = twist)];
|
||||
hull_polyline3d(transformed, wall_thickness, $fn = 4);
|
||||
}
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
use <hull_polyline3d.scad>;
|
||||
use <experimental/mz_blocks.scad>;
|
||||
use <experimental/mz_walls.scad>;
|
||||
use <experimental/tf_y_twist.scad>;
|
||||
use <experimental/ptf_y_twist.scad>;
|
||||
|
||||
rows = 16;
|
||||
columns = 8;
|
||||
@@ -19,6 +19,6 @@ walls = mz_walls(blocks, rows, columns, block_width);
|
||||
|
||||
size = [columns * block_width, rows * block_width];
|
||||
for(wall_pts = walls) {
|
||||
transformed = [for(pt = wall_pts) tf_y_twist(size, pt, angle)];
|
||||
transformed = [for(pt = wall_pts) ptf_y_twist(size, pt, angle)];
|
||||
hull_polyline3d(transformed, wall_thickness);
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
use <util/rand.scad>;
|
||||
use <hull_polyline3d.scad>;
|
||||
use <experimental/tf_ring.scad>;
|
||||
use <experimental/ptf_ring.scad>;
|
||||
|
||||
size = [20, 100];
|
||||
line_width = 1;
|
||||
@@ -32,7 +32,7 @@ module tiled_line_mobius(size, twist, step, line_width = 1) {
|
||||
);
|
||||
|
||||
for(line = lines) {
|
||||
pts = [for(p = line) tf_ring(size, p, size[0], twist = twist)];
|
||||
pts = [for(p = line) ptf_ring(size, p, size[0], twist = twist)];
|
||||
hull_polyline3d(pts, thickness = line_width);
|
||||
}
|
||||
}
|
||||
|
@@ -1,6 +1,6 @@
|
||||
use <util/rand.scad>;
|
||||
use <hull_polyline3d.scad>;
|
||||
use <experimental/tf_torus.scad>;
|
||||
use <experimental/ptf_torus.scad>;
|
||||
|
||||
size = [20, 50];
|
||||
line_width = 1;
|
||||
@@ -24,7 +24,7 @@ module tiled_line_torus(size, twist, step, line_width = 1) {
|
||||
);
|
||||
|
||||
for(line = lines) {
|
||||
pts = [for(p = line) tf_torus(size, p, [size[0], size[0] / 2], twist = twist)];
|
||||
pts = [for(p = line) ptf_torus(size, p, [size[0], size[0] / 2], twist = twist)];
|
||||
hull_polyline3d(pts, thickness = line_width);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user