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 = {
image:{type:'RGBA',
event:function(){
}},
sliceInfo:{type:'',
imageInfo:{type:'',
event:function(){
}}}
//
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment