Homesplat-transform API Reference - v3.0.0
    Preparing search index...

    Function bakeTransform

    • Bake a source's pending coordinate-space transform into a target space, lazily and per chunk — the streaming analog of convertToSpace.

      Computes delta = targetSpace⁻¹ · meta.transform once; each read delegates to the parent (filling the caller's buffers with raw data) and then applies delta in place to whichever layers were requested, exactly as transformColumns does for a DataTable:

      • position — full TRS via transformPoint
      • geometric — compose the rotation onto the quaternion; add log(scale) to the log-scales
      • color — rotate the SH rest coefficients (DC is unaffected)
      • other — untouched (user data, not coordinate-dependent)

      The returned source reports meta.transform = targetSpace (its data is now baked). Consumers (writers, GPU feeds) wrap their input with this once and never reimplement transform handling.

      Parameters

      • src: ChunkSource

        The parent source.

      • targetSpace: Transform

        The coordinate space to bake into (e.g. Transform.PLY).

      Returns ChunkSource

      A derived source whose reads yield data in targetSpace.