mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-12 09:44:16 +02:00
add convexity
This commit is contained in:
@@ -6,7 +6,7 @@ use <maze/mz_hexwalls.scad>;
|
||||
columns = 10;
|
||||
cell_radius = 20;
|
||||
wall_thickness = 12;
|
||||
fn = 24;
|
||||
fn = 36;
|
||||
shadow = "YES"; // [YES, NO]
|
||||
wall_height = 1;
|
||||
|
||||
@@ -28,7 +28,7 @@ module hex_maze_stereographic_projection(columns, cell_radius, wall_thickness, f
|
||||
|
||||
walls = mz_hexwalls(cells, cell_radius, wall_thickness);
|
||||
|
||||
stereographic_extrude(square_w, $fn = fn)
|
||||
stereographic_extrude(square_w, $fn = fn, convexity = 10)
|
||||
translate([grid_w - square_w / 2, grid_h - square_w / 2, 0])
|
||||
for(wall = walls) {
|
||||
polyline2d(
|
||||
|
@@ -4,7 +4,7 @@ use <square_maze.scad>;
|
||||
maze_rows = 10;
|
||||
cell_width = 40;
|
||||
wall_thickness = 20;
|
||||
fn = 24;
|
||||
fn = 36;
|
||||
shadow = "YES"; // [YES, NO]
|
||||
wall_height = 2;
|
||||
|
||||
@@ -16,7 +16,7 @@ module stereographic_projection_maze2(maze_rows, cell_width, wall_thickness, fn,
|
||||
square_maze(maze_rows, cell_width, wall_thickness);
|
||||
}
|
||||
|
||||
stereographic_extrude(shadow_side_leng = length, $fn = fn)
|
||||
stereographic_extrude(shadow_side_leng = length, $fn = fn, convexity = 10)
|
||||
maze();
|
||||
|
||||
if(shadow == "YES") {
|
||||
|
@@ -119,7 +119,7 @@ module shadow(levels, px_width) {
|
||||
}
|
||||
}
|
||||
|
||||
stereographic_extrude(shadow_side_leng = len(levels), $fn = 48)
|
||||
stereographic_extrude(shadow_side_leng = len(levels), $fn = 48, convexity = 2)
|
||||
shadow(levels, px_width);
|
||||
|
||||
if($preview) {
|
||||
|
@@ -33,7 +33,7 @@ module four_chars(txt, square_size, font_name, font_size) {
|
||||
}
|
||||
}
|
||||
|
||||
stereographic_extrude(square_size * 2.975)
|
||||
stereographic_extrude(square_size * 2.975, convexity = 10)
|
||||
four_chars(txt, square_size, font_name, font_size);
|
||||
|
||||
if(shadow == "YES") {
|
||||
|
@@ -17,7 +17,7 @@ module grid(rows, block_width, line_width) {
|
||||
}
|
||||
}
|
||||
|
||||
stereographic_extrude(block_width * rows + line_width, $fn = 48)
|
||||
stereographic_extrude(block_width * rows + line_width, $fn = 48, convexity = 15)
|
||||
grid(rows, block_width, line_width);
|
||||
|
||||
if($preview) {
|
||||
|
Reference in New Issue
Block a user