Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(case): faster preview #118

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions case/cheapino-bottom-left.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ use <modules.scad>
// height = 95.1738;
// width = 132.6134;
step = 0.05;
//$fn=30;

// hotswap socket is ~1.75 high at the highest.
// magsafe ring is 0.4 high
// 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
4 changes: 1 addition & 3 deletions case/cheapino-bottom-right.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ use <modules.scad>
// height = 95.1738;
// width = 132.6134;
step = 0.05;
//$fn=30;

// hotswap socket is ~1.75 high at the highest.
// magsafe ring is 0.4 high
// 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-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
2 changes: 1 addition & 1 deletion 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
2 changes: 1 addition & 1 deletion 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 : 50;

height_translation = 0;

Expand Down
4 changes: 2 additions & 2 deletions case/hotswap.scad
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//$fn=50;
$fn = $preview ? 10 : 50;

module hotswap_mx() {
thickness=1.85;
Expand Down Expand Up @@ -170,4 +170,4 @@ hotswap_mx();
color("green")
translate([0,0,0])
import("hotswap.stl");
*/
*/
1 change: 0 additions & 1 deletion case/modules.scad
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//$fn=50;
pcb_thickness = 1.6;
bottom_plate_thickness = 2.5;
top_of_pcb = bottom_plate_thickness + pcb_thickness;
Expand Down
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();