Viewer - Drawing Tools
    Preparing search index...

    Interface IRestriction

    interface IRestriction {
        enabled: boolean;
        hideable: boolean;
        id: string;
        priority: number;
        rotation: { angle: number; axis: vec3 };
        showVisualization: boolean;
        snapRestrictions: { [key: string]: ISnapRestriction };
        type: RESTRICTION_TYPE;
        rayTrace(
            ray: IRay,
            metaData?: RestrictionMetaData,
        ): RestrictionResult | undefined;
        removeVisualization(): void;
    }
    Index

    Properties

    enabled: boolean
    hideable: boolean
    id: string
    priority: number
    rotation: { angle: number; axis: vec3 }
    showVisualization: boolean
    snapRestrictions: { [key: string]: ISnapRestriction }

    Methods

    • Ray trace the restriction. If the ray does not intersect the restriction, the method returns undefined.

      Parameters

      Returns RestrictionResult | undefined

      The intersection point of the ray with the restriction.

    • Remove the visualization of the restriction.

      Returns void