cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Update the TJS export format

Open agualdron opened this issue 2 years ago • 3 comments
trafficstars

Issue

The format that uses the TJS exporter is no longer supported by Three.js.

Request

Update the TJS exporter to align with the currently supported format. Refer to the JSON Object Scene format 4 documentation.

This update would allow users to load 3D scenes into Three.js in an online environment.

agualdron avatar May 19 '23 15:05 agualdron

How about adding GLTF support to non-assy exporters instead?

adam-urbanczyk avatar May 21 '23 17:05 adam-urbanczyk

that would be better instead! currently, is there a way to export to GLTF?

agualdron avatar May 24 '23 12:05 agualdron

Yes, via cq.Assembly, something like this should work:

cq.Assembly().add(obj).save('filename.gltf')

adam-urbanczyk avatar May 25 '23 06:05 adam-urbanczyk