Skip to content
Snippets Groups Projects
Commit acec98ed authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

wip

parent 81c10012
Branches
Tags
No related merge requests found
......@@ -44,9 +44,12 @@ var inputs = {
event:function(evt){
mod.mesh = new DataView(evt.detail)
find_limits_slice()}},
variables:{type:'',
settings:{type:'',
event:function(evt){
for (var p in evt.detail)
console.log(evt.detail)
console.log(p)
console.log(evt.detail[p])
mod[p].value = evt.detail[p]
find_limits_slice()}}}
//
......
......@@ -69,6 +69,7 @@ var inputs = {
draw_connections()
add_depth()
outputs.toolpath.event()
outputs.depth.event()
}
}
}
......@@ -83,6 +84,12 @@ var inputs = {
// outputs
//
var outputs = {
depth:{type:'',
event:function(){
console.log('out')
mods.output(mod,'depth',{depth:2})
}
},
diameter:{type:'',
event:function(){
mods.output(mod,'diameter',Math.ceil(mod.dpi*mod.dia_in.value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment