Skip to main content

Crate pointblitz_io

Crate pointblitz_io 

Source
Expand description

PLY stream parser and GPU-ready chunk format for PointBlitz.

The input is a byte slice, never a file path, so the same code runs natively and in wasm (decision 0014). Properties are matched by name, so both skyrecon layouts (XyzRgbNormal, XyzNormalRgb) and the 15-byte layout without normals are read.

  • ply: whole-file reading.
  • stream: incremental reading as bytes arrive.
  • chunk: the 16 B/point chunk format clients copy straight to the GPU (decisions 0008, 0022).
  • slots: slot diff messages, cumulus3d’s v4 point records behind a 32 B header (decision 0052); slots::dir (cargo feature stream) reads a v4 live/stream directory.
  • client (cargo feature client, off by default): the replay-server client used by the native viewer and the video server — never part of the core’s dependency tree (SPEC §3.1).

Re-exports§

pub use ply::Header;
pub use ply::PlyError;
pub use ply::Point;
pub use ply::ScalarType;
pub use ply::is_prefix;
pub use ply::parse_header;
pub use ply::points;
pub use stream::PlyStream;

Modules§

chunk
PointBlitz chunk format v2 (decisions 0008, 0022, 0051): what the server sends and the GPU consumes.
convert
Snapshot → chunks, shared by the replay server and a video server reading local data (decisions 0026, 0050).
ply
Binary little-endian PLY reading for point clouds.
slots
Slot diff messages (decision 0052): cumulus3d’s live diff stream (v4) records, carried as they are behind a 32-byte header.
stream
Incremental PLY reading: bytes arrive in pieces (network, file reads), points come out as soon as their record is complete. Nothing already seen is scanned twice (PR #3 review).