Expand description
glTF, OpenUSD, and OGC 3D Tiles scene interchange adapters.
openusd provides in-memory stages plus USDA ASCII mesh export/import.
tiles3d provides deterministic OGC 3D Tiles 1.1 point-cloud tilesets
(tileset.json + pnts payloads). Native libusd bindings remain optional
and outside the default tree.
Structs§
- Built
Tile - One generated tile payload paired with its content URI.
- Built
Tileset - A validated tileset plus its
pntspayloads. - Copc
Tileset Options - Options controlling COPC → 3D Tiles export.
- Memory
UsdStage Adapter - In-memory USD stage adapter (no OpenUSD native dependency).
- Pnts
Feature Table - Feature-table data carried by one
pntstile. - Tile
- One tile in a 3D Tiles hierarchy.
- Tile
Content - Content reference for a tile.
- Tileset
- Root document of a 3D Tiles tileset.
- Tileset
Builder Options - Options controlling octree construction.
- Tileset
Write Receipt - Receipt for a written 3D Tiles tileset.
- UsdPrim
Path - Hierarchical USD prim path.
- UsdStage
Description - Host-side USD stage description used before optional bindings land.
Enums§
- Bounding
Volume - Bounding volume for a tile.
- Interchange
Error - Failures converting scenes to/from interchange formats.
- Refinement
- Supported refinement policy for a tile.
Traits§
- UsdStage
Adapter - Adapter interface for composing / exporting OpenUSD stages.
Functions§
- build_
point_ tileset - Builds a deterministic octree tileset from interleaved positions.
- decode_
pnts - Decodes a complete
pntstile into its feature table. - decode_
triangle_ mesh_ gltf_ json - Decodes a SpatialRust-exported glTF JSON mesh with embedded base64 buffers.
- encode_
pnts - Encodes a feature table into a complete
pntstile (header + JSON + binary). - export_
copc_ tileset - Exports a COPC file into a 3D Tiles 1.1 tileset without materializing the whole cloud. Returns the byte/point/tile receipt.
- export_
stage_ usda - Exports all meshes from a memory stage as a single USDA ASCII document.
- export_
triangle_ mesh_ gltf_ json - Exports a triangle mesh to a minimal glTF 2.0 JSON document (embedded base64 positions/indices).
- import_
mesh_ from_ usda - Imports the first SpatialRust-authored Mesh prim from USDA ASCII.
- import_
triangle_ mesh_ gltf_ json - Imports vertex/index counts from a SpatialRust-exported glTF JSON fragment.
- parse_
tileset_ json - Parses and validates a 3D Tiles 1.1
tileset.jsonstring. - serialize_
tileset_ json - Serializes a tileset to a 3D Tiles 1.1
tileset.jsonstring. - write_
point_ tileset - Writes a built tileset to
dirastileset.jsonplus one.pntsfile per tile.
Type Aliases§
- Interchange
Result - Result type for interchange adapters.