Skip to content
Snippets Groups Projects
Commit 122788de authored by fxk8y's avatar fxk8y :spider:
Browse files

Splitting executing between render and preview mode

parent 5882e101
No related branches found
No related tags found
No related merge requests found
$fs = 0.2;
$fa = $fs;
use <WebWeaver/scad/Util.scad>;
use <WebWeaver/scad/Piping.scad>;
......@@ -286,19 +282,37 @@ module splitFunnel() {
// TODO: choose a better name!
// `overallSystem` describes it… but it sound bad :(
module overallSystem() {
if ($preview) {
$fs = 0.5;
$fa = 10;
module preview() {
// display heat sink only in render mode
rotate([180, 0, 0]) symmetricHeatsink();
// translate([0, 0, 0]) curvyFunnel();
translate([0, 0, 0]) splitFunnel();
// translate([0, 0, 0]) curvyFunnel();
translate([0, 0, 0]) splitFunnel();
// color([0, 0, 1.0, 1.0]) translate([0, 0, 1]) linear_extrude(1) funnelFins();
} else {
// color([0, 0, 1.0, 1.0]) translate([0, 0, 1]) linear_extrude(1) funnelFins();
rotate([180, 0, 0]) symmetricHeatsink();
$fs = 0.2;
$fa = 1.0;
// TODO: 3D-Print positioning!
// translate([0, 0, 0]) curvyFunnel();
translate([0, 0, 0]) splitFunnel();
// color([0, 0, 1.0, 1.0]) translate([0, 0, 1]) linear_extrude(1) funnelFins();
}
}
preview();
overallSystem();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment