Class LocalBIMRendererAbstract

BIM renderer that performs the render process in-browser

Hierarchy

Constructors

Accessors

alignment allowPicking2DElements animations assetsBasePath autoCameraResetAfterModelLoaded baseCanvas bimctServerBasePath canvasCursor clipping comparisonViewer contextMenu contextMenuEvent currentFPS designTreeWindow displayFormat divElement dynamicElements elements filterElementsWindow gpuInfo guiActionsLockedEvent hasComparisonViewer hasContextMenu hasDesignTreeWindow hasFilterElementsWindow hasHomeToolbar hasLeftToolbar hasMessageWindow hasMinimapViewer hasPropertiesWindow hasSelectionLabelEnabled hasSettingsWindow hasShareWindow hasSnapshotWindow hasTimeChangerWindow hasToolbar hasTouchWidget hasViewsManager hasWebXRWindow homeToolbar inputHandler isDrawing isRotatingOrPanning languageChangedEvent leftToolbar mapPositionsChangeEvent measurementSystem measurements measurementsPointPushBackEvent measurementsSelectedEvent measurementsUpdatedEvent messageWindow metadataAccessor minimapViewer modelLoadedEvent modelRemovedEvent mouseRightClickedEvent overlay pickLines pickLinesUpdatedEvent pinClickedEvent pinDehighlightedEvent pinHighlightedEvent pinInsertEvent pinMovedEvent pins propertiesWindow renderingContext resizedEvent sceneState selectedElementIds selectedElementInternalIds selectedElements selectionChangeEvent sensors settingsChangedEvent settingsWindow shadingMode shareWindow showProgressWhileModelLoading snappingEnabled snapshotWindow state stateChangedEvent timeChangedEvent toolbar touchWidget transformationGismo viewsManager visibilityChangeEvent webXRWindow xrChangedEvent xrPanels xrPreviewToCanvas

Methods

BR3D_AddDynamicElement BR3D_AddElement BR3D_AddElementFace BR3D_AddElementLinePattern BR3D_AddElementLinePatternVertices BR3D_AddModel BR3D_AddPointCloud BR3D_AddSensor BR3D_AddSensorChannel BR3D_AddSensorGroup BR3D_AddSensorGroupElement BR3D_AddTexture BR3D_AddTextureElement BR3D_AddTextureElementRaster BR3D_AntiAliasingGetMode BR3D_AntiAliasingSetMode BR3D_AttachDrawingToMinimap BR3D_CameraCompassHover BR3D_CameraCubeHover BR3D_ChangeDynamicElement BR3D_ChangeDynamicElementBillboardActive BR3D_ChangeDynamicElementBillboardTexture BR3D_ChangeDynamicElementColor BR3D_ChangeDynamicElementTranformation BR3D_ChangeDynamicElementTranformations BR3D_ChangeDynamicElementTransparency BR3D_CheckMeasurementPolygon BR3D_ClearElementsHighLight BR3D_ClearMeasurement BR3D_ClearSelectedIDs BR3D_ClearSelectedMeasurements3DIDs BR3D_ClearSelectedMeasurements3DPointIDs BR3D_CloseMeasurement BR3D_ComputeClosestPointAndOutlineStructure BR3D_ComputeClosestPointAndOutlineStructureAsync BR3D_ComputeNormals BR3D_ConvertFromDXToOpenGL BR3D_CreateMeasurement BR3D_CreateMinimap BR3D_Debug_GetElementModelId BR3D_Debug_GetElementNameSize BR3D_Debug_GetNumberOfElements BR3D_DeleteMeasurementPoint BR3D_DestroyMinimap BR3D_EditTextureElement BR3D_EndComputingNormals BR3D_ForceMinimapRender BR3D_Generate2DDrawingID BR3D_Generate2DDrawingIDCustom BR3D_Get2DDrawingBackground BR3D_Get2DDrawingCameraBox BR3D_Get2DDrawingCameraUVW BR3D_Get2DDrawingData BR3D_Get2DDrawingDefaultDrawingTypeInfo BR3D_Get2DDrawingDimensions BR3D_Get2DDrawingFontColor BR3D_Get2DDrawingTypeInfo BR3D_Get2DDrawingZoomOutPercentage BR3D_GetActiveMinimapCameraParameters BR3D_GetActiveMinimapData BR3D_GetActiveMinimapID BR3D_GetActiveMinimapOpacity BR3D_GetActiveMinimapWindowPosition BR3D_GetActiveMinimapWindowThicknessParameters BR3D_GetAll2DDrawingIDs BR3D_GetAllMinimapIDs BR3D_GetAllTextureElementIDs BR3D_GetAmbientColor BR3D_GetAmbientOcclusionQuality BR3D_GetArea BR3D_GetBackfaceCulling BR3D_GetBackgroundImage BR3D_GetBoundingBoxPixelCenter BR3D_GetCameraCubeDimensions BR3D_GetCameraCubeVisible BR3D_GetCameraState BR3D_GetClosestNormalToPoint BR3D_GetClosestPoint BR3D_GetClosestPointAndOutline BR3D_GetClosestSegment BR3D_GetCurrentCameraAngularSpeed BR3D_GetCurrentCameraLinearSpeed BR3D_GetCurrentCameraProjectionType BR3D_GetCurrentCameraProjectionTypeSync BR3D_GetCurrentCameraState BR3D_GetCurrentCameraType BR3D_GetCurrentCameraZoomBlendFactors BR3D_GetCurrentCameraZoomSpeed BR3D_GetCursorFromWorldSpacePosition3D BR3D_GetCursorFromWorldSpacePosition3DSync BR3D_GetCursorWorldSpacePosition3D BR3D_GetCursorWorldSpacePositionNoDepth3D BR3D_GetCursorWorldSpacePositionNoDepth3DSync BR3D_GetCuttingPlaneParameters BR3D_GetCuttingPlaneVisualizationParameters BR3D_GetElementArea BR3D_GetElementFirstColor BR3D_GetElementIDFromFromFullID BR3D_GetElementPerimeter BR3D_GetElementPixelCenter BR3D_GetElementsArea BR3D_GetElementsBoundingBox BR3D_GetElementsBoundingBoxDistance BR3D_GetElementsHighLightedIDs BR3D_GetElementsIDs BR3D_GetElementsSelectionMode BR3D_GetElementsVolume BR3D_GetEnhancedSilhouetteHideThreshold BR3D_GetFaceFirstNormal BR3D_GetFaceIDFromFromElementID BR3D_GetFacesArea BR3D_GetFacesBoundingBox BR3D_GetGlobalClosestPoint BR3D_GetGlobalClosestSegment BR3D_GetGlobalIDFromElementsID BR3D_GetGlobalMeasurementXRayMode BR3D_GetGlobalPointCloudPointSize BR3D_GetGlobalTransparencyValue BR3D_GetGridExpansionFactor BR3D_GetGridLevelAttributes BR3D_GetGridLevelColor BR3D_GetGridUOM BR3D_GetGridVisibilityStatus BR3D_GetGroundSurfaceShadowRecomputeState BR3D_GetGroundSurfaceShadowState BR3D_GetLastSegmentLength BR3D_GetLengthFromPixelSize BR3D_GetLineFadeOut BR3D_GetLinePatternThickness BR3D_GetMeasurement3DData BR3D_GetMeasurement3DDataSize BR3D_GetMeasurement3DPreviewColor BR3D_GetMeasurementDrawOrder BR3D_GetMeasurementFillColor BR3D_GetMeasurementFillPattern BR3D_GetMeasurementLineColor BR3D_GetMeasurementLineWidth BR3D_GetMeasurementPointAt BR3D_GetMeasurementPointColor BR3D_GetMeasurementPointSize BR3D_GetMeasurementPointsSize BR3D_GetMeasurementPreviewMode BR3D_GetMeasurementSegmentIDs BR3D_GetMeasurementVisualizationMode BR3D_GetMeasurementXRayMode BR3D_GetMeasurementsBoundingBox BR3D_GetNum2DDrawings BR3D_GetNumMinimaps BR3D_GetNumTextureElements BR3D_GetOutlineElementColorVisualization BR3D_GetOutlineShadedThickness BR3D_GetOutlineThickness BR3D_GetPaperColor BR3D_GetPointAdjacentPointIDs BR3D_GetPointCloudBoundingBox BR3D_GetPointCloudPointSize BR3D_GetPointCloudVisibility BR3D_GetPointPosition BR3D_GetSSAOHideThreshold BR3D_GetSceneBoundingBox BR3D_GetSegmentLength BR3D_GetSegmentPointIDs BR3D_GetSelectedIDs BR3D_GetSelectedMeasurements3DIDs BR3D_GetSelectedMeasurements3DPointIDs BR3D_GetSelectiveOutlineRendering BR3D_GetSelectiveRenderingMode BR3D_GetShadingOption BR3D_GetSunLightingLensFlare BR3D_GetSunLightingLensFlareSunOnly BR3D_GetSunLightingProperties BR3D_GetTextureElementActive BR3D_GetTextureElementParameters BR3D_GetTotalLength BR3D_GetTransformGizmoHoverColor BR3D_GetTransformGizmoPosition BR3D_GetTransformGizmoRotationOffset BR3D_GetTransformGizmoScreenSize BR3D_GetTransformGizmoTransformState BR3D_GetTransformGizmoVisibilityState BR3D_GetVisibleElementsBoundingBox BR3D_HiddenLineGetColor BR3D_HiddenLineSetColor BR3D_InsertMeasurementPoint BR3D_IsActiveMinimapOffscreenRenderingEnabled BR3D_IsCameraCompassClicked BR3D_IsCameraCompassDragging BR3D_IsCameraCompassVisible BR3D_IsCameraCubeClicked BR3D_IsCameraTransitioning BR3D_IsDynamicElement BR3D_IsElementVisible BR3D_IsMeasurementClosed BR3D_IsPointControlPoint BR3D_IsSunVisible BR3D_LoadMeasurement3DData BR3D_MergeFaceAndElementID BR3D_MirrorMeasurement BR3D_MirrorMeasurementPivotPoint BR3D_MirrorMeasurements BR3D_MirrorMeasurementsOnPlane BR3D_MoveMeasurement BR3D_MoveMeasurementPoint BR3D_MoveMeasurementPointOverPlaneWithSnapping BR3D_MoveMeasurementPointWithSnapping BR3D_MoveMeasurementSegment BR3D_MoveMeasurements BR3D_PushBackMeasurementPoint BR3D_QuickCorner BR3D_QuickEdgePoint BR3D_QuickMeasurement BR3D_Remove2DDrawing BR3D_RemoveDynamicElement BR3D_RemoveElement BR3D_RemoveMeasurement BR3D_RemoveModel BR3D_RemovePointCloud BR3D_RemoveSensor BR3D_RemoveSensorChannel BR3D_RemoveSensorGroup BR3D_RemoveSensorGroupElement BR3D_RemoveTexture BR3D_RemoveTextureElement BR3D_Render2DDrawing BR3D_Reset2DDrawingTypes BR3D_ResetCameras BR3D_RevertElementsColor BR3D_RevertMeasurementPointIdsGenBack BR3D_RotateMeasurement BR3D_RotateMeasurementPivotPoint BR3D_RotateMeasurements BR3D_RotateMeasurementsOnPlane BR3D_RubberbandSelectElements BR3D_RubberbandSelectMeasurementPoints BR3D_RubberbandSelectMeasurements BR3D_ScaleMeasurement BR3D_ScanSnapshotSessionCreate BR3D_ScanSnapshotSessionDestroy BR3D_ScanSnapshotSessionGetTemplateImage BR3D_ScanSnapshotSessionNextImage BR3D_ScanSnapshotSessionProgress BR3D_SelectCuttingPlane BR3D_SelectMeasurement BR3D_Set2DDrawingBackground BR3D_Set2DDrawingDefaultDrawingType BR3D_Set2DDrawingFontColor BR3D_Set2DDrawingFontName BR3D_Set2DDrawingType BR3D_Set2DDrawingZoomOutPercentage BR3D_SetActiveMinimapCameraParameters BR3D_SetActiveMinimapID BR3D_SetActiveMinimapOffscreenRendering BR3D_SetActiveMinimapOpacity BR3D_SetActiveMinimapWindowPosition BR3D_SetActiveMinimapWindowThicknessParameters BR3D_SetActiveSensorChannel BR3D_SetActiveSensorChannelMode BR3D_SetAmbientColor BR3D_SetAmbientOcclusionQuality BR3D_SetAngleToTrueNorth BR3D_SetBackfaceCulling BR3D_SetBackgroundColors BR3D_SetBackgroundImage BR3D_SetBillboardPresort BR3D_SetCameraCompassVisible BR3D_SetCameraCubeDimensions BR3D_SetCameraCubeHoverColor BR3D_SetCameraCubeRenderOnlyRotationArrows BR3D_SetCameraCubeVisible BR3D_SetCameraTransition BR3D_SetCameraTransitionArbitrary BR3D_SetCameraTransitionByBBox BR3D_SetCurrentCamera BR3D_SetCurrentCameraAngularSpeed BR3D_SetCurrentCameraLinearSpeed BR3D_SetCurrentCameraPosition BR3D_SetCurrentCameraPositionAngles BR3D_SetCurrentCameraState BR3D_SetCurrentCameraZoomBlendFactors BR3D_SetCurrentCameraZoomSpeed BR3D_SetCuttingPlaneParameters BR3D_SetCuttingPlaneVisualizationParameters BR3D_SetDynamicElementOutlines BR3D_SetElementOutlines BR3D_SetElementVertices BR3D_SetElementsColor BR3D_SetElementsHighlight BR3D_SetElementsHybridState BR3D_SetElementsSelectionMode BR3D_SetElementsVisibility BR3D_SetEnhancedSilhouetteSSAOHideThreshold BR3D_SetGlobalMeasurementXRayMode BR3D_SetGlobalPointCloudPointSize BR3D_SetGlobalTransparencyValue BR3D_SetGridExpansionFactor BR3D_SetGridLevelAttributes BR3D_SetGridLevelColor BR3D_SetGridUOM BR3D_SetGridVisibilityStatus BR3D_SetGroundSurfaceShadowRecomputeState BR3D_SetGroundSurfaceShadowState BR3D_SetLineFadeOut BR3D_SetLinePatternThickness BR3D_SetMeasurement3DPreviewColor BR3D_SetMeasurementDrawOrder BR3D_SetMeasurementFillColor BR3D_SetMeasurementFillPattern BR3D_SetMeasurementLineColor BR3D_SetMeasurementLineWidth BR3D_SetMeasurementPointColor BR3D_SetMeasurementPointSize BR3D_SetMeasurementPreviewMode BR3D_SetMeasurementVisualizationMode BR3D_SetMeasurementXRayMode BR3D_SetModelVisibility BR3D_SetOrthoCameraStatePart BR3D_SetOutlineElementColorVisualization BR3D_SetOutlineShadedThickness BR3D_SetOutlineThickness BR3D_SetPaperColor BR3D_SetPaperMode BR3D_SetPaperModeCustom BR3D_SetPointCloudPointSize BR3D_SetPointCloudVisibility BR3D_SetSSAOHideThreshold BR3D_SetScreenSpaceSymbol BR3D_SetSelectiveOutlineRendering BR3D_SetSelectiveRenderingMode BR3D_SetSensorChannelData BR3D_SetSensorChannelMode BR3D_SetShadingOption BR3D_SetSunLightingLensFlare BR3D_SetSunLightingProperties BR3D_SetSunShadowingProperties BR3D_SetTextureElementActive BR3D_SetTransformGizmoHoverColor BR3D_SetTransformGizmoPosition BR3D_SetTransformGizmoRotationOffset BR3D_SetTransformGizmoRotationOffsetVector BR3D_SetTransformGizmoScreenSize BR3D_SetTransformGizmoVisibilityState BR3D_StartCameraCompassDrag BR3D_StartComputingNormals BR3D_StartPanning BR3D_StopCameraCompassDrag BR3D_StopPanning BR3D_TransformGizmoMouseClick BR3D_TransformGizmoMouseMove BR3D_UpdateTexture BR3D_VisualizeRubberband BR3D_ZoomToBoundingBox BR3D_ZoomToElements BRFont_AddTextToPos BRMD_GetElementModelId BRMD_SelectAllVisibleElements BRMD_SelectElementsByBulkStandardProps BRMD_SelectElementsByNumberProperty BRMD_SelectElementsByStandardProp BRMD_SelectElementsByTextProperty BRU_CalculateAngle BRU_CalculateSolarPosition BRXRU_IsHookOverTarget BRXRU_PushStandingElements BRXRU_SetLaserHookActive BRXR_AddPanel BRXR_ClearLaserHookTargets BRXR_CloseXR BRXR_GetHandPositionOrientation BRXR_GetLaserSelection BRXR_GetUpdateDataPtr_Webgl2 BRXR_HidePanel BRXR_InitXR BRXR_MoveToLaserHook BRXR_PollState BRXR_RemovePanel BRXR_RenderPreviewToScreen BRXR_RenderXR BRXR_SetAimPosition_Webgl2 BRXR_SetControllerActive BRXR_SetControllerMesh BRXR_SetFramebufferData_Webgl2 BRXR_SetHandControllerState_Webgl2 BRXR_SetHandPosition_Webgl2 BRXR_SetLaserColor BRXR_SetLaserHookActive BRXR_SetLaserHookColor BRXR_SetLaserHookTargets BRXR_SetLaserSide BRXR_SetPanelFixed BRXR_SetPanelTransformation BRXR_SetPanelViewport BRXR_Update BR_Create BR_Debug_GetFPS BR_Destroy BR_FontCreateWithShadow BR_GetBackgroundColor BR_GetBenchmarkingStatus BR_GetBuildId BR_GetCompressedImageBuffer BR_GetFPSstatus BR_GetHighlightAlpha BR_GetHighlightColors BR_GetHighlightXRayMode BR_GetImageBuffer BR_GetInputState BR_GetMemorySizeEstimationMB BR_GetOffscreenRendering BR_GetRendererMode BR_GetRubberbandExtents BR_GetRubberbandMode BR_GetRubberbandModeColor BR_GetValidationError BR_HasFeature BR_HasFeatureSync BR_Init2D BR_Init3D BR_IsValidated BR_KeyButtonEvent BR_LoggingAddText BR_LoggingGetConsoleFilter BR_LoggingGetFileFilter BR_LoggingGetStatus BR_LoggingSetConsoleFilter BR_LoggingSetFileFilter BR_LoggingSetFilename BR_LoggingSetStatus BR_MouseButtonEvent BR_MouseMotion BR_MouseWheelMotion BR_Move BR_Render BR_Resize BR_Rotate BR_RotateStart BR_RotateStop BR_SetBackgroundColor BR_SetBenchmarkingStatus BR_SetCompressedImageFormat BR_SetDataPath BR_SetHighlightAlpha BR_SetHighlightColors BR_SetHighlightXRayMode BR_SetInputState BR_SetOffscreenRendering BR_SetRendererMode BR_SetRubberbandMode BR_SetRubberbandModeColor BR_ShowFPS BR_Update BR_Validate _BR3D_IsElementVisible _BRXR_GetUpdateDataPtr_Webgl2 _BR_Debug_GetFPS activateArbitraryCuttingPlane activateCuttingPlane activateCuttingPlaneOnFaceId addClippingRegion addComparisonRenderer addCustomScale addNewMeasurement beginDrawLoop changeLanguage checkElementsShowing checkGUIActionsLocked checkVRSupported clearCuttingPlanes clearMeasurements clearPins clearSelection cloneModel colorizeInternalIds colorizeSelectedElements currentLanguage deactivateCuttingPlane decolorizeAllElements decolorizeInternalIds decolorizeSelectedElements destroy dispatchContextMenu dispatchStateChanged doRollOver focus getCameraState getClippingRegionsState getColorizationState getCuttingPlanesState getDynamicElementsState getElementsBoundingBox getElementsSelectionMode getFacesBoundingBox getHighlightedInternalIds getHighlightedState getHybridState getImageData getImageDataGzipped getMarkupState getMeasurementsState getModelsWithURLState getPaperIdOfElementId getPickMode getPinState getSceneBoundingBox getSceneView getSelectionType getSensorsState getSkymapIds getViewerSettingsState getVisibilityState getVisibleElementsBoundingBox getVisibleInternalIds getVisibleRegion2D hideAllWindows hideContextMenu hideDesignTreeWindow hideElementsByElementId hideElementsByGlobalId hideElementsByInternalId hideFilterElementsWindow hideMenus hideMessageWindow hidePropertiesWindow hideSelectedElements hideSettingsWindow hideShareWindow hideSnapshotWindow hideViewsWindow hideViewsWindows hideWebXRWindow init inputNumberMessageBox inputTextMessageBox inputUnitMessageBox is2DVisualizer is3DElement isCameraCompassVisible isCameraCubeVisible isCameraTransitioning isComparing isContextMenuShowing isCuttingPlaneActive isCuttingPlaneEnabled isDesignTreeWindowShowing isElementVisible isFilterElementsWindowShowing isGameModeOn isInitialized isKeyDown isMessageWindowShowing isMobileRenderer isPickingElements isPickingFaces isPickingFacesOrElements isPickingIsometric isPickingLines isPickingMeasurements isPropertiesWindowShowing isRenderingStopped isRollOverEnabled isSettingsWindowShowing isShareWindowShowing isSnapshotWindowShowing isVR_SessionStarted isViewsWindowShowing isViewsWindowsShowing isWebXRWindowShowing isolateSelectedElements loadDataMsgPack loadModel loadModelAndCache loadModelAndCache2 loadModelFromUrl loadSkymap loadSkymapById lookAtBoundingBox markMouseActionEventMade messageBox pickElementIds pickFaceId pickFaceIds pickNormal pickRubberbandElementIds pickRubberbandFaceIds pickRubberbandMeasurementIds recomputeCameraMovementSettings recomputeSnappingPoints refreshCameraCube refreshCloudsPosition refreshCuttingPlaneLabel refreshRedrawNeeded refreshSolarPosition removeClippingRegion removeComparisonRenderer removeSkymap requestRubberbandSelection resetCamera3D resetCameraToHome resetHybridMode resetLastRedrawExecuted resetXRVisibilityState revertPreviousRollOver rotateCamera2D screenToWorldPosition screenToWorldPositionNoDepth selectAllElements selectAllVisibleElements selectByClass selectByElementInfo selectByFilters selectByIds selectByInternalIds selectByLayer selectByMaterial selectByMembership selectByModel selectByStorey selectByType selectElementsByProperty set2DBoundingBox set2DVisualizerOn setBoundingBoxVisible setCameraCompassVisible setCameraCubeVisible setCameraState setCameraType setClippingRegionsState setColorizationState setCuttingPlanesState setDynamicElementsState setElementsHybridOpaque setElementsVisible setGUIActionsLocked setGridEnabled setGroundShadowEnabled setHighlightedState setHybridState setKey setMarkupState setMeasurementSystem setMeasurementsState setModelsWithURLState setNormalArrowVisible setPickMode setPinState setPointCloudPixelSize setSSAOEnabled setSceneDateAndTime setSceneView setSelectionLabelEnabled setSelectionType setSensorsState setShadowMapsEnabled setSunFlareEnabled setSunLightEnabled setViewerSettingsState setVisibilityState setXRPreviewToCanvas showAllElements showElementsByElementId showElementsByGlobalId showViewsWindow startAreaMeasure startCountMeasure startCuttingPlaneAddition startIsometricMeasure startLengthMeasure startOcclusionCulling startPinAdditionByColor startPinAdditionByImage startRendering startVR_Session stopOcclusionCulling stopRendering stopVR_Session supportedLanguages takeSnapshot unloadAll unloadModel updateSelectionByElementIds updateSelectionByElementNodes updateSelectionByGlobalIds updateSelectionByInternalIds updateSelectionFromHighlight updateSelectionLabel worldToScreenSpacePosition zoomExtents zoomToElements zoomToElementsByElementIds zoomToElementsByGlobalIds zoomToSelectedElements zoomToSelection

Constructors

Accessors

  • get alignment(): BimCTAlignment
  • Returns the alignment cofiguration handler of the BimCT scene models.

    Returns BimCTAlignment

  • get allowPicking2DElements(): boolean
  • Gets whether picking 2D elements is allowed.

    Returns

    Whether picking 2D elements is allowed.

    Returns boolean

  • set allowPicking2DElements(allowPicking2DElements: boolean): void
  • Sets whether picking 2D elements is allowed.

    Parameters

    • allowPicking2DElements: boolean

      Whether to allow picking 2D elements.

    Returns void

  • get animations(): Animations
  • Gets the animations.

    Returns

    The animations.

    Returns Animations

  • get assetsBasePath(): string
  • Gets the base path for assets.

    Returns

    The base path for assets.

    Returns string

  • get autoCameraResetAfterModelLoaded(): boolean
  • Gets the auto camera reset state after model is loaded.

    Returns boolean

  • set autoCameraResetAfterModelLoaded(v: boolean): void
  • Sets the auto camera reset state after model is loaded.

    Parameters

    • v: boolean

    Returns void

  • get baseCanvas(): BaseBimCanvas
  • Gets the base canvas.

    Returns

    The base canvas.

    Returns BaseBimCanvas

  • get bimctServerBasePath(): string
  • Gets the base path for the BimCT additional functions server.

    Returns

    The base path for the BimCT server.

    Returns string

  • set canvasCursor(cursor: BaseBimCanvasCursor): void
  • Sets the canvas cursor.

    Parameters

    Returns void

  • get comparisonViewer(): BimCTComparisonViewer
  • Gets the comparison viewer.

    Returns BimCTComparisonViewer

  • get contextMenu(): BimCTContextMenu
  • Gets the context menu.

    Returns

    The context menu.

    Returns BimCTContextMenu

  • get contextMenuEvent(): IEvent<BaseRenderer, PointerEvent>
  • Gets the context menu event.

    Returns

    The context menu event.

    Returns IEvent<BaseRenderer, PointerEvent>

  • get currentFPS(): number
  • Returns number

  • get displayFormat(): DisplayFormat
  • Gets the display format.

    Returns DisplayFormat

  • get divElement(): HTMLDivElement
  • Gets the div element.

    Returns

    The div element.

    Returns HTMLDivElement

  • get dynamicElements(): DynamicElements
  • Gets the dynamic elements.

    Returns

    The dynamic elements.

    Returns DynamicElements

  • get elements(): ElementInfo[]
  • Gets the elements.

    Returns

    The elements.

    Returns ElementInfo[]

  • get gpuInfo(): GPUInfo
  • Returns the GPU information.

    Returns GPUInfo

  • get guiActionsLockedEvent(): IEvent<BaseRenderer, boolean>
  • Gets the GUI actions locked event.

    Returns

    The GUI actions locked event.

    Returns IEvent<BaseRenderer, boolean>

  • get hasComparisonViewer(): boolean
  • Checks if the comparison viewer is available.

    Returns boolean

  • get hasContextMenu(): boolean
  • Checks if the context menu is available.

    Returns

    Whether the context menu is available.

    Returns boolean

  • get hasDesignTreeWindow(): boolean
  • Returns boolean

  • get hasFilterElementsWindow(): boolean
  • Returns boolean

  • get hasHomeToolbar(): boolean
  • Checks if the home toolbar is available.

    Returns

    Whether the home toolbar is available.

    Returns boolean

  • get hasLeftToolbar(): boolean
  • Checks if the left toolbar is available.

    Returns

    Whether the left toolbar is available.

    Returns boolean

  • get hasMessageWindow(): boolean
  • Checks if the message window is available.

    Returns

    Whether the message window is available.

    Returns boolean

  • get hasMinimapViewer(): boolean
  • Checks if the comparison viewer is available.

    Returns boolean

  • get hasPropertiesWindow(): boolean
  • Returns boolean

  • get hasSelectionLabelEnabled(): boolean
  • Checks if the selection label is enabled.

    Returns

    Whether the selection label is enabled.

    Returns boolean

  • get hasSettingsWindow(): boolean
  • Checks if the settings window is available.

    Returns

    Whether the settings window is available.

    Returns boolean

  • get hasShareWindow(): boolean
  • Checks if the share window is available.

    Returns

    Whether the share window is available.

    Returns boolean

  • get hasSnapshotWindow(): boolean
  • Checks if the snapshot window is available.

    Returns

    Whether the snapshot window is available.

    Returns boolean

  • get hasTimeChangerWindow(): boolean
  • Checks if the time changer window is available.

    Returns

    Whether the time changer window is available.

    Returns boolean

  • get hasToolbar(): boolean
  • Checks if the toolbar is available.

    Returns

    Whether the toolbar is available.

    Returns boolean

  • get hasTouchWidget(): boolean
  • Checks if the touch widget is available.

    Returns

    Whether the touch widget is available.

    Returns boolean

  • get hasViewsManager(): boolean
  • Checks if the views manager is available.

    Returns

    Whether the views manager is available.

    Returns boolean

  • get hasWebXRWindow(): boolean
  • Checks if the WebXR window is available.

    Returns

    Whether the WebXR window is available.

    Returns boolean

  • get homeToolbar(): BimCTHomeToolbar
  • Gets the home toolbar.

    Returns

    The home toolbar.

    Returns BimCTHomeToolbar

  • get inputHandler(): EnhancedInputHandler
  • Gets the input handler.

    Returns EnhancedInputHandler

  • get isDrawing(): boolean
  • Checks if the renderer is currently drawing.

    Returns boolean

  • get isRotatingOrPanning(): boolean
  • Gets whether the renderer is rotating or panning.

    Returns

    Whether the renderer is rotating or panning.

    Returns boolean

  • set isRotatingOrPanning(isRotatingOrPanning: boolean): void
  • Sets whether the renderer is rotating or panning.

    Parameters

    • isRotatingOrPanning: boolean

      Whether the renderer is rotating or panning.

    Returns void

  • get languageChangedEvent(): EventDispatcher<BaseRenderer, Language>
  • Gets the language changed event.

    Returns

    The language changed event.

    Returns EventDispatcher<BaseRenderer, Language>

  • get leftToolbar(): BimCTLeftToolbar
  • Gets the left toolbar.

    Returns

    The left toolbar.

    Returns BimCTLeftToolbar

  • get mapPositionsChangeEvent(): IEvent<BaseRenderer, WGS84>
  • Gets the visibility change event.

    Returns

    The visibility change event.

    Returns IEvent<BaseRenderer, WGS84>

  • get measurementSystem(): MEASUREMENT_SYSTEM
  • Gets the measurement system.

    Returns

    The measurement system.

    Returns MEASUREMENT_SYSTEM

  • get measurements(): MeasurementsState
  • Gets the measurements state.

    Returns

    The measurements state.

    Returns MeasurementsState

  • get measurementsPointPushBackEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements point push back event.

    Returns

    The measurements point push back event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get measurementsSelectedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements selected event.

    Returns

    The measurements selected event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get measurementsUpdatedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the measurements updated event.

    Returns

    The measurements updated event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get metadataAccessor(): BimCTMetadataAccessor
  • Gets the metadata accessor.

    Returns

    The metadata accessor.

    Returns BimCTMetadataAccessor

  • get minimapViewer(): BimCTMiniMapViewer
  • Gets the instance of the minimap viewer.

    Returns

    The instance of the minimap viewer.

    Returns BimCTMiniMapViewer

  • get modelLoadedEvent(): IEvent<BaseRenderer, Int64[]>
  • Gets the model loaded event.

    Returns

    The model loaded event.

    Returns IEvent<BaseRenderer, Int64[]>

  • get modelRemovedEvent(): IEvent<BaseRenderer, Int64[]>
  • Gets the model removed event.

    Returns

    The model removed event.

    Returns IEvent<BaseRenderer, Int64[]>

  • get mouseRightClickedEvent(): IEvent<BaseRenderer, UIEvent>
  • Gets the mouse right clicked event.

    Returns

    The mouse right clicked event.

    Returns IEvent<BaseRenderer, UIEvent>

  • get overlay(): BimCTOverlay
  • Gets the overlay.

    Returns

    The overlay.

    Returns BimCTOverlay

  • get pickLines(): PickLineState
  • Gets the pick lines state.

    Returns PickLineState

  • get pickLinesUpdatedEvent(): IEvent<BaseRenderer, Measurement[]>
  • Gets the pick lines updated event.

    Returns

    The pick lines updated event.

    Returns IEvent<BaseRenderer, Measurement[]>

  • get pinDehighlightedEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin dehighlighted event.

    Returns

    The pin dehighlighted event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pinHighlightedEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin highlighted event.

    Returns

    The pin highlighted event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pinInsertEvent(): IEvent<BaseRenderer, PinWidget3D>
  • Gets the pin insert event.

    Returns

    The pin insert event.

    Returns IEvent<BaseRenderer, PinWidget3D>

  • get pins(): Pins
  • Gets the pins.

    Returns

    The pins.

    Returns Pins

  • get renderingContext(): WebGL2RenderingContext
  • Returns the WebGL2 rendering context.

    Returns WebGL2RenderingContext

  • get resizedEvent(): EventDispatcher<BaseRenderer, { height: number; width: number }>
  • Gets the resized event.

    Returns

    The resized event.

    Returns EventDispatcher<BaseRenderer, { height: number; width: number }>

  • get sceneState(): SceneState
  • Keeps tracking of loaded models and elements. See SceneState.

    Returns

    The scene state.

    Returns SceneState

  • get selectedElementIds(): Int64[]
  • Gets the selected element IDs.

    Returns

    The selected element IDs.

    Returns Int64[]

  • get selectedElementInternalIds(): Int64[]
  • Gets the selected element internal IDs.

    Returns

    The selected element internal IDs.

    Returns Int64[]

  • get selectedElements(): ElementInfo[]
  • Gets the selected elements.

    Returns

    The selected elements.

    Returns ElementInfo[]

  • get selectionChangeEvent(): IEvent<BaseRenderer, ElementInfo[]>
  • Gets the selection change event.

    Returns

    The selection change event.

    Returns IEvent<BaseRenderer, ElementInfo[]>

  • get sensors(): SensorManager
  • Gets the sensor manager.

    Returns

    The sensor manager.

    Returns SensorManager

  • get settingsChangedEvent(): SimpleEventDispatcher<BaseRenderer>
  • Gets the settings changed event.

    Returns

    The settings changed event.

    Returns SimpleEventDispatcher<BaseRenderer>

  • get settingsWindow(): BimCTSettingsWindow
  • Gets the settings window.

    Returns

    The settings window.

    Returns BimCTSettingsWindow

  • get shadingMode(): SHADING_MODE
  • Gets the shading mode.

    Returns

    The shading mode.

    Returns SHADING_MODE

  • set shadingMode(mode: SHADING_MODE): void
  • Sets the shading mode of the renderer.

    Parameters

    Returns void

  • get shareWindow(): BimCTShareWindow
  • Gets the share window.

    Returns

    The share window.

    Returns BimCTShareWindow

  • get showProgressWhileModelLoading(): boolean
  • Gets the show progress state while model is loading.

    Returns boolean

  • set showProgressWhileModelLoading(v: boolean): void
  • Sets the show progress state while model is loading.

    Parameters

    • v: boolean

    Returns void

  • get snappingEnabled(): boolean
  • Gets whether snapping is enabled.

    Returns

    Whether snapping is enabled.

    Returns boolean

  • get snapshotWindow(): BimCTSnapshotWindow
  • Gets the snapshot window.

    Returns

    The snapshot window.

    Returns BimCTSnapshotWindow

  • get state(): RendererState
  • Gets the state of the renderer.

    Returns

    The state of the renderer.

    Returns RendererState

  • get stateChangedEvent(): ISimpleEvent<BaseRenderer>
  • Gets the state changed event.

    Returns

    The state changed event.

    Returns ISimpleEvent<BaseRenderer>

  • get timeChangedEvent(): IEvent<BaseRenderer, Date>
  • Gets the solar position changed event.

    Returns

    The the solar position changed event.

    Returns IEvent<BaseRenderer, Date>

  • get toolbar(): BimCTToolbar
  • Gets the toolbar.

    Returns

    The toolbar.

    Returns BimCTToolbar

  • get touchWidget(): BimCTTouchCursor
  • Gets the touch widget.

    Returns

    The touch widget.

    Returns BimCTTouchCursor

  • get transformationGismo(): TransformationGizmo
  • Gets the transformation gismo.

    Returns

    The transformation gismo.

    Returns TransformationGizmo

  • get visibilityChangeEvent(): ISimpleEvent<BaseRenderer>
  • Gets the visibility change event.

    Returns

    The visibility change event.

    Returns ISimpleEvent<BaseRenderer>

  • get webXRWindow(): BimCTWebXRWindow
  • Gets the WebXR window.

    Returns

    The WebXR window.

    Returns BimCTWebXRWindow

  • get xrPanels(): BimCTXrPanelsController
  • Returns BimCTXrPanelsController

  • get xrPreviewToCanvas(): boolean
  • Returns boolean

