-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathprinting.scad
44 lines (34 loc) · 1.49 KB
/
printing.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright (c) 2019, Gilles Bouissac
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* Description: Tools and constants for 3D printing
* Author: Gilles Bouissac
*/
// ----------------------------------------
//
// API
//
// ----------------------------------------
// Default values
GAP = 0.2;
NOZZLE = 0.4;
LAYER = 0.2;
OVERHANG = 70;
VOLUME_MK3S = [250,210,210];
// Distance between 2 parts that must touch be not be stuck
function gap(mult=1) = is_undef($gap) ? mult*GAP : mult*$gap;
// The printer nozzle diameter
function nozzle(mult=1) = is_undef($nozzle) ? mult*NOZZLE : mult*$nozzle;
// The layer height
function layer(mult=1) = is_undef($layer) ? mult*LAYER : mult*$layer;
// The maximum overhang angle the printer can print from vertical
function overhang() = is_undef($overhang) ? OVERHANG : $overhang;
// The print volume available
function printVolume() = is_undef($bed) ? getPrintVolumePrusaMk3s() : $bed;
// Known volume sizes
function getPrintVolumePrusaMk3s() = VOLUME_MK3S;