stubs for import stl action

This commit is contained in:
Val Erastov 2016-10-25 02:09:54 -07:00
parent c7d17fd63c
commit de256acb96
6 changed files with 13 additions and 1 deletions

View file

@ -46,6 +46,10 @@ export const OperationActions = {
'UNION': mergeInfo('UNION', {
info: 'union operation on two solids'
}),
'IMPORT_STL': mergeInfo('IMPORT_STL', {
info: 'union operation on two solids'
})
};

View file

@ -1,7 +1,7 @@
export const file = {
label: 'file',
cssIcons: ['file'],
actions: ['Save', 'StlExport']
actions: ['Save', 'StlExport', '-', 'IMPORT_STL']
};
export const craft = {

View file

@ -54,6 +54,12 @@ export const UNION = {
info: (p) => null
};
export const IMPORT_STL = {
icon: 'img/3d/stl',
label: 'STL Import',
info: (p) => null
};
function r(value) {
return value.toPrecision(4).replace(/\.0$/, '');
}

View file

@ -154,6 +154,8 @@ UI.prototype.initOperation = function(op) {
this.registerWizard(new PlaneWizard(this.app.viewer), false)
} else if ('SPHERE' === op) {
this.registerWizard(new SphereWizard(this.app.viewer), false)
} else if ('IMPORT_STL' === op) {
alert('men at work');
} else {
console.log('unknown operation');
}

BIN
web/img/3d/stl32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
web/img/3d/stl96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB