Viewer
    Preparing search index...

    Interface IGeometryData

    interface IGeometryData {
        attributeMaterial: IMaterialAbstractData | null;
        boundingBox: IBox;
        castShadow: boolean;
        convertedObject: { [key: string]: unknown };
        effectMaterials: { material: IMaterialAbstractData; token: string }[];
        id: string;
        material: IMaterialAbstractData | null;
        materialVariants: { material: IMaterialAbstractData; variant: number }[];
        mode: PRIMITIVE_MODE;
        morphWeights: number[];
        parentsUpdateVersions: { [key: string]: () => void };
        primitive: IPrimitiveData;
        receiveShadow: boolean;
        renderOrder: number;
        standardMaterial: IMaterialAbstractData | null;
        updateCallback: ((newVersion: string, oldVersion: string) => void) | null;
        updateCallbackConvertedObject:
            | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
            | null;
        version: string;
        clone(): IGeometryData;
        updateVersion(): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    attributeMaterial: IMaterialAbstractData | null
    boundingBox: IBox
    castShadow: boolean
    convertedObject: { [key: string]: unknown }

    The converted object of the tree node.

    effectMaterials: { material: IMaterialAbstractData; token: string }[]
    id: string

    The ID of the tree node data.

    material: IMaterialAbstractData | null
    materialVariants: { material: IMaterialAbstractData; variant: number }[]
    morphWeights: number[]
    parentsUpdateVersions: { [key: string]: () => void }

    The updateVersion functions of all parents of the tree node data.

    primitive: IPrimitiveData
    receiveShadow: boolean
    renderOrder: number
    standardMaterial: IMaterialAbstractData | null
    updateCallback: ((newVersion: string, oldVersion: string) => void) | null

    The update callback for the tree node data. This callback is called when the node is updated, e.g. when the version changes.

    updateCallbackConvertedObject:
        | ((newObj: unknown, oldObj: unknown, viewport: string) => void)
        | null

    The update callback for the converted object of the tree node.

    version: string

    The version of the tree node data. If the version changes, the node data will be marked for an update. A version change can be triggered via updateVersion.

    Methods