Crate all_is_cubes_port

Crate all_is_cubes_port 

Source
Expand description

Data import and export between all_is_cubes types and other data formats.

Currently supported formats:

FormatExtensionFeatureImportExportCaveats
All is Cubes native.alliscubesjson"native"YesYesVersion compatibility not yet guaranteed.
MagicaVoxel .vox.vox"dot-vox"YesYesScene import is buggy. Materials are not exported at all.
glTF 2.0.gltf"gltf"NoYesTextures are not yet implemented. Output is suitable for rendering but not necessarily editing due to combined meshes.
STL.stl"stl"NoYesMeshes 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::fs accesses.
gltf
Export to the glTF 3D file format.

Structs§

ExportSet
Selection of the data to be exported.
ImportError
Fatal errors that may be encountered during an import operation.

Enums§

ExportError
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.
ImportErrorKind
Specific reason why an import operation failed. Always contained within an ImportError.

Functions§

export_to_path
Export data specified by an ExportSet to a file or files on disk.
load_universe_from_file
Load a Universe described by the given file (of guessed format).