Expand description
Data import and export between all_is_cubes types and other data formats.
Currently supported formats:
| Format | Extension | Feature | Import | Export | Caveats |
|---|---|---|---|---|---|
| All is Cubes native | .alliscubesjson | "native" | Yes | Yes | Version compatibility not yet guaranteed. |
MagicaVoxel .vox | .vox | "dot-vox" | Yes | Yes | Scene import is buggy. Materials are not exported at all. |
| glTF 2.0 | .gltf | "gltf" | No | Yes | Textures are not yet implemented. Output is suitable for rendering but not necessarily editing due to combined meshes. |
| STL | .stl | "stl" | No | Yes | Meshes are not necessarily “manifold”/“watertight”. |
§Package features
This package defines the following feature flags:
"import": importing/loading."export": exporting/saving."all-formats": Enables all format features.- Features for each supported format as listed in the above table.
"auto-threads": Enables implicit use of threads for parallel processing, including via [rayon]’s global thread pool.
In order to perform any actual operation, the feature for the desired format, and
the appropriate one of "export" or "import", must both be enabled.
Modules§
- file
- File system abstraction, for importing data that does not necessarily
live on the file system that
std::fsaccesses. - gltf
- Export to the glTF 3D file format.
Structs§
- Export
Set - Selection of the data to be exported.
- Import
Error - Fatal errors that may be encountered during an import operation.
Enums§
- Export
Error - Fatal errors that may be encountered during an export operation.
- Format
- File formats that All is Cubes data can be exported to or imported from.
- Import
Error Kind - Specific reason why an import operation failed.
Always contained within an
ImportError.
Functions§
- export_
to_ path - Export data specified by an
ExportSetto a file or files on disk. - load_
universe_ from_ file - Load a
Universedescribed by the given file (of guessed format).