Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface ClippedSegment

    Result of clipping a segment to the current nD slice.

    Segments may:

    • Be fully visible (both endpoints in slice)
    • Be partially visible (clipped to slice boundary)
    • Be invisible (both endpoints outside slice, same side)
    interface ClippedSegment {
        p1: number[];
        p2: number[];
        t1: number;
        t2: number;
        visible: boolean;
    }
    Index
    p1: number[]

    Clipped start position in 3D display space

    p2: number[]

    Clipped end position in 3D display space

    t1: number

    Parameter t at clipped start (0-1, for attribute interpolation)

    t2: number

    Parameter t at clipped end (0-1)

    visible: boolean

    Whether segment should be rendered