Methods

  • BR3D_AddDynamicElement Add and set the geometric data of the dynamic element

    Parameters:

    • vertices, float array of the interleaved vertex positions and normals. Should not be null
    • number_of_vertices, number of vertices contained in the vertexArray. Should be greater than zero.
    • indices, int array of the indices. Should not be null
    • number_of_indices, number of indices contained in the indices. Should be greater than zero.
    • offsets, int array of the offset of the various parts of the element. Should not be null
    • number_of_primitives, int array of number of primitives of each par of the dynamic element. Should not be null
    • colors, float array of the colors of each part. each color is consisted of 4 float. So the size of the array should be float[4 * number_of_parts]. Should not be null
    • number_of_parts, number of parts of the dynamic element. Should be greater than zero.

    Returns the dynamic element unique ID. If the ID is negative then the operation was not successful.

    Parameters

    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number
    • offsets: number[]
    • number_of_primitives: number[]
    • colors: number[]
    • number_of_parts: number

    Returns Promise<BR3D_AddDynamicElementResult>

  • BR3D_AddElement Add an element to a model

    Requirements: The model must already exists in the engine. Must only be called after AddModel.

    Parameters:

    • modelID, ID of the model
    • globalID, globalID of the element
    • type, type of the element

    Returns the Engine's unique ID of the Element. If the ID is negative then the operation was not successful.

    Parameters

    • modelID: Int64
    • globalID: string
    • type: string

    Returns Promise<BR3D_AddElementResult>

  • BR3D_AddElementFace Add a face for the specific element

    Requirements: The model and element must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • elementID, the generated ID of the element
    • indexArrayOffset, offset to the element vertex buffer
    • indexArrayPrimitives, number of indices that uses the material
    • diffuseColor, float[3] that contains the RGB colors
    • transparency, transparency value
    • textureID, a texture to replace diffuseColor and transparency. (-1 if there is no texture attached)

    Returns the Engine's unique ID of the packed (Element, Face). If the ID is negative then the operation was not successful.

    Parameters

    • elementID: Int64
    • indexArrayOffset: number
    • indexArrayPrimitives: number
    • diffuseColor: number[]
    • transparency: number
    • textureID: number

    Returns Promise<BR3D_AddElementFaceResult>

  • BR3D_AddElementLinePatternVertices Add line pattern's data of an element

    Requirements: The model and element must already exists in the engine. Must only be called after AddModel and AddElement;

    Parameters:

    • elementID, the generated ID of the element
    • vertexArray, float array of the vertex positions
    • number_of_vertices, number of vertices contained in the vertexArray
    • indicesArray, int array of the indices
    • number_of_indices, number of indices contained in the indicesArray
    • si_unit, SI Units (1: Metre), (2: Decimetre), (3: Centimetre), (4: Millimetre)

    Returns true if operation was successful.

    Parameters

    • elementID: Int64
    • indexArrayOffset: number
    • indexArrayPrimitives: number
    • diffuseColor: number[]

    Returns Promise<BR_FunctionOutput>

  • BR3D_AddElementLinePatternVertices Add line pattern's data of an element

    Requirements: The model and element must already exists in the engine. Must only be called after AddModel and AddElement;

    Parameters:

    • elementID, the generated ID of the element
    • vertexArray, float array of the vertex positions
    • number_of_vertices, number of vertices contained in the vertexArray
    • indicesArray, int array of the indices
    • number_of_indices, number of indices contained in the indicesArray
    • si_unit, SI Units (1: Metre), (2: Decimetre), (3: Centimetre), (4: Millimetre)

    Returns true if operation was successful.

    Parameters

    • elementID: Int64
    • vertexArray: number[]
    • number_of_vertices: number
    • indicesArray: number[]
    • number_of_indices: number
    • si_unit: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_AddModel Adds a model with the given properties to the scenegraph REQUIRED: for adding elements to a model

    Parameters:

    • name, name of the model
    • ID, ID of the model
    • revision, revision number of the model

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_AddPointCloud Add and set the geometric data of a point cloud Parameters:

    • vertices, float array of vertex positions. Should not be null
    • colors, float array of RGB colors. Should not be null
    • number_of_vertices, number of vertices contained in the vertexArray. Should be greater than zero.
    • visible, set visibility of point cloud

    Returns the point cloud id. If the ID is 0xFFFFFFFF then the operation was not successful.

    Parameters

    • vertices: number[]
    • colors: Uint8Array
    • number_of_vertices: number
    • visible: boolean

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • channel_id: Int64
    • group_id: Int64
    • x: number
    • y: number
    • z: number
    • value: number

    Returns Promise<BR3D_AddSensorResult>

  • BR3D_AddSensorChannel Add sensor channel with a value range [low, high]

    Parameters:

    • low, range low
    • high, range high
    • factor, scale factor

    Returns id of the channel if operation was successful. -1 if operation failed.

    Parameters

    • low: number
    • high: number
    • factor: number

    Returns Promise<BR3D_AddSensorChannelResult>

  • Parameters

    Returns Promise<BR3D_AddSensorGroupResult>

  • BR3D_AddTexture

    • Add a texture

    Parameters:

    • width, the width of the texture
    • height, the height of the texture
    • data, the pixels of the texture in RGBA format.
    • create_custom_mips, create downscaled images that do not blur out the information

    Returns the id of the texture or -1 if the operation was not successful.

    Parameters

    • width: number
    • height: number
    • data: Iterable<number>
    • create_custom_mips: number

    Returns Promise<BR_FunctionOutput>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// TextureElement3D API

    BR3D_AddTextureElement Registers a 3D Texture Element. The Texture Element is associated with an existing 2D Drawing and is rendered at the provided rectangle positions. To ensure that the 2D Drawing is displayed in the entire Texture Element, it must have been generated using the expected aspect ratio of the Texture Element. Otherwise, the Texture Element rectangle will be resized (without exceeding the rectangles dimensions) to fit the associated 2D drawing.

    Parameters: texture_element_id, a unique id for the Texture Element drawing_id, the drawing id of an existing 2D Drawing pos_top_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_top_right_(x,y,z), the top left 3D position of the Texture Element in world coordinates

    Returns true if operation was successful.

    Parameters

    • drawing_id: Int64
    • pos_top_left_x: number
    • pos_top_left_y: number
    • pos_top_left_z: number
    • pos_bottom_left_x: number
    • pos_bottom_left_y: number
    • pos_bottom_left_z: number
    • pos_bottom_right_x: number
    • pos_bottom_right_y: number
    • pos_bottom_right_z: number
    • pos_top_right_x: number
    • pos_top_right_y: number
    • pos_top_right_z: number

    Returns Promise<BR3D_AddTextureElementResult>

  • BR3D_AddTextureElementRaster Registers a 3D Texture Element. The Texture Element is associated with a provided RGB data buffer and is rendered at the provided rectangle positions. To ensure that the provided RGB data is displayed in the entire Texture Element, it must have been generated using the expected aspect ratio of the Texture Element. Otherwise, the Texture Element rectangle will be resized (without exceeding the rectangles dimensions) to fit the associated RGB data.

    Parameters: texture_element_id, a unique id for the Texture Element rgb_data, a buffer containing RGB data information. The size of the buffer must be width * height * 3. width, the width of the RGB buffer height, the height of the RGB buffer pos_top_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_top_right_(x,y,z), the top left 3D position of the Texture Element in world coordinates

    Returns true if operation was successful.

    Parameters

    • rgb_data: Uint8Array
    • width: number
    • height: number
    • pos_top_left_x: number
    • pos_top_left_y: number
    • pos_top_left_z: number
    • pos_bottom_left_x: number
    • pos_bottom_left_y: number
    • pos_bottom_left_z: number
    • pos_bottom_right_x: number
    • pos_bottom_right_y: number
    • pos_bottom_right_z: number
    • pos_top_right_x: number
    • pos_top_right_y: number
    • pos_top_right_z: number

    Returns Promise<BR3D_AddTextureElementResult>

  • BR3D_AntiAliasingGetMode Get 3D renderer anti aliasing mode

    Parameters:

    • anti_aliasing_mode, will hold active anti-aliasing mode Returns true if operation was successful.

    Returns Promise<BR3D_AntiAliasingGetModeResult>

  • BR3D_AntiAliasingSetMode Set 3D renderer anti aliasing mode

    Parameters:

    • anti_aliasing_mode, mode to apply Returns true if operation was successful.

    Parameters

    • anti_aliasing_mode: BIM_ANTI_ALIASING_OPTIONS_3D

    Returns Promise<BR_FunctionOutput>

  • BR3D_AttachDrawingToMinimap Registers, attaches and renders a 2D Drawing to a specific minimap. The Drawing is rendered orthographically in outline mode using the specified bounding box parameters and top (BCP_TOP) camera position. The dimensions of the drawings are automatically assigned to fit the minimap window.

    Parameters:

    • minimap_id, the minimap id
    • title, the name of the drawing that will be rendered at the top (can be left null)
    • minX, minY, minZ, maxX, maxY, maxZ, the bounding box that will be used for the rendering

    Returns true if operation was successful.

    Parameters

    • minimap_id: Int64
    • title: string
    • minX: number
    • minY: number
    • minZ: number
    • maxX: number
    • maxY: number
    • maxZ: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • x: number
    • y: number

    Returns Promise<boolean>

  • BR3D_CameraCubeHover Highlights the camera cube mode to be selected

    Parameters:
    
    • x, the x position of the bottom left pixel
    • y, the y position of the bottom left pixel

    Parameters

    • x: number
    • y: number

    Returns Promise<boolean>

  • Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number
    • offsets: number[]
    • number_of_primitives: number[]
    • colors: number[]
    • number_of_parts: number
    • updateBBox: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_ChangeDynamicElementBillboardActive Set whether the dynamic element should be shown as a billboard

    Parameters:

    • dynamicElementID, the dynamic element id.
    • active, show as billboard or not

    Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • active: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_ChangeDynamicElementBillboardTexture Set the billboard texture of the dynamic element. The caller is responsible for lifetime management of the texture.

    Parameters:

    • dynamicElementID, the dynamic element id.
    • texture_id, A texture handle previously created from a call to 'BR3D_AddTexture' Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • texture_id: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_ChangeDynamicElementColor Chnage the color data of the dynamic element

    Parameters:

    • dynamicElementID, the dynamic element id.
    • colors, float array of the colors of each part. each color is consisted of 4 float. So the size of the array should be float[4 * number_of_parts]. Should not be null. Number of parts were specified by BR3D_AddDynamicElement or BR3D_ChangeDynamicElement.

    Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • colors: number[]

    Returns Promise<BR_FunctionOutput>

  • Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • matrix: number[]

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • dynamicElementIDS: Int64[]
    • matrix: number[]
    • updateBBox: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_CheckMeasurementPolygon Check the polygon for self intersection. It also works on Measurements with holes.

    Parameters:

    • measurement_id, the id of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_ClearElementsHighLight Set highlight status of all elements to false

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_ClearMeasurement Clears the point and segment data from a measurement

    Parameters:

    • measurement_id, the id of the measurement to clear Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_ClearSelectedIDs Forces a clear of the current selection

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_ClearSelectedMeasurements3DIDs Clear the selected IDS.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_ClearSelectedMeasurements3DPointIDs Clear the selected measurement and point IDS.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_CloseMeasurement Close the measurement in order to create a closed polygon. It is necessary in order to compute other functions (e.g. GetArea())

    Parameters:

    • measurement_id, the id of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_ComputeClosestPointAndOutlineStructure Compute the closest point and outline acceleration structure (GL ES 3.0 only)

    Parameters: Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_MergeFaceAndElementID Merges the face and element id

    Parameters:

    • vertices, the interleaved buffer of the vertices. it should be of size float[6 * number_of_vertices]. It is also the output buffer.
    • number_of_vertices, the number of vertices
    • indices, the indices buffer
    • number_of_indices, the number of indices
    • indexArrayOffset, the offset of the face
    • indexArrayPrimitives, the number of primitives
    • useRightHand, if it uses the right hand coordinate system (OpenGL).

    Parameters

    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number
    • indexArrayOffset: number
    • indexArrayPrimitives: number
    • useRightHand: number

    Returns Promise<void>

  • BR3D_ConvertFromDXToOpenGL Convert the interleaved vertex with normals vertex array and index array from DX format to OpenGL

    Parameters:

    • interleavedVertexArray, interleaved vertex array
    • number_of_vertices, the number of vertices
    • indicesArray, the indices buffer
    • number_of_indices, the number of indices

    Parameters

    • interleavedVertexArray: number[]
    • number_of_vertices: number
    • indicesArray: number[]
    • number_of_indices: number

    Returns Promise<void>

  • BR3D_CreateMeasurement Create a 3D measurement. MeasurementID should be unique and it is handled by the application, in order to be stored and manipulated more efficient. The measurement id should be greater than zero. ID -1 is reserved for the ghost measurement and cannot be created or deleted.

    Parameters:

    • drawing_id, the id of the drawing
    • measurement_id, the id of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Minimap3D API

    BR3D_CreateMinimap Registers a minimap that will be displayed on the screen. A 2D Drawing must be attached to the minimap before it can be displayed. More than one minimaps can be registered, indicating different models present in the renderer.

    Parameters:

    • minimap_id, the minimap id

    Returns true if operation was successful.

    Returns Promise<BR3D_CreateMinimapResult>

  • Parameters

    Returns Promise<BR3D_Debug_GetElementModelIdResult>

  • Parameters

    • modelID: Int64
    • element: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_DeleteMeasurementPoint Removes a point from the measurement. It also collapses the neighboring segments into a line.

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of the point Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_DestroyMinimap Destroys a minimap.

    Parameters:

    • minimap_id, the id of the minimap

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_EditTextureElement Edits the position of a 3D Texture Element. Note that this forces a re-allocation of the buffers for the requested Texture Element.

    Parameters: texture_element_id, the Texture Element id width, the width of the Texture Element height, the height of the Texture Element pos_top_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_top_right_(x,y,z), the top left 3D position of the Texture Element in world coordinates

    Returns true if operation was successful.

    Parameters

    • texture_element_id: Int64
    • pos_top_left_x: number
    • pos_top_left_y: number
    • pos_top_left_z: number
    • pos_bottom_left_x: number
    • pos_bottom_left_y: number
    • pos_bottom_left_z: number
    • pos_bottom_right_x: number
    • pos_bottom_right_y: number
    • pos_bottom_right_z: number
    • pos_top_right_x: number
    • pos_top_right_y: number
    • pos_top_right_z: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_EndComputingNormals Ends the computation of the normals

    Parameters:

    • vertices, the interleaved buffer of the vertices. it should be of size float[6 * number_of_vertices]. It is also the output buffer.
    • number_of_vertices, the number of vertices

    Parameters

    • vertices: number[]
    • number_of_vertices: number

    Returns Promise<void>

  • BR3D_ForceMinimapRender Forces a render of the associated drawings within the Minimap. This can be used in case the associated data of the Minimap have changed, e.g. a 2D Drawing has been attached after it has become active or if offscreen has been disabled/enabled and in-between the window dimensions have changed.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Drawing3D API

    BR3D_Generate2DDrawingID Registers a 2D Drawing of dimensions (width, height).

    Parameters:

    • drawing_id, a unique id for the 2D Drawing
    • title, the name of the drawing that will be rendered at the top (can be left null)
    • minX, minY, minZ, maxX, maxY, maxZ, the bounding box that will be used for the rendering
    • pos, the camera position,
    • width, the width of the drawing
    • height, the height of the drawing
    • resize_to_fit, whether the width/height of the resulting image will be resized based on the provided dimensions

    Returns true if operation was successful.

    Parameters

    • title: string
    • minX: number
    • minY: number
    • minZ: number
    • maxX: number
    • maxY: number
    • maxZ: number
    • pos: BIM_CAMERA_POSITION
    • width: number
    • height: number
    • resize_to_fit: boolean

    Returns Promise<BR3D_Generate2DDrawingIDResult>

  • BR3D_Generate2DDrawingID Registers a 2D Drawing of dimensions (width, height).

    Parameters:

    • drawing_id, a unique id for the 2D Drawing
    • title, the name of the drawing that will be rendered at the top (can be left null)
    • minX, minY, minZ, maxX, maxY, maxZ, the bounding box that will be used for the rendering
    • cam_posX, cam_posY, cam_posZ, the camera position in world space coordinates (target is always the center of the bounding box)
    • width, the width of the drawing
    • height, the height of the drawing
    • resize_to_fit, whether the width/height of the resulting image will be resized based on the provided dimensions

    Returns true if operation was successful.

    Parameters

    • title: string
    • minX: number
    • minY: number
    • minZ: number
    • maxX: number
    • maxY: number
    • maxZ: number
    • cam_posX: number
    • cam_posY: number
    • cam_posZ: number
    • width: number
    • height: number
    • resize_to_fit: boolean

    Returns Promise<BR3D_Generate2DDrawingIDResult>

  • BR3D_Get2DDrawingBackground Retrieves the background color for the 2D drawings.

    Parameters:

    • color(r,g,b), the background color (Default is 1,1,1) Returns true if operation was successful.

    Returns Promise<BR3D_Get2DDrawingBackgroundResult>

  • BR3D_Get2DDrawingCameraBox Retrieves the camera space bounding box used for the drawing. This can be used for placing a texture element correctly in world space (using the x, y dimensions of the box).

    Parameters:

    • drawing_id, the 2D Drawing id
    • minx,y,z, the minimum position of the bounding box
    • maxx,y,z, the minimum position of the bounding box

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_Get2DDrawingCameraBoxResult>

  • Get2DDrawingCameraUVW Retrieves the camera coordinate system for the requested drawing. This can be used for placing a texture element correctly in world space.

    Parameters:

    • drawing_id, the 2D Drawing id
    • camPosx,y,z, the position of the camera
    • camRightx,y,z, the right vector of the camera
    • camUpx,y,z, the up vector of the camera
    • camDirx,y,z, the direction vector of the camera

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_Get2DDrawingCameraUVWResult>

  • BR3D_Get2DDrawingData Retrieves the rgb data of a 2D drawing

    Parameters:

    • drawing_id, the drawing id
    • buffer, the buffer that the rgb data will be stored. The buffer must be pre-allocated to: width * height * 3.
    • is_bgr, a flag indicated whether the result will be stored in RGB or BGR.

    Returns true if operation was successful.

    Parameters

    • drawing_id: Int64
    • is_bgr: boolean

    Returns Promise<BR3D_Get2DDrawingDataResult>

  • BR3D_Get2DDrawingDefaultDrawingTypeInfo Retrieves the default color and line width for all drawing types that have not been set specifically (through BR3D_Set2DDrawingType).

    Parameters:

    • line_width, the line width
    • color(r,g,b,a), the background color Returns true if operation was successful.

    Returns Promise<BR3D_Get2DDrawingDefaultDrawingTypeInfoResult>

  • BR3D_Get2DDrawingDimensions Retrieves the dimensions for a 2D drawing

    Parameters:

    • drawing_id, the drawing id
    • width, the width of the drawing
    • height, the height of the drawing

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_Get2DDrawingDimensionsResult>

  • BR3D_Get2DDrawingFontColor Retrieves the font color for the 2D drawings.

    Parameters:

    • color(r,g,b,a), the background color Returns true if operation was successful.

    Returns Promise<BR3D_Get2DDrawingFontColorResult>

  • BR3D_Get2DDrawingTypeInfo Retrieves the color and line width that have been set for a particular IFC type

    Parameters:

    • type, the name of the IFC type (case-sensitive)
    • line_width, the line width
    • color(r,g,b,a), the background color Returns true if operation was successful.

    Parameters

    • type: string

    Returns Promise<BR3D_Get2DDrawingTypeInfoResult>

  • BR3D_Get2DDrawingZoomOutPercentage Retrieves the percentage that the camera is zoomed out for the 2D drawings

    Parameters:

    • percentage, the zoom out percentage Returns true if operation was successful.

    Returns Promise<BR3D_Get2DDrawingZoomOutPercentageResult>

  • BR3D_GetActiveMinimapCameraParameters Retrieves the color and size (in pixels) of the camera icon

    Parameters:

    • color (r,g,b,a), the camera's color
    • size, the thickness of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetActiveMinimapCameraParametersResult>

  • BR3D_GetActiveMinimapData Retrieves the rgb data of the active minimap. This is used only if offscreen rendering is enabled

    Parameters:

    • buffer, the buffer that the rgb data will be stored. The buffer must be pre-allocated to: width * height * 3.
    • is_bgr, a flag indicated whether the result will be stored in RGB or BGR.

    Returns true if operation was successful.

    Parameters

    • is_bgr: boolean

    Returns Promise<BR3D_GetActiveMinimapDataResult>

  • BR3D_GetActiveMinimapID Retrieves the id of the active minimap.

    Parameters:

    • minimap_id, the id of the minimap

    Returns true if operation was successful.

    Returns Promise<BR3D_GetActiveMinimapIDResult>

  • BR3D_GetActiveMinimapOpacity Retrieves the opacity of the active minimap.

    Parameters:

    • opacity, the opacity of the minimap

    Returns true if operation was successful.

    Returns Promise<BR3D_GetActiveMinimapOpacityResult>

  • BR3D_GetActiveMinimapWindowPosition Retrieves the viewport pixel positions of the active minimap. Any changes to these parameters force a new render of the associated 2D Drawings.

    Parameters:

    • x, the x coordinate of the bottom left pixel
    • y, the y coordinate of the bottom left pixel
    • width, the width of the minimap
    • height, the height of the minimap

    Returns true if operation was successful.

    Returns Promise<BR3D_GetActiveMinimapWindowPositionResult>

  • BR3D_GetActiveMinimapWindowThicknessParameters Retrieves the stroke's color and thickness (in pixels) of the minimap window

    Parameters:

    • color (r,g,b,a), the stroke's color
    • pixel_thickness, the thickness of the stroke

    Returns true if operation was successful.

    Returns Promise<BR3D_GetActiveMinimapWindowThicknessParametersResult>

  • BR3D_GetAll2DDrawingIDs Retrieves the ids of the registered 2D Drawings.

    Parameters:

    • drawings, a preallocated buffer that will store the ids of the 2D Drawings. The size of the buffer can be retrieved using BR3D_GetNum2DDrawings.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetAll2DDrawingIDsResult>

  • BR3D_GetAll2DDrawingIDs Retrieves the ids of the registered Minimaps.

    Parameters:

    • minimap_ids, a preallocated buffer that will store the ids of the Minimaps. The size of the buffer can be retrieved using BR3D_GetNumMinimaps.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetAllMinimapIDsResult>

  • BR3D_GetAllTextureElementIDs Retrieves the ids of the registered Texture Elements.

    Parameters:

    • texture_element_ids, a preallocated buffer that will store the ids of the Texture Elements. The size of the buffer can be retrieved using GetNumTextureElements.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetAllTextureElementIDsResult>

  • BR3D_GetAmbientColor Retrieves the global ambient color

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value

    Returns Promise<BR3D_GetAmbientColorResult>

  • BR3D_GetAmbientOcclusionQuality Retrieves the ambient quality

    Parameters:

    • quality, the ambient occlusion quality mode

    Returns Promise<BR3D_GetAmbientOcclusionQualityResult>

  • BR3D_GetArea Retrieves the measurement area. To be performed the measurement should be closed.

    Parameters:

    • measurement_id, the id of the measurement
    • area, returns the area of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetAreaResult>

  • BR3D_GetShadingOption Get the state of backface culling

    Returns the state of backface culling.

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetBackgroundImage Gets the background image texture handle.

    Parameters:

    • id, background image texture handle
    • id2, clouds image.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetBackgroundImageResult>

  • Parameters

    • minx: number
    • miny: number
    • minz: number
    • maxx: number
    • maxy: number
    • maxz: number

    Returns Promise<BR3D_GetBoundingBoxPixelCenterResult>

  • BR3D_GetCameraCubeDimensions Retrieves the dimensions of the viewport displaying the cube.

    Parameters:

    • x, the x position of the bottom left pixel
    • y, the y position of the bottom left pixel
    • width, the viewport width
    • height, the viewport height

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCameraCubeDimensionsResult>

  • BR3D_GetCameraCubeVisible Retrieves the visibility of the camera cube.

    Parameters:

    • visible: a flag indicating the visibility of the cube

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCameraCubeVisibleResult>

  • BR3D_GetCameraState Retrieves the camera state for the requested camera

    Parameters:

    • state, a floating pointer containing:
    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)
    • type, the camera's type (orbit or game)
    • projection_type, the camera's projection type (perspective or ortho) Returns true if operation was successful.

    Parameters

    • type: BIM_CAMERA_TYPE

    Returns Promise<BR3D_GetCameraStateResult>

  • BR3D_GetClosestNormalToPoint Retrieves the normal of the specified element ID that is closed to the given point

    Parameters:

    • elementID, the ID of the element either dynamic or static
    • pointX, x-coordinate of a point
    • pointY, y-coordinate of a point
    • pointZ, z-coordinate of a point
    • normalX, x-coordinate of the returned normal
    • normalY, y-coordinate of the returned normal
    • normalZ, z-coordinate of the returned normal Returns true if operation was successful.

    Parameters

    • elementID: Int64
    • pointX: number
    • pointY: number
    • pointZ: number

    Returns Promise<BR3D_GetClosestNormalToPointResult>

  • BR3D_GetClosestPoint Get the closest segment id and distance, on the measurement based on the given position.

    Parameters:

    • measurement_id, the id of the measurement
    • position(x,y,z), the position of the query. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and for the given drawing.
    • segment_id, returns the id of closest segment
    • segment_dist, returns the distance to the closest segment. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR3D_GetClosestPointResult>

  • BR3D_GetClosestPointAndOutline Retrieves closest point and outline Data Format: (endpoint_xyz, distance_to_endpoint) (line_endpoint1_xyz, distance_to_line) (line_endpoint2_xyz, distance_to_line) (closest_point_on_line, distance_to_line) (second_line_endpoint1_xyz, distance_to_line) GL ES 3 ONLY (second_line_endpoint2_xyz, distance_to_line) GL ES 3 ONLY

    Parameters:

    • px,py,pz, the world coordinates of the query
    • data the returned data. It should be a pre-allocated array of 24 floats. (e.g. float data[24];)
    • snap_to_paper, snap points on paper plane (Paper mode: Only GL43) Returns true if operation was successful.

    Parameters

    • px: number
    • py: number
    • pz: number
    • snap_to_paper: boolean

    Returns Promise<BR3D_GetClosestPointAndOutlineResult>

  • BR3D_GetClosestSegment Get the closest segment id and distance, on the measurement based on the given position.

    Parameters:

    • measurement_id, the id of the measurement
    • position(x,y,z), the position of the query. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and for the given drawing.
    • segment_id, returns the id of closest segment
    • segment_dist, returns the distance to the closest segment. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR3D_GetClosestSegmentResult>

  • BR3D_GetCurrentCameraProjectionType Retrieves the camera's angular speed

    Parameters:

    • speed, the angular speed factor of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraAngularSpeedResult>

  • BR3D_GetCurrentCameraLinearSpeed Retrieves the camera's linear speed

    Parameters:

    • speed, the linear speed factor of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraLinearSpeedResult>

  • BR3D_GetCurrentCameraProjectionType Retrieves the camera projection type (perspective or orthographic mode). Note that rotations are disabled when on orthographic mode

    Parameters:

    • type, the projection type of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraProjectionTypeResult>

  • BR3D_GetCurrentCameraState Retrieves the current camera's state

    Parameters:

    • state, a floating pointer containing:
    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)
    • type, the camera's type (orbit or game)
    • projection_type, the camera's projection type (perspective or ortho) Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraStateResult>

  • BR3D_GetCurrentCameraType Retrieves the current camera type (orbit mode or game mode).

    Parameters:

    • type, the type of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraTypeResult>

  • BR3D_GetCurrentCameraZoomBlendFactors Retrieves the camera's zoom blend factors

    Parameters:

    • minspeed: the minimum speed factor of the camera used when the camera is very close to a target object
    • maxspeed: the maximum speed factor of the camera used when the camera is very far from a target object

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraZoomBlendFactorsResult>

  • BR3D_GetCurrentCameraZoomSpeed Retrieves the camera's zoom speed

    Parameters:

    • speed, the zoom speed factor of the camera

    Returns true if operation was successful.

    Returns Promise<BR3D_GetCurrentCameraZoomSpeedResult>

  • BR3D_GetCursorFromWorldSpacePosition3D Get the cursor position from a world space position.

    Parameters

    • x,y, returned cursor position in pixels
    • pos_x, pos_y, pos_z, position in world space coordianates

    Returns true if operation was successful.

    Parameters

    • pos_x: number
    • pos_y: number
    • pos_z: number

    Returns Promise<BR3D_GetCursorFromWorldSpacePosition3DResult>

  • Parameters

    • pos_x: number
    • pos_y: number
    • pos_z: number

    Returns BR3D_GetCursorFromWorldSpacePosition3DResult

  • BR3D_GetCursorWorldSpacePosition3D Get the world space position of the cursor.

    Parameters

    • x,y, cursor position
    • pos_x, pos_y, pos_z, returned position in world space coordianates

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number

    Returns Promise<BR3D_GetCursorWorldSpacePosition3DResult>

  • Parameters

    • x: number
    • y: number

    Returns Promise<BR3D_GetCursorWorldSpacePosition3DResult>

  • Parameters

    • x: number
    • y: number

    Returns BR3D_GetCursorWorldSpacePosition3DResult

  • BR3D_GetCuttingPlaneParameters Get the various parameters of the cutting plane

    Parameters:

    • enable, enable or disable the cutting plane
    • position(x,y,z), the position of the center of the cutting plane
    • normal(x,y,z), the normal of the cutting plane
    • size, The size in each dimension of the cutting plane. The plane will be a rectangle

    Parameters

    • plane_index: number

    Returns Promise<BR3D_GetCuttingPlaneParametersResult>

  • BR3D_GetCuttingPlaneVisualizationParameters Get the visualization parameters of the cutting plane

    Parameters:

    • color(r,g,b), the fill color of the cutting region
    • opacity, the opacity of the visualized plane

    Returns Promise<BR3D_GetCuttingPlaneVisualizationParametersResult>

  • BR3D_GetElementArea Retrieves the selected area of the element (only static element)

    Parameters:

    • element_id, the ID of the element
    • selectedFaceType, the selected face type (1: footprint), (2: top), (4: all sides), (8: front side), (16: back side), (32: left side), (64: right side), (128: all), (256: with inner (applies to all only)
    • epsilon, the deviation from the selected face type. (cosine based deviation. 1.0 is when the faces have similar direction)
    • som_unit, System of Measurement Units (1: Square Metre), (2: Square millimetre), (3: Hectare), (4: Acre)

    Returns true if operation was successful.

    Parameters

    • elementId: Int64
    • selectedFaceType: Int64
    • epsilon: number
    • som_unit: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetElementFirstColor Gets the first material color (original or current of an Element) RGB is in [0 1] range

    Parameters:

    • element_id, element_id
    • red , the Red value
    • green , the Green value
    • blue , the Blue value
    • original, whether to get original or current color
    • isOriginal, checks whether current color equals to original color

    Returns true if operation was successful.

    Parameters

    • element_id: Int64
    • original: boolean

    Returns Promise<BR3D_GetElementFirstColorResult>

  • BR3D_GetElementIDFromFromFullID Retrieves the element id from the given fullID (including faceID)

    Parameters:

    • elementID, the ID of the element
    • fullID, the ID of the element including face Returns true if operation was successful.

    Parameters

    Returns Int64

  • BR3D_GetElementPerimeter Retrieves the selected perimeter of the element in millimeter (only static element)

    Parameters:

    • element_id, the ID of the element
    • selectedFaceType, the selected face type (1: footprint), (2: top), (4: all sides), (8: front side), (16: back side), (32: left side), (64: right side), (128: all), (256: with inner (applies to all only)
    • epsilon, the deviation from the selected face type

    Returns true if operation was successful.

    Parameters

    • elementId: Int64
    • selectedFaceType: Int64
    • epsilon: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetElementPixelCenter Retrieves the pixel center of a particular element

    Parameters:

    • element_id, the id of the element
    • x, the x pixel position
    • y, the y pixel position Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetElementPixelCenterResult>

  • BR3D_GetElementsArea Retrieves the area of the requested elements (both static and dynamic on GL43)

    Parameters:

    • element_ids, the list of element IDs
    • areas, the computed areas (the array should be preallocated to elements_size)
    • elements_size, the size of the list
    • som_unit, System of Measurement Units (1: Square Metre), (2: Square millimetre), (3: Hectare), (4: Acre)

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • elements_size: number
    • som_unit: number

    Returns Promise<BR3D_GetElementsAreaResult>

  • BR3D_GetElementsBoundingBox Retrieves the bounding box of a list of elements (both static and dynamic on GL43)

    Parameters:

    • element_ids, the list of element IDs
    • elements_size, the size of the list
    • minX, the minimum X value of the resulting bounding box
    • minY, the minimum Y value of the resulting bounding box
    • minZ, the minimum Z value of the resulting bounding box
    • maxX, the maximum X value of the resulting bounding box
    • maxY, the maximum Y value of the resulting bounding box
    • maxZ, the maximum Z value of the resulting bounding box

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • elements_size: number

    Returns Promise<BR3D_GetElementsBoundingBoxResult>

  • BR3D_GetElementsBoundingBoxDistance Retrieves the distance of the camera's center of projection to the center of the bounding box from a list of elements

    Parameters:

    • element_ids, the list of element IDs
    • elements_size, the size of the list
    • distance, the calculated distance

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • elements_size: number

    Returns Promise<BR3D_GetElementsBoundingBoxDistanceResult>

  • BR3D_GetElementsHighLightedIDs Retrieves the current list of highlighted IDs

    Parameters:

    • highlighted_ids, a pre-allocated buffer that will be filled with the elementIDs of the highlighted items.
    • highlighted_ids_size , the size of the highlight buffer

    Returns true if operation was successful.

    Returns Promise<BR3D_GetElementsHighLightedIDsResult>

  • BR3D_GetElementsIDs Retrieves the ids of the given globalIDs

    Parameters:

    • globalIDs, array of globalIDs
    • elementIDs, preallocated array that will be filled with the IDs of each element
    • number_of_ids, the number of the requested IDs Returns true if operation was successful.

    Parameters

    • globalIDs: string[]
    • number_of_ids: number

    Returns Promise<BR3D_GetElementsIDsResult>

  • BR3D_GetElementsSelectionMode Get the element selection mode

    Parameters:

    Returns the current selection mode

    Returns Promise<BR3D_GetElementsSelectionModeResult>

  • BR3D_GetElementsVolume Retrieves the volume of the requested elements (both static and dynamic on GL43)

    Parameters:

    • element_ids, the list of element IDs
    • volumes, the computed volumes (the array should be preallocated to elements_size)
    • elements_size, the size of the list
    • som_unit, System of Measurement Units (1: Cubic Metre), (2: Cubic millimetre), (3: Litre), (4: Gallon)

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • elements_size: number
    • som_unit: number

    Returns Promise<BR3D_GetElementsVolumeResult>

  • BR3D_GetEnhancedSilhouetteHideThreshold Retrieves the Enhanced Silhouette hide threshold

    Parameters:

    • threshold, set the threshold. Negative values mean the Enhanced Silhouette hiding is disabled.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetEnhancedSilhouetteHideThresholdResult>

  • BR3D_GetFaceFirstNormal Retrieves the normal of the first triangle with the given elementFaceID

    Parameters:

    • elementFaceID, the ID of the face of the element
    • normalX, x-coordinate of the returned normal
    • normalY, y-coordinate of the returned normal
    • normalZ, z-coordinate of the returned normal Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetFaceFirstNormalResult>

  • BR3D_GetFaceIDFromFromElementID Retrieves the face id from the given elementID

    Parameters:

    • elementID, the ID of the element
    • faceID, the ID of the face Returns true if operation was successful.

    Parameters

    Returns Int64

  • BR3D_GetFacesArea Retrieves the area of the requested faces (only static element)

    Parameters:

    • face_ids, the list of face IDs
    • areas, the computed areas (the array should be preallocated to elements_size)
    • faces_size, the size of the list
    • som_unit, System of Measurement Units (1: Square Metre), (2: Square millimetre), (3: Hectare), (4: Acre)

    Returns true if operation was successful.

    Parameters

    • face_ids: Int64[]
    • faces_size: number
    • som_unit: number

    Returns Promise<BR3D_GetFacesAreaResult>

  • BR3D_GetFacesBoundingBox Retrieves the bounding box of the requested faces (only static element)

    Parameters:

    • face_ids, the list of face IDs
    • faces_size, the size of the list
    • minX, the minimum X value of the resulting bounding box
    • minY, the minimum Y value of the resulting bounding box
    • minZ, the minimum Z value of the resulting bounding box
    • maxX, the maximum X value of the resulting bounding box
    • maxY, the maximum Y value of the resulting bounding box
    • maxZ, the maximum Z value of the resulting bounding box

    Returns true if operation was successful.

    Parameters

    • face_ids: Int64[]
    • faces_size: number

    Returns Promise<BR3D_GetFacesBoundingBoxResult>

  • BR3D_GetGlobalClosestPoint Get the closest measurement id, point id and distance from the given position.

    Parameters:

    • position(x,y,z), the position of the query. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and for the given drawing.
    • measurement_id, returns the id of the closest measurement
    • point_id, returns the id of closest point
    • point_dist, returns the distance to the closest point Returns true if operation was successful.

    Parameters

    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR3D_GetGlobalClosestPointResult>

  • BR3D_GetGlobalClosestSegment Get the closest measurement id, segment id and distance, from the given position.

    Parameters:

    • position(x,y,z), the position of the query. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and for the given drawing.
    • measurement_id, returns the id of the closest measurement
    • segment_id, returns the id of closest segment
    • segment_dist, returns the distance to the closest segment Returns true if operation was successful.

    Parameters

    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR3D_GetGlobalClosestSegmentResult>

  • BR3D_GetGlobalIDFromElementsID Retrieves the ids of the given globalIDs

    Parameters:

    • elementID, the ID of the element
    • globalIDs, preallocated array to the size of char[2048] to be filled with the globalID Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetGlobalIDFromElementsIDResult>

  • BR3D_GetGlobalMeasurementXRayMode Get the global xray mode

    Parameters:

    • enabled, the xray state Returns true if operation was successful.

    Returns Promise<BR3D_GetGlobalMeasurementXRayModeResult>

  • BR3D_GetGlobalPointCloudPointSize Get the point size of the point cloud

    Parameters:

    • pointCloudID, the point cloud id.

    Returns the point size of the point cloud. Returns -1 if not successful

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetGlobalTransparencyValue Retrieves the global transparency value for the transparent visualization option

    Parameters:

    • alpha, alpha value in [0 1] range

    Returns true if operation was successful.

    Returns Promise<BR3D_GetGlobalTransparencyValueResult>

  • BR3D_GetGridExpansionFactor Retrieves the the expansion factor of the grid

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value

    Returns Promise<BR3D_GetGridExpansionFactorResult>

  • BR3D_GetGridLevelAttributes Retrieves various attributes for a particular resolution level of the grid

    Parameters:

    • visibility_distance, the cutoff distance where the particular level will not be shown. Note that this parameters has no effect when level is BGRV_LEVEL_VERY_LOW or when this is the lowest resolution level shown for a particular scene
    • line_width, the rasterized width of the rendered line
    • resolution, the resolution of the grid for that particular level. It specifies on how many units (meters, yards) a line of that level is drawn.
    • extrusion_offset, a parameter indicating an offset (in units) that can be applied on each level. This allows for better per-level grid visualization, as different levels can have different line sizes.

    Parameters

    • level: BIM_GRID_RESOLUTION_LEVEL

    Returns Promise<BR3D_GetGridLevelAttributesResult>

  • BR3D_GetBackgroundColor Retrieves the color for a particular resolution level of the grid

    Parameters:

    • level, the resolution level
    • r, the Red value
    • g, the Green value
    • b, the Blue value
    • a, the Opacity value

    Parameters

    • level: BIM_GRID_RESOLUTION_LEVEL

    Returns Promise<BR3D_GetGridLevelColorResult>

  • BR3D_GetGridUOM Retrieves the grid's metric units Metric: Meter, Imperial: Yards

    Parameters:

    • units, the grid units (Default: Metric)

    Returns true if operation was successful.

    Returns Promise<BR3D_GetGridUOMResult>

  • BR3D_GetGridVisibilityStatus Retrieves the visibility status of the grid color

    Parameters:

    • status, a flag indicating whether visibility is enabled/disabled

    Returns Promise<BR3D_GetGridVisibilityStatusResult>

  • BR3D_GetGroundSurfaceShadowRecomputeState Get the recomputation state of the ground surface shadow technique.

    Parameters: -enable, state Returns true if the operation was performed

    Returns Promise<BR3D_GetGroundSurfaceShadowRecomputeStateResult>

  • BR3D_GetGroundSurfaceShadowState Get the state of the ground surface shadow technique.

    Parameters: -enable, state Returns true if the operation was performed

    Returns Promise<BR3D_GetGroundSurfaceShadowStateResult>

  • BR3D_GetLastSegmentLength Retrieves the length of the last added segment on the measurement.

    Parameters:

    • measurement_id, the id of the measurement
    • length, returns the length of the last segment on the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetLastSegmentLengthResult>

  • BR3D_GetLengthFromPixelSize Returns the world space size from pixel size at a given position. Works in perspective cameras

    Parameters:

    • position_ x,y,z, the position in world space
    • pixel_size, the pixel size Returns the world space size or 0.0 if operation was not successful

    Parameters

    • position_x: number
    • position_y: number
    • position_z: number
    • pixel_size: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetLineFadeOut Get the state of outline and line pattern fade out

    Returns the state of fade out.

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetLinePatternThickness Get the thickness of line patterns

    Returns the thickness value in pixels

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetMeasurement3DDataSize Get the size of the generated measurement byte buffer

    Parameters:

    • measurement_id, the id of the measurement
    • number_of_bytes, returns the number of bytes Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurement3DDataResult>

  • BR3D_GetMeasurement3DDataSize Get the size of the generated measurement byte buffer

    Parameters:

    • measurement_id, the id of the measurement
    • number_of_bytes, returns the number of bytes Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurement3DDataSizeResult>

  • BR3D_GetMeasurement3DPreviewColor Get the preview color of the measurements

    Parameters:

    • r,g,b,a - preview color

    Returns Promise<BR3D_GetMeasurement3DPreviewColorResult>

  • BR3D_GetMeasurementDrawOrder Retrieves the draw order of the current measurement

    Parameters:

    • measurement_id, the id of the measurement
    • order, the draw order. Measurements are rendered in ascending order of the draw_order value. Negative numbers are allowed. Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementDrawOrderResult>

  • GetMeasurementFillColor Retrieves the fill color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the fill color of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementFillColorResult>

  • BR3D_GetMeasurementFillPattern Retrieves the fill pattern of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • mode, return the fill pattern of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementFillPatternResult>

  • BR3D_GetMeasurementLineColor Retrieves the line color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the line color of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementLineColorResult>

  • BR3D_GetMeasurementLineWidth Retrieves the line width of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • line_width, the line width (in pixels) of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementLineWidthResult>

  • Parameters

    • measurement_id: Int64
    • point_index: number

    Returns Promise<BR3D_GetMeasurementPointAtResult>

  • GetMeasurementPointColor Retrieves the point color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the point color of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementPointColorResult>

  • BR3D_GetMeasurementPointSize Retrieves the point size of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • point_size, the point size (in pixels) of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementPointSizeResult>

  • Parameters

    Returns Promise<BR3D_GetMeasurementPointsSizeResult>

  • BR3D_GetMeasurementPreviewMode Get the preview mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • enabled, the preview state Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementPreviewModeResult>

  • BR3D_GetMeasurementSegmentIDs Get the segment ids of the given segment. Use the function with segment_ids = null, to get the number of segments in number_of_segments variable. (BR3D_GetMeasurementSegmentIDs(ID, NULL, &number_of_segments); Then preallocate an array of size equal or greater than number_of_segments. (segmentArray = new int[number_of_segments]). Use the function to fill the array with the segments ids. (BR3D_GetMeasurementSegmentIDs(ID, segmentArray, number_of_segments);

    Parameters:

    • measurement_id, the id of the measurement
    • segment_ids, a preallocated array to be filled with the ids of the segments
    • number_of_segments, returns the number of segments Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementSegmentIDsResult>

  • GetMeasurementVisualizationMode Retrieves the visualization mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • mode, return the visualization mode of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementVisualizationModeResult>

  • BR3D_GetMeasurementXRayMode Get the xray mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • enabled, the xray state Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetMeasurementXRayModeResult>

  • BR3D_GetMeasurementsBoundingBox Get the Bounding Box of the Measurements

    Parameters:

    • measurement_ids, the ids of the measurement
    • size, of the ids of the measurement
    • min/max(x,y), the baounding box. Returns true if operation was successful

    Parameters

    • measurement_ids: Int64[]
    • size: number

    Returns Promise<BR3D_GetMeasurementsBoundingBoxResult>

  • BR3D_GetNum2DDrawings Retrieves the number of the registered 2D Drawings

    Parameters:

    • num_drawings, the number of 2D Drawings

    Returns true if operation was successful.

    Returns Promise<BR3D_GetNum2DDrawingsResult>

  • BR3D_GetNumMinimaps Retrieves the number of the registered Minimaps

    Parameters:

    • num_minimaps, the number of Minimaps

    Returns true if operation was successful.

    Returns Promise<BR3D_GetNumMinimapsResult>

  • BR3D_GetNumTextureElements Retrieves the number of registered Texture Elements

    Parameters:

    • num_texture_elements, the number of Texture Elements

    Returns true if operation was successful.

    Returns Promise<BR3D_GetNumTextureElementsResult>

  • BR3D_GetOutlineElementColorVisualization Get the mode for rendering the outlines with the element color or black.

    Parameters: -enable, render with the element color or not Returns true if the operation was performed

    Returns Promise<BR3D_GetOutlineElementColorVisualizationResult>

  • BR3D_GetOutlineThickness Get the thickness of the outlines (shaded mode)

    Returns the thickness value in pixels

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetOutlineThickness Get the thickness of the outlines (outline mode)

    Returns the thickness value in pixels

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetPaperColor Get the paper color

    Parameters:

    • rgba, color values (range [0..1]) Returns true if operation was successful.

    Returns Promise<BR3D_GetPaperColorResult>

  • BR3D_GetPointAdjacentPointIDs Get the adjacent point ids from the given point id connected with segments through the point id.

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of point
    • point_id1, returns the id of the first point. Returns -1 if it does not exists.
    • point_id2, returns the id of the second point. Returns -1 if it does not exists. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number

    Returns Promise<BR3D_GetPointAdjacentPointIDsResult>

  • BR3D_GetPointCloudBoundingBox Retrieves the bounding box of the requested point cloud

    Parameters:

    • pointCloudID, the point cloud id
    • minX, the minimum X value of the resulting bounding box
    • minY, the minimum Y value of the resulting bounding box
    • minZ, the minimum Z value of the resulting bounding box
    • maxX, the maximum X value of the resulting bounding box
    • maxY, the maximum Y value of the resulting bounding box
    • maxZ, the maximum Z value of the resulting bounding box

    Returns true if operation was successful.

    Parameters

    • pointCloudID: number

    Returns Promise<BR3D_GetElementsBoundingBoxResult>

  • BR3D_GetPointCloudPointSize Get the point size of the point cloud

    Parameters:

    • pointCloudID, the point cloud id.

    Returns the point size of the point cloud. Returns -1 if not successful

    Parameters

    • pointCloudID: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetPointCloudVisibility Get the visibility of the point cloud

    Parameters:

    • pointCloudID, the point cloud id.

    Returns the visibility of the point cloud.

    Parameters

    • pointCloudID: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetPointPosition Get position of a point id

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of point
    • position(x,y,z), returns the position of the point Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number

    Returns Promise<BR3D_GetPointPositionResult>

  • BR3D_GetSSAOHideThreshold Retrieves the SSAO hide threshold

    Parameters:

    • threshold, set the threshold. Negative values mean the SSAO hiding is disabled.

    Returns true if operation was successful.

    Returns Promise<BR3D_GetSSAOHideThresholdResult>

  • BR3D_GetSceneBoundingBox Retrieves the bounding box of the entire scene

    Parameters:

    • minX, the minimum X value of the scene's bounding box
    • minY, the minimum Y value of the scene's bounding box
    • minZ, the minimum Z value of the scene's bounding box
    • maxX, the maximum X value of the scene's bounding box
    • maxY, the maximum Y value of the scene's bounding box
    • maxZ, the maximum Z value of the scene's bounding box

    Returns true if operation was successful.

    Returns Promise<BR3D_GetSceneBoundingBoxResult>

  • BR3D_GetSegmentLength Retrieves the length of the requested segment on the measurement.

    Parameters:

    • measurement_id, the id of the measurement
    • segment_id, the id of the segment
    • length, returns the length of the segment on the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • segment_id: number

    Returns Promise<BR3D_GetSegmentLengthResult>

  • BR3D_GetSegmentPointIDs Get the point ids of the given segment.

    Parameters:

    • measurement_id, the id of the measurement
    • segment_id, the id of segment
    • point_id1, returns the id of the first point
    • point_id2, returns the id of the second point Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • segment_id: number

    Returns Promise<BR3D_GetSegmentPointIDsResult>

  • BR3D_GetSelectedIDs Get the concatenated IDs of the selected elements. The returned buffer contains the IDS and is managed by the BIMRenderer Engine. Do not use it inside the application as an extra buffer. Only use it to get the selected ids and copy them into the application memory

    Parameters:

    • names, a pre-allocated buffer that will be filled with the globalIDs of the selected items. Size of buffer = PeekBinaryBlobSize()

    Returns the number of selected IDS (which is also the size of the IDS buffer)

    Returns Promise<BR3D_GetSelectedIDsResult>

  • BR3D_GetSelectedMeasurements3DIDs Get the selected measurements IDs. IDs are used as 32 bit values. Will be changed in the future in only int or unsigned int.

    Parameters:

    • IDS, the returned ids Returns true if operation was successful.

    Returns Promise<BR3D_GetSelectedMeasurements3DIDsResult>

  • BR3D_GetSelectedMeasurements3DPointIDs Get the selected measurements IDs and point ids. IDs are used as 32 bit values. Will be changed in the future in only int or unsigned int.

    Parameters:

    • measurement_ids, the returned measurement ids
    • point_ids, the returned point ids Returns true if operation was successful.

    Returns Promise<BR3D_GetSelectedMeasurements3DPointIDsResult>

  • BR3D_GetSelectiveOutlineRendering Retrieves the selective outline rendering state

    Parameters:

    • enable, the selective outline rendering state

    Returns true if operation was successful.

    Returns Promise<BR3D_GetSelectiveOutlineRenderingResult>

  • BR3D_GetSelectiveRenderingMode Retrieves the selective rendering mode

    Parameters:

    • level, the selective rendering mode

    Returns true if operation was successful.

    Returns Promise<BR3D_GetSelectiveRenderingModeResult>

  • BR3D_GetShadingOption Retrieves the elements shading options

    Parameters:

    • options, the shading option

    Returns true if operation was successful.

    Returns Promise<BR3D_GetShadingOptionResult>

  • BR3D_GetSunLightingLensFlare Get sun lighting lens flare effect status

    Returns true if lens flare effect is enabled.

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetSunLightingLensFlareSunOnly Is the sun flare effect enable only for the sun corona

    Returns true if lens flare effect is enabled.

    Returns Promise<BR_FunctionOutput>

  • BR3D_GetSunLightingProperties Gets sun light properties

    Parameters:

    • enabled, set the state of sun lighting
    • phi, is the polar angle
    • theta, is the azimuthal angle
    • r,g,b the color of the sun

    Returns true if operation was successful.

    Returns Promise<BR3D_GetSunLightingPropertiesResult>

  • GetTextureElementActive BR3D_Retrieves the rendering status of the Texture Element.

    Parameters: texture_element_id, the Texture Element id active, a flag indicating whether the Texture Element will be rendered

    Returns true if operation was successful.

    Parameters

    • texture_element_id: Int64

    Returns Promise<BR3D_GetTextureElementActiveResult>

  • BR3D_GetTextureElementParameters Retrieves the dimension and position of a 3D Texture Element. Note that this forces a re-allocation of the buffers for the requested Texture Element.

    Parameters: texture_element_id, the Texture Element id pos_top_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_bottom_left_(x,y,z), the top left 3D position of the Texture Element in world coordinates pos_top_right_(x,y,z), the top left 3D position of the Texture Element in world coordinates

    Returns true if operation was successful.

    Parameters

    • texture_element_id: Int64

    Returns Promise<BR3D_GetTextureElementParametersResult>

  • BR3D_GetTotalLength Retrieves the length of the measurement.

    Parameters:

    • measurement_id, the id of the measurement
    • length, returns the length of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_GetTotalLengthResult>

  • BR3D_GetTransformGizmoHoverColor Gets the hover color of the 3D Transform Gizmo

    Parameters:

    • r,g,b, hover color

    Returns Promise<RGB>

  • BR3D_GetTransformGizmoPosition Returns the position of the 3D Transform Gizmo in world space units. Parameters:

    • x,y,z, position of the gizmo

    Returns Promise<BR3D_GetTransformGizmoPositionResult>

  • BR3D_GetTransformGizmoRotationOffset Gets the initial rotation offset of the 3D Transform Gizmo

    Parameters:

    • phi, angle from the positive Y Axis
    • theta, angle in the XZ plane

    Returns Promise<BR3D_TransformGizmoRotationOffset>

  • BR3D_GetTransformGizmoScreenSize Returns the screen size of the 3D Transform Gizmo

    Returns the screen size of the gizmo

    Returns Promise<number>

  • BR3D_GetTransformGizmoTransformState Returns the transfomation state of the 3D Transform Gizmo Parameters:

    • p x,y,z, position of the gizmo
    • s x,y,z, scale of the gizmo
    • r x,y,z, rotation of the gizmo

    Returns Promise<BR3D_GetTransformGizmoTransformStateResult>

  • Returns Promise<BR3D_GetVisibleElementsBoundingBoxResult>

  • BR3D_HiddenLineGetColor Get geometry fill color for the Hidden Line rendering mode

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value Returns true if operation was successful.

    Returns Promise<BR3D_HiddenLineGetColorResult>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Hidden Line API BR3D_HiddenLineSetColor Set geometry fill color for the Hidden Line rendering mode

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value Returns true if operation was successful.

    Parameters

    • r: number
    • g: number
    • b: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_InsertMeasurementPoint Insert a point at a given position and breaks the given segment into two new segments connected with the new point.

    Parameters:

    • measurement_id, the id of the measurement
    • segment_id, the id of the segment to be broken
    • position(x,y,z), the position of the point. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and from the given drawing.
    • point_id, returns the generated id of the point Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • segment_id: number
    • position_x: number
    • position_y: number
    • position_z: number
    • control_point: boolean

    Returns Promise<BR3D_InsertMeasurementPointResult>

  • BR3D_IsActiveMinimapOffscreenRenderingEnabled Retrieves the offscreen rendering status for the minimap. This can be useful if the minimap should be rendered on an external overlay window (for resize, etc)

    Parameters:

    • offscreen, a flag indicating whether offscreen rendering will be enabled/disabled

    Returns true if operation was successful.

    Returns Promise<BR3D_IsActiveMinimapOffscreenRenderingEnabledResult>

  • BR3D_IsCameraCompassClicked Retrieves a flag indicating whether the given mouse click event has clicked the camera cube, along with the selected camera cube position

    Parameters:

    • x, the x position of the bottom left pixel
    • y, the y position of the bottom left pixel
    • clicked, returns if the mouse click has selected the camera compass
    • position, returns the selected compass direction (undefined if clicked = false)

    Parameters

    • x: number
    • y: number

    Returns Promise<BR3D_IsCameraCompassClickedResult>

  • BR3D_IsCameraCompassDragging Is the compass widget currently being dragged

    Parameters:

    Returns Promise<boolean>

  • BR3D_IsCameraCompassVisible Is the compass widget currently visible

    Parameters:

    Returns Promise<boolean>

  • BR3D_IsCameraCubeClicked Retrieves a flag indicating whether the given mouse click event has clicked the camera cube, along with the selected camera cube position

    Parameters:

    • x, the x position of the bottom left pixel
    • y, the y position of the bottom left pixel
    • clicked, returns if the mouse click has selected the camera cube
    • position, returns the selected camera cube position (undefined if clicked = false)

    Parameters

    • x: number
    • y: number

    Returns Promise<BR3D_IsCameraCubeClickedResult>

  • BR3D_IsCameraTransitioning Check if the camera is transitioning

    Returns camera transition state.

    Returns Promise<BR_FunctionOutput>

  • Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_IsElementVisible Set the visibility of a list of elements

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_IsMeasurementClosed Check if the measurement is closed.

    Parameters:

    • measurement_id, the id of the measurement
    • is_closed, the state of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_IsMeasurementClosedResult>

  • BR3D_IsPointControlPoint Get is_control_point of a point id

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of point
    • is_control_point, returns if point is control point Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number

    Returns Promise<BR3D_IsPointControlPointResult>

  • BR3D_IsSunVisible Get sun visible. This information has a one (1) frame delay

    Returns true if the sun is visible and within viewport.

    Returns Promise<BR_FunctionOutput>

  • BR3D_LoadMeasurement3DData Load a measurement from a byte buffer

    Parameters:

    • measurement_id, returns the id of the measurement
    • drawing_id, returns the id of the drawing (not used)
    • data, a byte buffer that stores the data
    • number_of_bytes, the size of the byte buffer Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • data: Uint8Array

    Returns Promise<BR_FunctionOutput>

  • BR3D_MergeFaceAndElementID Merges the face and element id

    Parameters:

    • elementID, the ID of the element
    • faceID, the ID of the face
    • merged_id, the ID of the face and element Returns true if operation was successful.

    Parameters

    Returns Int64

  • BR3D_MirrorMeasurement Mirror the measurement in 2D space

    Parameters:

    • measurement_id, the id of the measurement
    • mirror(x,y), the mirror on both 2D axis. Returns true if operation was successful

    Parameters

    • measurement_id: Int64
    • mirror_x: boolean
    • mirror_y: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_MirrorMeasurementPivotPoint Mirror the measurement in 2D space

    Parameters:

    • measurement_id, the id of the measurement
    • position(x,y,z), the pivot point position
    • mirror(x,y), mirror x or y coordinate system. Returns true if operation was successful

    Parameters

    • measurement_id: Int64
    • position_x: number
    • position_y: number
    • position_z: number
    • mirror_x: boolean
    • mirror_y: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_MirrorMeasurements Mirror the measurements in 2D space

    Parameters:

    • measurement_ids, the ids of the measurement
    • size, of the ids of the measurement
    • mirror(x,y), the mirror on both 2D axis. Returns true if operation was successful

    Parameters

    • measurement_ids: Int64[]
    • size: number
    • mirror_x: boolean
    • mirror_y: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_MirrorMeasurementsOnPlane Mirror the measurements in 2D space

    Parameters:

    • measurement_ids, the ids of the measurement
    • size, of the ids of the measurement
    • plane_norma(x,y,z), the plane normal for rotation
    • mirror(x,y), the mirror on both 2D axis. Returns true if operation was successful

    Parameters

    • measurement_ids: Int64[]
    • size: number
    • plane_normal_x: number
    • plane_normal_y: number
    • plane_normal_z: number
    • mirror_x: boolean
    • mirror_y: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurement Move the measurement at a given direction

    Parameters:

    • measurement_id, the id of the measurement
    • direction(x,y), the direction and magnitude that the segment will be moved (as seen through the view and in mm) Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • direction_x: number
    • direction_y: number
    • direction_z: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurementPoint Move the point of the measurement at the given location.

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of the point to be moved
    • position(x,y,z), the position to be moved to. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and from the given drawing. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number
    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurementPointOverPlaneWithSnapping Move the point of the measurement over plane at the given location.

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of the point to be moved
    • normal(x,y,z), provided plane normal
    • position(x,y,z), the position to be moved to. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and from the given drawing.
    • snappingIntervalInDegrees, the snapping interval in degrees. Range [5, 180] degrees. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number
    • normal_x: number
    • normal_y: number
    • normal_z: number
    • position_x: number
    • position_y: number
    • position_z: number
    • snappingIntervalInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurementPointWithSnapping Move the point of the measurement at the given location.

    Parameters:

    • measurement_id, the id of the measurement
    • point_id, the id of the point to be moved
    • position(x,y,z), the position to be moved to. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and from the given drawing.
    • snappingIntervalInDegrees, the snapping interval in degrees. Range [5, 180] degrees. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_id: number
    • position_x: number
    • position_y: number
    • position_z: number
    • snappingIntervalInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurementSegment Move the measurement segment at a given direction

    Parameters:

    • measurement_id, the id of the measurement
    • segment_id, the id of the segment to be move
    • direction(x,y,z), the direction and magnitude that the segment will be moved. The direction should be in the plane of the given drawing. Otherwise the measurement will not be coplanar and it will lead to errors and undefined behavior. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • segment_id: number
    • direction_x: number
    • direction_y: number
    • direction_z: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_MoveMeasurements Move the measurements at a given direction

    Parameters:

    • measurement_ids, the ids of the measurements
    • size, the size of measurements
    • direction(x,y), the direction and magnitude that the segment will be moved (as seen through the view and in mm) Returns true if operation was successful.

    Parameters

    • measurement_ids: Int64[]
    • size: number
    • direction_x: number
    • direction_y: number
    • direction_z: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_PushBackMeasurementPoint Append a point on the measurement and create a line

    Parameters:

    • measurement_id, the id of the measurement
    • position(x,y,z), the position of the point. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and from the given drawing.
    • point_id, returns the generated id of the point
    • segment_id, returns the generated id of the segment (if a segment was not created it returns -1)
    • is_control, mark the point as a curve control point. (Bezier curve). Curves are approximated with lines as a result affecting Area and Length computations Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • position_x: number
    • position_y: number
    • position_z: number
    • control_point: boolean

    Returns Promise<BR3D_PushBackMeasurementPointResult>

  • BR3D_QuickCorner Find the nearest intersection point in 2D raster/pixel space based on the current cursor position.

    Parameters:

    • coord_x, X window coordinate to start corner extraction
    • coord_y, Y window coordinate to start corner extraction
    • corner_x, X window coordinate of the closest corner
    • corner_y, Y window coordinate of the closest corner Returns true if operation was successful.

    Parameters

    • coord_x: number
    • coord_y: number

    Returns Promise<BR3D_QuickCornerResult>

  • BR3D_QuickEdgePoint Find the nearest intersection point in 2D raster/pixel space based on the current cursor position.

    Parameters:

    • coord_x, X window coordinate to start corner extraction
    • coord_y, Y window coordinate to start corner extraction
    • corner_x, X window coordinate of the closest corner
    • corner_y, Y window coordinate of the closest corner Returns true if operation was successful.

    Parameters

    • coord_x: number
    • coord_y: number

    Returns Promise<BR3D_QuickEdgePointResult>

  • BR3D_QuickMeasurement

    See

    BR3D_CreateMeasurement Creates a a new measurement using the rasterized image of the scene's outlines. This procedure, first checks if the provided screen coords point to empty space (no outlines or geometry) on the drawing. If the space is empty, it proceeds to find the empty fill-area around that point in order to construct a measuremnet for the empty space around that pixel. The threshold is used to control the conditions of the expansion. After finding the fill-area, a measurement is constructed using the provided measurement_id.

    Parameters:

    • measurement_id, the id of the measurement
    • coord_x, X window coordinate to start measurement extraction
    • coord_y, Y window coordinate to start measurement extraction
    • pixel_threshold, A threshold in pixels to respect when expanding the region of the measurement E.g. a pixel threshold of 10 will only consider spaces for the measuremnet that are wider/taller than 10 pixels across Smaller values will have higher accuracy Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • coord_x: number
    • coord_y: number
    • pixel_threshold: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_Remove2DDrawing Removes an existing 2D Drawing

    Parameters:

    • drawing_id, the drawing id

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemoveDynamicElement Remove the dynamic element

    Parameters:

    • dynamicElementID, The ID of the dynamic element.

    Returns true if the operation was succesfull.

    Parameters

    • visualizationElementID: Int64

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemoveElement Remove the element from the model

    Parameters:

    • modelID, ID of the model
    • globalID, globalID of the element

    Returns true if operation was successful.

    Parameters

    • modelID: Int64
    • globalID: string

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemoveMeasurement Removes the 3D measurement and deletes the data.

    Parameters:

    • measurement_id, the id of the measurement Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemoveModel Remove a model of the given name and ID from the scenegraph

    Parameters:

    • name, name of the model
    • ID, ID of the model

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemovePointCloud remove a point cloud

    Parameters:

    • pointCloudID, id of the point cloud

    Returns true if the operation was successful.

    Parameters

    • pointCloudID: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RemoveSensorChannel Delete the channel with id 'channel_id' that was previosuly created by a call to 'BR3D_AddSensorChannel'

    Parameters:

    • channel_id, channel id

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • Parameters: texture_element_id, the Texture Element id

    Returns true if operation was successful.

    Parameters

    • textureID: number

    Returns Promise<BR3D_RemoveTextureResult>

  • Parameters: texture_element_id, the Texture Element id

    Returns true if operation was successful.

    Parameters

    • texture_element_id: Int64

    Returns Promise<BR_FunctionOutput>

  • BR3D_Render2DDrawing Renders a registered 2D Drawing. The Drawing is rendered orthographically in outline mode using the specified bounding box parameters and camera position.

    Parameters:

    • drawing_id, the 2D Drawing id

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • Reset2DDrawingTypes Resets all color customizations to the engine's original state

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Camera3D API

    BR3D_ResetCameras Reset the position and properties of the cameras based on the loaded model

    • position, the position type of the camera

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_RevertElementsColor Pass a list of IDs of the elements to be reverted to their original color

    Requirements: Element IDs must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • element_ids, an array of the ids of the elements to be reverted to their original color
    • number_of_ids , number of element ids in the element_ids array

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RevertMeasurementPointIdsGenBack Reverts the generation segment and point IDs back minus one value

    Parameters:

    • measurement_id, the id of the measurement

    Parameters

    Returns Promise<boolean>

  • BR3D_RotateMeasurement Rotate the measurement in 2D space

    Parameters:

    • measurement_id, the id of the measurement
    • angleInDegrees, the rotation angle in degrees Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • angleInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RotateMeasurementPivotPoint Rotate the measurement in 2D space using a pivot point.

    Parameters:

    • measurement_id, the id of the measurement
    • position(x,y,z), the pivot point position
    • angleInDegrees, the rotation angle in degrees Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • position_x: number
    • position_y: number
    • position_z: number
    • angleInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RotateMeasurements Rotate the measurements in 2D space using a pivot point.

    Parameters:

    • measurement_ids, the id of the measurements
    • size, the size of the measurements
    • angleInDegrees, the rotation angle in degrees Returns true if operation was successful.

    Parameters

    • measurement_ids: Int64[]
    • size: number
    • angleInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RotateMeasurementsOnPlane Rotate the measurement in 2D space using a normal plane.

    Parameters:

    • measurement_id, the id of the measurement
    • plane_norma(x,y,z), the plane normal for rotation
    • angleInDegrees, the rotation angle in degrees Returns true if operation was successful.

    Parameters

    • measurement_ids: Int64[]
    • size: number
    • plane_normal_x: number
    • plane_normal_y: number
    • plane_normal_z: number
    • angleInDegrees: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RubberbandSelectElements Do a rubberband selection on the elements.

    Parameters:

    • p1(x,y) the screen coordinates
    • p2(x,y) the screen coordinates
    • mode, the rubberband mode
    • element_mode, the element mode (static or both static and dynamic)

    Returns the number of selected IDS (which is also the size of the IDS buffer)

    Parameters

    • p1_x: number
    • p1_y: number
    • p2_x: number
    • p2_y: number
    • mode: BIM_RUBBERBAND_MODE
    • element_mode: BIM_ELEMENT_SELECTION_MODE

    Returns Promise<BR_FunctionOutput>

  • BR3D_RubberbandSelectMeasurementPoints Use rubberband select on 3D measurements points. Only on visible intersected measurements.

    Parameters:

    • p1_(x,y), p2_(x,y), the rubberband pixel coordinates Returns true if operation was successful.

    Parameters

    • p1_x: number
    • p1_y: number
    • p2_x: number
    • p2_y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_RubberbandSelectMeasurements Use rubberband select on 3D measurements. Only on visible intersected measurements.

    Parameters:

    • p1_(x,y), p2_(x,y), the rubberband pixel coordinates Returns true if operation was successful.

    Parameters

    • p1_x: number
    • p1_y: number
    • p2_x: number
    • p2_y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_ScaleMeasurement Scale the measurement in 2D space

    Parameters:

    • measurement_id, the id of the measurement
    • scaleFactor(x,y), the scale factor on both 2D axis. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • scaleFactor_x: number
    • scaleFactor_y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_ScanSnapshotSessionCreate Create a scan snaphsot session. The user is expected to provide the region that is going to be used as the template for the scan process by specifying the region's extents in window coordinates(@see BR_GetRubberbandExtents). The values of that region will be used to extract the template image. Once a session is created, the renderer proceeds to capture all the snapshots in the scene that are going to be needed for the scan session. The renderer will block for this step.

    In the current version of the library, only ONE scan snapshot session can be active at a time.

    Parameters:

    • session_id, a unique id for the session
    • min_x, start X coordinate of the region to use as the template
    • min_y, start Y coordinate of the region to use as the template
    • max_x, end X coordinate of the region to use as the template
    • max_y, end Y coordinate of the region to use as the template

    Returns true if operation was successful.

    Parameters

    • session_id: Int64
    • min_x: number
    • min_y: number
    • max_x: number
    • max_y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_ScanSnapshotSessionDestroy A session should always be destroyed using this API call.

    Parameters:

    • session_id, id of the session Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_ScanSnapshotSessionGetTemplateImage Gets the width, height and RGBA data of the template image associated with the provided session.

    It must be called after the session has been created.

    Parameters:

    • session_id, id of the session
    • template_width, will hold the template image's width
    • template_height, will hold the template image's height
    • template_data, will hold the template image's data in RGBA format of 4 bytes per pixel Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_ScanSnapshotSessionGetTemplateImageResult>

  • BR3D_ScanSnapshotSessionNextImage Return the snaphot of the next region

    Parameters:

    • session_id, id of the session
    • image_data, preallocated rgba data (4 bytes per pixel) at the size of the current viewport
    • world_matrix, preallocated float array to transform from the normalized screen coordinates to World Space Position

    To get the world_position of a pixel: vec2 normalized_pixel_coord = pixel / resolution; // normalize the pixel coordinates vec4 pos(2.f * normalized_pixel_coord.x - 1.f, 2.f * (1.0f - normalized_pixel_coord.y) - 1.f, 0.f, 1.f); // convert from [0 1] to [-1 1]. Flip the Y axis if needed pos = world_matrix * pos; pos /= pos.w; pos contains the world coordinates of the pixel

    Returns true if operation was successful.

    Parameters

    • session_id: Int64
    • vp_width: number
    • vp_height: number

    Returns Promise<BR3D_ScanSnapshotSessionNextImageResult>

  • BR3D_ScanSnapshotSessionProgress Gets the progress of a previously started session

    Parameters:

    • session_id, id of the session Returns true if operation was successful.

    Parameters

    Returns Promise<BR3D_ScanSnapshotSessionProgressResult>

  • BR3D_SelectCuttingPlane Select a cutting plane.

    Parameters:

    • x,y, the screen coordinates Returns the index of the cutting plane or -1 if none was selected

    Parameters

    • x: number
    • y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SelectMeasurement Get the selected measurement.

    Parameters:

    • position(x,y,z), the position of the query. The position of each measurement should be coplanar and in the space of the specified drawing. For that reason the position should be provided by the position returned from the engine and for the given drawing.
    • measurement_id, returns the id of the selected measurement Returns true if operation was successful.

    Parameters

    • position_x: number
    • position_y: number
    • position_z: number

    Returns Promise<BR3D_SelectMeasurementResult>

  • BR3D_Set2DDrawingBackground Sets the background color for the 2D drawings. This is a state operation.

    Parameters:

    • color(r,g,b), the background color (Default is 1,1,1) Returns true if operation was successful.

    Parameters

    • color_r: number
    • color_g: number
    • color_b: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_Set2DDrawingDefaultDrawingType Sets the default color and line width for all drawing types that have not been set specifically (through BR3D_Set2DDrawingType).

    Parameters:

    • line_width, the line width (Default is 1.0)
    • color(r,g,b,a), the background color (Default is 0,0,0,1) Returns true if operation was successful.

    Parameters

    • line_width: number
    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_Set2DDrawingFontColor Sets the font color for the 2D drawings. This is a state operation.

    Parameters:

    • color(r,g,b,a), the font's color (Default is 0,0,0,1) Returns true if operation was successful.

    Parameters

    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_Set2DDrawingFontName Sets the font used for the 2D drawings. This is a state operation. The font must have been registered.

    Parameters:

    • font, the font name Returns true if operation was successful.

    Parameters

    • name: string

    Returns Promise<BR_FunctionOutput>

  • BR3D_Set2DDrawingType Sets the color and line width for a particular IFC type

    Parameters:

    • type, the name of the IFC type (case-sensitive)
    • line_width, the line width (Default is 1.0)
    • color(r,g,b,a), the background color (Default is 0,0,0,1) Returns true if operation was successful.

    Parameters

    • type: string
    • line_width: number
    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_Set2DDrawingZoomOutPercentage Sets the percentage that the camera will be zoomed out for the 2D drawings, e.g., a zoom out value of 0.1 means that the camera will zoom out 10%. This is a state operation. This operation can be useful for printing text that does not overlap with the generated Drawing.

    Parameters:

    • percentage, the zoom out percentage (Default is 0.0) Returns true if operation was successful.

    Parameters

    • percentage: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapCameraParameters Sets the color and size (in pixels) of the camera icon

    Parameters:

    • color (r,g,b,a), the camera's color (Default is 0,0,0,1)
    • size, the thickness of the camera (Default is 10)

    Returns true if operation was successful.

    Parameters

    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number
    • size: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapID Sets a minimap as active for rendering

    Parameters:

    • minimap_id, the id of the minimap

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapOffscreenRendering Enables/disables offscreen rendering for the minimap. This can be useful if the minimap should be rendered on an external overlay window (for resize, etc)

    Parameters:

    • offscreen, a flag indicating whether offscreen rendering will be enabled/disabled (Default is disabled)

    Returns true if operation was successful.

    Parameters

    • offscreen: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapID Sets the opacity of the active minimap.

    Parameters:

    • opacity, the opacity of the minimap (Default is 1.0)

    Returns true if operation was successful.

    Parameters

    • opacity: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapWindowPosition Sets the viewport pixel positions of the active minimap. Any changes to these parameters force a new render of the associated 2D Drawings. This function MUST be called during the registration of a minimap, otherwise it will not be shown.

    Parameters:

    • x, the x coordinate of the bottom left pixel
    • y, the y coordinate of the bottom left pixel
    • width, the width of the minimap
    • height, the height of the minimap

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetActiveMinimapWindowThicknessParameters Sets the stroke's color and thickness (in pixels) of the minimap window

    Parameters:

    • color (r,g,b,a), the stroke's color (Default is 0,0,0,1)
    • pixel_thickness, the thickness of the stroke (Default is 1)

    Returns true if operation was successful.

    Parameters

    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number
    • pixel_thickness: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • mode: BIM_SENSOR_VISUALIZATION_OPTIONS

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetAmbientColor BR3D_Sets the global ambient color (Default is 0.2, 0.2, 0.2)

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value

    Parameters

    • r: number
    • g: number
    • b: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetAmbientOcclusionQuality BR3D_Sets the ambient occlusion quality.

    Parameters:

    • quality, the ambient occlusion quality mode

    Parameters

    • quality: BR3D_AMBIENT_OCCLUSION_QUALITY

    Returns Promise<void>

  • Parameters

    • radians: number

    Returns Promise<boolean>

  • BR3D_SetBackfaceCulling Set the state of backface culling

    Parameters:

    • enabled, the state of backface culling

    Parameters

    • enabled: boolean

    Returns Promise<void>

  • BR3D_SetBackgroundColors Sets the background colors

    Parameters:

    • r1, the Red value of top color
    • g1, the Green value of top color
    • b1, the Blue value of top color
    • r2, the Red value of bottom color
    • g2, the Green value of bottom color
    • b2, the Blue value of bottom color

    Returns true if operation was successful.

    Parameters

    • r1: number
    • g1: number
    • b1: number
    • r2: number
    • g2: number
    • b2: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetBackgroundImage Sets the background image. Set it to 0 to disable the background image and show the color gradient

    Parameters:

    • id, background image texture handle
    • id2, clouds image. It should be transparent in the absense of clouds
    • rotation, rotation of the clouds on Y axis (in radians) Returns true if operation was successful.

    Parameters

    • id: number
    • id2: number
    • rotation: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetBillboardPresort Presort the billboards according to distance form camera for OIT (order independent transparency).

    Parameters:

    • active, pre-sort or not Returns true if the operation was succesfull.

    Parameters

    • active: boolean

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • visible: boolean

    Returns Promise<void>

  • BR3D_SetCameraCubeDimensions Set the dimensions of the viewport displaying the cube.

    Parameters:

    • x, the x position of the bottom left pixel
    • y, the y position of the bottom left pixel
    • width, the viewport width
    • height, the viewport height

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCameraCubeHoverColor Set the camera cube highlight color

    Parameters:

    • r, g, b, highlight color

    Parameters

    • r: number
    • g: number
    • b: number

    Returns Promise<void>

  • BR3D_SetCameraCubeRenderOnlyRotationArrows Set the camera cube render mode to render only rotation arrows

    Parameters:

    • state, enable the render mode to render only rotation arrows

    Parameters

    • state: number

    Returns Promise<void>

  • BR3D_SetCameraCubeVisible Sets the visibility of the camera cube.

    Parameters:

    • visible: a flag indicating the visibility of the cube (Default is true)

    Returns true if operation was successful.

    Parameters

    • visible: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCameraTransition Transition to the given camera cube position (Orbit camera only)

    • position, the camera cube position

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCameraTransitionArbitrary Transition to an arbitrary position/direction and up vector (Orbit camera only)

    • camera_pos_ x,y,z, the new position of the camera
    • camera_target_ x,y,z, the new target of the camera
    • camera_up_ x,y,z, the new up vector of the camera

    Returns true if operation was successful.

    Parameters

    • camera_pos_x: number
    • camera_pos_y: number
    • camera_pos_z: number
    • camera_target__x: number
    • camera_target__y: number
    • camera_target__z: number
    • camera_up_x: number
    • camera_up_y: number
    • camera_up_z: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • position: BIM_CAMERA_POSITION
    • minx: number
    • miny: number
    • minz: number
    • maxx: number
    • maxy: number
    • maxz: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCamera Set the camera type (orbit mode or game mode).

    Parameters:

    • type, the type of the camera

    Returns true if operation was successful.

    Parameters

    • type: BIM_CAMERA_TYPE

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraAngularSpeed Set the camera's angular speed

    Parameters:

    • speed, the angular speed factor of the camera (Default is 1.0)

    Returns true if operation was successful.

    Parameters

    • speed: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraLinearSpeed Set the camera's linear speed

    Parameters:

    • speed, the linear speed factor of the camera (Default is 1.0)

    Returns true if operation was successful.

    Parameters

    • speed: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraPosition Sets the camera position to one of the predefined types

    Parameters:

    • position, the position type of the camera

    Returns true if operation was successful.

    Parameters

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraPositionAngles Sets the camera position to the specified angles. 0,0 is equal to the BCP_LEFT looking at the center (direction -1,0,0). The azimuthal angle increases clockwise (BCP_LEFT, BCP_BACK, etc). The elevation angle is 0 at the XZ plane, -PI/2 at BCP_TOP* options and PI/2 at BCP_BOTTOM* options.

    Parameters:

    • phi, the azimuthal angle in radians (0 to 2*PI)
    • theta: the elevation angle in radians (-PI/2 to PI/2)

    Returns true if operation was successful.

    Parameters

    • phi: number
    • theta: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraState Set the current camera's state

    Parameters:

    • state, a floating pointer containing:
    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)
    11. ortho fixed plane state (15 floats)
    • type, the camera's type (orbit or game)
    • projection_type, the camera's projection type (perspective or ortho) Returns true if operation was successful.

    Parameters

    • state: number[]
    • type: BIM_CAMERA_TYPE

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraZoomBlendFactors Set the camera's zoom blend factors. For perspective cameras, this corresponds to the minimum/maximum speed factors used when the camera is very close/far to a target object. (Default is min: 1.0, max: 100000.0) For ortho cameras, this corresponds to the minimum/maximum scale factor that can be applied when zoomin in/out. The values relate directly to system units (e.g., mm) (Default is min: 1000, max: 1000000.0)

    Parameters:

    • minspeed: the minimum speed factor of the camera used when the camera is very close to a target object (Default is 1.0)
    • minspeed: the maximum speed factor of the camera used when the camera is very far from a target object (Default is 100000.0)

    Returns true if operation was successful.

    Parameters

    • minspeed: number
    • maxspeed: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCurrentCameraZoomSpeed Set the camera's zoom speed

    Parameters:

    • speed, the zoom speed factor of the camera (Default is 1.0 for perspective cameras and 1.1 for ortho - 10% zoom)

    Returns true if operation was successful.

    Parameters

    • speed: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetCuttingPlaneParameters Enable/Disable and sets the various parameters for the cutting plane

    Parameters:

    • enable, enable or disable the cutting plane
    • position(x,y,z), the position of the center of the cutting plane
    • normal(x,y,z), the normal of the cutting plane
    • size, The size in each dimension of the cutting plane. The plane will be a rectangle

    Parameters

    • plane_index: number
    • enable: boolean
    • position_x: number
    • position_y: number
    • position_z: number
    • normal_x: number
    • normal_y: number
    • normal_z: number
    • size: number

    Returns Promise<void>

  • BR3D_SetCuttingPlaneVisualizationParameters Sets the visualization parameters for the cutting planes

    Parameters:

    • color(r,g,b), the fill color of the cutting region
    • opacity, the opacity of the visualized plane

    Parameters

    • color_r: number
    • color_g: number
    • color_b: number
    • opacity: number

    Returns Promise<void>

  • BR3D_SetDynamicElementOutlines Set the geometric data of the dynamic element outlines

    Parameters:

    • dynamicElementID, the dynamic element id.
    • vertices, float array of the vertex positions. Should not be null
    • number_of_vertices, number of vertices contained in the vertexArray. Should be greater than zero.
    • indices, int array of the indices. Should not be null
    • number_of_indices, number of indices contained in the indices. Should be greater than zero.
    • color_ r, g, b, color of the outlines

    Returns true if the operation was succesfull.

    Parameters

    • dynamicElementID: Int64
    • vertices: number[]
    • number_of_vertices: number
    • indicesArray: number[]
    • number_of_indices: number
    • color_r: number
    • color_g: number
    • color_b: number
    • updateBBox: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementOutlines Set the outlines of the element

    Requirements: The model and element must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • elementID, the generated ID of the element
    • indicesArray, int array containing the indices of the outlines
    • number_of_indices, number of indices
    • color r, g, b, the color of the outline to be used in hidden line rendering mode

    Returns true if operation was successful.

    Parameters

    • elementID: Int64
    • indicesArray: number[]
    • number_of_indices: number
    • color_r: number
    • color_g: number
    • color_b: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementVertices Set the geometric data and inverse model matrix to an element to a model

    Requirements: The model and element must already exists in the engine. Must only be called after AddModel and AddElement;

    Parameters:

    • elementID, the generated ID of the element
    • vertexArray, float array of the vertex positions and normals interleaved
    • uvArray, float array of the uv coordinates (if the element does not have a texture, this array can be null)
    • number_of_vertices, number of vertices contained in the vertexArray
    • indicesArray, int array of the indices
    • number_of_indices, number of indices contained in the indicesArray
    • inverse_model_matrix, float[16] array containing the inverse model matrix of the element
    • si_unit, SI Units (1: Metre), (2: Decimetre), (3: Centimetre), (4: Millimetre)

    Returns true if operation was successful.

    Parameters

    • elementID: Int64
    • vertexArray: number[]
    • uvArray: number[]
    • number_of_vertices: number
    • indicesArray: number[]
    • number_of_indices: number
    • inverse_model_matrix: number[]
    • si_unit: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsColor Pass a list of IDs of the elements to be colorized alogn with the color in RGB format RGB is in [0 1] range

    Requirements: Element IDs must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • element_ids, an array of the ids of the elements to be colorized
    • number_of_ids , number of element ids in the element_ids array
    • red , the Red value
    • green , the Green value
    • blue , the Blue value

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number
    • red: number
    • green: number
    • blue: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsHighlight Pass a list of IDs of the elements to be highlighted

    Requirements: Element IDs must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • element_ids, an array of the ids of the elements to be highlighted
    • number_of_ids , number of element ids in the element_ids array

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsHybridState Set the state of a list of elements for the hybrid rendering mode

    Requirements: Element IDs must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • element_ids, an array of the ids of the elements to be highlighted
    • number_of_ids , number of element ids in the element_ids array
    • opaque, whether the elements will be rendererd as opaque or transparent (default: opaque)

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number
    • opaque: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsSelectionMode Set the elements selection mode

    Parameters:

    Returns true if operation was successful.

    Parameters

    • mode: BIM_ELEMENT_SELECTION_MODE

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsVisibility Set the visibility of a list of elements

    Requirements: Element IDs must already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • element_ids, an array of the ids of the elements to be highlighted
    • number_of_ids , number of element ids in the element_ids array
    • visible, whether the elements are visible or not

    Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number
    • visible: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetEnhancedSilhouetteSSAOHideThreshold Sets the threshold to hide Enhanced Silhouette. When the normalized, by the scene radius, camera distance from the scene center is greater than a threshold, then Enhanced Silhouette is disabled.

    Parameters:

    • threshold, set the threshold. Negative values will keep the Enhanced Silhouette enabled.

    Returns true if operation was successful.

    Parameters

    • threshold: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGlobalMeasurementXRayMode Set the global xray mode

    Parameters:

    • enabled, the xray state Returns true if operation was successful.

    Parameters

    • enabled: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGlobalPointCloudPointSize Set the point size of the point cloud

    Parameters:

    • size, point size in pixels, use 0 to disable global point size

    Returns true if the operation was succesfull.

    Parameters

    • size: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGlobalTransparencyValue Set the global transparency value for the transparent visualization option

    Parameters:

    • alpha, alpha value in [0 1] range

    Returns true if operation was successful.

    Parameters

    • alpha: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGridExpansionFactor Set the expansion factor of the grid, e.g., how many units (meters, yards) the grid will be extruded after the bounding box (Default is 6)

    Parameters:

    • expansion_factor, the expansion offset of the grid

    Parameters

    • expansion_factor: number

    Returns Promise<void>

  • BR3D_SetGridLevelAttributes Sets various attributes for a particular resolution level of the grid

    Parameters:

    • visibility_distance, the cutoff distance where the particular level will not be shown. Note that this parameters has no effect when level is BGRV_LEVEL_VERY_LOW or when this is the lowest resolution level shown for a particular scene (Default per-level values are: BGRV_LEVEL_HIGH = 100, BGRV_LEVEL_MEDIUM = 200 and BGRV_LEVEL_LOW = 500 units)
    • line_width, the rasterized width of the rendered line (Default per-level values are: BGRV_LEVEL_HIGH = 1, BGRV_LEVEL_MEDIUM = 1.5, BGRV_LEVEL_LOW = 2 and BGRV_LEVEL_VERY_LOW = 2.5)
    • resolution, the resolution of the grid for that particular level. It specifies on how many units (meters, yards) a line of that level is drawn. (Default per-level values are: BGRV_LEVEL_HIGH = 1, BGRV_LEVEL_MEDIUM = 10, BGRV_LEVEL_LOW = 50 and BGRV_LEVEL_VERY_LOW = 100)
    • extrusion_offset, a parameter indicating an offset (in units) that can be applied on each level. This allows for better per-level grid visualization, as different levels can have different line sizes. (Default per-level values are: BGRV_LEVEL_HIGH = 0, BGRV_LEVEL_MEDIUM = 1, BGRV_LEVEL_LOW = 2 and BGRV_LEVEL_VERY_LOW = 3)

    Parameters

    • level: BIM_GRID_RESOLUTION_LEVEL
    • visibility_distance: number
    • line_width: number
    • resolution: number
    • extrusion_offset: number
    • max_span: number

    Returns Promise<void>

  • BR3D_SetGridLevelColor Sets the color for a particular resolution level of the grid. Default values are:

    • High (rgb = 0.4, alpha = 1.0)
    • Medium (rgb = 0.3, alpha = 1.0)
    • Low (rgb = 0.2, alpha = 1.0)
    • Very Low (rgb = 0.1, alpha = 1.0)

    Parameters:

    • level, the resolution level
    • r, the Red value
    • g, the Green value
    • b, the Blue value
    • a, the Opacity value

    Parameters

    • level: BIM_GRID_RESOLUTION_LEVEL
    • r: number
    • g: number
    • b: number
    • a: number

    Returns Promise<void>

  • BR3D_SetGridUOM Set whether the grid is calculated in metric or imperial units of measurement Metric: Meter, Imperial: Yards

    Parameters:

    • units, the grid units (Default: Metric)

    Returns true if operation was successful.

    Parameters

    • units: BIM_MEASUREMENT_UNITS

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGridVisibilityStatus Sets the visibility status of the grid (Default is enabled)

    Parameters:

    • status, a flag indicating whether visibility is enabled/disabled

    Parameters

    • active: number

    Returns Promise<void>

  • BR3D_SetGroundSurfaceShadowRecomputeState Set the recomputation state of the ground surface shadow technique.

    Parameters: -enable, state Returns true if the operation was performed

    Parameters

    • enable: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetGroundSurfaceShadowState Set the state of the ground surface shadow technique.

    Parameters: -enable, state Returns true if the operation was performed

    Parameters

    • enable: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetLineFadeOut Set the state of outline and line pattern fade out

    Parameters:

    • enabled, the state of fade out

    Parameters

    • enabled: number

    Returns Promise<void>

  • BR3D_SetLinePatternThickness Set the thickness of line patterns

    Parameters:

    • thickness, the thickness of line patterns in pixels

    Parameters

    • thickness: number

    Returns Promise<void>

  • BR3D_SetMeasurement3DPreviewColor Set the preview color of the measurements

    Parameters:

    • r,g,b,a - preview color

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns Promise<void>

  • BR3D_SetMeasurementDrawOrder Set the draw order of the current measurement

    Parameters:

    • measurement_id, the id of the measurement
    • order, the draw order. Measurements are rendered in ascending order of the draw_order value. Negative numbers are allowed. Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • order: number

    Returns Promise<BR_FunctionOutput>

  • SetMeasurementFillColor Set the fill color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the fill color of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • measurement_color_r: number
    • measurement_color_g: number
    • measurement_color_b: number
    • measurement_color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementFillPattern Set the fill pattern of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • mode, the fill pattern of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • mode: BIM_MEASUREMENT2D_FILL_PATTERN

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementLineColor Set the line color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the line color of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • measurement_color_r: number
    • measurement_color_g: number
    • measurement_color_b: number
    • measurement_color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementLineWidth Set the line width of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • line_width, the line width (in pixels) of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • line_width: number

    Returns Promise<BR_FunctionOutput>

  • SetMeasurementPointColor Set the point color of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • measurement_color(r,g,b,a), the point color of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • measurement_color_r: number
    • measurement_color_g: number
    • measurement_color_b: number
    • measurement_color_a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementPointSize Set the point size of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • point_size, the point size (in pixels) of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • point_size: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementPreviewMode Set the preview mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • enabled, the preview state Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • enabled: boolean

    Returns Promise<BR_FunctionOutput>

  • SetMeasurementVisualizationMode Set the visualization mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • mode, the visualization mode of the measurement Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • mode: BIM_MEASUREMENT2D_VISUALIZATION_MODE

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetMeasurementXRayMode Set the xray mode of the measurement

    Parameters:

    • measurement_id, the id of the measurement
    • enabled, the xray state Returns true if operation was successful.

    Parameters

    • measurement_id: Int64
    • enabled: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetElementsVisibility Set the visibility of a model

    Requirements: Model should already exists in the engine. Must only be called after AddModel, AddElement and SetElementVertices.

    Parameters:

    • model_id, an array of the ids of the elements to be highlighted
    • visible, whether the elements are visible or not

    Returns true if operation was successful.

    Parameters

    • model_id: Int64
    • visible: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetOrthoCameraStatePart Set only the ortho part of the current camera from floats 20 to 35 use this in conjuction with arbitray transitions of camera

    Parameters

    • state: number[]

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetOutlineElementColorVisualization Set the mode for rendering the outlines with the element color or black.

    Parameters: -enable, render with the element color or not Returns true if the operation was performed

    Parameters

    • enable: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetOutlineThickness Set the thickness of the outlines (shaded mode)

    Parameters:

    • thickness, the thickness of the outlines in pixels

    Parameters

    • thickness: number

    Returns Promise<void>

  • BR3D_SetOutlineThickness Set the thickness of the outlines (outline mode)

    Parameters:

    • thickness, the thickness of the outlines in pixels

    Parameters

    • thickness: number

    Returns Promise<void>

  • BR3D_SetPaperColor Set the paper color.

    Parameters:

    • rgba, color values (range [0..1]) Returns true if operation was successful.

    Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetPaperMode Set the paper mode. It enables or disables the paper mode using a specified view and bbox.

    Parameters:

    • min xyz, max xyz the bbox extends.
    • pos, sets the camera position
    • enabled, set the paper mode status

    Returns true if operation was successful.

    Parameters

    • minX: number
    • minY: number
    • minZ: number
    • maxX: number
    • maxY: number
    • maxZ: number
    • pos: BIM_CAMERA_POSITION
    • enabled: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetPaperModeCustom Set the paper mode. It enables or disables the paper mode using a custom view and bbox.

    Parameters:

    • min xyz, max xyz the bbox extends.
    • cam_pos xyz, sets the custom camera position
    • enabled, set the paper mode status

    Returns true if operation was successful.

    Parameters

    • minX: number
    • minY: number
    • minZ: number
    • maxX: number
    • maxY: number
    • maxZ: number
    • cam_posX: number
    • cam_posY: number
    • cam_posZ: number
    • enabled: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetPointCloudPointSize Set the point size of the point cloud

    Parameters:

    • pointCloudID, the point cloud id.
    • size, point size in pixels

    Returns true if the operation was succesfull.

    Parameters

    • pointCloudID: number
    • size: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetPointCloudVisibility Set the visibility of the point cloud

    Parameters:

    • pointCloudID, the point cloud id.
    • visible, visibility status Returns true if the operation was succesfull.

    Parameters

    • pointCloudID: number
    • visible: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSSAOHideThreshold Sets the threshold to hide SSAO. When the normalized, by the scene radius, camera distance from the scene center is greater than a threshold, then SSAO is disabled.

    Parameters:

    • threshold, set the threshold. Negative values will keep the SSAO enabled.

    Returns true if operation was successful.

    Parameters

    • threshold: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetScreenSpaceSymbol Set the status of the screen space symbol.

    Parameters: -x,y,z, symbol position -rgb, symbol color -symbol_type, symbol type. 0 - Rectangle, 1 - Triangle, 2 - Circle, 3 - 90 Degrees, 4 - Hourglass, 5 - Cross Circle, 6 - Cross, 7 - Edge -enable, enable the symbol rendering Returns true if the operation was performed

    Parameters

    • x: number
    • y: number
    • z: number
    • r: number
    • g: number
    • b: number
    • symbol_type: number
    • enable: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSelectiveOutlineRendering Sets the selective outline rendering state

    Parameters:

    • enable, the selective outline rendering state

    Returns true if operation was successful.

    Parameters

    • enable: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSelectiveRenderingMode Set the selective rendering mode. With selective rendering, only a portion of the elements of the scene will be visible. 0-level : all scene elements are visible (slowest) 3-level : only a small part of the scene elements are visible (fastest)

    Parameters:

    • level, the selective rendering mode. Available levels: [0 ... 3]

    Returns true if operation was successful.

    Parameters

    • level: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSensorChannelData Set sensor channel data for channel 'channel_id' with a value range [low, high]

    For BSV_SUM_NORMALIZATION the 'factor' is a scaling factor For BSV_LINEAR_FALLOFF the 'factor' is the exponent of the inverse power fallof For BSV_GAUSSIAN_NORMALIZATION the 'factor' is the standard deviation of each gaussian

    Parameters:

    • channel_id, channel id
    • low, range low
    • high, range high
    • factor, scale factor

    Returns id of the channel if operation was successful. -1 if operation failed.

    Parameters

    • channel_id: Int64
    • low: number
    • high: number
    • factor: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • channel_id: Int64
    • mode: BIM_SENSOR_VISUALIZATION_OPTIONS

    Returns Promise<BR_FunctionOutput>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Settings3D API

    BR3D_SetShadingOption Set the elements shading options

    Parameters:

    • options, the shading option

    Returns true if operation was successful.

    Parameters

    • option: BIM_SHADING_OPTIONS

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSunLightingLensFlare Sets sun lighting lens flare effect

    Parameters:

    • enabled, set the state of sun lighting lens flare
    • sun_only, lens flare only around the sun's corona Returns true if operation was successful.

    Parameters

    • enabled: boolean
    • sun_only: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSunLightingProperties Sets sun light properties. (Angles are in radians)

    Parameters:

    • enabled, set the state of sun lighting
    • phi, is the polar angle
    • theta, is the azimuthal angle
    • r,g,b the color of the sun

    Returns true if operation was successful.

    Parameters

    • enabled: boolean
    • phi: number
    • theta: number
    • r: number
    • g: number
    • b: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetSunShadowingProperties Sets sun shadow properties. (Angles are in radians)

    Parameters:

    • enabled, set the state of sun shadow lighting
    • width, horizontal resolution of shadow map
    • height, vertical resolution of shadow map
    • num_of_cascades, number of cascades to use 1-4

    Returns true if operation was successful.

    Parameters

    • enabled: boolean
    • width: number
    • height: number
    • num_of_cascades: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetTextureElementActive Enables/disables the rendering of the Texture Element.

    Parameters: texture_element_id, the Texture Element id active, a flag indicating whether the Texture Element will be rendered (Default is false)

    Returns true if operation was successful.

    Parameters

    • texture_element_id: Int64
    • active: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_SetTransformGizmoHoverColor Sets the hover color of the 3D Transform Gizmo

    Parameters:

    • r,g,b, hover color

    Parameters

    • r: number
    • g: number
    • b: number

    Returns Promise<void>

  • BR3D_SetTransformGizmoPosition Sets the position of the 3D Transform Gizmo in world space units.

    Parameters:

    • x,y,z, position of the gizmo

    Parameters

    • x: number
    • y: number
    • z: number

    Returns Promise<void>

  • BR3D_SetTransformGizmoRotationOffset Sets the initial rotation offset of the 3D Transform Gizmo

    Parameters:

    • phi, angle from the positive Y Axis
    • theta, angle in the XZ plane

    Parameters

    • phi: number
    • theta: number

    Returns Promise<void>

  • BR3D_SetTransformGizmoRotationOffsetVector Sets the initial rotation offset of the 3D Transform Gizmo using a vector

    Parameters:

    • x, y, z, normal vector

    Parameters

    • x: number
    • y: number
    • z: number

    Returns Promise<void>

  • BR3D_SetTransformGizmoScreenSize Sets the screen size of the 3D Transform Gizmo

    Parameters:

    • size, size in pixels

    Parameters

    • size: number

    Returns Promise<void>

  • BR3D_StartCameraCompassDrag Call after a mouse lick (down) callback to signal start of "grabbing" of the compass widget

    Parameters:

    Returns Promise<void>

  • BR3D_StartComputingNormals Start the normal computation. It should be the first to be called.

    Parameters:

    • vertices, the interleaved buffer of the vertices. it should be of size float[6 * number_of_vertices]. It is also the output buffer.
    • number_of_vertices, the number of vertices
    • indices, the indices buffer
    • number_of_indices, the number of indices

    Parameters

    • vertices: number[]
    • number_of_vertices: number
    • indices: number[]
    • number_of_indices: number

    Returns Promise<void>

  • BR3D_StartPanning Sets the camera starting panning position.

    Parameters:

    • x,y, mouse positions (should be inside the view dimensions)

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_StopPanning Unsets the camera starting panning position.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR3D_TransformGizmoMouseClick Mouse click action for the 3D Transform Gizmo

    Parameters:

    • x, y, mouse position
    • pressed, click action

    Returns true if gizmo was clicked.

    Parameters

    • x: number
    • y: number
    • pressed: boolean

    Returns Promise<BR_FunctionOutput>

  • BR3D_TransformGizmoMouseMove Mouse move action for the 3D Transform Gizmo

    Parameters:

    • x, y, mouse position

    Returns true if gizmo was hovered.

    Parameters

    • x: number
    • y: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_UpdateTexture Update a texture layer with new image data

    Parameters:

    • textureID, the id of the texture to update
    • width, the width of the texture
    • height, the height of the texture
    • level, the level of the image to update. (0 is the original image size, 1 is the (width, height) / 2, 2...n is the (width, heigh) / 2^n
    • data, the pixels of the texture in RGBA format.

    Returns the id of the texture or -1 if the operation was not successful.

    Parameters

    • textureID: number
    • width: number
    • height: number
    • level: number
    • data: Iterable<number>

    Returns Promise<BR_FunctionOutput>

  • BR3D_VisualizeRubberband Visualize the rubberband

    Parameters:

    • p1(x,y) the screen coordinates
    • p2(x,y) the screen coordinates
    • mode, the rubberband mode

    Returns true if operation was successful.

    Parameters

    • p1_x: number
    • p1_y: number
    • p2_x: number
    • p2_y: number
    • mode: BIM_RUBBERBAND_MODE
    • visualize: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • minx: number
    • miny: number
    • minz: number
    • maxx: number
    • maxy: number
    • maxz: number

    Returns Promise<BR_FunctionOutput>

  • BR3D_ZoomToElements Zooms to a particular set of elements

    • element_ids, an array of the ids of the elements to zoom
    • number_of_ids , number of element ids in the element_ids array Returns true if operation was successful.

    Parameters

    • element_ids: Int64[]
    • number_of_ids: number

    Returns Promise<BR_FunctionOutput>

  • BRFont_AddTextToPos Add the current text on a specified position on the window. The positions are set relatively to the window. Origin (0, 0) is the top left corner of the window.

    Parameters:

    • text, the text to render
    • posx, the x position
    • posy, the y position

    Parameters

    • text: string
    • posx: number
    • posy: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    Returns Promise<BRMD_GetElementModelIdResult>

  • Parameters

    • staticElements: boolean
    • dynamicElements: boolean

    Returns Promise<boolean>

  • Parameters

    • models: string[]
    • layers: string[]
    • classes: string[]
    • materials: string[]
    • types: string[]
    • labels: string[]
    • storeys: string[]
    • memberships: string[]

    Returns Promise<boolean>

  • Parameters

    • modelName: string
    • layer: string
    • cls: string
    • infoMaterial: string
    • infoType: string
    • infoLabel: string
    • storey: string
    • group: string

    Returns Promise<boolean>

  • Parameters

    • p1x: number
    • p1y: number
    • p1z: number
    • p2x: number
    • p2y: number
    • p2z: number
    • p3x: number
    • p3y: number
    • p3z: number

    Returns Promise<number>

  • Parameters

    • dateTime: Date
    • timezone: number
    • latitude: number
    • longtitude: number
    • elevation: number

    Returns Promise<BRU_CalculateSolarPositionResult>

  • Parameters

    • active: boolean

    Returns Promise<void>

  • Parameters

    • width: number
    • height: number
    • texture_id: number

    Returns Promise<number | Int64>

  • Returns Promise<boolean>

  • Returns Promise<BRXR_HAND_POSITION_ORIENTATION>

  • Returns Promise<BRXR_LASER_SELECTION>

  • Parameters

    Returns Promise<boolean>

  • Returns Promise<boolean>

  • Returns Promise<number>

  • Parameters

    • width: number
    • height: number

    Returns Promise<boolean>

  • Returns Promise<boolean>

  • Parameters

    • side: number
    • posX: number
    • posY: number
    • posZ: number
    • quatW: number
    • quatX: number
    • quatY: number
    • quatZ: number

    Returns Promise<boolean>

  • Parameters

    • side: BRXR_SIDE
    • active: boolean

    Returns Promise<void>

  • Parameters

    • side: BRXR_SIDE
    • filename: string

    Returns Promise<boolean>

  • Parameters

    • framebuffer: number
    • x0: number
    • y0: number
    • w0: number
    • h0: number
    • x1: number
    • y1: number
    • w1: number
    • h1: number

    Returns Promise<boolean>

  • Parameters

    • side: number
    • active: number
    • aButton: number
    • bButton: number
    • trigger: number
    • grip: number
    • thumbstick: number
    • thumbX: number
    • thumbY: number
    • menu: number

    Returns Promise<boolean>

  • Parameters

    • side: number
    • posX: number
    • posY: number
    • posZ: number
    • quatW: number
    • quatX: number
    • quatY: number
    • quatZ: number

    Returns Promise<boolean>

  • Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns Promise<void>

  • Parameters

    • active: boolean

    Returns Promise<void>

  • Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns Promise<void>

  • Parameters

    • side: BRXR_SIDE

    Returns Promise<void>

  • Parameters

    • id: Int64
    • fixed: boolean

    Returns Promise<boolean>

  • Parameters

    • id: Int64
    • transformation: number[]

    Returns Promise<boolean>

  • Parameters

    • id: Int64
    • width: number
    • height: number

    Returns Promise<boolean>

  • Returns Promise<boolean>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Engine API

    BR_Create Allocates memory for all the internal engine components. It must be the first function called.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • Returns Promise<BR_FunctionOutput>

  • BR_Destroy Destroy the engine and clean up the memory.

    Returns Promise<void>

  • Hide

    Parameters

    • name: string
    • active: boolean
    • filename: string
    • size: number
    • color_r: number
    • color_g: number
    • color_b: number
    • color_a: number
    • has_shadow: boolean
    • shadow_color_r: number
    • shadow_color_g: number
    • shadow_color_b: number
    • shadow_color_a: number
    • shadow_size: number
    • shadow_dir_x: number
    • shadow_dir_y: number

    Returns Promise<BR_FunctionOutput>

  • BR_GetBackgroundColor Retrieves the background color

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value

    Returns true if operation was successful.

    Returns Promise<BR_GetBackgroundColorResult>

  • BR_GetBenchmarkingStatus Retrieves the current benchmarking status

    Parameters:

    • status, a flag indicating whether (and what type of) benchmarking is enabled/disabled

    Returns true if operation was successful.

    Returns Promise<BR_GetBenchmarkingStatusResult>

  • Returns Promise<string>

  • BR_GetCompressedImageBuffer Get the Final Compressed RGB image buffer as an array of unsigned bytes. Buffer MUST be pre-allocated to: screen_width * screen_height / 2 . The callee is responsible for managing the memory of the image buffer (memory allocation and deallocation).

    Parameters:

    • buffer, the compressed image buffer

    Returns true if operation was successful.

    Returns Promise<BR_GetCompressedImageBufferResult>

  • BR_GetFPSstatus Retrieves the frames per second current visibility status

    Parameters:

    • status, a flag indicating whether benchmarking is enabled/disabled
    • row_type, the starting grid location in the current window

    Returns true if operation was successful.

    Returns Promise<BR_GetFPSstatusResult>

  • BR_GetHighlightAlpha Get the alpha of the highlight

    Parameters:

    • highlight_A [0 1]
    • highlight_x_ray_A

    Returns true if operation was successful.

    Returns Promise<BR_GetHighlightAlphaResult>

  • BR_GetHighlightColors Retrieves the coloring of the highlight

    Parameters:

    • highlight_R, highlight_G, highlight_B, the highlight color in RGB format in [0 1]
    • border_R, border_G, border_B, the border color in RGB format in [0 1]

    Returns true if operation was successful.

    Returns Promise<BR_GetHighlightColorsResult>

  • BR_GetHighlightXRayMode Get the XRay highlight mode

    Parameters:

    • mode, xray mode

    Returns true if operation was successful. boolean BR_SetHighlightXRayMode(int mode);

    Returns Promise<BR_GetHighlightXRayModeResult>

  • BR_GetImageBuffer Get the Final RGB image buffer as an array of unsigned bytes. Buffer MUST be pre-allocated to: screen_width * screen_height * 3. The callee is responsible for managing the memory of the image buffer (memory allocation and deallocation).

    Parameters:

    • buffer, the image buffer

    Returns true if operation was successful.

    Returns Promise<BR_GetImageBufferResult>

  • BR_GetInputState Retrieves the state of the input manager. It sets how the events are consumed.

    Parameters:

    • type, the input type

    Returns true if operation was successful.

    Returns Promise<BR_GetInputStateResult>

  • BR_GetMemorySizeEstimationMB Estimates the memory size in MB allocated by the internal engine's buffers. Note that this is can only serve as an estimation and does not reflect the "actual" memory size reserved by the GPU at any point.

    Parameters

    • size, the estimated size Note: this DOES NOT include the size required for the back and front buffers

    Returns true if operation was successful.

    Returns Promise<BR_GetMemorySizeEstimationMBResult>

  • BR_GetOffscreenRendering Retrieves whether the results are written to the system's framebuffer

    Parameters

    • status, a flag indicating whether offscreen rendering is on/off (Default is on)

    Returns true if operation was successful.

    Returns Promise<BR_GetOffscreenRenderingResult>

  • BR_GetRendererMode Retrieves the active renderer (2D or 3D)

    Parameters:

    • type, the renderer type

    Returns true if operation was successful.

    Returns Promise<BR_GetRendererModeResult>

  • BR_GetRubberbandExtents Retrieves the extents of the last rubberband selection.

    Parameters:

    • start_x, will hold start X coordinate of the rubberband selected region
    • start_y, will hold start Y coordinate of the rubberband selected region
    • end_x, will hold end X coordinate of the rubberband selected region
    • end_y, will hold end Y coordinate of the rubberband selected region Returns true if operation was successful.

    Returns Promise<BR_GetRubberbandExtentsResult>

  • BR_GetRubberbandMode Retrieves the selection mode of the rubberband.

    Parameters:

    • mode, the rubberband mode

    Returns true if operation was successful.

    Returns Promise<BR_GetRubberbandModeResult>

  • BR_GetRubberbandMode Retrieves the color of the rubberband for the associated rubberband mode.

    Parameters:

    • mode, the rubberband mode
    • red, the red component (0-1)
    • green, the green component (0-1)
    • blue, the blue component (0-1)
    • alpha, the alpha component (0-1)

    Returns true if operation was successful.

    Parameters

    • mode: BIM_RUBBERBAND_MODE

    Returns Promise<BR_GetRubberbandModeColorResult>

  • Parameters

    • feature: BIM_FEATURE

    Returns Promise<boolean>

  • Parameters

    • feature: BIM_FEATURE

    Returns boolean

  • BR_Init2D This function initializes the internal structure of the 2D rendering engine, fonts, the main techniques, compiles shaders, etc.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR_Init3D This function initializes the internal structure of the 3D rendering engine, fonts, the scenegraph, compiles shaders, etc.

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • Returns Promise<boolean>

  • BR_KeyButtonEvent Key stroke event

    Parameters:

    • button, the String representation of the key
    • pressed, whether the button was pressed or not

    Returns true if operation was successful. All keys are in string format (e.g. "f", "w"), special buttons in string format (e.g. alt, ctrl, enter, backspace, F1, F12, up, down)

    Parameters

    • button: string
    • pressed: boolean

    Returns Promise<BR_FunctionOutput>

  • BR_LoggingAddText logs an external message of a particular type (Info, Warning, Error)

    Parameters:

    • type, the type of message to log
    • text, the actual message All messages are internally preceded by a new line character

    Parameters

    • type: BIM_LOGGERTYPE
    • text: string

    Returns Promise<void>

  • BR_LoggingGetConsoleFilter retrieves the type of events that the log console displays

    Parameters:

    • comments, indicate simple notification messages (e.g. mesh loaded)
    • warnings, indicate simple warning messages (e.g. texture not found)
    • errors, indicate serious error messages (e.g. could not load mesh file)
    • debug, indicate various debug messages (e.g. camera ray hit top face)

    Returns Promise<BR_LoggingGetConsoleFilterResult>

  • BR_LoggingGetFileFilter retrieves the type of events that the log file stores

    Parameters:

    • comments, indicate simple notification messages (e.g. mesh loaded)
    • warnings, indicate simple warning messages (e.g. texture not found)
    • errors, indicate serious error messages (e.g. could not load mesh file)
    • debug, indicate various debug messages (e.g. camera ray hit top face)

    Returns Promise<BR_LoggingGetFileFilterResult>

  • BR_LoggingGetStatus Retrieves whether the logger is enabled/disabled

    Parameters:

    • status, whether logging is enabled (Default value is false)

    Returns Promise<BR_LoggingGetStatusResult>

  • BR_LoggingSetConsoleFilter sets the type of events that the console will show by default, all messages are disabled

    Parameters:

    • comments, indicate simple notification messages (e.g. mesh loaded)
    • warnings, indicate simple warning messages (e.g. texture not found)
    • errors, indicate serious error messages (e.g. could not load mesh file)
    • debug, indicate various debug messages (e.g. selected the top face of the camera cube)

    Parameters

    • comments: boolean
    • warnings: boolean
    • errors: boolean
    • debug: boolean

    Returns Promise<void>

  • BR_LoggingSetFileFilter sets the type of events that the log file will store by default, all messages are enabled

    Parameters:

    • comments, indicate simple notification messages (e.g. mesh loaded)
    • warnings, indicate simple warning messages (e.g. texture not found)
    • errors, indicate serious error messages (e.g. could not load mesh file)
    • debug, indicate various debug messages (e.g. camera ray hit top face)

    Parameters

    • comments: boolean
    • warnings: boolean
    • errors: boolean
    • debug: boolean

    Returns Promise<void>

  • ///////////////////////////////////////////////////////////////////////////////////////////////////// Logging API

    BR_LoggingSetFilename sets the filename that will be used to log any messages

    Parameters:

    • name, the filename (Default name is BIMRenderer_Log.txt, located in the working directory) Note: this function should be the first logging function called

    Parameters

    • filename: string

    Returns Promise<void>

  • BR_LoggingSetStatus Sets whether the renderer events will be stored in the log file and displayed in the console log file is stored under Logs/.txt in the main application folder To log all messages, this function should be called with the value "true" right after Create

    Parameters:

    • status, whether logging is enabled (Default value is false)

    Parameters

    • status: boolean

    Returns Promise<void>

  • BR_MouseButtonEvent Mouse Button Event

    Parameters:

    • x, x position of the mouse
    • y, y position of the mouse
    • button, number of the button that triggered the event (1: Left, 2: Middle, 3: Right)
    • pressed, whether the button was pressed or not

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number
    • button: BIM_MOUSE_BUTTON_STATE
    • pressed: boolean

    Returns Promise<BR_FunctionOutput>

  • BR_MouseMotion Mouse move event

    Parameters:

    • x, x position of the mouse
    • y, y position of the mouse

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number

    Returns Promise<BR_FunctionOutput>

  • BR_MouseWheelMotion Mouse Wheel Motion Event

    Parameters:

    • x, x position of the mouse
    • y, y position of the mouse

    Returns true if operation was successful.

    Parameters

    • x: number
    • y: number

    Returns Promise<BR_FunctionOutput>

  • BR_Move Move in 3D Space. The API tries to abstract the camera's move but each camera type behaves differently based on the desired behavior

    Parameters:

    • cursor_x, x position of the mouse
    • cursor_y, y position of the mouse
    • delta_x, x move factor
    • delta_y, y move factor
    • delta_z, y move factor

    Returns true if operation was successful.

    Parameters

    • cursor_x: number
    • cursor_y: number
    • delta_x: number
    • delta_y: number
    • delta_z: number

    Returns Promise<BR_FunctionOutput>

  • BR_Render Render the data to the screen

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR_Resize Resize the buffers to the requested width and height

    Parameters:

    • width, requested width
    • height, requested height

    Returns true if operation was successful.

    Parameters

    • width: number
    • height: number

    Returns Promise<BR_ResizeResult>

  • BR_RotateStart Rotate in 3D Space. This is mainly required to set the world space coordinates of the anchor point. The API tries to abstract the camera's rotation but each camera type behaves differently based on the desired behavior

    Parameters:

    • pivot_x, x pivot coord
    • pivot_y, y pivot coord
    • pivot_z, z pivot coord

    Parameters

    • delta_x: number
    • delta_y: number

    Returns Promise<BR_FunctionOutput>

  • BR_RotateStart Rotate in 3D Space. This is mainly required to set the world space coordinates of the anchor point. The API tries to abstract the camera's rotation but each camera type behaves differently based on the desired behavior

    Parameters:

    • pivot_x, x pivot coord
    • pivot_y, y pivot coord
    • pivot_z, z pivot coord

    Parameters

    • pivot_x: number
    • pivot_y: number
    • pivot_z: number

    Returns Promise<BR_FunctionOutput>

  • BR_RotateStop Stop rotation in 3D Space. This is mainly required reset camera state. The API tries to abstract the camera's rotation but each camera type behaves differently based on the desired behavior

    Parameters:

    Returns true if operation was successful.

    Returns Promise<BR_FunctionOutput>

  • BR_SetBackgroundColor Sets the background color (Default is 0.5, 0.5, 0.5)

    Parameters:

    • r, the Red value
    • g, the Green value
    • b, the Blue value

    Returns true if operation was successful.

    Parameters

    • r: number
    • g: number
    • b: number

    Returns Promise<BR_FunctionOutput>

  • BR_SetBenchmarkingStatus Enables or disables internal benchmarking of the renderer

    Parameters:

    • status, a flag indicating whether (and what type of) benchmarking is enabled/disabled

    Returns true if operation was successful.

    Parameters

    • status: BIM_BENCHMARK_STATUS

    Returns Promise<BR_FunctionOutput>

  • BR_SetCompressedImageFormat Set the Compressed RGB image buffer format.

    Parameters:

    • format, the compressed image OpenGL format enum
    • block_size_w, the width of the block of the compressed image
    • block_size_h, the height of the block of the compressed image
    • bits_per_block, the number of bits per block of the compressed image E.g., DXT1 has compression ratio of 6:1, the block size is 4x4 and each block stores 64 bits

    Returns true if operation was successful.

    Parameters

    • format: number
    • block_size_w: number
    • block_size_h: number
    • bits_per_block: number

    Returns Promise<BR_FunctionOutput>

  • BR_SetDataPath Sets the location where the renderer's external data are loaded from (shaders, textures, fonts, etc.)

    Parameters

    • data_path, the path folder location (Default is the application's working directory) Note: this function must be called before Init()

    Returns true if operation was successful.

    Parameters

    • data_path: string

    Returns Promise<BR_FunctionOutput>

  • BR_SetHighlightAlpha Set the alpha of the highlight

    Parameters:

    • highlight_A [0 1]
    • highlight_x_ray_A

    Returns true if operation was successful.

    Parameters

    • highlight_A: number
    • highlight_x_ray_A: number

    Returns Promise<BR_FunctionOutput>

  • BR_SetHighlightColors Set the coloring of the highlight

    Parameters:

    • highlight_R, highlight_G, highlight_B, set the highlight color in RGB format in [0 1]
    • border_R, border_G, border_B, set the border color in RGB format in [0 1]

    Returns true if operation was successful.

    Parameters

    • highlight_R: number
    • highlight_G: number
    • highlight_B: number
    • border_R: number
    • border_G: number
    • border_B: number

    Returns Promise<BR_FunctionOutput>

    • BR_SetHighlightXRayMode Sets the XRay highlight mode

    Parameters:

    • mode, xray mode

    Returns true if operation was successful.

    Parameters

    • mode: number

    Returns Promise<BR_FunctionOutput>

  • BR_SetInputState Set the state of the input manager. It sets how the events are consumed.

    Parameters:

    • type, the input type

    Returns true if operation was successful.

    Parameters

    • type: BIM_INPUT_TYPE

    Returns Promise<BR_FunctionOutput>

  • BR_SetOffscreenRendering Sets whether the results are written to the system's framebuffer

    Parameters

    • status, a flag indicating whether offscreen rendering is on/off (Default is on)

    Returns true if operation was successful.

    Parameters

    • status: number

    Returns Promise<BR_FunctionOutput>

  • Settings API

    BR_SetRendererMode Set the active renderer (2D or 3D)

    Parameters:

    • type, the renderer type

    Returns true if operation was successful.

    Parameters

    • type: BIM_RENDERER_TYPE

    Returns Promise<BR_FunctionOutput>

  • BR_SetRubberbandMode Set the selection mode of the rubberband. Default is Front (Visible).

    Parameters:

    • mode, the rubberband mode

    Returns true if operation was successful.

    Parameters

    • mode: BIM_RUBBERBAND_MODE

    Returns Promise<BR_FunctionOutput>

  • BR_SetRubberbandModeColor Set the color of the rubberband for the associated rubberband modes. Default is red (1,0,0,0.1) for front modes (BRM_VISIBLE) and green (0,1,0,0.1) for visible + hidden modes (BRM_ALL).

    Parameters:

    • mode, the rubberband mode
    • red, the red component (0-1)
    • green, the green component (0-1)
    • blue, the blue component (0-1)
    • alpha, the alpha component (0-1)

    Returns true if operation was successful.

    Parameters

    • mode: BIM_RUBBERBAND_MODE
    • red: number
    • green: number
    • blue: number
    • alpha: number

    Returns Promise<BR_FunctionOutput>

  • BR_ShowFPS Enables/Disables the FPS text

    Parameters:

    • status, a flag indicating whether the FPS is visible/hidden
    • row_type, the starting grid location in the current window

    Returns true if operation was successful.

    Parameters

    • status: boolean
    • row_type: BIM_FONT_LOCATION

    Returns Promise<BR_FunctionOutput>

  • BR_Update Updates engine states based on the elapsed time

    Parameters:

    • dt, elapsed time in seconds

    Returns true if operation was successful.

    Parameters

    • dt: number

    Returns Promise<BR_FunctionOutput>

  • Parameters

    • key: string

    Returns Promise<boolean>

  • Returns BR_FunctionOutput

  • Activates an arbitrary cutting plane.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • point3D: Vector3D

      The point of the cutting plane.

    • direction: Vector3D

      The direction of the cutting plane.

    • showGizmo: boolean = false

      Whether to show the gismo.

    Returns Promise<boolean>

  • Activates a cutting plane.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns Promise<void>

  • Activates a cutting plane on a face ID.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • faceId: Int64

      The face ID.

    • Optional point3D: Vector3D

      The point of the cutting plane.

    Returns Promise<boolean>

  • Adds a new clipping region by allowing the user to define it interactively.

    Returns

    A promise that resolves to the created BimCTClippingRegion or null if the operation fails.

    Returns Promise<ClippingRegion>

  • Adds a comparison renderer.

    Parameters

    Returns void

  • Adds a new custom scale by allowing the user to define it interactively.

    Returns Promise<CustomScale>

  • Starts the drawing loop.

    Returns Promise<void>

  • Changes the language of the renderer.

    Parameters

    • lang: Language

      The language to change to.

    Returns void

  • Checks if elements are showing.

    Returns

    A promise that resolves to a boolean indicating if the elements are showing.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<boolean>

  • Checks if GUI actions are locked.

    Returns

    Whether GUI actions are locked.

    Returns boolean

  • Checks if VR is supported.

    Returns Promise<boolean>

  • Clears the cutting planes.

    Returns Promise<void>

  • Clears the measurements.

    Returns Promise<void>

  • Clears the pins.

    Returns Promise<void>

  • Clears the selection.

    Returns Promise<void>

  • Clones a model that was already loaded to the scene using a URL.

    Returns

    A promise that resolves to the ModelInfo object of the cloned model.

    Parameters

    • modelId: Int64

      The ID of the model to clone.

    • Optional sceneView: SceneView

      The scene view to use for the model.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Colorizes elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • red: number

      The red component of the color.

    • green: number

      The green component of the color.

    • blue: number

      The blue component of the color.

    Returns Promise<void>

  • Colorizes the selected elements.

    Parameters

    • red: number

      The red component of the color.

    • green: number

      The green component of the color.

    • blue: number

      The blue component of the color.

    Returns Promise<void>

  • Deactivates a cutting plane.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns Promise<void>

  • Decolorizes all elements.

    Returns Promise<void>

  • Decolorizes elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<void>

  • Asynchronously cleans up and releases resources used by the viewer. This may include removing event listeners, freeing memory, and terminating ongoing processes or operations.

    It is important to ensure that this method is called when the object is no longer needed to prevent memory leaks and ensure optimal application performance.

    Returns

    A promise that resolves when the destruction process is complete, indicating that all resources have been released successfully.

    Returns Promise<void>

  • Dispatches the context menu event.

    Parameters

    • evt: PointerEvent

      The pointer event.

    Returns number

  • Dispatches the state changed event.

    Returns void

  • Performs roll over at the specified coordinates.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    Returns Promise<void>

  • Focuses the renderer.

    Returns void

  • Gets the state of the camera. The state number array includes:

    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)

    Returns

    A promise that resolves to a CameraState object.

    Returns Promise<CameraState>

  • Gets the bounding box of elements.

    Returns

    A promise that resolves to the bounding box of the elements.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    Returns Promise<BoundingBox3D>

  • Gets the elements selection mode.

    Returns

    A promise that resolves to the elements selection mode.

    Returns Promise<BIM_ELEMENT_SELECTION_MODE>

  • Gets the bounding box of faces.

    Returns

    A promise that resolves to the bounding box of the faces.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the faces.

    Returns Promise<BoundingBox3D>

  • Gets the highlighted internal IDs.

    Returns

    A promise that resolves to an array of highlighted internal IDs.

    Returns Promise<Int64[]>

  • Gets the image data.

    Returns

    A promise that resolves to the image data.

    Parameters

    • upsideDown: boolean = true

      Whether to flip the image upside down.

    Returns Promise<Uint8Array>

  • Gets the gzipped image data.

    Returns

    A promise that resolves to the gzipped image data.

    Returns Promise<Uint8Array>

  • Gets the models with URL state.

    Parameters

    • modelIds: Int64[]

      The model IDs to get the state for.

    Returns Promise<ModelsWithURLState>

  • Gets the paper ID of an element ID.

    Returns

    A promise that resolves to the paper ID.

    Parameters

    • rendererId: Int64

      The renderer ID of the element.

    Returns Promise<Int64>

  • Gets the pin state.

    Returns

    A promise that resolves to a PinState object.

    Returns Promise<PinState>

  • Gets the scene view.

    Returns

    A promise that resolves to a SceneView object.

    Parameters

    • includeSettingsState: boolean = true

      Whether to include the settings state.

    • Optional includePinsState: boolean

      Whether to include the pins state.

    • Optional incudeSensorsState: boolean

      Whether to include the sensors state.

    • Optional includeDynamicElementsState: boolean

      Whether to include the dynamic elements state.

    Returns Promise<SceneView>

  • Gets the selection type.

    Returns

    The selection type.

    Returns BIM_SELECTION_TYPE

  • Gets the sensors state.

    Returns

    A promise that resolves to a SensorsState object.

    Returns Promise<SensorsState>

  • Gets the skymap IDs.

    Returns

    A map of skymap IDs.

    Returns Map<string, string>

  • Gets the viewer settings state.

    Returns

    A promise that resolves to a ViewerSettingsState object.

    Parameters

    • includeGeoPositionAndTime: boolean = true

      Whether to include geo position and time.

    Returns Promise<ViewerSettingsState>

  • Gets the visible internal IDs.

    Returns

    A promise that resolves to an array of visible internal IDs.

    Parameters

    • staticElements: boolean

      Whether to include static elements.

    • dynamicElements: boolean

      Whether to include dynamic elements.

    Returns Promise<Int64[]>

  • Returns the visible region of the scene in 2D Visualuzer mode only

    Returns

    A promise that resolves to the bounding box of the visible region in 3D scene coordinates.

    Returns Promise<BoundingBox3D>

  • Hides all windows.

    Returns void

  • Hides the context menu.

    Returns

    Whether the context menu was hidden.

    Returns boolean

  • Hides elements by element ID.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements to hide.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Hides elements by global ID.

    Parameters

    • ids: string[]

      The global IDs of the elements to hide.

    Returns Promise<void>

  • Hides elements by internal ID.

    Parameters

    • ids: Int64[]

      The internal IDs of the elements to hide.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Hides the menus.

    Returns

    Whether the context menu was hidden.

    Returns boolean

  • Hides the selected elements.

    Returns Promise<void>

  • Hides the share window.

    Returns void

  • Hides the views window.

    Returns void

  • Hides all views windows.

    Returns void

  • Hides the WebXR window.

    Returns void

  • Shows an input number message box.

    Returns

    A promise that resolves to the input number.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • value: number = undefined

      The default value of the input.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<number>

  • Shows an input text message box.

    Returns

    A promise that resolves to the input text.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • value: string = ''

      The default value of the input.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<string>

  • Shows an input number message box.

    Returns

    A promise that resolves to the input number in millimeters

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • valueInMM: number = undefined

      The default value of the input in millimeters

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<number>

  • Checks if the element is a 3D element.

    Returns

    A promise that resolves to a boolean indicating if the element is a 3D element.

    Parameters

    • rendererId: Int64

      The renderer ID of the element.

    Returns Promise<boolean>

  • Checks if the camera compass is visible.

    Returns

    Whether the camera compass is visible.

    Returns boolean

  • Checks if the camera cube is visible.

    Returns

    Whether the camera cube is visible.

    Returns boolean

  • Returns

    whether the renderer is comparing.

    Returns boolean

  • Checks if the context menu is showing.

    Returns

    Whether the context menu is showing.

    Returns boolean

  • Checks if a cutting plane is active.

    Returns

    Whether the cutting plane is active.

    Parameters

    • index: number

      The index of the cutting plane.

    Returns boolean

  • Checks if a cutting plane is enabled.

    Returns

    Whether a cutting plane is enabled.

    Returns boolean

  • Checks if the design tree window is showing.

    Returns

    Whether the design tree window is showing.

    Returns boolean

  • Checks if an element is visible.

    Returns

    A promise that resolves to a boolean indicating if the element is visible.

    Parameters

    • internalId: Int64

      The internal ID of the element.

    Returns Promise<boolean>

  • Checks if the filter elements window is showing.

    Returns

    Whether the filter elements window is showing.

    Returns boolean

  • Checks if the game mode is on.

    Returns

    Whether the game mode is on.

    Returns boolean

  • Checks if the renderer is initialized.

    Returns

    Whether the renderer is initialized.

    Returns boolean

  • Checks if a key is pressed.

    Returns

    Whether the key is pressed.

    Parameters

    • code: string

      The key code to check.

    Returns boolean

  • Checks if the message window is showing.

    Returns

    Whether the message window is showing.

    Returns boolean

  • Checks if the renderer is a mobile renderer.

    Returns

    Whether the renderer is a mobile renderer.

    Returns boolean

  • Checks if picking elements is enabled.

    Returns

    Whether picking elements is enabled.

    Returns boolean

  • Checks if picking faces is enabled.

    Returns

    Whether picking faces is enabled.

    Returns boolean

  • Checks if picking faces or elements is enabled.

    Returns

    Whether picking faces or elements is enabled.

    Returns boolean

  • Checks if picking isometric is enabled.

    Returns

    Whether picking isometric is enabled.

    Returns boolean

  • Checks if picking lines is enabled.

    Returns

    Whether picking lines is enabled.

    Returns boolean

  • Checks if picking measurements is enabled.

    Returns

    Whether picking measurements is enabled.

    Returns boolean

  • Checks if the properties window is showing.

    Returns

    Whether the properties window is showing.

    Returns boolean

  • Returns whether the rendering is stopped.

    Returns boolean

  • Checks if roll over is enabled.

    Returns

    Whether roll over is enabled.

    Returns boolean

  • Checks if the settings window is showing.

    Returns

    Whether the settings window is showing.

    Returns boolean

  • Checks if the share window is showing.

    Returns

    Whether the share window is showing.

    Returns boolean

  • Checks if the snapshot window is showing.

    Returns

    Whether the snapshot window is showing.

    Returns boolean

  • Checks if a VR session is started.

    Returns boolean

  • Checks if the views window is showing.

    Returns

    Whether the views window is showing.

    Returns boolean

  • Checks if any views windows are showing.

    Returns

    Whether any views windows are showing.

    Returns boolean

  • Checks if the WebXR window is showing.

    Returns

    Whether the WebXR window is showing.

    Returns boolean

  • Isolates the selected elements.

    Returns Promise<void>

  • Loads data from a MsgPack payload.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • payload: number[] | Uint8Array | Buffer

      The payload to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    Returns Promise<void>

  • Loads a model from a payload.

    Returns

    A promise that resolves to the ModelInfo object of the loaded model.

    Parameters

    • payload: number[] | Uint8Array | Blob | XMLHttpRequest

      The payload of the model to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Loads a model from a URL and caches it in the browser.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • url: string

      The URL to load the model from.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<void>

  • Loads a model from an XMLHttpRequest and caches it in the browser.

    Returns

    A promise that resolves when the model is loaded.

    Parameters

    • httpRequest: XMLHttpRequest

      The XMLHttpRequest to load the model from.

    • uuid: string

      The UUID of the model.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to animate the transition to the new model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<void>

  • Loads a model from a URL.

    Returns

    A promise that resolves to the ModelInfo object of the loaded model.

    Parameters

    • url: string

      The URL of the model to load.

    • Optional sceneView: SceneView

      The scene view to use for the model or undefined to use the default scene view. if you dont want to change the camera or the view use autoCameraResetAfterModelLoaded = true prior to calling this function.

    • Optional transition: boolean

      Whether to use a transition when loading the model.

    • Optional matrix: number[]

      The matrix to apply to the model.

    • Optional mapping: ModelIdMapping

      The mapping to apply to the model.

    Returns Promise<ModelInfo>

  • Loads a skymap from URLs.

    Parameters

    • skymapURL: string

      The URL of the skymap.

    • cloudsURL: string

      The URL of the clouds.

    Returns Promise<void>

  • Loads a skymap by its ID.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • skymapId: "grass" | "desert" | "farm"

      The ID of the skymap.

    • showLoading: boolean = true

      Whether to show the loading screen.

    Returns Promise<boolean>

  • Looks at the specified bounding box.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • bBox: BoundingBox3D

      The bounding box to look at.

    • animate: boolean

      Whether to animate the transition.

    Returns Promise<boolean>

  • Shows a message box.

    Returns

    A promise that resolves to the result of the message box.

    Parameters

    • message: string

      The message to display.

    • title: string = 'Message'

      The title of the message box.

    • option: MessageOption = MessageOption.OKCANCEL

      The options for the message box.

    • icon: MessageIcon = MessageIcon.INFO

      The icon for the message box.

    Returns Promise<MessageResult>

  • Picks element IDs within the specified rectangle.

    Returns

    A promise that resolves to an array of picked element IDs.

    Parameters

    • x: number

      The x-coordinate of the top-left corner of the rectangle.

    • y: number

      The y-coordinate of the top-left corner of the rectangle.

    • w: number

      The width of the rectangle.

    • h: number

      The height of the rectangle.

    Returns Promise<Int64[]>

  • Picks the face ID at the specified coordinates.

    Returns

    A promise that resolves to the picked face ID.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    • prefer2DPaperFace: boolean

      Whether to prefer 2D paper face.

    Returns Promise<Int64>

  • Picks face IDs within the specified rectangle.

    Returns

    A promise that resolves to an array of picked face IDs.

    Parameters

    • x: number

      The x-coordinate of the top-left corner of the rectangle.

    • y: number

      The y-coordinate of the top-left corner of the rectangle.

    • w: number

      The width of the rectangle.

    • h: number

      The height of the rectangle.

    • prefer2DPaperFace: boolean

      Whether to prefer 2D paper face.

    Returns Promise<Int64[]>

  • Picks the normal vector at the specified coordinates.

    Returns

    A promise that resolves to the normal vector.

    Parameters

    • x: number

      The x-coordinate.

    • y: number

      The y-coordinate.

    Returns Promise<Vector3D>

  • Picks element IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked element IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Picks face IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked face IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Picks measurement IDs within the specified rubberband rectangle.

    Returns

    A promise that resolves to an array of picked measurement IDs.

    Parameters

    • sx: number

      The x-coordinate of the start point.

    • sy: number

      The y-coordinate of the start point.

    • ex: number

      The x-coordinate of the end point.

    • ey: number

      The y-coordinate of the end point.

    Returns Promise<Int64[]>

  • Recomputes the snapping points.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>

  • Refreshes the camera cube.

    Returns Promise<void>

  • Refreshes the position of the clouds.

    Returns Promise<void>

  • Refreshes the cutting plane label.

    Parameters

    • planeIndex: number

      The index of the cutting plane.

    Returns void

  • Refreshes the redraw needed state.

    Parameters

    • reloadColors: boolean = false

    Returns void

  • Refreshes the solar position.

    Parameters

    • showDateTime: boolean = true

      Whether to show the date and time.

    • forceDispatchTimeChangedEvent: boolean = false

    Returns Promise<void>

  • Removes a specified clipping region from the list of regions.

    Returns

    A promise that resolves to true if the region was successfully removed, or false if the region was not found.

    Parameters

    • region: ClippingRegion

      The BimCTClippingRegion object to be removed.

    • silent: boolean = false

      If true, will not ask the user to delete any measurements that overlap with this region.

    Returns Promise<boolean>

  • Removes a comparison renderer.

    Parameters

    Returns void

  • Removes the skymap.

    Returns Promise<void>

  • Disables any GUI actions and forces the user to select a Rubberband area on screen Pressing Escape will return null

    Returns

    A promise that resolves to the selection Rectangle or null if the operation fails.

    Returns Promise<Rectangle>

  • Resets the 3D camera to the specified position.

    Parameters

    • position: BIM_CAMERA_POSITION

      The position to reset the camera to.

    • animate: boolean

      Whether to animate the transition.

    Returns Promise<void>

  • Resets the camera to the home position.

    Returns Promise<void>

  • Resets the hybrid mode.

    Parameters

    • clearHighlights: boolean = true

      Whether to clear the highlights.

    Returns Promise<void>

  • Resets the last redraw executed time.

    Returns void

  • Resets the XR visibility state.

    Returns Promise<void>

  • Reverts the previous roll over.

    Parameters

    • reset: boolean = false

      Whether to reset the roll over.

    Returns Promise<void>

  • Rotates the 2D camera to the specified position.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    Returns Promise<boolean>

  • Converts screen coordinates to world position.

    Returns

    A promise that resolves to the world position.

    Parameters

    • x: number

      The x-coordinate on the screen.

    • y: number

      The y-coordinate on the screen.

    Returns Promise<Vector3D>

  • Converts screen coordinates to world position without taking depth into account.

    Returns

    A promise that resolves to the world position.

    Parameters

    • x: number

      The x-coordinate on the screen.

    • y: number

      The y-coordinate on the screen.

    Returns Promise<Vector3D>

  • Selects and highlights all elements on the scene.

    Returns Promise<void>

  • Selects and highlights visible elements on the scene according to static or dynamic type.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • staticElements: boolean = true

      Whether to include static elements.

    • dynamicElements: boolean = true

      Whether to include dynamic elements.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the class name. Names for all file types are similar to Ifc Standard without the Ifc prefix.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • className: string

      The class name.

    Returns Promise<boolean>

  • Selects and highlights the elements using an ElementInfo structure.

    Parameters

    • elements: ElementInfo[]

      The elements to select and highlight.

    Returns void

  • Selects and highlights the elements on the scene according to filters.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    Returns Promise<boolean>

  • Selects and highlights the elements by element ID.

    Parameters

    • ids: Int64[]

      The element IDs as defined on the metadata file.

    Returns Promise<void>

  • Selects and highlights the elements by engine internal IDs.

    Parameters

    • ids: Int64[]

      The internal IDs (different on every scene loading).

    Returns Promise<void>

  • Selects and highlights the elements on the scene according to the layer name defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • layerName: string

      The layer name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the material name defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • materialName: string

      The material name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the membership defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • membershipNameOrGlobalId: string

      The membership name or global ID.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to model name.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • modelName: string

      The name of the model.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the storey defined in the file.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • storeyName: string

      The storey name.

    Returns Promise<boolean>

  • Selects and highlights the elements on the scene according to the type defined in the file. Note: For Revit, this is usually the family name.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • typeName: string

      The type name.

    Returns Promise<boolean>

  • Selects and highlights the elements sharing the same property.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • property: ElementProperty

      The property to filter by.

    • group: string = null

      The group of the property.

    Returns Promise<boolean>

  • Sets the 2D visualizer on or off.

    Parameters

    • on: boolean

      Whether to set the 2D visualizer on or off.

    • animate: boolean

      Whether to animate the transition.

    • dispatchStateChanged: boolean = true

    Returns Promise<void>

  • Sets the visibility of a bounding box.

    Parameters

    • bBox: BoundingBox3D

      The bounding box to set visibility for.

    • visible: boolean

      Whether to set the bounding box visible or not.

    • rgb: RGB = ...

      The color of the bounding box.

    Returns Promise<void>

  • Sets the camera compass visible or not.

    Parameters

    • visible: boolean

      Whether to set the camera compass visible or not.

    Returns Promise<void>

  • Sets the camera cube visible or not.

    Parameters

    • visible: boolean

      Whether to set the camera cube visible or not.

    Returns Promise<void>

  • Sets the state of the camera. The state number array includes:

    1. position (3 floats)
    2. target (3 floats)
    3. direction (3 floats)
    4. right (3 floats)
    5. up (3 floats)
    6. linear speed (1 float)
    7. angular speed (1 float)
    8. zoom speed (1 float)
    9. min blend zoom (1 float)
    10. max blend zoom (1 float)

    Parameters

    • state: CameraState

      The state to set.

    • animate: boolean

      Whether to animate the transition.

    • distatchStateChanged: boolean = true

      Whether to dispatch the state changed event default is true

    Returns Promise<void>

  • Sets the camera type.

    Parameters

    • type: BIM_CAMERA_TYPE

      The camera type to set.

    • panPrefered: boolean = false

      Whether panning is preferred.

    • dispatchStateChanged: boolean = true

    Returns Promise<void>

  • Sets elements to hybrid opaque state.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • state: boolean

      The hybrid opaque state.

    • clearHighlights: boolean = true

      Whether to clear the highlights.

    Returns Promise<void>

  • Sets the visibility of elements by internal IDs.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • visible: boolean

      Whether to set the elements visible or not.

    Returns Promise<void>

  • Locks or unlocks GUI actions.

    Parameters

    • locked: boolean

      Whether to lock or unlock GUI actions.

    • escapeCallback: (() => void) = undefined
        • (): void
        • Returns void

    Returns void

  • Sets the grid enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable the grid.

    Returns Promise<void>

  • Sets ground shadow enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable ground shadow.

    Returns Promise<void>

  • Sets the key for the renderer.

    Parameters

    • key: string

      The key to set.

    Returns Promise<void>

  • Sets the markup state.

    Parameters

    • state: MarkupState

      The state to set.

    • editMode: boolean = false

      Whether to enable edit mode.

    Returns Promise<void>

  • Sets the models with URL state.

    Returns

    A promise that resolves when the state is set.

    Parameters

    • state: ModelsWithURLState

      The state to set.

    • unloadAllModelsWithURL: boolean = false

      Whether to unload all models with URL before setting the state.

    Returns Promise<void>

  • Sets the visibility of a normal arrow.

    Parameters

    • point: Vector3D

      The point of the arrow.

    • direction: Vector3D

      The direction of the arrow.

    • length: number

      The length of the arrow.

    • visible: boolean

      Whether to set the arrow visible or not.

    • rgb: RGB = ...

      The color of the arrow.

    Returns Promise<void>

  • Sets the RENDERER_PICK_MODE of the viewer

    Parameters

    Returns Promise<void>

  • Sets the pin state.

    Parameters

    Returns Promise<void>

  • Sets the pixel size of point clouds.

    Parameters

    • size: number

      The pixel size.

    Returns Promise<void>

  • Sets SSAO (Screen Space Ambient Occlusion) enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable SSAO.

    Returns Promise<void>

  • Sets the scene date and time.

    Parameters

    • dateAndTime: Date

      The date and time to set.

    • showDateTimePopup: boolean = true

      Whether to show the date and time popup.

    Returns Promise<void>

  • Sets the scene view.

    Parameters

    • view: SceneView

      The scene view to set.

    • transition: boolean

      Whether to transition to the view.

    • markupEditing: boolean = false

      Whether to enable markup editing.

    • showLoadingSplashscreen: boolean = true

      Whether to show the loading splashscreen.

    Returns Promise<void>

  • Sets whether the selection label is enabled.

    Parameters

    • val: boolean

      Whether to enable the selection label.

    Returns void

  • Sets the selection type.

    Parameters

    • type: BIM_SELECTION_TYPE

      The selection type to set.

    • sendStateChange: boolean = true

      Whether to send the state change event.

    Returns Promise<void>

  • Sets the sensors state.

    Parameters

    • state: SensorsState

      The state to set.

    Returns Promise<void>

  • Sets shadow maps enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable shadow maps.

    • Optional quality: BIM_SHADOWS_QUALITY

      The quality of the shadow maps.

    Returns Promise<void>

  • Sets sun flare enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable sun flare.

    Returns Promise<void>

  • Sets sun light enabled or disabled.

    Parameters

    • enabled: boolean

      Whether to enable or disable sun light.

    Returns Promise<void>

  • Sets the visibility state.

    Parameters

    • state: VisibilityState

      The state to set.

    • recomputeSnapping: boolean = true

      Whether to recompute snapping points.

    Returns Promise<void>

  • Sets the XR preview to canvas state.

    Parameters

    • preview: boolean

    Returns void

  • Shows all elements.

    Parameters

    • show3D: boolean = true

      Whether to show 3D elements.

    • show2D: boolean = true

      Whether to show 2D elements.

    Returns Promise<void>

  • Shows elements by element ID.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements to show.

    Returns Promise<void>

  • Shows elements by global ID.

    Parameters

    • ids: string[]

      The global IDs of the elements to show.

    Returns Promise<void>

  • Shows the views window.

    Returns void

  • Pust the renderer in Area Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Parameters

    • negative: boolean

      whether it is positive or negative Length Measurement

    Returns Promise<void>

  • Puts the renderer in Count Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, the image used is in the image URL Original Width and Height of the image is required You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Returns Promise<void>

  • Starts isometric measurement.

    Parameters

    • negative: boolean

      Whether the measurement is negative.

    Returns Promise<void>

  • Pust the renderer in Length Measurement Pick Mode and starts addition of a Length Measurement You need to subscribe to measurementsPointPushBackEvent to Listen to measurement point changes

    Parameters

    • negative: boolean

      whether it is positive or negative Length Measurement

    Returns Promise<void>

  • Starts occlusion culling.

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, using inner pin SVG images that can change color You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Parameters

    • Optional color: string

      of the image in html color format

    • Optional userObject: unknown
    • Optional orientation: PinClickedPointOrientation

    Returns Promise<void>

  • Puts the renderer into Pin Addition mode, the image used is in the image URL Original Width and Height of the image is required You need to subscribe to pinInsertEvent to listen to when and if an image will be actually added

    Parameters

    Returns Promise<void>

  • Starts the rendering animation loop. This is useful when you want to start rendering after stopping it.

    Returns Promise<void>

  • Starts the VR session.

    Parameters

    • previewToCanvas: boolean = false

    Returns Promise<boolean>

  • Stops occlusion culling.

    Returns Promise<void>

  • Stops the rendering animation loop and waits for the current frame to finish rendering. This is useful when you want to stop rendering and wait for the current frame to finish rendering before doing something else.

    Returns void

  • Stops the VR session.

    Returns Promise<boolean>

  • Takes a snapshot image and maintains aspect ratio.

    Returns

    A promise that resolves to a URI that contains the image to download or use.

    Parameters

    • Optional width: number

      The requested width.

    • Optional height: number

      The requested height.

    Returns Promise<string>

  • Unloads all models in the scene.

    Returns Promise<void>

  • Unloads a model by its ID.

    Parameters

    • modelId: number | Int64

      The ID of the model.

    • dispatchEvent: boolean = true

      Whether to dispatch the model removed event.

    Returns Promise<void>

  • Updates the selection by element IDs.

    Parameters

    • ids: (number | Int64)[]

      The element IDs to update the selection with.

    Returns Promise<void>

  • Manually update the selection.

    Parameters

    • localElementNodes: BimCTExpandableLevelVirtualRow[]

      The local element nodes to update the selection with.

    • internalIdsToSelection: boolean = true

      Whether to use internal IDs for selection.

    Returns Promise<void>

  • Updates the selection by global IDs.

    Parameters

    • ids: string[]

      The global IDs to update the selection with.

    Returns Promise<void>

  • Updates the selection by internal IDs.

    Parameters

    • ids: Int64[]

      The internal IDs to update the selection with.

    • highlight: boolean = true

      Whether to highlight the selection.

    Returns Promise<void>

  • Updates the selection from the highlight.

    Returns Promise<void>

  • Updates the selection label.

    Returns Promise<void>

  • Converts world coordinates to screen space position.

    Returns

    A promise that resolves to the screen space position and whether it is inside the frustum.

    Parameters

    • vector: Vector3D

      The world coordinates.

    Returns Promise<{ insideFrustum: boolean; point: Point2D }>

  • Zooms to the extents of the scene, 2D mode only

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<void>

  • Zooms to elements by internal IDs.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Parameters

    • internalIds: Int64[]

      The internal IDs of the elements.

    • animate: boolean = true

      Whether to animate the transition.

    Returns Promise<boolean>

  • Zooms to elements by element IDs.

    Parameters

    • ids: (number | Int64)[]

      The element IDs of the elements.

    Returns Promise<void>

  • Zooms to elements by global IDs.

    Parameters

    • ids: string[]

      The global IDs of the elements.

    Returns Promise<void>

  • Zooms to the selected elements.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>

  • Zooms to the selection.

    Returns

    A promise that resolves to a boolean indicating success or failure.

    Returns Promise<boolean>