Repository navigation
OpenSKP 0.5.0
OpenSKP 0.5.0 writes SketchUp files: 2026 and 2017, authored from a model or edited in place.
Writing
Model::writeandModel::write_2017author either container from any model. SketchUp Make 2017 and SketchUp for Web open the results.Document(2026) andDocument17(2017) reproduce an unedited file byte for byte, and edit vertices, transforms, visibility and material colors in place.WriteEnvfixes the save time and seed, so the same input writes the same bytes, including on WebAssembly.
Reading
- 2017 files are read by a whole-file grammar. Every 2017 corpus file reproduces byte for byte from it.
- New on both containers: radial dimensions, 3D polylines, placed images, matched photos, sketchy edges, thumbnails, classifications, and attribute dictionaries on every object.
- A 2017 file with tens of thousands of entity lists no longer spends over a minute resolving them.
CLI and C ABI
openskpgainsconvert,verifyandcopy, with exit status 0, 1 for a file error, and 2 for a usage error. Install it withcargo install openskp-cli.- The C ABI gains
openskp_writeandopenskp_write_2017.
Upgrading from 0.4
Materialopacityis now one minus the stored transparency. 0.4 returned the stored value, so translucent materials read differently.- Public structs,
Materialvariants andDiagnosticgain fields and variants. Struct literals and exhaustive matches must add them; most types now implementDefault. - Guide, texture-size and attribute values are no longer rounded to five decimals.
- The CLI rejects unknown options and extra arguments.
openskp = "0.5"