logoalt Hacker News

WillAdamsyesterday at 1:28 PM2 repliesview on HN

One thought --- could you export the file as a structured XML description?

BlockSCAD does this, and I've been thinking about parsing the XML and then using that 3D structure in my own project.


Replies

tmztyesterday at 8:40 PM

If it helps I've been doing a lot of projects with TSX (via OCX) as a file format.

It works nicely for these things because it already supports typed parameters and can be treated as a a raw AST without JS engine.

Its also easy to manipulate with the same library.

fslothyesterday at 2:13 PM

Theoretically, yes, but in practice a structured XML description of a parametric model is not useful in the general case without standardized format.

STEP XML would be probably the closest here.

To be realistic, I might wrap a CLI to AdaShape first, then the user could query the model and have their LLM backport the model tree to something like CadQuery :D

show 1 reply