IFClite TypeScript API
    Preparing search index...

    Class ViewerNamespace

    bim.viewer — Renderer control, camera, section planes

    Index
    • Add one more cutting plane beside the others and return its id, or null when it was not added: the viewer is at its limit (eight planes), or the plane is not enabled. A single-plane backend replaces its plane and returns null.

      Parameters

      Returns string | null

    • Remove section plane

      Returns void

    • Colorize entities with a hex color string

      Parameters

      Returns void

    • Batch colorize: apply multiple entity-color pairs in a single call

      Parameters

      • batches: { color: string; refs: EntityRef[] }[]

      Returns void

    • Clear selection

      Returns void

    • Fly camera to frame the given entities

      Parameters

      Returns void

    • Every cutting plane on screen. What is kept is what ALL of them keep. A backend that clips with one plane reports it (or none).

      Returns SectionPlane[]

    • Isolate entities (hide everything else)

      Parameters

      Returns void

    • Remove the plane with this id (from getSections() or addSection()); false when there is none.

      Parameters

      • id: string

      Returns boolean

    • Reset color overrides. Omit refs for all; an explicit empty list is a no-op.

      Parameters

      Returns void

    • Reset all visibility to default

      Returns void

    • Set the selection to given entities

      Parameters

      Returns void

    • Set camera state

      Parameters

      Returns void

    • Replace every cutting plane with sections, in order (the first becomes the active one). An empty list clears them all. A single-plane backend applies the first plane that is enabled.

      Parameters

      Returns void

    • Show previously hidden entities

      Parameters

      Returns void