donmccurdy / glTF-Transform

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

weld breaks loose edges #1331

Closed RenaudRohlinger closed 3 months ago

RenaudRohlinger commented 3 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 3 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 3 months ago

Awesome, indeed v4 fixed my issue!