donmccurdy / donmccurdy/glTF-Transform

Expose `simplify` flags

Open
#1,706 5 comments 0 reactions 0 assignees View on GitHub
feature help wanted package:functions
Dominant language
TypeScript
Stars
2k
Forks
206
Avg merge
2d 2h
Merged PRs (30d)
16

Description

Hello @donmccurdy

I would like to start supporting the [latest meshoptimizer 0.25](https://github.com/zeux/meshoptimizer/releases/tag/v0.25) version while still using the gltf-transform API to handle everything around it.

For that I believe the `simplifyPrimitive` function needs to expose the [flags array](https://github.com/zeux/meshoptimizer/blob/d24a3e5e1e012233e0953b033cd9c2c9a84436ef/demo/simplify.html#L483):

Image

Contributor guide

Open the contributing guide

Research direction

Start at the simplifyPrimitive API and compare its current options with the meshoptimizer 0.25 simplify flags shown in the linked demo. Confirm how the flags should be exposed through the TypeScript API, then verify that callers can pass them and that the existing simplification behavior remains covered by the relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.