Skip to content

Commit

Permalink
perf(case): faster preview
Browse files Browse the repository at this point in the history
  • Loading branch information
azzamsa committed Dec 3, 2024
1 parent 7c87431 commit ab93407
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion case/cheapino-bottom-left.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ step = 0.05;
// 2.5 will leave 0.35 at the thinnest(between hotswap and magsafe).


$fn=50;
$fn = $preview ? 10 : 50;

// Rotate so you dont need to do that in extruder
translate([0,0,2.5])
Expand Down
2 changes: 1 addition & 1 deletion case/cheapino-bottom-right.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ step = 0.05;
// 2.5 will leave 0.35 at the thinnest(between hotswap and magsafe).


$fn=50;
$fn = $preview ? 10 : 50;

// Rotate so you dont need to do that in extruder
translate([0,0,2.5])
Expand Down
5 changes: 1 addition & 4 deletions case/cheapino-top-left.scad
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn=50;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>
Expand Down Expand Up @@ -38,6 +38,3 @@ mcu_cutout();
mounting_hole_inserts();

}



3 changes: 1 addition & 2 deletions case/cheapino-top-right.scad
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
height = 95.1738;
width = 132.6134;
step = 0.06;
$fn=50;
$fn = $preview ? 10 : 50;

height_translation = 0;
include <modules.scad>
Expand Down Expand Up @@ -56,4 +56,3 @@ mirror() {
mounting_hole_inserts();
}
}

3 changes: 1 addition & 2 deletions case/cheapino.scad
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
height = 95.1738;
width = 132.6134;
step = 0.05;
$fn=30;
$fn = $preview ? 10 : 30;

height_translation = 0;

Expand Down Expand Up @@ -78,4 +78,3 @@ module base_line(expanded)
base();
}
}

4 changes: 2 additions & 2 deletions case/plate.scad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

$fn=100;
$fn = $preview ? 10 : 100;

height_translation = 0;

Expand All @@ -10,4 +10,4 @@ module plate()
}

linear_extrude(1.6)
plate();
plate();

0 comments on commit ab93407

Please sign in to comment.