donmccurdy / glTF-Transform

glTF 2.0 SDK for JavaScript and TypeScript, on Web and Node.js.
https://gltf-transform.dev
MIT License
1.43k stars 150 forks source link

weld breaks loose edges #1331

Closed RenaudRohlinger closed 8 months ago

RenaudRohlinger commented 8 months ago

Hello! Is there a way to keep the original geometry when applying optimize to a glb object that has a Mesh with the Loose Edges options opted in?

Here my glb file for reference: cube_edges.glb.zip

Without using optimize:

image

With optimize:

Screenshot 2024-03-23 at 15 36 56
donmccurdy commented 8 months ago

@RenaudRohlinger it looks like this has already been fixed on the v4 alpha release. If you'd like to give that a try:

npm i -g @gltf-transform/cli@next
RenaudRohlinger commented 8 months ago

Awesome, indeed v4 fixed my issue!