tiles_io – 3D Tiles Reader¶
3D Tiles (OGC) reader for tilesets containing Gaussian-splatting content.
Traverses a tileset.json (local file or HTTP/HTTPS URL), fetches each tile’s
glTF/GLB content, and returns Tile3DContent objects.
Supports both content.uri (single content) and contents (3D Tiles 1.1
multi-content). Only explicit (non-implicit) tiling and cumulative
transform matrices are implemented.
- class 3dgs_io.tiles_io.BoundingVolumeBox(center, half_axes)¶
Bases:
objectA bounding volume defined as an oriented box.
- static from_list(values)¶
Construct from the 12-element array used in 3D Tiles JSON.
- Return type:
- class 3dgs_io.tiles_io.BoundingVolumeRegion(west, south, east, north, min_height, max_height)¶
Bases:
objectA bounding volume defined as a geographic region.
Longitude and latitude values are in radians; heights are in metres above the WGS 84 ellipsoid.
- static from_list(values)¶
Construct from the 6-element array used in 3D Tiles JSON.
- Return type:
- class 3dgs_io.tiles_io.BoundingVolumeSphere(center, radius)¶
Bases:
objectA bounding volume defined as a sphere.
- static from_list(values)¶
Construct from the 4-element array used in 3D Tiles JSON.
- Return type:
- class 3dgs_io.tiles_io.Tile3DContent(cloud, transform, content_uri, geometric_error=0.0, refine='REPLACE', bounding_volume=None)¶
Bases:
objectA single loaded camera 3DGS tile from a 3D Tileset.
-
cloud:
GaussianCloud¶ Gaussian cloud decoded from the tile’s glTF content (tile-local coords).
-
bounding_volume:
BoundingVolumeBox|BoundingVolumeRegion|BoundingVolumeSphere|None= None¶ Parsed bounding volume from the tileset (box, region, or sphere).
-
cloud:
- 3dgs_io.tiles_io.load_tileset(source, *, max_tiles=None, leaves_only=True)¶
Load a 3D Tileset and return its tiles.
- Parameters:
source (
str|Path) – Local path or HTTP(S) URL to atileset.jsonfile.max_tiles (
Optional[int]) – Optional cap on the number of tiles loaded (useful for large tilesets).leaves_only (
bool) – WhenTrue(default), only tiles without children are loaded. WhenFalse, every tile that has acontententry is loaded.
- Return type:
A list of
Tile3DContent.
- 3dgs_io.tiles_io.merge_tileset(tiles)¶
Merge loaded tiles into a single GaussianCloud with world-space positions.
Applies each tile’s cumulative
transformto positions and rotations. Scales and other attributes are copied as-is.- Return type:
GaussianCloud