mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-15 21:05:22 +01:00
stubs for import stl action
This commit is contained in:
parent
c7d17fd63c
commit
de256acb96
6 changed files with 13 additions and 1 deletions
|
|
@ -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'
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export const file = {
|
||||
label: 'file',
|
||||
cssIcons: ['file'],
|
||||
actions: ['Save', 'StlExport']
|
||||
actions: ['Save', 'StlExport', '-', 'IMPORT_STL']
|
||||
};
|
||||
|
||||
export const craft = {
|
||||
|
|
|
|||
|
|
@ -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$/, '');
|
||||
}
|
||||
|
|
@ -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
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
BIN
web/img/3d/stl96.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.2 KiB |
Loading…
Reference in a new issue