summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-13 15:20:12 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-13 15:20:12 (UTC)
commit4463cba1eed4a59d4eba588389a169481798a73c (patch) (side-by-side diff)
treed97866dcfc591ee507cc008c820ce11054187169
parent991ce4f32ed5ea178c20454fab902e11e8472524 (diff)
downloadredelta-4463cba1eed4a59d4eba588389a169481798a73c.zip
redelta-4463cba1eed4a59d4eba588389a169481798a73c.tar.gz
redelta-4463cba1eed4a59d4eba588389a169481798a73c.tar.bz2
first attempt on bed holder
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad57
1 files changed, 54 insertions, 3 deletions
diff --git a/delta.jscad b/delta.jscad
index 24c1c7e..0e8fd62 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -47,2 +47,8 @@ var CONFIG = {
},
+ bedholder: {
+ h: 15,
+ margin: 3,
+ nut: { w: 5.4, h: 2.5 },
+ bolt: { d: 3, l: 10, head: { d: 5.33, h: 3 } }
+ },
hotend: {
@@ -766,2 +772,45 @@ function platform() {
+function bedholder(params) {
+ var h0 = CONFIG.foot.h+CONFIG.extrusion.w*2+CONFIG.base.gap;
+ var bolt_s = CONFIG.bedholder.bolt.l-CONFIG.extrusion.slotdepth+PRINT.play_tolerance*2;
+ var nuth=h0+CONFIG.bedholder.h*3/4;
+ var nutth = nuth+CONFIG.bedholder.nut.h/2+PRINT.slide_tolerance/2;
+ var rv = CSG.roundedCube({
+ corner1: [-CONFIG.extrusion.w/2,-CD.base.inner_inscription_r,h0],
+ corner2: [ CONFIG.extrusion.w/2,-CONFIG.heatbed.sr-3/2-CONFIG.bedholder.margin,h0+CONFIG.bedholder.h],
+ roundradius: CONFIG.bedholder.margin
+ });
+ rv = rv.subtract([
+ CSG.cylinder({ // base screw
+ start: [0,-CD.base.mid_inscription_r,h0-1],
+ end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1],
+ radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2
+ }),
+ CSG.cylinder({ // bed screw
+ start: [0,-CONFIG.heatbed.sr,h0-1],
+ end: [0,-CONFIG.heatbed.sr,h0+CONFIG.bedholder.h+1],
+ radius: CONFIG.bedholder.bolt.d/2+PRINT.screw_tolerance/2
+ }),
+ CSG.cube({ // nut pocket
+ center: [0,-CONFIG.heatbed.sr,nuth],
+ radius: [CONFIG.extrusion.w/2+1,(CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2,(CONFIG.bedholder.nut.h+PRINT.slide_tolerance)/2]
+ }),
+ CSG.cylinder({ // sink base screw
+ start: [0,-CD.base.mid_inscription_r,h0+bolt_s],
+ end: [0,-CD.base.mid_inscription_r,h0+CONFIG.bedholder.h+1],
+ radius: CONFIG.bedholder.bolt.head.d/2+PRINT.play_tolerance
+ })
+ ]);
+ rv = rv.union(CSG.cylinder({
+ start: [0,-CONFIG.heatbed.sr,nutth], end: [0,-CONFIG.heatbed.sr,nutth+PRINT.layer_height],
+ radius: (CONFIG.bedholder.nut.w+PRINT.slide_tolerance)/2+PRINT.extrusion_width
+ }));
+ rv = rv.intersect(CSG.cylinder({
+ start: [0,0,h0-1], end: [0,0,h0+CONFIG.bedholder.h+1],
+ radius: CONFIG.heatbed.r, resolution: 270
+ }));
+ rv.properties.P = new CSG.Connector([0,-CD.base.mid_inscription_r,h0],[0,0,1],[1,0,0]);
+ return rv.setColor(CONFIG.color.parts);
+}
+
var PARTS = {
@@ -805,3 +854,4 @@ var PARTS = {
foot: foot,
- shoe: shoe
+ shoe: shoe,
+ bedholder: bedholder
};
@@ -873,2 +923,3 @@ function getParameterDefinitions() {
'foot', 'shoe',
+ 'bedholder',
'alltogethernow',
@@ -882,4 +933,4 @@ function getParameterDefinitions() {
'Duet holder',
- 'Foot',
- 'Shoe',
+ 'Foot', 'Shoe',
+ 'Bed holder',
'All together now!',