IFClite TypeScript API
    Preparing search index...

    Function createViewpoint

    • Create a BCF viewpoint from viewer state

      For visibility:

      • Use hiddenGuids when most entities are visible (defaultVisibility=true, exceptions=hidden)
      • Use visibleGuids when most entities are hidden/isolated (defaultVisibility=false, exceptions=visible)

      Parameters

      • options: {
            bounds?: ViewerBounds;
            camera: ViewerCameraState;
            coloredGuids?: { color: string; guids: string[] }[];
            hiddenGuids?: string[];
            sectionPlane?: ViewerSectionPlane;
            sectionPlanes?: ViewerSectionPlane[];
            selectedGuids?: string[];
            snapshot?: string;
            snapshotData?: Uint8Array<ArrayBufferLike>;
            visibleGuids?: string[];
        }
        • Optionalbounds?: ViewerBounds
        • camera: ViewerCameraState
        • OptionalcoloredGuids?: { color: string; guids: string[] }[]
        • OptionalhiddenGuids?: string[]
        • OptionalsectionPlane?: ViewerSectionPlane
        • OptionalsectionPlanes?: ViewerSectionPlane[]

          Every cutting plane that is on, as the viewer clips with them (several planes keep only what ALL of them keep). Each enabled one becomes an entry of clippingPlanes, in this order. When given it takes the place of sectionPlane.

        • OptionalselectedGuids?: string[]
        • Optionalsnapshot?: string
        • OptionalsnapshotData?: Uint8Array<ArrayBufferLike>
        • OptionalvisibleGuids?: string[]

      Returns BCFViewpoint