Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exported GLTF file is broken #1154

Closed
njourdane opened this issue Sep 14, 2022 · 1 comment
Closed

Exported GLTF file is broken #1154

njourdane opened this issue Sep 14, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@njourdane
Copy link

njourdane commented Sep 14, 2022

I try to export a simple gltf file of an assembly:

box = cq.Workplane().box(1, 2, 3)
asm = cq.Assembly().add(box)
cq.Assembly().add(box).save('box.gltf')

The script outputs:

RWGltf_CafWriter skipped node 'c44caed6-33fd-11ed-94b0-bf8faf8ebb27_part' without triangulation data

And the file seems broken. When I try to import it:

  • in this gltf web viewer, it fails with the error i is undefined;
  • in this other viewer, it fails with unknown error;
  • in this other viewer, it fails with a json parsing error,
  • with Blender, it doesn't fail but the model doesn't appear in the scene (only in the tree view).

Same errors if I set the output format explicitly with exportType='GLTF'.

@lorenzncode
Copy link
Member

Duplicate of #993

@lorenzncode lorenzncode marked this as a duplicate of #993 Sep 19, 2022
@adam-urbanczyk adam-urbanczyk added the duplicate This issue or pull request already exists label Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants