IFClite TypeScript API
    Preparing search index...

    Function decodeAsciiPoints

    • Decode an entire ASCII point file into a single DecodedPointChunk.

      For multi-gigabyte scans the streaming source (AsciiPointsStreamingSource) should be preferred — this path materialises everything in memory.

      Per-channel handling:

      • Intensity: if any value > 1.0, treat the column as 0..255 and scale to u16. Otherwise treat as 0..1 and scale to u16. Mixed ranges within one file are uncommon; we make the call once.
      • RGB: if any channel > 1.0, treat the columns as 0..255. Else 0..1.

      Parameters

      • bytes: Uint8Array
      • format: AsciiPointsFormat
      • OptionaloriginOffset: readonly [number, number, number]

        Native (X, Y, Z)-axis offset subtracted from each decoded point in f64, BEFORE narrowing to the Float32Array (extends #1804's LAS/LAZ pattern — see decodeLasPoints's originOffset doc). PTS/XYZ files routinely carry GNSS/total-station survey coordinates at ~1e6-1e7 m magnitude. undefined (the default) subtracts nothing, preserving prior behaviour byte-for-byte.

      Returns DecodedPointChunk