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

rename block to cell

This commit is contained in:
Justin Lin
2020-12-20 10:49:16 +08:00
parent afaf67c739
commit f594215469
29 changed files with 245 additions and 247 deletions

View File

@@ -1,15 +1,15 @@
use <matrix/m_rotation.scad>;
use <maze/mz_square_blocks.scad>;
use <maze/mz_square_cells.scad>;
use <maze/mz_square_walls.scad>;
use <ptf/ptf_sphere.scad>;
r = 10;
rows = 24;
columns = 18;
block_width = .5;
cell_width = .5;
wall_thickness = .5;
wall_height = 1.5;
pole_offset = block_width * 2.5;
pole_offset = cell_width * 2.5;
module sphere_maze() {
function _angles(p) =
@@ -50,16 +50,16 @@ module sphere_maze() {
}
size = [rows * block_width, columns * block_width + pole_offset * 2];
blocks = mz_square_blocks(
size = [rows * cell_width, columns * cell_width + pole_offset * 2];
cells = mz_square_cells(
rows, columns,
y_wrapping = true
);
p_offset = [block_width * rows, pole_offset, 0];
p_offset = [cell_width * rows, pole_offset, 0];
mr = m_rotation(90);
walls = mz_square_walls(blocks, rows, columns, block_width, bottom_border = false);
walls = mz_square_walls(cells, rows, columns, cell_width, bottom_border = false);
for(wall_pts = walls) {
rxpts = [
for(p = wall_pts)