summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2016-01-12 21:17:08 (UTC)
committer Michael Krelin <hacker@klever.net>2016-01-12 21:17:08 (UTC)
commit64a6bb173fd448fd0b8557f3ae79625380127a7e (patch) (side-by-side diff)
tree1ed100596d79aa95899df14e3889970996629664
parent717f3676d93e8b2f8d71ea4b25461614becb79ef (diff)
downloadredelta-64a6bb173fd448fd0b8557f3ae79625380127a7e.zip
redelta-64a6bb173fd448fd0b8557f3ae79625380127a7e.tar.gz
redelta-64a6bb173fd448fd0b8557f3ae79625380127a7e.tar.bz2
added foot and shoe parts, connected to alltogethernow
Diffstat (more/less context) (show 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
@@ -652,2 +652,3 @@ function foot() {
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]);
@@ -655,4 +656,3 @@ function foot() {
}
-function foot_foot() {
- // TODO: connect in the altogethernow?
+function shoe() {
var F = CONFIG.foot;
@@ -754,3 +754,5 @@ var PARTS = {
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);
});
@@ -773,3 +775,5 @@ var PARTS = {
return duetholder();
- }
+ },
+ foot: foot,
+ shoe: shoe
};
@@ -825,2 +829,3 @@ function getParameterDefinitions() {
'duetholder',
+ 'foot', 'shoe',
'alltogethernow',
@@ -834,2 +839,4 @@ function getParameterDefinitions() {
'Duet holder',
+ 'Foot',
+ 'Shoe',
'All together now!',