summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--delta.jscad15
1 files changed, 11 insertions, 4 deletions
diff --git a/delta.jscad b/delta.jscad
index 8233e74..5621f0f 100644
--- a/delta.jscad
+++ b/delta.jscad
@@ -650,11 +650,11 @@ function foot() {
radius: F.nut.d/2
}));
rv.properties.c_column = new CSG.Connector([0,0,F.h],[0,0,1],[1,0,0]);
+ rv.properties.c_shoe = new CSG.Connector([0,0,0],[0,0,1],[1,0,0]);
rv.properties.P = new CSG.Connector([0,0,F.h],[0,0,-1],[1,0,0]);
return rv.setColor(CONFIG.color.parts);
}
-function foot_foot() {
- // TODO: connect in the altogethernow?
+function shoe() {
var F = CONFIG.foot;
var rv = CSG.cylinder({
start: [0,0,0], end: [0,0,F.foot.ho],
@@ -752,7 +752,9 @@ var PARTS = {
var feet = THREEWINDS.map(function(w,i) {
var rv = foot();
rv = rv.connectTo(rv.properties.c_column,cols[i].properties.c_bottom,false,0);
- return rv;
+ var s = shoe();
+ s = s.connectTo(s.properties.c_foot,rv.properties.c_shoe,false,0);
+ return rv.union(s);
});
var dh = duetholder();
var dhsw = dh.connectTo(dh.properties.c_h,
@@ -771,7 +773,9 @@ var PARTS = {
},
duetholder: function(params) {
return duetholder();
- }
+ },
+ foot: foot,
+ shoe: shoe
};
function main(params) {
@@ -823,6 +827,7 @@ function getParameterDefinitions() {
'clamp',
'fanholder',
'duetholder',
+ 'foot', 'shoe',
'alltogethernow',
'wip'
],
@@ -832,6 +837,8 @@ function getParameterDefinitions() {
'Clamp',
'Fan holder',
'Duet holder',
+ 'Foot',
+ 'Shoe',
'All together now!',
'Work in progress'
],