pointblitz_io/lib.rs
1//! PLY stream parser and GPU-ready chunk format for PointBlitz.
2//!
3//! The input is a byte slice, never a file path, so the same code runs natively and in wasm
4//! (decision 0014). Properties are matched by name, so both skyrecon layouts
5//! (`XyzRgbNormal`, `XyzNormalRgb`) and the 15-byte layout without normals are read.
6//!
7//! - [`ply`]: whole-file reading.
8//! - [`stream`]: incremental reading as bytes arrive.
9//! - [`chunk`]: the 16 B/point chunk format clients copy straight to the GPU (decisions 0008, 0022).
10//! - [`slots`]: slot diff messages, cumulus3d's v4 point records behind a 32 B header (decision
11//! 0052); `slots::dir` (cargo feature `stream`) reads a v4 `live/stream` directory.
12//! - `client` (cargo feature `client`, off by default): the replay-server client used by the native
13//! viewer and the video server — never part of the core's dependency tree (SPEC §3.1).
14
15pub mod chunk;
16#[cfg(feature = "client")]
17pub mod client;
18pub mod convert;
19pub mod ply;
20pub mod slots;
21pub mod stream;
22
23pub use ply::{Header, PlyError, Point, ScalarType, is_prefix, parse_header, points};
24pub use stream::PlyStream;