Last active
October 10, 2019 22:29
-
-
Save jonasbits/25cab4841b85b93b8cc888384c5c936f to your computer and use it in GitHub Desktop.
makersLink_think_with_portals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://oestman.se/makerslink/makersLink_think_w_portals.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parameterSets": { | |
"jonasbits": { | |
"bslDeg": "0", | |
"bslX": "477", | |
"bslY": "90", | |
"fikaX": "0", | |
"fikaY": "0", | |
"loomX": "0", | |
"loomY": "0", | |
"syX": "100", | |
"syY": "70" | |
} | |
}, | |
"fileFormatVersion": "1" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//made with OpenScad version 2019.05 | |
//en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#$vpr,_$vpt_and_$vpd | |
/* | |
$vpt = [ 288.07, 466.56, 118.63 ]; //viewport translation | |
$vpr = [ 54.30, 0.00, 326.90 ]; //viewport rotation | |
$vpd = 2900.73; //viewport distance | |
*/ | |
//Beginning Customizer positions | |
/* [BigScaryLaser] */ | |
bslX = 477; //[900] | |
bslY = 90; //[500] | |
bslDeg = 0; //[0,90,180,270] | |
translate([bslX,bslY,0]) | |
bigScaryLaser(bslDeg); | |
/* [SwedishFika] */ | |
fikaX = 0; //[900] | |
fikaY = 0; //[900] | |
translate([fikaX,fikaY,0]) | |
swedishFika(); | |
/* [Huskvarna] */ | |
syX = 100; //[900] | |
syY = 70; //[900] | |
translate([syX,syY,0]) | |
syBord(); | |
/* [Kontramarsch] */ | |
loomX = 0; //[900] | |
loomY = 0; //[900] | |
translate([loomX,loomY]) | |
loomKontra(); | |
// Customizer ends here. Next line makes it so. | |
/* [Hidden] */ | |
module syBord(){ | |
syW = 70; | |
syL = 70; | |
cube([syW,syL,40]); | |
} | |
module loomKontra(){ | |
loomW = 50; | |
loomL = 50; | |
cube([loomW,loomL,50]); | |
} | |
module swedishFika(){ | |
fikaW = 110; | |
fikaL = 110; | |
color("orange") | |
cube([fikaW,fikaL,30]); | |
} | |
module bigScaryLaser(deg = 180){ | |
//wiki B:2829mm, D:2197mm + öppna luckor, H:1293mm | |
scale = 50; | |
bslW = scale*2.8; //meter | |
bslD = scale* 2.2; | |
bslB = scale* 0.8; //space behind | |
bslG = scale* 1.0; //2x gavlar, open hatches | |
bslF = scale* 1.5; //space needed to load ( quickly ) | |
rotate(deg) { | |
color("pink") | |
cube([bslW,bslD,55],center=true); | |
offset = bslF-bslB; | |
translate([0,offset,0]) | |
color("green") | |
cube([bslW+bslG+bslG,bslD+bslB+bslF,11],center=true); | |
}//end rot | |
} | |
module archiveStore(){ | |
archiveW = 130; | |
archiveL = 200; | |
offsetLwall = 40; | |
offsetBwall = gFloorL - archiveL - 5; | |
translate([offsetLwall,offsetBwall,0]) | |
color("purple") | |
cube([archiveW,archiveL,100]); | |
} | |
archiveStore(); | |
gFloorL = 1000; | |
module bigHall(){ | |
floorW = 600; | |
floorL = gFloorL; | |
roofH = 400; | |
carpenterW = 250; | |
carpenterL = 250; | |
metalW = 250; | |
metalL = 250; | |
metalH = 230; | |
mechaW = 250; | |
mechaL = 250; | |
//baseFloor | |
cube([floorW,floorL,5]); | |
//left wall | |
translate([0,floorL-mechaL-carpenterL,0]) | |
rotate([0,180+45,0]) | |
cube([roofH,floorL-metalL-mechaL,5]); | |
difference(){ | |
//right wall | |
translate([floorW,0,0]) | |
rotate([0,-45,0]) | |
cube([roofH,floorL-metalL,5]); | |
//exit | |
exitW = 70; | |
exitH = 100; | |
offsetMwall = 40; //real measeure 1.2 meter | |
translate([floorW-30,floorL-metalL-exitW-offsetMwall,0]) | |
#cube([exitH,exitW,100]); | |
} | |
//back wall | |
translate([0,floorL,0]) | |
rotate([45,0,0]) | |
cube([floorW-carpenterW,roofH,5]); | |
//front wall | |
translate([carpenterW,0,0]) | |
rotate([180-45,0,0]) | |
cube([floorW-carpenterW,roofH,5]); | |
//carpenter space | |
color("brown") cube([carpenterW,carpenterL,20]); | |
//mecha | |
translate([0,mechaL,0]) | |
color("green") cube([mechaW,mechaL,30]); | |
//metal | |
translate([floorW-metalW,floorL-metalL,0]) | |
color("gray") cube([metalW,metalL,metalH]); | |
//steps | |
//en.wikibooks.org/wiki/OpenSCAD_User_Manual/Mathematical_Functions | |
//www.omnicalculator.com/math/hypotenuse | |
//echo(pow(10,2)); // means 10^2 | |
sum = (pow(metalH,2)+pow(metalL,2)); | |
stairL= sqrt(sum); | |
stairW=50; | |
echo( sum ); | |
echo( stairL ); | |
translate([floorW-metalW-stairW,floorL-metalL,0]) | |
rotate([45,0,0]) | |
cube([50,stairL,10]); | |
} | |
bigHall(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment