Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

GLTF export produces bad output #149

@doug-moen

Description

@doug-moen

Describe the bug

  1. If you export a GLTF file with a large number of vertices, the output is corrupted. This appears to be caused by the fact that vertices in the GLTF file are represented using 16 bits, so the output is corrupt if there are more than 65536 vertices.
  2. The GLTF standard states that +Y is the vertical axis, while Curv (and 3MF, and the 3D printing industry) uses +Z as the vertical axis. So possibly the X/Z axes should be swapped when outputting GLTF.

To Reproduce

$ curv -o cube.gltf -Ovsize=0.01 -Ojit -x cube

CC: @lf94 @zeeyang

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions