Skip to content

OpenSKP 0.5.0

Choose a tag to compare

@granroth granroth released this 11 Oct 23:05
· 17 commits to main since this release

OpenSKP 0.5.0 writes SketchUp files: 2026 and 2017, authored from a model or edited in place.

Writing

  • Model::write and Model::write_2017 author either container from any model. SketchUp Make 2017 and SketchUp for Web open the results.
  • Document (2026) and Document17 (2017) reproduce an unedited file byte for byte, and edit vertices, transforms, visibility and material colors in place.
  • WriteEnv fixes 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

  • openskp gains convert, verify and copy, with exit status 0, 1 for a file error, and 2 for a usage error. Install it with cargo install openskp-cli.
  • The C ABI gains openskp_write and openskp_write_2017.

Upgrading from 0.4

  • Material opacity is now one minus the stored transparency. 0.4 returned the stored value, so translucent materials read differently.
  • Public structs, Material variants and Diagnostic gain fields and variants. Struct literals and exhaustive matches must add them; most types now implement Default.
  • Guide, texture-size and attribute values are no longer rounded to five decimals.
  • The CLI rejects unknown options and extra arguments.
openskp = "0.5"