From de00c9d2aae9023f0d87574f553cf4df838ad5d8 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Mon, 2 May 2022 14:55:19 +0800 Subject: [PATCH] add convexity --- examples/maze/stereographic_hex_maze.scad | 4 ++-- examples/maze/stereographic_square_maze.scad | 4 ++-- examples/stereographic_caterpillar.scad | 2 +- examples/stereographic_chars.scad | 2 +- examples/stereographic_projection.scad | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/maze/stereographic_hex_maze.scad b/examples/maze/stereographic_hex_maze.scad index e62c7cde..a30a212d 100644 --- a/examples/maze/stereographic_hex_maze.scad +++ b/examples/maze/stereographic_hex_maze.scad @@ -6,7 +6,7 @@ use ; 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( diff --git a/examples/maze/stereographic_square_maze.scad b/examples/maze/stereographic_square_maze.scad index 474c6e3f..6a078eba 100644 --- a/examples/maze/stereographic_square_maze.scad +++ b/examples/maze/stereographic_square_maze.scad @@ -4,7 +4,7 @@ use ; 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") { diff --git a/examples/stereographic_caterpillar.scad b/examples/stereographic_caterpillar.scad index 1941507c..b9dbdbc1 100644 --- a/examples/stereographic_caterpillar.scad +++ b/examples/stereographic_caterpillar.scad @@ -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) { diff --git a/examples/stereographic_chars.scad b/examples/stereographic_chars.scad index 940216af..43fde48e 100644 --- a/examples/stereographic_chars.scad +++ b/examples/stereographic_chars.scad @@ -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") { diff --git a/examples/stereographic_projection.scad b/examples/stereographic_projection.scad index 4258bdb1..a465c5cd 100644 --- a/examples/stereographic_projection.scad +++ b/examples/stereographic_projection.scad @@ -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) {