diff --git a/modules/mesh/slice b/modules/mesh/slice index 93c97baac8aa147c29323d39e3e2bea8bcb726d2..ca97d87bc09a37b0ab7969a2abeeacdb3e5e0241 100644 --- a/modules/mesh/slice +++ b/modules/mesh/slice @@ -53,7 +53,7 @@ var outputs = { image:{type:'RGBA', event:function(){ }}, - sliceInfo:{type:'', + imageInfo:{type:'', event:function(){ }}} // diff --git a/modules/read/stl b/modules/read/stl index 65abb13e32591f20def1617d817207e66ae99c14..5b2856f022e9ad6d1765834cf3c31627647bc6e5 100644 --- a/modules/read/stl +++ b/modules/read/stl @@ -26,8 +26,6 @@ var name = 'read STL' // var init = function() { mod.view = undefined - mod.mm.value = 1 - mod.in.value = parseFloat(mod.mm.value)/25.4 } // // inputs @@ -40,10 +38,7 @@ var inputs = { var outputs = { mesh:{type:'', event:function(buffer){ - mods.output(mod,'mesh',buffer)}}, - meshInfo:{type:'', - event:function(buffer){ - mods.output(mod,'STL',buffer)}}} + mods.output(mod,'mesh',buffer)}}} // // interface // @@ -131,30 +126,6 @@ var interface = function(div){ info.appendChild(text) mod.dzn = text div.appendChild(info) - // - // units - // - div.appendChild(document.createTextNode('units:')) - div.appendChild(document.createElement('br')) - div.appendChild(document.createTextNode('mm: ')) - var input = document.createElement('input') - input.type = 'text' - input.size = 6 - input.addEventListener('input',function(){ - mod.in.value = parseFloat(mod.mm.value)/25.4 - }) - div.appendChild(input) - mod.mm = input - div.appendChild(document.createTextNode(' in: ')) - var input = document.createElement('input') - input.type = 'text' - input.size = 6 - input.addEventListener('input',function(){ - mod.mm.value = parseFloat(mod.in.value)*25.4 - }) - div.appendChild(input) - mod.in = input - div.appendChild(document.createElement('br')) } // // local functions