forked from zeux/meshoptimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
js: Expose meshopt_simplifyPoints as meshopt_simplifier @ simplifyPoints
We now support point simplification via a JS interface, both with and without colors. The order of arguments in the JS wrapper is set so that simplification without points can just omit the last 3 arguments, although the resulting order is a little odd when colors *are* supplied. The function returns the point indices; it's up to the application to compact the point streams - for triangle meshes we provide compactMesh, however that only remaps the index buffer. Point vertex data compaction should be easy enough to implement with a JS for loop.
- Loading branch information
Showing
5 changed files
with
114 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters