Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

optimesh

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optimesh - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc