Skip to main content

Crate draco_io

Crate draco_io 

Source
Expand description

Low-level format I/O and glTF binary contracts for Draco.

Full glTF documents, scene preservation, compression and compact views live in draco-gltf. This crate intentionally owns only container/resource and accessor-to-geometry primitives.

Re-exports§

pub use fbx_options::FbxByteOrder;fbx-reader
pub use fbx_options::FbxDecodeLimits;fbx-reader
pub use fbx_options::FbxReadOptions;fbx-reader
pub use fbx_reader::FbxMemoryReader;fbx-reader
pub use fbx_reader::FbxReader;fbx-reader
pub use fbx_render_mesh::FbxGeometryLayers;fbx-reader or fbx-writer
pub use fbx_render_mesh::FbxRenderLayer;fbx-reader or fbx-writer
pub use fbx_render_mesh::FbxRenderMesh;fbx-reader or fbx-writer
pub use fbx_writer::FbxFormat;fbx-writer
pub use fbx_writer::FbxWriter;fbx-writer
pub use gltf_container::decode_data_uri;gltf-container
pub use gltf_container::inspect_glb;gltf-container
pub use gltf_container::parse_glb_json_and_bin;gltf-container
pub use gltf_container::parse_gltf_container;gltf-container
pub use gltf_container::resolve_gltf_buffers;gltf-container
pub use gltf_container::resolve_resource_uri;gltf-container
pub use gltf_container::ExternalFilePolicy;gltf-container
pub use gltf_container::FileResourceResolver;gltf-container
pub use gltf_container::GlbChunkDescriptor;gltf-container
pub use gltf_container::GlbLayout;gltf-container
pub use gltf_container::GlbRangeReader;gltf-container
pub use gltf_container::GltfBufferReference;gltf-container
pub use gltf_container::GltfContainer;gltf-container
pub use gltf_container::GltfContainerFormat;gltf-container
pub use gltf_container::ResourceLimits;gltf-container
pub use gltf_container::ResourceResolver;gltf-container
pub use gltf_geometry::decode_geometry;gltf-geometry
pub use gltf_geometry::AccessorSource;gltf-geometry
pub use gltf_geometry::DecodedAccessor;gltf-geometry
pub use meshopt::MeshoptFilter;gltf-container
pub use meshopt::MeshoptMode;gltf-container
pub use obj_reader::ObjReader;obj-reader
pub use obj_writer::ObjWriter;obj-writer
pub use ply_format::PlyFormat;
pub use ply_reader::PlyReader;ply-reader
pub use ply_writer::PlyWriter;ply-writer
pub use traits::PointCloudReader;
pub use traits::PointCloudWriter;
pub use traits::ReadFromBytes;
pub use traits::Reader;
pub use traits::WriteToBytes;
pub use traits::Writer;

Modules§

fbx_asciifbx-reader
FBX ASCII container reader. Reader for the ASCII FBX container.
fbx_containerfbx-reader
FBX binary container decoder. FBX binary container decoder: bytes in, a tree of FbxNode out.
fbx_nodefbx-reader or fbx-writer
The FBX document tree: what both containers decode to and encode from.
fbx_optionsfbx-reader
Byte order, resource limits, and read options for the FBX reader. Byte order, resource limits, and read options for the FBX binary reader.
fbx_readerfbx-reader
FBX binary reader. FBX scene reader: a tree of FbxNode in, an FbxScene out.
fbx_render_meshfbx-reader or fbx-writer
Polygon-corner-domain expansion of FBX geometry. Polygon-corner-domain expansion of an FbxMeshInstance.
fbx_writerfbx-writer
FBX binary writer. FBX binary format writer for meshes, materials, textures, and TRS animation.
gltf_containergltf-container
glTF/GLB containers and resource resolution. Shared glTF/GLB container and resource handling.
gltf_geometrygltf-geometry
Reader-agnostic accessor and Draco geometry contracts. Reader-agnostic glTF geometry decoding.
meshoptgltf-container
EXT_meshopt_compression bitstream decoders. Decoders for the EXT_meshopt_compression bitstreams.
obj_readerobj-reader
Wavefront OBJ reader. OBJ format reader for meshes and point clouds.
obj_writerobj-writer
Wavefront OBJ writer. OBJ format writer for meshes and point clouds.
ply_format
PLY format configuration.
ply_readerply-reader
PLY reader. PLY format reader for meshes and point clouds.
ply_writerply-writer
PLY writer. PLY format writer for meshes and point clouds.
traits
Shared reader and writer traits. Common traits for geometry readers and writers.

Structs§

FbxAnimChannelfbx-reader or fbx-writer
One animation channel: drives one TRS path or blend-shape weight.
FbxAnimSamplerfbx-reader or fbx-writer
One animation sampler (a flat TRS or morph-weight track).
FbxAnimationfbx-reader or fbx-writer
One animation take (derived from an AnimationStack + its first layer).
FbxCamerafbx-reader or fbx-writer
An FBX Camera node attribute.
FbxCreaseLayerfbx-reader or fbx-writer
A preserved FBX LayerElementEdgeCrease or LayerElementVertexCrease.
FbxGlobalSettingsfbx-reader or fbx-writer
Source FBX global coordinate, unit, and display-time settings retained for FBX-to-FBX provenance exports. This is intentionally not part of the portable SceneDocument contract.
FbxLayerSetfbx-reader or fbx-writer
A preserved FBX layer element carrying N float components per value.
FbxLightfbx-reader or fbx-writer
An FBX Light node attribute.
FbxMaterialfbx-reader or fbx-writer
Material object extracted from an FBX Material node.
FbxMeshInstancefbx-reader or fbx-writer
Geometry attached to one FbxSceneNode.
FbxMeshLayersfbx-reader or fbx-writer
The layer elements preserved from one FBX geometry node.
FbxMorphTargetfbx-reader or fbx-writer
One sparse FBX blend-shape target.
FbxNodeIdfbx-reader or fbx-writer
Stable, document-local identifier for an FBX model node.
FbxScenefbx-reader or fbx-writer
Hierarchy, geometry, materials, and animation extracted from or written to FBX.
FbxSceneNodefbx-reader or fbx-writer
A node in a hierarchy extracted from or written to FBX Model connections.
FbxSkinfbx-reader or fbx-writer
Skinning data attached to a mesh instance.
FbxSkinClusterfbx-reader or fbx-writer
All influences from one joint onto a mesh’s control points.
FbxSmoothingLayerfbx-reader or fbx-writer
A preserved FBX LayerElementSmoothing.
FbxTangentSetfbx-reader or fbx-writer
A preserved FBX LayerElementTangent or LayerElementBinormal.
FbxTexturefbx-reader or fbx-writer
Texture object extracted from an FBX Texture / Video pair.
FbxTextureBindingfbx-reader or fbx-writer
Bind a FbxTexture to a slot of a material.
FbxTransformfbx-reader or fbx-writer
Local transform extracted from or written to an FBX model node.
FbxTransformStackfbx-reader or fbx-writer
Source Model transform-stack properties required to reproduce FBX local animation semantics. Values remain in authored FBX units and degrees.
FbxWarningfbx-reader or fbx-writer
One non-fatal notice raised while reading an FBX document.

Enums§

FbxAnimChannelPathfbx-reader or fbx-writer
Animated TRS property of a node.
FbxAnimInterpolationfbx-reader or fbx-writer
Coarse interpolation kind decoded from KeyAttrFlags.
FbxCreaseKindfbx-reader or fbx-writer
Which domain a FbxCreaseLayer sharpens.
FbxNodeAttributefbx-reader or fbx-writer
What a NodeAttribute attached to a scene node describes.
FbxTextureSlotfbx-reader or fbx-writer
Texture slot targeted by an FbxTextureBinding.
FbxWarningCodefbx-reader or fbx-writer
What kind of deviation or loss a FbxWarning describes.
GltfErrorgltf-container
Errors that can occur when reading, transforming, or decoding glTF data.

Type Aliases§

FbxBinormalSetfbx-reader or fbx-writer
A preserved FBX LayerElementBinormal.
FbxColorSetfbx-reader or fbx-writer
A preserved FBX LayerElementColor.
FbxNormalSetfbx-reader or fbx-writer
A preserved FBX LayerElementNormal.
FbxUvSetfbx-reader or fbx-writer
A preserved FBX LayerElementUV.