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

wip

parent 353d1ccc
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ var outputs = { ...@@ -53,7 +53,7 @@ var outputs = {
image:{type:'RGBA', image:{type:'RGBA',
event:function(){ event:function(){
}}, }},
sliceInfo:{type:'', imageInfo:{type:'',
event:function(){ event:function(){
}}} }}}
// //
......
...@@ -26,8 +26,6 @@ var name = 'read STL' ...@@ -26,8 +26,6 @@ var name = 'read STL'
// //
var init = function() { var init = function() {
mod.view = undefined mod.view = undefined
mod.mm.value = 1
mod.in.value = parseFloat(mod.mm.value)/25.4
} }
// //
// inputs // inputs
...@@ -40,10 +38,7 @@ var inputs = { ...@@ -40,10 +38,7 @@ var inputs = {
var outputs = { var outputs = {
mesh:{type:'', mesh:{type:'',
event:function(buffer){ event:function(buffer){
mods.output(mod,'mesh',buffer)}}, mods.output(mod,'mesh',buffer)}}}
meshInfo:{type:'',
event:function(buffer){
mods.output(mod,'STL',buffer)}}}
// //
// interface // interface
// //
...@@ -131,30 +126,6 @@ var interface = function(div){ ...@@ -131,30 +126,6 @@ var interface = function(div){
info.appendChild(text) info.appendChild(text)
mod.dzn = text mod.dzn = text
div.appendChild(info) 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 // local functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment