@inweb/viewer-visualize
    Preparing search index...

    Interface IModel

    Model interface.

    interface IModel {
        id: string;
        dispose(): void;
        explode(scale: number, coeff?: number): this;
        hide(handles: string[]): this;
        hideAll(): this;
        highlight(handles: string[]): this;
        isolate(handles: string[]): this;
        show(handles: string[]): this;
        showAll(): this;
        unhighlight(handles: string[]): this;
    }
    Index

    Properties

    id: string

    Unique model ID, used as a model prefix when selecting objects in assemblies (multi-model scenes). Can be:

    • file ID - when loading a file from Open Cloud Server.
    • file name - when loading from local File or URL.
    • user defined - when loading from ArrayBuffer or Data URL.

    Methods

    • Disposes the model and releases allocated resources.

      Returns void

    • Breaks the model into its component objects. To collect it back, use index 0.

      Parameters

      • scale: number
      • Optionalcoeff: number

        Reserved, do not use.

      Returns this

    • Hides the specified objects.

      Parameters

      • handles: string[]

        The list of object handles.

      Returns this

    • Hides all objects.

      Returns this

    • Highlights the specified objects.

      Parameters

      • handles: string[]

        The list of object handles.

      Returns this

    • Isolates the specified objects.

      Parameters

      • handles: string[]

        The list of object handles.

      Returns this

    • Makes the specified objects visible.

      Parameters

      • handles: string[]

        The list of object handles.

      Returns this

    • Makes all objects visible.

      Returns this

    • Unhighlights the specified objects.

      Parameters

      • handles: string[]

        The list of object handles.

      Returns this