Documentation
    Preparing search index...

    Interface DebugGeometrySink

    The part of BufferGeometry applyDebugDrawStreams touches, declared locally because @fourjs/diagnostics has no geometry edge in the frozen §3.1 matrix — the same structural-seam rule as DebugBodyAccess, and the same honest cost: nothing type-checks this declaration against BufferGeometry; a change to those three members fails this package's tests, which mirror the semantics, not its build.

    A BufferGeometry satisfies it as it stands (positions and colors are accessor pairs, markDirty bumps the version). So does any hand-rolled sink with the same three members.

    interface DebugGeometrySink {
        colors: Float32Array<ArrayBufferLike> | undefined;
        positions: Float32Array;
        markDirty(): void;
    }
    Index
    colors: Float32Array<ArrayBufferLike> | undefined

    Per-vertex straight RGBA, or undefined for none. Assigning validates it against the current positions, which is why applyDebugDrawStreams drops it before replacing them.

    positions: Float32Array

    Vertex positions; assigning validates and bumps the version (§85).