js: Expose new simplification options

Note that this change doesn't rebuild the Wasm bundle; the options
should just work once that is done.
This commit is contained in:
Arseny Kapoulkine
2024-06-14 14:08:49 -07:00
parent db26310289
commit df42d10c3a
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -155,6 +155,8 @@ var MeshoptSimplifier = (function() {
var simplifyOptions = {
LockBorder: 1,
Sparse: 2,
ErrorAbsolute: 4,
};
return {
+1 -1
View File
@@ -1,6 +1,6 @@
// This file is part of meshoptimizer library and is distributed under the terms of MIT License.
// Copyright (C) 2016-2024, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
export type Flags = "LockBorder";
export type Flags = "LockBorder" | "Sparse" | "ErrorAbsolute";
export const MeshoptSimplifier: {
supported: boolean;
+2
View File
@@ -154,6 +154,8 @@ var MeshoptSimplifier = (function() {
var simplifyOptions = {
LockBorder: 1,
Sparse: 2,
ErrorAbsolute: 4,
};
return {