Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "optimesh", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "OptiMesh reduces meshes resolution to optimize performance, memory usage and download size", | ||
"cdn": "https://cdn.jsdelivr.net/npm/optimesh@1.0.2/build/main.js", | ||
"main": "build/main.js", | ||
@@ -6,0 +7,0 @@ "jsnext:main": "build/main.module.js", |
@@ -11,3 +11,3 @@ export default { | ||
indent: '\t', | ||
intro: 'var dvlpThree = dvlpThree || THREE;', | ||
banner: 'var dvlpThree = dvlpThree || THREE;', | ||
external: ['dvlp-three'] | ||
@@ -19,3 +19,3 @@ }, | ||
indent: '\t', | ||
intro: 'var dvlpThree = dvlpThree || THREE;', | ||
banner: 'var dvlpThree = dvlpThree || THREE;', | ||
external: ['dvlp-three'] | ||
@@ -22,0 +22,0 @@ } |
import { meshSimplifier } from './MeshSimplifier'; | ||
function editorAction(editor) { | ||
if (!editor.selected) { | ||
return alert('select an object'); | ||
} | ||
if (!editor.selected.isMesh) { | ||
return alert('select valid geometry'); | ||
} | ||
const selected = editor.selected; | ||
meshSimplifier(editor.selected.geometry, 0.5).then(simplified => { | ||
selected.geometry = simplified; | ||
}); | ||
} | ||
const editorPlugin = { | ||
@@ -10,6 +25,2 @@ name: 'optimesh', | ||
function editorAction(editor) { | ||
console.log('DUPONATOR!!!', editor); | ||
} | ||
const OptiMesh = { | ||
@@ -16,0 +27,0 @@ meshSimplifier, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
304935
9336