BimCT SDK / WebGL2 Viewer
    Preparing search index...

    Class BaseRendererAbstract

    The BaseRenderer class is an abstract class that extends the BIMRenderer class. It provides a base implementation for rendering BIM (Building Information Modeling) data.

    Hierarchy (View Summary)

    Index

    Accessors

    companionRenderers backgroundMode assetsBasePath bimctServerBasePath metadataAccessor hasTouchWidget touchWidget hasLeftToolbar leftToolbar hasHomeToolbar homeToolbar hasToolbar toolbar hasContextMenu contextMenu hasSplitElementsUI hasSettingsWindow settingsWindow hasTimeChangerWindow hasComparisonViewer comparisonViewer hasMinimapViewer minimapViewer hasShareWindow shareWindow hasWebXRWindow webXRWindow hasSnapshotWindow snapshotWindow hasMapExportWindow mapExportindow hasViewsManager viewsManager hasMessageWindow messageWindow hasPropertiesWindow propertiesWindow hasFilterElementsWindow filterElementsWindow hasDesignTreeWindow designTreeWindow baseCanvas dynamicElements transformationGismo animations state allowPicking2DElements measurementSystem canvasCursor overlay clipping divElement sceneState measurements displayFormat sensors terrain pins legend alignment pickLines guiActionsLockedEvent timeChangedEvent destroyedEvent selectionChangeEvent visibilityChangeEvent mapPositionChangeEvent pinInsertEvent pinClickedEvent pinMovedEvent pinHighlightedEvent pinDehighlightedEvent mouseRightClickedEvent contextMenuEvent modelLoadedEvent modelAddedEvent modelRemovedEvent stateChangedEvent xrChangedEvent pickLinesUpdatedEvent measurementsSelectedEvent measurementsUpdatedEvent measurementsDeletedEvent measurementsPointPushBackEvent isRotatingOrPanning hasSelectionLabelEnabled cuttingElements elements selectedElements selectedElementIds selectedElementInternalIds shadingMode snappingEnabled settingsChangedEvent cameraChangedEvent resizedEvent languageChangedEvent modalWindowShowEvent

    Methods

    registerCompanionRenderer unregisterCompanionRenderer unregisterAllCompanionRenderers changeLanguage currentLanguage supportedLanguages screenToWorldPosition screenToWorldPositionNoDepth worldToScreenSpacePosition worldToEarthPosition earthToWorldSpacePosition setGUIActionsLocked checkGUIActionsLocked isKeyDown isRollOverEnabled revertPreviousRollOver doRollOver markMouseActionEventMade refreshRedrawNeeded getSkymapIds removeSkymap loadSkymapById loadSkymap setSSAOEnabled setGroundShadowEnabled setSceneDateAndTime refreshSolarPosition refreshCloudsPosition setSunLightEnabled setSunFlareEnabled setShadowMapsEnabled setPointCloudPixelSize setGridEnabled setMeasurementSystem isVR_SessionStarted dispatchContextMenu dispatchStateChanged clearSelection isPropertiesWindowShowing hidePropertiesWindow isDesignTreeWindowShowing hideDesignTreeWindow isViewsWindowShowing showViewsWindow hideViewsWindow isFilterElementsWindowShowing hideFilterElementsWindow isSettingsWindowShowing isShareWindowShowing isWebXRWindowShowing isSnapshotWindowShowing isMapExportWindowShowing isViewsWindowsShowing isMessageWindowShowing hideSettingsWindow hideShareWindow hideWebXRWindow hideSnapshotWindow hideMapExportWindow hideViewsWindows hideMessageWindow messageBox inputTextMessageBox inputNumberMessageBox inputUnitMessageBox hideAllWindows isContextMenuShowing hideMenus hideContextMenu setPickModeChangeClearsMeasurements isPickModeChangeClearsMeasurements getPickMode setPickMode isPickingElements isPickingFaces isPickingFacesOrElements isPickingMeasurements isPickingLines isPickingIsometric recomputeSnappingPoints recomputeCameraMovementSettings startOcclusionCulling stopOcclusionCulling getSceneBoundingBox getGeolocatedSceneCenterAtGroundLevel getGeolocatedSceneBoundingBox getVisibleRegion2D getVisibleElementsBoundingBox getModelBoundingBox getGeolocatedBoundingBox setBoundingBoxVisible isBoundingBoxVisible redrawBoundingBox setNormalArrowVisible getElementsBoundingBox is2DVisualizer getFacesBoundingBox set2DBoundingBox rotateCamera2D set2DVisualizerOn is3DElement pickElementIds pickExtrusions pickRubberbandElementIds pickRubberbandMeasurementIds pickRubberbandFaceIds pickNormal pickFaceId getElementsSelectionMode pickFaceIds getPaperIdOfElementId setSelectionLabelEnabled updateSelectionLabel updateSelectionFromHighlight updateSelectionByInternalIds updateSelectionByElementNodes updateSelectionByElementIds updateSelectionByGlobalIds showAllElements getHighlightedInternalIds resetHybridMode setElementsHybridOpaque colorizeInternalIds decolorizeInternalIds colorizeSelectedElements decolorizeSelectedElements decolorizeAllElements getVisibleInternalIds selectAllElements selectByIds selectByInternalIds selectByElementInfo selectAllVisibleElements selectByModel selectByClass selectByLayer selectByMaterial selectByType selectByStorey selectByMembership selectByFilters selectElementsByProperty hideSelectedElements hideElementsByGlobalId hideElementsByInternalId hideElementsByElementId showElementsByGlobalId showElementsByElementId isolateSelectedElements isolateElementsByInternalId setElementsVisible isElementVisible setKey zoomToElementsByGlobalIds zoomToElementsByElementIds zoomToSelectedElements zoomToSelection lookAtBoundingBox resetCameraToHome isGameModeOn setCameraType setSelectionType getSelectionType resetCamera3D startLengthMeasure startIsometricMeasure startAreaMeasure startCountMeasure startAutoCountMeasure setMeasurementOptions getMeasurementOptions clearMeasurementOptions addNewMeasurement clearMeasurements clearPins focus refreshCuttingPlaneLabel clearCuttingPlanes activateArbitraryCuttingPlane activateCuttingPlaneOnFaceId activateCuttingPlane deactivateCuttingPlane isCuttingPlaneEnabled isCuttingPlaneActive getImageData getImageDataGzipped init isInitialized destroy unloadAll unloadModel refreshCameraCube setCameraCubeVisible isCameraCubeVisible setCameraCompassVisible isCameraCompassVisible zoomToElements zoomExtents checkElementsShowing takeSnapshot takeSnapshotAndGetExternalURL getDynamicElementsState setDynamicElementsState getClippingRegionsState setClippingRegionsState getCameraState setCameraState checkVRSupported getVisibilityState setVisibilityState getColorizationState getMarkupState setMarkupState getSensorsState setSensorsState getPinState setPinState getHybridState setHybridState setColorizationState getViewerSettingsState setViewerSettingsState getHighlightedState setHighlightedState getMeasurementsState setMeasurementsState getCuttingPlanesState getSplittedElementsState setSplittedElementsState setCuttingPlanesState getSceneView setSceneView isMobileRenderer setLoadingColorOverride clearLoadingColorOverride BR_GetInputState BR_GetRendererMode BR3D_ClearSelectedIDs BR3D_Debug_GetNumberOfElements BR3D_Debug_GetModelElementIDs BR3D_ZoomToBoundingBox BR3D_GetAllTextureElementIDs BR3D_SetLineFadeOut BR3D_GetCameraCubeDimensions BR3D_SetTransformGizmoPosition BR3D_GetTransformGizmoPosition BR3D_GetTransformGizmoTransformState BR3D_SetTransformGizmoVisibilityState BR3D_GetTransformGizmoVisibilityState BR3D_SetTransformGizmoHoverColor BR3D_GetTransformGizmoHoverColor BR3D_SetTransformGizmoRotationOffset BR3D_GetTransformGizmoRotationOffset BR3D_SetTransformGizmoRotationOffsetVector BR3D_TransformGizmoMouseMove BR3D_TransformGizmoMouseClick BR3D_SetTransformGizmoScreenSize BR3D_GetTransformGizmoScreenSize BR3D_IsCameraCompassClicked BR3D_StartCameraCompassDrag BR3D_IsCameraCompassDragging BR3D_IsCameraCompassVisible BR3D_SetCameraCompassVisible BR3D_StopCameraCompassDrag BR3D_SetAngleToTrueNorth BR3D_CameraCompassHover BR3D_AddElementLinePattern BR3D_GetGlobalTransparencyValue BR3D_SetElementsSelectionMode BR3D_SetIgnoreTransparentElementsOnHybridMode BR3D_SetGlobalColorizedTransparencyValue BR3D_GetGlobalColorizedTransparencyValue BR3D_HiddenLineSetColor BR_KeyButtonEvent BR_SetInputState BR3D_SetOutlineElementColorVisualization BR3D_SetOutlineElementsColor BR3D_GetOutlineElementsColor BR3D_GetOutlineElementsColorSync BR3D_SetMeasurementPreviewMode BR3D_SetCutterPreviewMode BR3D_SetCurrentCameraLinearSpeed BR3D_Get2DDrawingData BR3D_GetClosestPoint BR3D_GetCutterClosestPoint BR3D_Set2DDrawingDefaultDrawingType BR3D_Generate2DDrawingIDCustom BR_LoggingSetFilename BR_ShowFPS BR3D_Generate2DDrawingID BR3D_GetArea BR3D_GetCutterArea BR3D_RotateMeasurement BR3D_RotateMeasurements BR3D_RotateCutters BR3D_RotateMeasurementsOnPlane BR3D_RotateCuttersOnPlane BR3D_HiddenLineGetColor BR3D_SelectMeasurement BR3D_SelectCutter BR3D_SelectCuttingPlane BR3D_GetMeasurementPointColor BR3D_SetDynamicElementOutlines BR3D_GetTotalLength BR3D_GetCutterTotalLength BR3D_DeleteMeasurementPoint BR3D_DeleteCutterPoint BR3D_GetCameraCubeVisible BR3D_SetActiveMinimapWindowPosition BR3D_Reset2DDrawingTypes BR3D_SetAmbientColor BR_SetOffscreenRendering BR3D_GetActiveMinimapData BR3D_GetVisibleElementsBoundingBox BR3D_GetGridVisibilityStatus BR3D_GetAllMinimapIDs BR3D_DestroyMinimap BR3D_GetAll2DDrawingIDs BR3D_IsMeasurementClosed BR3D_IsCutterClosed BR3D_GetEnhancedSilhouetteHideThreshold BR3D_SetElementVertices BR3D_SetOutlineShadedThickness BR3D_SetLinePatternThickness BR3D_GetMeasurementSegmentIDs BR3D_GetCutterSegmentIDs BR3D_GetCurrentCameraZoomSpeed BR3D_SetCurrentCameraAngularSpeed BR3D_RubberbandSelectMeasurements BR3D_RubberbandSelectCutters BR_RotateStop BR3D_Get2DDrawingCameraBox BR3D_GetTextureElementActive BR_GetBenchmarkingStatus BR3D_SetSelectiveRenderingMode BR_LoggingSetStatus BR3D_SetMeasurementLineWidth BR3D_SetCutterLineWidth BR3D_SetMeasurementPointSize BR3D_SetCutterPointSize BR3D_GetGlobalIDFromElementsID BR3D_GetOutlineThickness BR3D_GetLinePatternThickness BR3D_SetSSAOHideThreshold BR3D_IsDynamicElement BR3D_GetFacesArea BR3D_AddTextureElementRaster BR3D_SetBackfaceCulling BR3D_Get2DDrawingCameraUVW BR3D_SetGlobalTransparencyValue BR_MouseButtonEvent BR3D_CreateMeasurement BR3D_QuickMeasurement BR3D_GetCurrentCameraType BR3D_RemoveTextureElement BR3D_SetCameraTransitionArbitrary BR3D_GetClosestPointAndOutline BR3D_ComputeClosestPointAndOutlineStructure BR3D_ComputeClosestPointAndOutlineStructureAsync BR3D_AddTextureElement BR3D_GetActiveMinimapWindowPosition BR3D_SetTextureElementActive BR3D_RemoveMeasurement BR3D_GetElementsArea BR3D_GetElementPerimeter BR3D_Get2DDrawingDimensions BR3D_GetLineFadeOut BR3D_GetMeasurementFillPattern BR3D_SetGridExpansionFactor BR3D_GetOutlineElementColorVisualization BR3D_GetOutlineElementColorVisualizationSync BR3D_GetAmbientColor BR3D_InsertMeasurementPoint BR3D_InsertCutterPoint BR3D_RemoveDynamicElement BR3D_AddPointCloud BR3D_RemovePointCloud BR3D_SetPointCloudVisibility BR3D_GetPointCloudVisibility BR3D_SetPointCloudPointSize BR3D_GetPointCloudPointSize BR3D_SetGlobalPointCloudPointSize BR3D_GetGlobalPointCloudPointSize BR3D_GetPointCloudBoundingBox BR3D_GetCuttingPlaneVisualizationParameters BR3D_Get2DDrawingTypeInfo BR3D_SetActiveMinimapCameraParameters BR_Resize BR3D_Set2DDrawingZoomOutPercentage BR_GetHighlightColors BR_SetHighlightAlpha BR_GetHighlightAlpha BR_GetHighlightXRayMode BR3D_GetCurrentCameraLinearSpeed BR3D_GetCameraState BR3D_GetElementsVolume BR3D_EndComputingNormals BR3D_GetGroundSurfaceShadowState BR3D_GetGroundSurfaceShadowRecomputeState BR3D_IsElementVisible _BR3D_IsElementVisible BR_LoggingGetStatus BR3D_SetMeasurementVisualizationMode BR3D_SetCutterVisualizationMode BR3D_GetElementsIDs BR3D_GetActiveMinimapID BR_MouseWheelMotion BR3D_SetGridUOM BR3D_ForceMinimapRender BR3D_SetCuttingPlaneVisualizationParameters BR_MouseMotion BR3D_Render2DDrawing BR3D_SetSelectiveOutlineRendering BR3D_GetGridUOM BR3D_GetClosestSegment BR3D_GetCutterClosestSegment BR_GetFPSstatus BR3D_SetCameraTransition BR3D_SetModelVisibility BR3D_ResetCameras BR3D_GetElementPixelCenter BR3D_GetMeasurement3DPreviewColor BR3D_GetCutter3DPreviewColor BR3D_GetMeasurement3DData BR3D_GetCutter3DData BR3D_GetSceneBoundingBox BR3D_GetElementsBoundingBox BRMD_GetModelBoundingBox BR3D_GetPointAdjacentPointIDs BR3D_GetCutterPointAdjacentPointIDs BR3D_CheckMeasurementPolygon BR3D_CheckCutterPolygon BR3D_GetMeasurementLineWidth BR3D_GetCutterLineWidth BR3D_GetMeasurementPointSize BR3D_GetCutterPointSize BR3D_SetActiveMinimapID BR3D_AntiAliasingSetMode BR3D_SetOutlineThickness BR3D_QuickCorner BR3D_CreateCutterFromMeasurement BR3D_CreateCutter BR3D_IsPlaneCutter BR3D_CloseCutter BR3D_RemoveCutter BR3D_SetCutterElements BR3D_SetCutterNormal BR3D_SetCutterPosition BR3D_GetElementParentInfo BR3D_GetElementParentInfoSync BR3D_SetElementParentInfo BR3D_SetElementParentInfoSync BR3D_ClearCutterHistory BR3D_PushBackCutterPoint BR3D_PushBackCutterPointAtClick BR3D_ScaleCutter BR3D_MoveCutter BR3D_RotateCutter BR3D_SetCutterDrawOrder BR3D_GetCutterDrawOrder BR3D_SetCutterLineColor BR3D_GetCutterLineColor BR3D_SetCutterPointColor BR3D_GetCutterPointColor BR3D_GetCutterPointCount BR3D_GetCutterPoints BR3D_GetCutterNormal BR3D_GetCutterPosition BR3D_GetActiveMinimapOpacity BR3D_GetGridLevelAttributes BR3D_SetCurrentCamera BR3D_RemoveModel BR3D_GetElementsSelectionMode BR3D_GetMeasurementPointAt BR3D_GetCutterPointAt BR3D_AddShapeText BR3D_UpdateShapeText2 BR3D_RemoveShapeText BR3D_UpdateShapeText BR3D_SetUpdateShapeTextCallback RemoveUpdateShapeTextCallback BR3D_UpdateShapeTextFullscreenImage BR3D_SetUpdateShapeTextImageCallback BR3D_SetShapeTextVisibility BR_SetRubberbandModeColor BR3D_GetNumTextureElements BR3D_Get2DDrawingFontColor BR_SetRubberbandMode BR3D_StartComputingNormals BR3D_SetEnhancedSilhouetteSSAOHideThreshold BR3D_ChangeDynamicElementTransparency BR_GetRubberbandMode BR3D_ChangeDynamicElementTranformation BR3D_ChangeDynamicElementTranformations BR_SetHighlightColors BR3D_IsCameraTransitioning isCameraTransitioning BR3D_GetGlobalClosestSegment BR3D_GetCutterGlobalClosestSegment BR3D_ClearElementsHighLight BR_LoggingGetConsoleFilter BR3D_GetCuttingPlaneParameters BR_GetMemorySizeEstimationMB BR_Create BR3D_GetFacesBoundingBox BR3D_RubberbandSelectElements BR3D_GetGridLevelColor BR3D_SetPaperModeCustom BR3D_SetPaperColor BR3D_GetPaperColor BR3D_GetLengthFromPixelSize BR_Move BR3D_GetMeasurement3DDataSize BR3D_GetElementArea BR3D_GetPointPosition BR3D_GetCutterPointPosition BR3D_IsPointControlPoint BR3D_IsCutterPointControlPoint BR3D_AddTexture BR3D_UpdateTexture BR3D_RemoveTexture BR3D_GetMeasurementLineColor BR3D_AddElement BR3D_GetCurrentCameraState BR3D_GetCameraTargetToGroundPlane BR_SetBenchmarkingStatus BR_SetHighlightXRayMode BR_Init2D BR3D_SetCurrentCameraZoomBlendFactors BR_GetRubberbandExtents BR_Render BR3D_Set2DDrawingFontName BR3D_PushBackMeasurementPoint BR3D_RevertMeasurementPointIdsGenBack BR3D_RevertCutterPointIdsGenBack BR3D_AddElementFace BR3D_SetGroundSurfaceShadowState BR3D_SetGroundSurfaceShadowRecomputeState BR3D_QuickEdgePoint BR_Init3D BR_GetOffscreenRendering BR3D_SetElementsVisibility BR3D_GetSelectedIDs BR3D_LoadMeasurement3DData BR3D_LoadCutter3DData BR3D_GetMeasurementFillColor BR3D_GetCutterFillColor BR3D_GetSSAOHideThreshold BR3D_GetCurrentCameraZoomBlendFactors BR3D_GetNum2DDrawings BR3D_AddElementLinePatternVertices BR3D_GetSelectiveRenderingMode BR3D_GetMeasurementDrawOrder BR3D_SetElementsHighlight BR3D_Set2DDrawingBackground BR3D_GetNumMinimaps BR3D_AddModel BR3D_SetModelVertices BR3D_SetModelVertices2 BR3D_AddElementIndexed BR3D_ExcludeFromSceneBoundingBox BR3D_SetElementOutlinesIndexed BR3D_SetModelLinePatternVertices BR3D_AddElementLinePatternVerticesIndexed BR3D_CloseMeasurement BR3D_CloseCutterMeasurement BR3D_SetCurrentCameraPositionAngles BR3D_Debug_GetElementNameSize BR3D_Debug_GetElementModelId BR3D_SetCurrentCameraZoomSpeed BR3D_GetElementsBoundingBoxDistance BR3D_Remove2DDrawing BR3D_ChangeDynamicElementColor BR3D_GetShadingOption BR3D_GetCursorWorldSpacePosition3D BR3D_GetCursorWorldSpacePositionNoDepth3D BR3D_GetCursorWorldSpacePositionNoDepth3DSync BR3D_ZoomToElements BR3D_RubberbandSelectMeasurementPoints BR3D_RubberbandSelectCutterPoints BR3D_GetSelectedMeasurements3DIDs BR3D_GetSelectedCutters3DIDs BR3D_GetSelectedMeasurements3DPointIDs BR3D_GetSelectedCutters3DPointIDs BR3D_GetSegmentPointIDs BR3D_GetCutterSegmentPointIDs BR3D_GetGlobalClosestPoint BR3D_GetCutterGlobalClosestPoint BR3D_ChangeDynamicElement BR3D_EditTextureElement BR3D_SetGridVisibilityStatus BR3D_SetMeasurementLineColor BR3D_Set2DDrawingFontColor BR_LoggingAddText BR3D_GetElementIDFromFromFullID BR3D_GetFaceIDFromFromElementID BR3D_SetGridLevelAttributes BR3D_SetCameraCubeVisible BR3D_GetActiveMinimapCameraParameters BR3D_MoveMeasurement BR3D_MoveMeasurements BR3D_MoveCutters BR3D_SetActiveMinimapWindowThicknessParameters BR3D_ScaleMeasurement BR3D_MirrorMeasurement BR3D_MirrorCutter BR3D_MirrorMeasurementPivotPoint BR3D_MirrorCutterPivotPoint BR3D_MirrorMeasurements BR3D_MirrorCutters BR3D_MirrorMeasurementsOnPlane BR3D_MirrorCuttersOnPlane BR3D_GetMeasurementsBoundingBox BR3D_GetCuttersBoundingBox BR_SetCompressedImageFormat BR3D_SetElementsHybridState BR3D_SetElementsColor BR3D_GetElementFirstColor BR3D_GetCurrentCameraAngularSpeed BR_Update BR3D_IsCameraCubeClicked BR3D_CameraCubeHover BR3D_SetCameraTransitionByBBox BR3D_GetAmbientOcclusionQuality BR3D_ComputeNormals BR_Rotate BR3D_SetMeasurementDrawOrder BR3D_GetBackfaceCulling BR3D_SetMeasurement3DPreviewColor BR3D_SetCutter3DPreviewColor BR_SetDataPath BR3D_RevertElementsColor BR3D_GetSelectiveOutlineRendering BR3D_CreateMinimap BR3D_GetOutlineShadedThickness BR3D_ClearMeasurement BR3D_ClearCutter BR_GetBackgroundColor BR3D_MoveMeasurementPointWithSnapping BR3D_MoveCutterPointWithSnapping BR3D_MoveMeasurementPointOverPlaneWithSnapping BR3D_MoveCutterPointOverPlaneWithSnapping BR3D_SetMeasurementFillPattern BR3D_SetCutterFillPattern BR3D_GetLastSegmentLength BR3D_GetCutterLastSegmentLength BR3D_GetSegmentLength BR3D_GetCutterSegmentLength BR3D_Get2DDrawingDefaultDrawingTypeInfo BR3D_GetCursorFromWorldSpacePosition3D BR3D_GetCursorFromWorldSpacePosition3DSync BR3D_RotateMeasurementPivotPoint BR3D_RotateCutterPivotPoint BR3D_SetElementOutlines BR3D_SetActiveMinimapOpacity BR3D_SetCurrentCameraPosition BRFont_AddTextToPos BR3D_GetMeasurementVisualizationMode BR3D_GetCutterVisualizationMode BR3D_GetActiveMinimapWindowThicknessParameters BR_GetImageBuffer BR3D_Get2DDrawingZoomOutPercentage BR3D_AntiAliasingGetMode BR3D_GetCurrentCameraProjectionType BR3D_GetCurrentCameraProjectionTypeSync BR3D_SetCurrentCameraState BR3D_SetOrthoCameraStatePart BR3D_Get2DDrawingBackground BR3D_MergeFaceAndElementID BR3D_VisualizeRubberband BR3D_MoveMeasurementSegment BR3D_MoveCutterSegment BR3D_IsActiveMinimapOffscreenRenderingEnabled BR3D_GetElementsHighLightedIDs BR_Destroy BR_GetCompressedImageBuffer BR3D_Set2DDrawingType BR3D_SetShadingOption BR3D_ConvertFromDXToOpenGL BR_GetRubberbandModeColor BR3D_AttachDrawingToMinimap BR3D_SetActiveMinimapOffscreenRendering BR3D_GetBoundingBoxPixelCenter BR_SetBackgroundColor BR3D_SetBackgroundColors BR3D_SetBackgroundImage BR3D_GetBackgroundImage BR3D_SetSunLightingLensFlare BR3D_GetSunLightingLensFlare BR3D_GetSunLightingLensFlareSunOnly BR3D_IsSunVisible BR3D_SetSunLightingProperties BR3D_SetSunShadowingProperties BR3D_GetSunLightingProperties BR3D_MoveMeasurementPoint BR3D_MoveCutterPoint BR_LoggingGetFileFilter BR3D_GetGridExpansionFactor BR3D_ClearSelectedMeasurements3DPointIDs BR3D_ClearSelectedCutters3DPointIDs BR3D_SetMeasurementFillColor BR3D_SetCutterFillColor BR_RotateStart BR3D_SetCameraCubeDimensions BR3D_SetCameraCubeHoverColor BR3D_SetCameraCubeRenderOnlyRotationArrows BR_SetRendererMode BR3D_SetAmbientOcclusionQuality BR3D_RemoveElement BR3D_SetCuttingPlaneParameters BR3D_GetMeasurementPreviewMode BR3D_SetGridLevelColor BR3D_SetMeasurementPointColor BR3D_StartPanning BR3D_ClearSelectedMeasurements3DIDs BR3D_ClearSelectedCutters3DIDs BR_LoggingSetConsoleFilter BR3D_AddDynamicElement BR3D_ChangeDynamicElementBillboardTexture BR3D_ChangeDynamicElementBillboardActive BR3D_SetBillboardPresort BR3D_GetTextureElementParameters BR_LoggingSetFileFilter BR_Debug_GetFPS _BR_Debug_GetFPS BR3D_GetFaceFirstNormal BR3D_GetClosestNormalToPoint BR3D_SetScreenSpaceSymbol BR3D_StopPanning BR3D_GetMeasurementPointsSize BR3D_SetPaperMode BR3D_SetGlobalMeasurementXRayMode BR3D_GetGlobalMeasurementXRayMode BR3D_SetMeasurementXRayMode BR3D_SetCutterXRayMode BR3D_GetMeasurementXRayMode BR3D_AddSensorChannel BR3D_SetSensorChannelData BR3D_RemoveSensorChannel BR3D_SetActiveSensorChannel BR3D_SetActiveSensorChannelMode BR3D_SetSensorChannelMode BR3D_AddSensorGroup BR3D_AddSensorGroupElement BR3D_RemoveSensorGroupElement BR3D_AddSensor BR3D_RemoveSensorGroup BR3D_RemoveSensor BRXR_InitXR BRXRU_PushStandingElements BRXR_CloseXR BRXR_PollState BRXR_Update BRXR_RenderXR BRXR_GetUpdateDataPtr_Webgl2 _BRXR_GetUpdateDataPtr_Webgl2 BRXR_SetFramebufferData_Webgl2 BRXR_SetHandPosition_Webgl2 BRXR_SetAimPosition_Webgl2 BRXR_SetHandControllerState_Webgl2 BRXR_RenderPreviewToScreen BRXR_GetHandPositionOrientation BRXR_AddPanel BRXR_RemovePanel BRXR_HidePanel BRXR_SetPanelViewport BRXR_SetPanelTransformation BRXR_SetPanelFixed BRXR_SetControllerMesh BRXR_SetControllerActive BRXR_SetLaserSide BRXR_SetLaserColor BRXR_SetLaserHookColor BRXR_SetLaserHookActive BRXRU_SetLaserHookActive BRXRU_IsHookOverTarget BRXR_MoveToLaserHook BRXR_SetLaserHookTargets BRXR_ClearLaserHookTargets BRXR_GetLaserSelection BR3D_ScanSnapshotSessionCreate BR3D_ScanSnapshotSessionDestroy BR3D_ScanSnapshotSessionProgress BR3D_ScanSnapshotSessionNextImage BR3D_ScanSnapshotSessionGetTemplateImage BR_GetBuildId BRMD_GetElementModelId BRMD_SelectAllVisibleElements BRMD_SelectAllVisibleHybridOpaqueElements BRMD_SelectElementsByStandardProp BRMD_SelectElementsByBulkStandardProps BRMD_SelectElementsByTextProperty BRMD_SelectElementsByNumberProperty BRU_CalculateAngle BRU_CalculateSolarPosition BR_Validate BR_IsValidated BR_HasFeature BR_HasFeatureSync BR_GetValidationError BGK_CreateEllipseExtrusion BGK_CreateRectangleExtrusion BGK_CreateDiamondExtrusion BGK_CreateTriangleExtrusion BGK_CreateSquareExtrusion BGK_CreateCircleExtrusion BGK_ExtrusionElement BGK_CreateIntanceFromMeasurement BGK_DeleteExtrusion BGK_ChangeDataVerticesApplyMatrix BGK_GroupInstances BGK_DiffInstances BGK_ReleaseInstance BGK_InitKernel BGK_ReleaseKernel BGK_SetLineColor BGK_SetFillColor BGK_AddNamedTexture BGK_SetFillPattern BGK_SetLineDirection BGK_SetExtrusionDistance BGK_SetExtrusionLength BGK_SetSolidLineThickness BGK_SetExtrusionSlope BR3D_SetShapeDistanceCulling BR3D_GetShapeDistanceCulling BR3D_SetShapeResolutionCoefficient BR3D_GetShapeResolutionCoefficient BRLOADER_SetLoadingSettings

    Accessors

    • get companionRenderers(): BaseRenderer[]

      Gets the list of companion renderers.

      Returns BaseRenderer[]

    • get backgroundMode(): boolean

      Returns boolean

    • set backgroundMode(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get assetsBasePath(): string

      Gets the base path for assets.

      Returns string

      The base path for assets.

    • get bimctServerBasePath(): string

      Gets the base path for the BimCT additional functions server.

      Returns string

      The base path for the BimCT server.

    • get hasTouchWidget(): boolean

      Checks if the touch widget is available.

      Returns boolean

      Whether the touch widget is available.

    • get touchWidget(): BimCTTouchCursor

      Gets the touch widget.

      Returns BimCTTouchCursor

      The touch widget.

    • get hasLeftToolbar(): boolean

      Checks if the left toolbar is available.

      Returns boolean

      Whether the left toolbar is available.

    • get hasHomeToolbar(): boolean

      Checks if the home toolbar is available.

      Returns boolean

      Whether the home toolbar is available.

    • get hasToolbar(): boolean

      Checks if the toolbar is available.

      Returns boolean

      Whether the toolbar is available.

    • get hasContextMenu(): boolean

      Checks if the context menu is available.

      Returns boolean

      Whether the context menu is available.

    • get hasSplitElementsUI(): boolean

      Checks if the split elements UI is available.

      Returns boolean

      Whether the split elements UI is available.

    • get hasSettingsWindow(): boolean

      Checks if the settings window is available.

      Returns boolean

      Whether the settings window is available.

    • get hasTimeChangerWindow(): boolean

      Checks if the time changer window is available.

      Returns boolean

      Whether the time changer window is available.

    • get hasComparisonViewer(): boolean

      Checks if the comparison viewer is available.

      Returns boolean

    • get comparisonViewer(): BimCTComparisonViewer

      Gets the comparison viewer.

      Returns BimCTComparisonViewer

    • get hasMinimapViewer(): boolean

      Checks if the comparison viewer is available.

      Returns boolean

    • get hasShareWindow(): boolean

      Checks if the share window is available.

      Returns boolean

      Whether the share window is available.

    • get hasWebXRWindow(): boolean

      Checks if the WebXR window is available.

      Returns boolean

      Whether the WebXR window is available.

    • get webXRWindow(): BimCTWebXRWindow

      Gets the WebXR window.

      Returns BimCTWebXRWindow

      The WebXR window.

    • get hasSnapshotWindow(): boolean

      Checks if the snapshot window is available.

      Returns boolean

      Whether the snapshot window is available.

    • get hasMapExportWindow(): boolean

      Gets if export to map window is available.

      Returns boolean

      Whether the export to map window is available.

    • get mapExportindow(): BimCTExportToMap

      Gets the export to map window.

      Returns BimCTExportToMap

      The export to map window.

    • get hasViewsManager(): boolean

      Checks if the views manager is available.

      Returns boolean

      Whether the views manager is available.

    • get hasMessageWindow(): boolean

      Checks if the message window is available.

      Returns boolean

      Whether the message window is available.

    • get hasPropertiesWindow(): boolean

      Returns boolean

    • get hasFilterElementsWindow(): boolean

      Returns boolean

    • get hasDesignTreeWindow(): boolean

      Returns boolean

    • get animations(): Animations

      Gets the animations.

      Returns Animations

      The animations.

    • get state(): RendererState

      Gets the state of the renderer.

      Returns RendererState

      The state of the renderer.

    • get allowPicking2DElements(): boolean

      Gets whether picking 2D elements is allowed.

      Returns boolean

      Whether picking 2D elements is allowed.

    • set allowPicking2DElements(allowPicking2DElements: boolean): void

      Sets whether picking 2D elements is allowed.

      Parameters

      • allowPicking2DElements: boolean

        Whether to allow picking 2D elements.

      Returns void

    • get divElement(): HTMLDivElement

      Gets the div element.

      Returns HTMLDivElement

      The div element.

    • get sceneState(): SceneState

      Keeps tracking of loaded models and elements. See [[SceneState]].

      Returns SceneState

      The scene state.

    • get terrain(): TerrainManager

      Gets the terrain manager.

      Returns TerrainManager

      The terrain manager.

    • get pins(): Pins

      Gets the pins.

      Returns Pins

      The pins.

    • get legend(): Legend

      Returns Legend

    • get alignment(): BimCTAlignment

      Returns the alignment cofiguration handler of the BimCT scene models.

      Returns BimCTAlignment

    • get pickLines(): PickLineState

      Gets the pick lines state.

      Returns PickLineState

      The pick lines state.

    • get guiActionsLockedEvent(): IEvent<BaseRenderer, boolean>

      Gets the GUI actions locked event.

      Returns IEvent<BaseRenderer, boolean>

      The GUI actions locked event.

    • get timeChangedEvent(): IEvent<BaseRenderer, Date>

      Gets the solar position changed event.

      Returns IEvent<BaseRenderer, Date>

      The the solar position changed event.

    • get visibilityChangeEvent(): ISimpleEvent<BaseRenderer>

      Gets the visibility change event.

      Returns ISimpleEvent<BaseRenderer>

      The visibility change event.

    • get mapPositionChangeEvent(): IEvent<BaseRenderer, WGS84>

      Gets the map position change event.

      Returns IEvent<BaseRenderer, WGS84>

      The map position change event.

    • get mouseRightClickedEvent(): IEvent<BaseRenderer, UIEvent>

      Gets the mouse right clicked event.

      Returns IEvent<BaseRenderer, UIEvent>

      The mouse right clicked event.

    • get contextMenuEvent(): IEvent<BaseRenderer, PointerEvent>

      Gets the context menu event.

      Returns IEvent<BaseRenderer, PointerEvent>

      The context menu event.

    • get modelLoadedEvent(): IEvent<BaseRenderer, Int64[]>

      Gets the model loaded event, called after a sceneView is also loaded

      Returns IEvent<BaseRenderer, Int64[]>

      The model loaded event.

    • get modelAddedEvent(): IEvent<BaseRenderer, Int64[]>

      Gets the model added event, called directly after model is loaded into GPU. (no scenes after that)

      Returns IEvent<BaseRenderer, Int64[]>

      the model added event

    • get modelRemovedEvent(): IEvent<BaseRenderer, Int64[]>

      Gets the model removed event.

      Returns IEvent<BaseRenderer, Int64[]>

      The model removed event.

    • get stateChangedEvent(): ISimpleEvent<BaseRenderer>

      Gets the state changed event.

      Returns ISimpleEvent<BaseRenderer>

      The state changed event.

    • get measurementsDeletedEvent(): IEvent<
          BaseRenderer,
          { id: Int64; userObject: any }[],
      >

      Gets the measurements deleted event.

      Returns IEvent<BaseRenderer, { id: Int64; userObject: any }[]>

      The measurements deleted event.

    • get measurementsPointPushBackEvent(): IEvent<BaseRenderer, Measurement[]>

      Gets the measurements point push back event.

      Returns IEvent<BaseRenderer, Measurement[]>

      The measurements point push back event.

    • get isRotatingOrPanning(): boolean

      Gets whether the renderer is rotating or panning.

      Returns boolean

      Whether the renderer is rotating or panning.

    • 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 hasSelectionLabelEnabled(): boolean

      Checks if the selection label is enabled.

      Returns boolean

      Whether the selection label is enabled.

    • get cuttingElements(): CuttingElementsManager

      Gets the cutting elements manager.

      Returns CuttingElementsManager

      The cutting elements manager.

    • get elements(): ElementInfo[]

      Gets the elements.

      Returns ElementInfo[]

      The elements.

    • get selectedElements(): ElementInfo[]

      Gets the selected elements.

      Returns ElementInfo[]

      The selected elements.

    • get selectedElementIds(): Int64[]

      Gets the selected element IDs.

      Returns Int64[]

      The selected element IDs.

    • get selectedElementInternalIds(): Int64[]

      Gets the selected element internal IDs.

      Returns Int64[]

      The selected element internal IDs.

    • get shadingMode(): SHADING_MODE

      Gets the shading mode.

      Returns SHADING_MODE

      The shading mode.

    • set shadingMode(mode: SHADING_MODE): void

      Sets the shading mode of the renderer.

      Parameters

      Returns void

    • get snappingEnabled(): boolean

      Gets whether snapping is enabled.

      Returns boolean

      Whether snapping is enabled.

    • get settingsChangedEvent(): SimpleEventDispatcher<BaseRenderer>

      Gets the settings changed event.

      Returns SimpleEventDispatcher<BaseRenderer>

      The settings changed event.

    • get cameraChangedEvent(): EventDispatcher<BaseRenderer, CameraEvent>

      Gets the camera change event.

      Returns EventDispatcher<BaseRenderer, CameraEvent>

      The camera state change event.

    • get resizedEvent(): EventDispatcher<
          BaseRenderer,
          { width: number; height: number },
      >

      Gets the resized event.

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

      The resized event.

    • get languageChangedEvent(): EventDispatcher<BaseRenderer, Language>

      Gets the language changed event.

      Returns EventDispatcher<BaseRenderer, Language>

      The language changed event.

    • get modalWindowShowEvent(): EventDispatcher<BaseRenderer, ModalWindowShownEvent>

      Gets the resized event.

      Returns EventDispatcher<BaseRenderer, ModalWindowShownEvent>

      The resized event.

    Methods

    • Registers a companion renderer.

      Parameters

      Returns void

    • Unregisters a companion renderer.

      Parameters

      Returns void

    • Unregisters all companion renderers.

      Returns void

    • Changes the language of the renderer.

      Parameters

      • lang: Language

        The language to change to.

      Returns void

    • Get the currently used Language

      Returns Language

      the current Language

    • Returns the supported Languages

      Returns Language[]

      the supported Languages

    • Converts screen coordinates to world position.

      Parameters

      • x: number

        The x-coordinate on the screen.

      • y: number

        The y-coordinate on the screen.

      Returns Promise<Vector3D>

      A promise that resolves to the world position.

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

      Parameters

      • x: number

        The x-coordinate on the screen.

      • y: number

        The y-coordinate on the screen.

      Returns Promise<Vector3D>

      A promise that resolves to the world position.

    • Converts world coordinates to screen space position.

      Parameters

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

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

    • Converts 3D world position to real earth coordinates, using the current scene wgs84 center coordinate as a reference. If you have another reference other than the scene center, you can use [[cartesianToWGS84]] directly.

      Parameters

      • point: Vector3D

        The world coordinates.

      • OptionalsceneBoundingBox: BoundingBox3D

        Optional bounding box of the scene to use as reference. If not provided, the scene bounding box will be used.

      • Optionalalignment: WGS84Alignment

      Returns Promise<WGS84>

      A promise that resolves to the earth coordinates.

    • Converts earth coordinates to 3D world space position, using the current scene wgs84 center coordinate as a reference. If you have another reference other than the scene center, you can use [[wgs84ToCartesian]] directly.

      Parameters

      • coord: WGS84

        The earth coordinates.

      • OptionalsceneBoundingBox: BoundingBox3D

        Optional bounding box of the scene to use as reference. If not provided, the scene bounding box will be used.

      • Optionalalignment: WGS84Alignment

        Optional alignment information for the scene. If not provided, the scene alignment will be used better to provide it if you have it already calculated for performance reasons.

      Returns Promise<Vector3D>

      A promise that resolves to the world space position.

    • Locks or unlocks GUI actions.

      Parameters

      • locked: boolean

        Whether to lock or unlock GUI actions.

      • escapeCallback: () => void = undefined

      Returns void

    • Checks if GUI actions are locked.

      Returns boolean

      Whether GUI actions are locked.

    • Checks if a key is pressed.

      Parameters

      • code: string

        The key code to check.

      Returns boolean

      Whether the key is pressed.

    • Checks if roll over is enabled.

      Returns boolean

      Whether roll over is enabled.

    • Reverts the previous roll over.

      Parameters

      • reset: boolean = false

        Whether to reset the roll over.

      Returns Promise<void>

    • Performs roll over at the specified coordinates.

      Parameters

      • x: number

        The x-coordinate.

      • y: number

        The y-coordinate.

      Returns Promise<void>

    • Marks that a mouse action event has been made.

      Returns void

    • Marks the rendering pipeline for a redraw. Call this if ECO RENDERING IS ON and not on Game Mode to update the render loop before your actions

      Parameters

      • reloadState: boolean = false

        Whether to reload the state.

      Returns void

    • Gets the skymap IDs.

      Returns Map<string, string>

      A map of skymap IDs.

    • Removes the skymap.

      Returns Promise<void>

    • Loads a skymap by its ID.

      Parameters

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

        The ID of the skymap.

      • showLoading: boolean = true

        Whether to show the loading screen.

      Returns Promise<boolean>

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

    • Loads a skymap from URLs.

      Parameters

      • skymapURL: string

        The URL of the skymap.

      • cloudsURL: string

        The URL of the clouds.

      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 ground shadow enabled or disabled.

      Parameters

      • enabled: boolean

        Whether to enable or disable ground shadow.

      Returns Promise<void>

    • Sets the scene date and time.

      Parameters

      • dateAndTime: Date

        The date and time to set.

      • OptionalshowDateTimePopup: boolean

        Whether to show the date and time popup.

      Returns Promise<void>

    • Refreshes the solar position.

      Parameters

      • showDateTime: boolean = ...

        Whether to show the date and time.

      • forceDispatchTimeChangedEvent: boolean = false

      Returns Promise<void>

    • Refreshes the position of the clouds.

      Returns Promise<void>

    • Sets sun light enabled or disabled.

      Parameters

      • enabled: boolean

        Whether to enable or disable sun light.

      Returns Promise<void>

    • Sets sun flare enabled or disabled.

      Parameters

      • enabled: boolean

        Whether to enable or disable sun flare.

      Returns Promise<void>

    • Sets shadow maps enabled or disabled.

      Parameters

      • enabled: boolean

        Whether to enable or disable shadow maps.

      • Optionalquality: BIM_SHADOWS_QUALITY

        The quality of the shadow maps.

      Returns Promise<void>

    • Sets the pixel size of point clouds.

      Parameters

      • size: number

        The pixel size.

      Returns Promise<void>

    • Sets the grid enabled or disabled.

      Parameters

      • enabled: boolean

        Whether to enable or disable the grid.

      Returns Promise<void>

    • Sets the measurement system.

      Parameters

      Returns Promise<void>

    • Checks if the VR session is started.

      Returns boolean

      Whether the VR session is started.

    • Dispatches the context menu event.

      Parameters

      • evt: PointerEvent

        The pointer event.

      Returns number

    • Dispatches the state changed event.

      Returns void

    • Clears the selection.

      Returns Promise<void>

    • Checks if the properties window is showing.

      Returns boolean

      Whether the properties window is showing.

    • Hides the properties window.

      Returns void

    • Checks if the design tree window is showing.

      Returns boolean

      Whether the design tree window is showing.

    • Hides the design tree window.

      Returns void

    • Checks if the views window is showing.

      Returns boolean

      Whether the views window is showing.

    • Shows the views window.

      Returns void

    • Hides the views window.

      Returns void

    • Checks if the filter elements window is showing.

      Returns boolean

      Whether the filter elements window is showing.

    • Hides the filter elements window.

      Returns void

    • Checks if the settings window is showing.

      Returns boolean

      Whether the settings window is showing.

    • Checks if the share window is showing.

      Returns boolean

      Whether the share window is showing.

    • Checks if the WebXR window is showing.

      Returns boolean

      Whether the WebXR window is showing.

    • Checks if the snapshot window is showing.

      Returns boolean

      Whether the snapshot window is showing.

    • Checks if the map export window is showing.

      Returns boolean

      Whether the map export window is showing.

    • Checks if any views windows are showing.

      Returns boolean

      Whether any views windows are showing.

    • Checks if the message window is showing.

      Returns boolean

      Whether the message window is showing.

    • Hides the settings window.

      Returns void

    • Hides the share window.

      Returns void

    • Hides the WebXR window.

      Returns void

    • Hides the snapshot window.

      Returns void

    • Hides the map export window.

      Returns void

    • Hides all views windows.

      Returns void

    • Hides the message window.

      Returns void

    • Shows a 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>

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

    • Shows an input text message box.

      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>

      A promise that resolves to the input text.

    • Shows an input number message box.

      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>

      A promise that resolves to the input number.

    • Shows an input number message box.

      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>

      A promise that resolves to the input number in millimeters

    • Hides all windows.

      Returns void

    • Checks if the context menu is showing.

      Returns boolean

      Whether the context menu is showing.

    • Hides the menus.

      Returns boolean

      Whether the context menu was hidden.

    • Hides the context menu.

      Returns boolean

      Whether the context menu was hidden.

    • When set to true, the pick mode and setSelectionType change will clear measurements. By default, this is true.

      Parameters

      • on: boolean

      Returns void

    • Returns boolean

      Whether the pick mode change clears measurements.

    • Sets the pick mode.

      Parameters

      • pickMode: RENDERER_PICK_MODE

        The pick mode to set.

      • dispatchStateChanged: boolean = true

        Whether to dispatch the state changed event.

      Returns Promise<void>

    • Checks if picking elements is enabled.

      Returns boolean

      Whether picking elements is enabled.

    • Checks if picking faces is enabled.

      Returns boolean

      Whether picking faces is enabled.

    • Checks if picking faces or elements is enabled.

      Returns boolean

      Whether picking faces or elements is enabled.

    • Checks if picking measurements is enabled.

      Returns boolean

      Whether picking measurements is enabled.

    • Checks if picking lines is enabled.

      Returns boolean

      Whether picking lines is enabled.

    • Checks if picking isometric is enabled.

      Returns boolean

      Whether picking isometric is enabled.

    • Recomputes the snapping points.

      Returns Promise<boolean>

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

    • Recomputes the camera movement settings.

      Returns Promise<void>

    • Starts occlusion culling.

      Returns Promise<void>

    • Stops occlusion culling.

      Returns Promise<void>

    • Gets the bounding box of the scene.

      Returns Promise<BoundingBox3D>

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

    • Gets the geolocated center of the scene at ground level.

      Parameters

      • OptionalsceneBoundingBox: BoundingBox3D

        the scene bounding box to use, if not provided it will be fetched

      • useAltitude: boolean = false

      Returns Promise<WGS84>

      A promise that resolves to the WGS84 coordinates of the center point at ground level.

    • Gets the bounding box of the scene.

      Parameters

      • useAltitude: boolean = false

        whether to use altitude from minimap viewer

      • OptionalsceneBoundingBox: BoundingBox3D

        the scene bounding box to use, if not provided it will be fetched

      Returns Promise<WGS84BoundingBox>

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

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

      Returns Promise<BoundingBox3D>

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

    • Gets the bounding box of visible elements.

      Returns Promise<BoundingBox3D>

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

    • Gets the bounding box of a model.

      Parameters

      • modelID: Int64

        The ID of the model.

      • forceRecalculation: boolean = false

        Whether to force recalculation of the bounding box.

      Returns Promise<BoundingBox3D>

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

    • Calculates the geolocated bounding box in WGS84 coordinates from the Ground Level center.

      Parameters

      • bBox: BoundingBox3D

        The 3D bounding box to be converted.

      • OptionalsceneBoundingBox: BoundingBox3D

        Optional scene bounding box to use for center calculation if not provided it will be fetched.

      • OptionaluseAltitude: boolean

      Returns Promise<WGS84BoundingBox>

      A new WGS84BoundingBox object representing the geolocated bounding box.

    • 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.

      • solid: boolean = false

      Returns Promise<void>

    • Checks if the bounding box is visible.

      Returns boolean

      Whether the bounding box is visible.

    • Redraws the bounding box if it is visible.

      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>

    • Gets the bounding box of elements.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the elements.

      Returns Promise<BoundingBox3D>

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

    • Returns boolean

    • Gets the bounding box of faces.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the faces.

      Returns Promise<BoundingBox3D>

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

    • Sets the 2D bounding box.

      Parameters

      Returns void

    • Rotates the 2D camera to the specified position.

      Parameters

      Returns Promise<boolean>

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

    • 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
      • force: boolean = false

      Returns Promise<void>

    • Checks if the element is a 3D element.

      Parameters

      • rendererId: Int64

        The renderer ID of the element.

      Returns Promise<boolean>

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

    • Picks element IDs within the specified rectangle.

      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[]>

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

    • Parameters

      • x: number
      • y: number
      • w: number
      • h: number

      Returns Promise<Measurement[]>

    • Picks element IDs within the specified rubberband rectangle.

      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[]>

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

    • Picks measurement IDs within the specified rubberband rectangle.

      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[]>

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

    • Picks face IDs within the specified rubberband rectangle.

      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[]>

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

    • Picks the normal vector at the specified coordinates.

      Parameters

      • x: number

        The x-coordinate.

      • y: number

        The y-coordinate.

      Returns Promise<Vector3D>

      A promise that resolves to the normal vector.

    • Picks the face ID at the specified coordinates.

      Parameters

      • x: number

        The x-coordinate.

      • y: number

        The y-coordinate.

      • prefer2DPaperFace: boolean

        Whether to prefer 2D paper face.

      Returns Promise<Int64>

      A promise that resolves to the picked face ID.

    • Gets the elements selection mode.

      Returns Promise<BIM_ELEMENT_SELECTION_MODE>

      A promise that resolves to the elements selection mode.

    • Picks face IDs within the specified rectangle.

      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[]>

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

    • Gets the paper ID of an element ID.

      Parameters

      • rendererId: Int64

        The renderer ID of the element.

      Returns Promise<Int64>

      A promise that resolves to the paper ID.

    • Sets whether the selection label is enabled.

      Parameters

      • val: boolean

        Whether to enable the selection label.

      Returns void

    • Updates the selection label.

      Returns Promise<void>

    • Updates the selection from the highlight.

      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>

    • 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 element IDs.

      Parameters

      • ids: (number | Int64)[]

        The element IDs to update the selection with.

      Returns Promise<void>

    • Updates the selection by global IDs.

      Parameters

      • ids: string[]

        The global IDs to update the selection with.

      Returns Promise<void>

    • Shows all elements.

      Parameters

      • show3D: boolean = true

        Whether to show 3D elements.

      • show2D: boolean = true

        Whether to show 2D elements.

      Returns Promise<void>

    • Gets the highlighted internal IDs. May include Split Internal IDs that are not directly mappable to elements.

      Returns Promise<Int64[]>

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

    • Resets the hybrid mode.

      Parameters

      • clearHighlights: boolean = true

        Whether to clear the highlights.

      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>

    • 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.

      • dehighlightAfter: boolean = true

        Whether to dehighlight after colorizing.

      Returns Promise<void>

    • Decolorizes elements by internal IDs.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the elements.

      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>

    • Decolorizes the selected elements.

      Parameters

      • ensureIsShown: boolean = true

        Whether to ensure the decolorized elements are shown (sets shading mode to solid colors if needed).

      Returns Promise<void>

    • Decolorizes all elements.

      Parameters

      • ensureIsShown: boolean = true

        Whether to ensure the decolorized elements are shown (sets shading mode to solid colors if needed).

      Returns Promise<void>

    • Gets the visible internal IDs.

      Parameters

      • staticElements: boolean

        Whether to include static elements.

      • dynamicElements: boolean

        Whether to include dynamic elements.

      Returns Promise<Int64[]>

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

    • Selects and highlights all elements on the scene.

      Returns Promise<void>

    • 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 using an ElementInfo structure.

      Parameters

      • elements: ElementInfo[]

        The elements to select and highlight.

      Returns void

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

      Parameters

      • staticElements: boolean = true

        Whether to include static elements.

      • dynamicElements: boolean = true

        Whether to include dynamic elements.

      • hybridOpaque: boolean = false

        Whether to return only hybrid opaque elements.

      Returns Promise<boolean>

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

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

      Parameters

      • modelName: string

        The name of the model.

      Returns Promise<boolean>

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

    • 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.

      Parameters

      • className: string

        The class name.

      Returns Promise<boolean>

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

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

      Parameters

      • layerName: string

        The layer name.

      Returns Promise<boolean>

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

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

      Parameters

      • materialName: string

        The material name.

      Returns Promise<boolean>

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

    • 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.

      Parameters

      • typeName: string

        The type name.

      Returns Promise<boolean>

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

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

      Parameters

      • storeyName: string

        The storey name.

      Returns Promise<boolean>

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

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

      Parameters

      • membershipNameOrGlobalId: string

        The membership name or global ID.

      Returns Promise<boolean>

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

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

      Parameters

      Returns Promise<boolean>

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

    • Selects and highlights the elements sharing the same property.

      Parameters

      • property: ElementProperty

        The property to filter by.

      • group: string = null

        The group of the property.

      Returns Promise<boolean>

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

    • Hides the selected elements.

      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 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>

    • Shows elements by global ID.

      Parameters

      • ids: string[]

        The global IDs of the elements to show.

      Returns Promise<void>

    • Shows elements by element ID.

      Parameters

      • ids: (number | Int64)[]

        The element IDs of the elements to show.

      Returns Promise<void>

    • Isolates the selected elements.

      Returns Promise<void>

    • Isolates the specified elements by their internal IDs.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the elements to isolate.

      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.

      • dispatchEvent: boolean = true
      • recomputeSnapping: boolean = true

      Returns Promise<void>

    • Checks if an element is visible.

      Parameters

      • internalId: Int64

        The internal ID of the element.

      Returns Promise<boolean>

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

    • Sets the key for the renderer.

      Parameters

      • key: string

        The key to set.

      Returns Promise<void>

    • Zooms to elements by global IDs.

      Parameters

      • ids: string[]

        The global IDs of the elements.

      Returns Promise<void>

    • Zooms to elements by element IDs.

      Parameters

      • ids: (number | Int64)[]

        The element IDs of the elements.

      Returns Promise<void>

    • Zooms to the selected elements.

      Returns Promise<boolean>

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

    • Zooms to the selection.

      Returns Promise<boolean>

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

    • Looks at the specified bounding box.

      Parameters

      • bBox: BoundingBox3D

        The bounding box to look at.

      • animate: boolean

        Whether to animate the transition.

      Returns Promise<boolean>

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

    • Resets the camera to the home position.

      Returns Promise<void>

    • Checks if the game mode is on.

      Returns boolean

      Whether the game mode is on.

    • 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 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>

    • Gets the selection type.

      Returns BIM_SELECTION_TYPE

      The selection type.

    • 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>

    • Starts length measurement.

      Parameters

      • negative: boolean

        Whether the measurement is negative.

      Returns Promise<void>

    • Starts isometric measurement.

      Parameters

      • negative: boolean

        Whether the measurement is negative.

      Returns Promise<void>

    • Starts area measurement.

      Parameters

      • negative: boolean

        Whether the measurement is negative.

      Returns Promise<void>

    • Starts count measurement.

      Parameters

      • OptionalautoCount: boolean

      Returns Promise<void>

    • Starts auto count measurement.

      Returns Promise<void>

    • Get the Measurement Options that are used while creating measurements.

      Returns MeasurementsOptions

      measurementOptions

    • Clears the Measurement Options that are used while creating measurements. The default options will be used

      Returns void

    • Adds a new measurement.

      Returns Promise<Measurement>

      A promise that resolves to the new measurement.

    • Clears the measurements.

      Returns Promise<void>

    • Clears the pins.

      Returns Promise<void>

    • Focuses the renderer.

      Returns void

    • Refreshes the cutting plane label.

      Parameters

      • planeIndex: number

        The index of the cutting plane.

      Returns void

    • Clears the cutting planes.

      Returns Promise<void>

    • Activates an arbitrary cutting plane.

      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>

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

    • Activates a cutting plane on a face ID.

      Parameters

      • faceId: Int64

        The face ID.

      • Optionalpoint3D: Vector3D

        The point of the cutting plane.

      Returns Promise<boolean>

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

    • Activates a cutting plane.

      Parameters

      • index: number

        The index of the cutting plane.

      Returns Promise<void>

    • Deactivates a cutting plane.

      Parameters

      • index: number

        The index of the cutting plane.

      Returns Promise<void>

    • Checks if a cutting plane is enabled.

      Returns boolean

      Whether a cutting plane is enabled.

    • Checks if a cutting plane is active.

      Parameters

      • index: number

        The index of the cutting plane.

      Returns boolean

      Whether the cutting plane is active.

    • Gets the image data.

      Parameters

      • upsideDown: boolean = true

        Whether to flip the image upside down.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise that resolves to the image data.

    • Gets the gzipped image data.

      Returns Promise<Uint8Array<ArrayBufferLike>>

      A promise that resolves to the gzipped image data.

    • Initializes the renderer.

      Parameters

      • OptionalinitializationFunction: (renderer: BaseRenderer) => void

        The initialization function.

      Returns Promise<void>

    • Checks if the renderer is initialized.

      Returns boolean

      Whether the renderer is initialized.

    • Destroys the renderer.

      Returns Promise<void>

    • 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>

    • Refreshes the camera cube.

      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>

    • Checks if the camera cube is visible.

      Returns boolean

      Whether the camera cube is visible.

    • Sets the camera compass visible or not.

      Parameters

      • visible: boolean

        Whether to set the camera compass visible or not.

      Returns Promise<void>

    • Checks if the camera compass is visible.

      Returns boolean

      Whether the camera compass is visible.

    • Zooms to elements by internal IDs.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the elements.

      • animate: boolean = true

        Whether to animate the transition.

      Returns Promise<boolean>

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

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

      Returns Promise<void>

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

    • Checks if elements are showing.

      Parameters

      • internalIds: Int64[]

        The internal IDs of the elements.

      Returns Promise<boolean>

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

    • Takes a snapshot image and maintains aspect ratio.

      Parameters

      • Optionalwidth: number

        The requested width.

      • Optionalheight: number

        The requested height.

      Returns Promise<string>

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

    • Takes a snapshot image and gets the URL to access it

      Parameters

      • Optionalwidth: number

        The requested width.

      • Optionalheight: number

        The requested height.

      Returns Promise<string>

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

    • Retrieves the current state of dynamic elements.

      Returns Promise<DynamicElementsState>

      A promise that resolves to a DynamicElementsState object.

    • Sets the state of dynamic elements.

      Parameters

      Returns Promise<void>

    • Gets the state of clipping regions.

      Returns Promise<RegionsClippingState>

      A promise that resolves to a ClippingRegionsState object.

    • Sets the state of clipping regions.

      Parameters

      Returns Promise<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 Promise<CameraState>

      A promise that resolves to a CameraState object.

    • 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 (will not animate if minimap is showing)

      • dispatchStateChanged: boolean = true

        Whether to dispatch the state changed event default is true

      Returns Promise<void>

    • Checks if Virtual Reality is supported.

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating if VR is supported.

    • Gets the visibility state.

      Returns Promise<VisibilityState>

      A promise that resolves to a VisibilityState object.

    • Sets the visibility state.

      Parameters

      • state: VisibilityState

        The state to set.

      • recomputeSnapping: boolean = true

        Whether to recompute snapping points.

      Returns Promise<void>

    • Gets the colorization state.

      Parameters

      • OptionalfilterIds: Set<bigint>

      Returns Promise<ColorizationState>

      A promise that resolves to a ColorizationState object.

    • Gets the markup state.

      Returns Promise<MarkupState>

      A promise that resolves to a MarkupState object.

    • Sets the markup state.

      Parameters

      • state: MarkupState

        The state to set.

      • editMode: boolean = false

        Whether to enable edit mode.

      Returns Promise<void>

    • Gets the sensors state.

      Returns Promise<SensorsState>

      A promise that resolves to a SensorsState object.

    • Sets the sensors state.

      Parameters

      • state: SensorsState

        The state to set.

      Returns Promise<void>

    • Gets the pin state.

      Returns Promise<PinState>

      A promise that resolves to a PinState object.

    • Sets the pin state.

      Parameters

      Returns Promise<void>

    • Gets the hybrid state.

      Returns Promise<HybridState>

      A promise that resolves to a HybridState object.

    • Sets the hybrid state.

      Parameters

      Returns Promise<void>

    • Sets the colorization state.

      Parameters

      Returns Promise<void>

    • Gets the viewer settings state.

      Parameters

      • includeGeoPositionAndTime: boolean = true

        Whether to include geo position and time.

      Returns Promise<ViewerSettingsState>

      A promise that resolves to a ViewerSettingsState object.

    • Sets the viewer settings state.

      Parameters

      Returns Promise<void>

    • Gets the highlighted state.

      Returns Promise<HighlightedState>

      A promise that resolves to a HighlightedState object.

    • Sets the highlighted state.

      Parameters

      Returns Promise<void>

    • Gets the measurements state.

      Returns Promise<MeasurementState>

      A promise that resolves to a MeasurementState object.

    • Sets the measurements state.

      Parameters

      Returns Promise<void>

    • Gets the cutting planes state.

      Returns Promise<CuttingPlanesState>

      A promise that resolves to a CuttingPlanesState object.

    • Gets the splitted elements state.

      Returns Promise<SplittedElementsState>

    • Sets the splitted elements state.

      Parameters

      • state: SplittedElementsState

        The state to set.

      Returns Promise<void>

    • Sets the cutting planes state.

      Parameters

      Returns Promise<void>

    • Gets the scene view.

      Parameters

      • includeSettingsState: boolean = true

        Whether to include the settings state.

      • OptionalincludePinsState: boolean

        Whether to include the pins state.

      • OptionalincudeSensorsState: boolean

        Whether to include the sensors state.

      • OptionalincludeDynamicElementsState: boolean

        Whether to include the dynamic elements state.

      Returns Promise<SceneView>

      A promise that resolves to a SceneView object.

    • Sets the scene view.

      Parameters

      • view: SceneView

        The scene view to set.

      • transition: boolean

        Whether to transition to the view (will not transition if minimap is showing).

      • markupEditing: boolean = false

        Whether to enable markup editing.

      • showLoadingSplashscreen: boolean = true

        Whether to show the loading splashscreen.

      Returns Promise<void>

    • Checks if the renderer is a mobile renderer.

      Returns boolean

      Whether the renderer is a mobile renderer.

    • Parameters

      Returns Promise<void>

    • Returns Promise<void>

    • 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_GetRendererMode Retrieves the active renderer (2D or 3D)

      Parameters:

      • type, the renderer type

      Returns true if operation was successful.

      Returns Promise<BR_GetRendererModeResult>

    • BR3D_ClearSelectedIDs Forces a clear of the current selection

      Returns true if operation was successful.

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR3D_GetElementsIDsResult>

    • Parameters

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

      Returns Promise<BR_FunctionOutput>

    • 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_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_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_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_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_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>

    • BR3D_SetTransformGizmoVisibilityState Sets the visibility state of the 3D Transform Gizmo

      Parameters:

      • state, visibility state flags

      Parameters

      Returns Promise<void>

    • BR3D_GetTransformGizmoVisibilityState Returns the visibility state of the 3D Transform Gizmo

      Returns the visibility state of the gizmo

      Returns Promise<GIZMO_VISIBILITY_STATE>

    • 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_GetTransformGizmoHoverColor Gets the hover color of the 3D Transform Gizmo

      Parameters:

      • r,g,b, hover color

      Returns Promise<RGB>

    • 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_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_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_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_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_SetTransformGizmoScreenSize Sets the screen size of the 3D Transform Gizmo

      Parameters:

      • size, size in pixels

      Parameters

      • size: number

      Returns Promise<void>

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

      Returns the screen size of the gizmo

      Returns Promise<number>

    • 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_StartCameraCompassDrag Call after a mouse lick (down) callback to signal start of "grabbing" of the compass widget

      Parameters:

      Returns Promise<void>

    • 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>

    • Parameters

      • visible: boolean

      Returns Promise<void>

    • Returns Promise<void>

    • Parameters

      • radians: number

      Returns Promise<boolean>

    • Parameters

      • x: number
      • y: number

      Returns Promise<boolean>

    • 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_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_SetElementsSelectionMode Set the elements selection mode

      Parameters:

      Returns true if operation was successful.

      Parameters

      • mode: BIM_ELEMENT_SELECTION_MODE

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetIgnoreTransparentElementsOnHybridMode Ignore transparent elements during selection for Hybrid mode

      Parameters:

      • enabled, enable the mode

      Returns true if operation was successful.

      Parameters

      • enabled: boolean

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetGlobalColorizedTransparencyValue Set the global colorized 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_GetGlobalColorizedTransparencyValue Retrieves the global colorized transparency value for the transparent visualization option

      Returns an object with alpha value in [0 1] range and output status.

      Returns Promise<{ alpha: number; output: number }>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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>

    • 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_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>

    • 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_GetCuttingPlaneVisualizationParameters Set the outline elements color when BR3D_GetOutlineElementColorVisualization is false

      Parameters:

      • color(r,g,b), the fill color of the cutting region Returns true if the operation was performed

      Parameters

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

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetCuttingPlaneVisualizationParameters Get the outline elements color when BR3D_GetOutlineElementColorVisualization is false Parameters:

      • color(r,g,b), the fill color of the cutting region Returns true if the operation was performed

      Returns Promise<BR3D_GetOutlineElementsColorResult>

    • Returns BR3D_GetOutlineElementsColorResult

    • 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>

    • Parameters

      • measurement_id: Int64
      • enabled: boolean

      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_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_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>

    • Parameters

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

      Returns Promise<BR3D_GetClosestPointResult>

    • 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_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>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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_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>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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_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>

    • Parameters

      Returns Promise<BR3D_GetAreaResult>

    • 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_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>

    • 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>

    • 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_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>

    • 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>

    • Parameters

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

      Returns Promise<BR3D_SelectMeasurementResult>

    • 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>

    • 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_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_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>

    • Parameters

      Returns Promise<BR3D_GetTotalLengthResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • point_id: number

      Returns Promise<BR_FunctionOutput>

    • 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_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>

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

      Returns true if operation was successful.

      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>

    • 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>

    • 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>

    • Returns Promise<BR3D_GetVisibleElementsBoundingBoxResult>

    • 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_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_DestroyMinimap Destroys a minimap.

      Parameters:

      • minimap_id, the id of the minimap

      Returns true if operation was successful.

      Parameters

      Returns Promise<BR_FunctionOutput>

    • 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_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>

    • Parameters

      Returns Promise<BR3D_IsMeasurementClosedResult>

    • 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_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_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_SetLinePatternThickness Set the thickness of line patterns

      Parameters:

      • thickness, the thickness of line patterns in pixels

      Parameters

      • thickness: number

      Returns Promise<void>

    • 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>

    • Parameters

      Returns Promise<BR3D_GetMeasurementSegmentIDsResult>

    • 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_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_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>

    • Parameters

      • p1_x: number
      • p1_y: number
      • p2_x: number
      • p2_y: 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>

    • 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>

    • 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>

    • 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>

    • 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>

    • 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>

    • 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>

    • Parameters

      • measurement_id: Int64
      • line_width: 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>

    • Parameters

      • measurement_id: Int64
      • point_size: number

      Returns Promise<BR_FunctionOutput>

    • 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_GetOutlineThickness Get the thickness of the outlines (outline mode)

      Returns the thickness value in pixels

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetLinePatternThickness Get the thickness of line patterns

      Returns the thickness value in pixels

      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>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • 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_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_SetBackfaceCulling Set the state of backface culling

      Parameters:

      • enabled, the state of backface culling

      Parameters

      • enabled: boolean

      Returns Promise<void>

    • 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_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>

    • 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>

    • 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>

    • 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_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>

    • Parameters: texture_element_id, the Texture Element id

      Returns true if operation was successful.

      Parameters

      • texture_element_id: Int64

      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>

    • 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_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>

    • Returns Promise<void>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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_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_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_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_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_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_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_GetLineFadeOut Get the state of outline and line pattern fade out

      Returns the state of fade out.

      Returns Promise<BR_FunctionOutput>

    • 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_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_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>

    • Returns BR3D_GetOutlineElementColorVisualizationResult

    • 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_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>

    • Parameters

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

      Returns Promise<BR3D_InsertMeasurementPointResult>

    • 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_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>

    • 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_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_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_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_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_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_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_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_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_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_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>

    • 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>

    • 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>

    • 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_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_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_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>

    • 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_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_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_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_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_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_IsElementVisible Set the visibility of a list of elements

      Parameters

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns boolean

    • BR_LoggingGetStatus Retrieves whether the logger is enabled/disabled

      Parameters:

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

      Returns Promise<BR_LoggingGetStatusResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • mode: BIM_MEASUREMENT2D_VISUALIZATION_MODE

      Returns Promise<BR_FunctionOutput>

    • 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_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>

    • 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>

    • 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_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>

    • 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>

    • 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>

    • 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>

    • 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_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_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>

    • Parameters

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

      Returns Promise<BR3D_GetClosestSegmentResult>

    • 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>

    • 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_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>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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_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_GetMeasurement3DPreviewColor Get the preview color of the measurements

      Parameters:

      • r,g,b,a - preview color

      Returns Promise<BR3D_GetMeasurement3DPreviewColorResult>

    • Returns Promise<BR3D_GetMeasurement3DPreviewColorResult>

    • 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>

    • Parameters

      Returns Promise<BR3D_GetMeasurement3DDataResult>

    • 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_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>

    • Parameters

      • modelId: Int64
      • force: boolean

      Returns Promise<BR3D_GetElementsBoundingBoxResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • point_id: number

      Returns Promise<BR3D_GetPointAdjacentPointIDsResult>

    • 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>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • 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

      Returns Promise<BR3D_GetMeasurementLineWidthResult>

    • 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_GetMeasurementPointSizeResult>

    • 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_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_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_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>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • BR3D_CreateCutter Only one cutter can be created at each time

      Parameters:

      • cutter_id, the id of the cutter

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • is_plane: boolean

      Returns Promise<BR_FunctionOutput>

    • BR3D_IsPlaneCutter Check if the cutter is a plane cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns true if operation was successful.

      Parameters

      Returns Promise<BR_FunctionOutput>

    • BR3D_CloseCutter Close the cutter and create a new model with 'model_id' and name 'name'. The new model will contain the difference and intersection of the selected elements.

      Parameters:

      • cutter_id, the id of the cutter
      • model_id, id of the new model
      • name, name of the new model

      Returns true if operation was successful.

      Parameters

      Returns Promise<BR_FunctionOutput>

    • BR3D_RemoveCutter Clear the memory and resources of the previously created cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns true if operation was successful.

      Parameters

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetCutterElements Set the elements IDs that are associated with this cutter. For plane cutters, these IDs are also used to create the shape of the plane. Cutting is performed element-wise.

      Parameters:

      • cutter_id, the id of the cutter
      • element_ids, ids to be associated with the cutter
      • element_count, number of elements

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • element_ids: Int64[]
      • element_count: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetCutterNormal Set the normal of the plane or polygon of the cutter.

      Parameters:

      • cutter_id, the id of the cutter
      • x, direction x
      • y, direction y
      • z, direction z

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • x: number
      • y: number
      • z: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetCutterPosition Set the position of the cutter. Only makes sense for plane cutters.

      Parameters:

      • cutter_id, the id of the cutter
      • x, position x
      • y, position y
      • z, position z

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • x: number
      • y: number
      • z: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetElementParentInfo Get parent element and model id after using cutters. For non-cutter elements, only the model id is returned and -1 for element_parent_id.

      Parameters:

      • element_id, elemet_id to get the information
      • element_parent_id, parent_id that was the origin for element_id
      • model_id, model_id

      Returns true if operation was successful.

      Parameters

      Returns Promise<BR3D_GetElementParentInfoResult>

    • Parameters

      Returns BR3D_GetElementParentInfoResult

    • Parameters

      Returns Promise<boolean>

    • Parameters

      Returns boolean

    • Parameters

      Returns Promise<boolean>

    • BR3D_PushBackCutterPoint Append a point on the cutter and create a line.

      Parameters:

      • cutter_id, the id of the cutter
      • position(x,y,z), the position of the point
      • 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)

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • position_x: number
      • position_y: number
      • position_z: number
      • is_control: boolean

      Returns Promise<BR3D_PushBackMeasurementPointResult>

    • Parameters

      • cutter_id: Int64
      • x: number
      • y: number
      • is_control: boolean

      Returns Promise<BR3D_PushBackMeasurementPointResult>

    • BR3D_ScaleCutter Scale the cutter in 2D space.

      Parameters:

      • cutter_id, the id of the cutter
      • scaleFactor(x,y), the scale factor on both 2D axes

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • scaleFactor_x: number
      • scaleFactor_y: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_MoveCutter Move the cutter in a given direction.

      Parameters:

      • cutter_id, the id of the cutter
      • direction(x,y,z), the direction and magnitude that the cutter will be moved

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • direction_x: number
      • direction_y: number
      • direction_z: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_RotateCutter Rotate the cutter in 2D space.

      Parameters:

      • cutter_id, the id of the cutter
      • angleInDegrees, the rotation angle in degrees

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • angleInDegrees: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetCutterDrawOrder Set the draw order of the cutter.

      Parameters:

      • cutter_id, the id of the cutter
      • order, the draw order. Negative numbers are allowed.

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • order: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetCutterDrawOrder Get the draw order of the cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the draw order of the cutter.

      Parameters

      Returns Promise<BR3D_GetCutterDrawOrderResult>

    • BR3D_SetCutterLineColor Set the line color of the cutter.

      Parameters:

      • cutter_id, the id of the cutter
      • r,g,b,a, the line color of the cutter

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • r: number
      • g: number
      • b: number
      • a: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetCutterLineColor Get the line color of the cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the line color of the cutter.

      Parameters

      Returns Promise<BR3D_GetCutterColorResult>

    • BR3D_SetCutterPointColor Set the point color of the cutter.

      Parameters:

      • cutter_id, the id of the cutter
      • r,g,b,a, the point color of the cutter

      Returns true if operation was successful.

      Parameters

      • cutter_id: Int64
      • r: number
      • g: number
      • b: number
      • a: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetCutterPointColor Get the point color of the cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the point color of the cutter.

      Parameters

      Returns Promise<BR3D_GetCutterColorResult>

    • BR3D_GetCutterPointCount Return the number of points defining a polygonal cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the number of points.

      Parameters

      Returns Promise<BR3D_GetCutterPointCountResult>

    • BR3D_GetCutterPoints Return the actual points of the underlying measurement used for the cutter.

      Parameters:

      • cutter_id, the id of the cutter
      • num_of_points, number of points to be returned

      Returns the points in x0, y0, z0, x1, y1, z1, ... format.

      Parameters

      • cutter_id: Int64
      • num_of_points: number

      Returns Promise<BR3D_GetCutterPointsResult>

    • BR3D_GetCutterNormal Return the normal of the cutter.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the normal direction coordinates.

      Parameters

      Returns Promise<BR3D_GetCutterNormalResult>

    • BR3D_GetCutterPosition Return the position of the cutter. Only relevant for plane cutters.

      Parameters:

      • cutter_id, the id of the cutter

      Returns the position coordinates.

      Parameters

      Returns Promise<BR3D_GetCutterPositionResult>

    • 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_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_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_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_GetElementsSelectionMode Get the element selection mode

      Parameters:

      Returns the current selection mode

      Returns Promise<BR3D_GetElementsSelectionModeResult>

    • Parameters

      • measurement_id: Int64
      • point_index: number

      Returns Promise<BR3D_GetMeasurementPointAtResult>

    • Parameters

      • measurement_id: Int64
      • point_index: number

      Returns Promise<BR3D_GetMeasurementPointAtResult>

    • BR3D_AddShapeText Create a textual shape that is attached to an element ID. It works only for BCT_TOP view and Fixed plane camera

      Parameters

      • element_id: Int64

        The id of the element

      • pos_x: number

        The x position of the text

      • pos_y: number

        The y position of the text

      • pos_z: number

        The z position of the text

      • spanH_x: number

        The span of the text on the Horizontal axis (x)

      • spanH_y: number

        The span of the text on the Horizontal axis (y)

      • spanH_z: number

        The span of the text on the Horizontal axis (z)

      • spanV_x: number

        The span of the text on the Vertical axis (x)

      • spanV_y: number

        The span of the text on the Vertical axis (y)

      • spanV_z: number

        The span of the text on the Vertical axis (z)

      Returns Promise<Int64>

      The id of the generated shape.

    • BR3D_UpdateShapeText2 Update the position and span of the textual shape.

      Parameters

      • shape_id: Int64
      • spanH_x: number
      • spanH_y: number
      • spanH_z: number

      Returns Promise<boolean>

    • BR3D_RemoveShapeText Removes the textual shape.

      Parameters

      • shape_id: Int64

        The id of the shape

      Returns Promise<BR_FunctionOutput>

      True if the operation was successful.

    • BR3D_UpdateShapeText Update the texture of the textual shape.

      Parameters

      • shape_id: Int64

        The id of the shape

      • lod: number

        The level of detail of the image

      • rgba_data: Uint8Array

        RGBA data of the image (Uint8Array)

      • width: number

        The width of the image in pixels

      • height: number

        The height of the image in pixels

      Returns Promise<BR_FunctionOutput>

      True if the operation was successful.

    • BR3D_SetUpdateShapeTextCallback Sets a callback for updating the textures.

      Parameters

      • m_update_text: (shapeID: Int64, lod: number) => void

        A function for updating the shape's textures.

      Returns Promise<void>

    • RemoveUpdateShapeTextCallback Removes the callback for updating the textures.

      Returns void

    • BR3D_UpdateShapeTextFullscreenImage Update the fullscreen image.

      Parameters

      • rgba_data: Uint8Array

        RGBA data of the image (Uint8Array)

      • width: number

        The width of the image in pixels

      • height: number

        The height of the image in pixels

      Returns Promise<BR_FunctionOutput>

      True if the operation was successful.

    • BR3D_SetUpdateShapeTextImageCallback Sets a callback for updating the textures.

      Parameters

      • m_update_text: (shapes: Int64[], number_of_shapes: number) => void

        A function for updating the shape's textures. The first argument is an array of shape IDs, the second is the number of shapes.

      Returns Promise<void>

    • BR3D_SetShapeTextVisibility Sets the visibility of the single texture shape text technique.

      Parameters

      • visibility: boolean

        The visibility flag.

      Returns Promise<void>

      A promise that resolves when the operation is complete.

    • 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>

    • 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_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>

    • 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>

    • 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_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>

    • Parameters

      • dynamicElementID: Int64
      • alpha: number

      Returns Promise<BR_FunctionOutput>

    • BR_GetRubberbandMode Retrieves the selection mode of the rubberband.

      Parameters:

      • mode, the rubberband mode

      Returns true if operation was successful.

      Returns Promise<BR_GetRubberbandModeResult>

    • 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>

    • 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>

    • BR3D_IsCameraTransitioning Check if the camera is transitioning

      Returns camera transition state.

      Returns Promise<BR_FunctionOutput>

    • Returns boolean

    • 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>

    • Parameters

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

      Returns Promise<BR3D_GetGlobalClosestSegmentResult>

    • BR3D_ClearElementsHighLight Set highlight status of all elements to false

      Returns true if operation was successful.

      Returns Promise<BR_FunctionOutput>

    • 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>

    • 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>

    • 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>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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>

    • 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_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_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_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_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_GetPaperColor Get the paper color

      Parameters:

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

      Returns Promise<BR3D_GetPaperColorResult>

    • 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>

    • 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>

    • 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_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_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>

    • Parameters

      • measurement_id: Int64
      • point_id: number

      Returns Promise<BR3D_GetPointPositionResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • point_id: number

      Returns Promise<BR3D_IsPointControlPointResult>

    • 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>

    • 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>

    • Parameters: texture_element_id, the Texture Element id

      Returns true if operation was successful.

      Parameters

      • textureID: number

      Returns Promise<BR3D_RemoveTextureResult>

    • 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_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_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_GetCameraTargetToGroundPlane Get the distance from the camera position to the ground plane on camera direction

      Returns Promise<BR3D_GetCameraTargetToGroundPlaneResult>

    • 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_SetHighlightXRayMode Sets the XRay highlight mode

      Parameters:

      • mode, xray mode

      Returns true if operation was successful.

      Parameters

      • mode: number

      Returns Promise<BR_FunctionOutput>

    • 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>

    • 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>

    • 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_Render Render the data to the screen

      Returns true if operation was successful.

      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_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_RevertMeasurementPointIdsGenBack Reverts the generation segment and point IDs back minus one value

      Parameters:

      • measurement_id, the id of the measurement

      Parameters

      Returns Promise<boolean>

    • Parameters

      Returns Promise<boolean>

    • 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_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_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_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>

    • 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>

    • 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>

    • 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_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_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>

    • Parameters

      • measurement_id: Int64
      • data: Uint8Array

      Returns Promise<BR_FunctionOutput>

    • 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>

    • Parameters

      Returns Promise<BR3D_GetMeasurementFillColorResult>

    • 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_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_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_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_GetSelectiveRenderingMode Retrieves the selective rendering mode

      Parameters:

      • level, the selective rendering mode

      Returns true if operation was successful.

      Returns Promise<BR3D_GetSelectiveRenderingModeResult>

    • 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>

    • 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_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_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_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_SetModelVertices Set the vertices of the model REQUIRED: for adding INDEXED elements to a model

      Parameters:

      • modelID, ID of the model
      • vertexArray, interleaved vertex and normal data
      • 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
      • si_unit, SI Units (1: Metre), (2: Decimetre), (3: Centimetre), (4: Millimetre)

      Returns true if operation was successful.

      Parameters

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

      Returns Promise<BR_FunctionOutput>

    • Parameters

      • modelID: Int64
      • vertexArray: Float32Array
      • uvArray: Float32Array
      • number_of_vertices: number
      • indicesArray: Int32Array
      • number_of_indices: number
      • si_unit: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_AddElementIndexed Add an element to the engine using data from the BR3D_SetModelVertices

      Parameters:

      • modelID, ID of the model
      • globalID, globalID of the element
      • type, type of the element
      • inverse_model_matrix, float[16] array containing the inverse model matrix of the element
      • indexOffset, offset of the indices in the global index array (from BR3D_SetModelVertices)
      • num_of_indices, number of indices

      Returns the element ID if operation was successful.

      Parameters

      • modelID: Int64
      • globalID: string
      • type: string
      • inverse_model_matrix: number[]
      • indexOffset: number
      • num_of_indices: number

      Returns Promise<BR3D_AddElementResult>

    • BR3D_ExcludeFromSceneBoundingBox Exclude/Include an element from the scene bounding box calculation

      Parameters:

      Parameters

      • elementID: Int64

        the element ID

      • exclude: boolean

        true to exclude, false to include

        Returns true if operation was successful.

      • updateBBox: boolean

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetElementOutlinesIndexed Add outlines to an element

      Parameters:

      • elementID, ID of the element
      • indexArrayOffset, the index offset of the outlines (from BR3D_SetModelOutlines)
      • number_of_indices, number of indices
      • color_{r,g,b}, color of the outline

      Returns true if operation was successful.

      Parameters

      • elementID: Int64
      • indexArrayOffset: number
      • number_of_indices: number
      • color_r: number
      • color_g: number
      • color_b: number

      Returns Promise<BR_FunctionOutput>

    • BR3D_SetModelLinePatternVertices Add model line pattern vertex data

      Parameters:

      • modelID, ID of the model
      • vertexArray, array of vertices for the line patterns
      • number_of_vertices, number of vertices
      • indicesArray, array of indices for the line patterns
      • number_of_indices, number of indices
      • si_unit, SI Units (1: Metre), (2: Decimetre), (3: Centimetre), (4: Millimetre)

      Returns true if operation was successful.

      Parameters

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

      Returns Promise<BR_FunctionOutput>

    • BR3D_AddElementLinePatternVerticesIndexed Add the element line pattern range from the BR3D_SetModelLinePatternVertices. It is used to compute the bbox of the line pattern

      Parameters:

      • elementID, ID of the element
      • indexOffset, offset to the model line pattern data (from BR3D_SetModelLinePatternVertices)
      • num_of_indices, number of indices

      Returns true if operation was successful.

      Parameters

      • elementID: Int64
      • indexOffset: number
      • num_of_indices: number

      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>

    • 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>

    • Parameters

      • modelID: Int64
      • element: number

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR3D_Debug_GetElementModelIdResult>

    • 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_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_Remove2DDrawing Removes an existing 2D Drawing

      Parameters:

      • drawing_id, the drawing id

      Returns true if operation was successful.

      Parameters

      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>

    • BR3D_GetShadingOption Retrieves the elements shading options

      Parameters:

      • options, the shading option

      Returns true if operation was successful.

      Returns Promise<BR3D_GetShadingOptionResult>

    • 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_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>

    • 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>

    • Parameters

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

      Returns Promise<BR_FunctionOutput>

    • 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>

    • 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>

    • Returns Promise<BR3D_GetSelectedMeasurements3DPointIDsResult>

    • 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
      • point_id3, returns the id of the control point (-1 if it does not exists) Returns true if operation was successful.

      Parameters

      • measurement_id: Int64
      • segment_id: number

      Returns Promise<BR3D_GetSegmentPointIDsResult>

    • Parameters

      • measurement_id: Int64
      • segment_id: number

      Returns Promise<BR3D_GetSegmentPointIDsResult>

    • 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>

    • Parameters

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

      Returns Promise<BR3D_GetGlobalClosestPointResult>

    • BR3D_ChangeDynamicElement Changes the geometric data of the dynamic element.

      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.
      • offsets: int array of the offsets of the various parts of the element. Should not be null.
      • number_of_primitives: int array of number of primitives of each part of the dynamic element. Should not be null.
      • colors: float array of the colors of each part. Each color consists of 4 floats. 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.
      • updateBBox: if true, the bounding box of the element will be recomputed. If false, the bounding box will remain the same. If the new vertices are outside the old bounding box, they will be clipped.

      Returns true if the operation was successful.

      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_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_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_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_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>

    • 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>

    • 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_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_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_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_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_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_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>

    • Parameters

      • measurement_ids: Int64[]
      • size: number
      • direction_x: number
      • direction_y: number
      • direction_z: 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>

    • 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_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>

    • 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>

    • 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>

    • 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>

    • 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_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>

    • Parameters

      • measurement_ids: Int64[]
      • size: number

      Returns Promise<BR3D_GetMeasurementsBoundingBoxResult>

    • 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>

    • 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_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_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_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>

    • 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>

    • 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_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>

    • Parameters

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

      Returns Promise<BR_FunctionOutput>

    • BR3D_GetAmbientOcclusionQuality Retrieves the ambient quality

      Parameters:

      • quality, the ambient occlusion quality mode

      Returns Promise<BR3D_GetAmbientOcclusionQualityResult>

    • 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>

    • 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>

    • 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>

    • BR3D_GetShadingOption Get the state of backface culling

      Returns the state of backface culling.

      Returns Promise<BR_FunctionOutput>

    • 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>

    • Parameters

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

      Returns Promise<void>

    • 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>

    • 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_GetSelectiveOutlineRendering Retrieves the selective outline rendering state

      Parameters:

      • enable, the selective outline rendering state

      Returns true if operation was successful.

      Returns Promise<BR3D_GetSelectiveOutlineRenderingResult>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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>

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

      Returns the thickness value in pixels

      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>

    • Parameters

      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>

    • 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>

    • Parameters

      • measurement_id: Int64
      • point_id: number
      • position_x: number
      • position_y: number
      • position_z: number
      • snappingIntervalInDegrees: 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>

    • 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_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>

    • Parameters

      • measurement_id: Int64
      • mode: BIM_MEASUREMENT2D_FILL_PATTERN

      Returns Promise<BR_FunctionOutput>

    • 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>

    • Parameters

      Returns Promise<BR3D_GetLastSegmentLengthResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • segment_id: number

      Returns Promise<BR3D_GetSegmentLengthResult>

    • 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_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_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>

    • Parameters

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

      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_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_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>

    • 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>

    • 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>

    • Parameters

      Returns Promise<BR3D_GetMeasurementVisualizationModeResult>

    • 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>

    • 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>

    • 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_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_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>

    • Returns BR3D_GetCurrentCameraProjectionTypeResult

    • 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_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_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_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_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>

    • 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>

    • Parameters

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

      Returns Promise<BR_FunctionOutput>

    • 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_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>

    • BR_Destroy Destroy the engine and clean up the memory.

      Returns Promise<void>

    • 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>

    • 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>

    • ///////////////////////////////////////////////////////////////////////////////////////////////////// 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_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>

    • 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>

    • 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>

    • 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>

    • Parameters

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

      Returns Promise<BR3D_GetBoundingBoxPixelCenterResult>

    • 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>

    • 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_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>

    • 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_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_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_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_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>

    • 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>

    • Parameters

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

      Returns Promise<BR_FunctionOutput>

    • 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>

    • 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_ClearSelectedMeasurements3DPointIDs Clear the selected measurement and point IDS.

      Returns true if operation was successful.

      Returns Promise<BR_FunctionOutput>

    • 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>

    • Parameters

      • measurement_id: Int64
      • measurement_color_r: number
      • measurement_color_g: number
      • measurement_color_b: number
      • measurement_color_a: 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>

    • 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>

    • 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>

    • BR3D_SetAmbientOcclusionQuality BR3D_Sets the ambient occlusion quality.

      Parameters:

      • quality, the ambient occlusion quality mode

      Parameters

      • quality: BR3D_AMBIENT_OCCLUSION_QUALITY

      Returns Promise<void>

    • 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_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_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_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>

    • 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_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_ClearSelectedMeasurements3DIDs Clear the selected IDS.

      Returns true if operation was successful.

      Returns Promise<BR_FunctionOutput>

    • Returns Promise<BR_FunctionOutput>

    • 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>

    • 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_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_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_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>

    • 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>

    • 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>

    • Returns Promise<BR_FunctionOutput>

    • Returns BR_FunctionOutput

    • 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_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_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_StopPanning Unsets the camera starting panning position.

      Returns true if operation was successful.

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR3D_GetMeasurementPointsSizeResult>

    • 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_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_GetGlobalMeasurementXRayMode Get the global xray mode

      Parameters:

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

      Returns Promise<BR3D_GetGlobalMeasurementXRayModeResult>

    • 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>

    • Parameters

      • measurement_id: Int64
      • enabled: boolean

      Returns Promise<BR_FunctionOutput>

    • 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_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>

    • 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>

    • 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

      Returns Promise<BR_FunctionOutput>

    • Parameters

      • mode: BIM_SENSOR_VISUALIZATION_OPTIONS

      Returns Promise<BR_FunctionOutput>

    • Parameters

      • channel_id: Int64
      • mode: BIM_SENSOR_VISUALIZATION_OPTIONS

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR3D_AddSensorGroupResult>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • Parameters

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

      Returns Promise<BR3D_AddSensorResult>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • Parameters

      Returns Promise<BR_FunctionOutput>

    • Returns Promise<boolean>

    • Parameters

      Returns Promise<number>

    • Returns Promise<boolean>

    • Returns Promise<number>

    • Returns Promise<boolean>

    • Returns Promise<boolean>

    • Returns Promise<Pointer>

    • Returns unknown

    • 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
      • posX: number
      • posY: number
      • posZ: number
      • quatW: number
      • quatX: number
      • quatY: number
      • quatZ: 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

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

      Returns Promise<boolean>

    • Parameters

      • width: number
      • height: number

      Returns Promise<boolean>

    • Returns Promise<BRXR_HAND_POSITION_ORIENTATION>

    • Parameters

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

      Returns Promise<number | Int64>

    • Parameters

      Returns Promise<boolean>

    • Parameters

      Returns Promise<boolean>

    • Parameters

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

      Returns Promise<boolean>

    • Parameters

      • id: Int64
      • transformation: number[]

      Returns Promise<boolean>

    • Parameters

      Returns Promise<boolean>

    • Parameters

      • side: BRXR_SIDE
      • filename: string

      Returns Promise<boolean>

    • Parameters

      • side: BRXR_SIDE
      • active: boolean

      Returns Promise<void>

    • Parameters

      • side: BRXR_SIDE

      Returns Promise<void>

    • Parameters

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

      Returns Promise<void>

    • Parameters

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

      Returns Promise<void>

    • Parameters

      • active: boolean

      Returns Promise<void>

    • Parameters

      • active: boolean
      • ignoreModelsInMemory: boolean

      Returns Promise<void>

    • Returns Promise<boolean>

    • Returns Promise<boolean>

    • Parameters

      Returns Promise<void>

    • Returns Promise<void>

    • Returns Promise<BRXR_LASER_SELECTION>

    • 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_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_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_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>

    • Returns Promise<string>

    • Parameters

      Returns Promise<BRMD_GetElementModelIdResult>

    • Parameters

      • staticElements: boolean
      • dynamicElements: boolean

      Returns Promise<boolean>

    • Parameters

      • staticElements: boolean
      • dynamicElements: boolean

      Returns Promise<boolean>

    • Parameters

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

      Returns Promise<boolean>

    • Parameters

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

      Returns Promise<boolean>

    • Parameters

      Returns Promise<boolean>

    • Parameters

      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

      • key: string

      Returns Promise<boolean>

    • Returns Promise<boolean>

    • Parameters

      • feature: BIM_FEATURE

      Returns Promise<boolean>

    • Parameters

      • feature: BIM_FEATURE

      Returns boolean

    • Returns Promise<string>

    • Parameters

      • center: Vector3D
      • normal: Vector3D
      • radiusI: number
      • radiusII: number
      • thickness: number
      • rotation: number

      Returns Promise<Int64>

    • Parameters

      • center: Vector3D
      • normal: Vector3D
      • length: number
      • width: number
      • thickness: number
      • rotation: number

      Returns Promise<Int64>

    • Parameters

      • center: Vector3D
      • normal: Vector3D
      • diameterI: number
      • diameterII: number
      • thickness: number
      • rotation: number

      Returns Promise<Int64>

    • Parameters

      • center: Vector3D
      • normal: Vector3D
      • edgeLength: number
      • thickness: number
      • rotation: number

      Returns Promise<Int64>

    • Parameters

      • center: Vector3D
      • normal: Vector3D
      • edgeLength: number
      • thickness: number
      • rotation: number

      Returns Promise<Int64>

    • Parameters

      Returns Promise<Int64>

    • Parameters

      Returns Promise<Int64>

    • Parameters

      • data: Uint8Array
      • solidLines: boolean
      • solidExtrusion: boolean
      • direction: Vector3D
      • elevationOfPoints: number[]

      Returns Promise<Int64>

    • Parameters

      Returns Promise<void>

    • Parameters

      • data: Uint8Array
      • transformationMatrix: number[]
      • transpose: boolean

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      Returns Promise<Int64>

    • Parameters

      Returns Promise<Int64>

    • Parameters

      Returns Promise<Int64>

    • Returns Promise<void>

    • Returns Promise<void>

    • Parameters

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

      Returns Promise<void>

    • Parameters

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

      Returns Promise<void>

    • Parameters

      • fillPaternName: string
      • rendererID: number

      Returns any

    • Parameters

      • fillPatern: number
      • fillPaternName: string

      Returns Promise<void>

    • Parameters

      • dir: number

      Returns Promise<void>

    • Parameters

      • distance: number

      Returns Promise<void>

    • Parameters

      • length: number

      Returns Promise<void>

    • Parameters

      • thickness: number

      Returns Promise<void>

    • Parameters

      • rise: number
      • run: number

      Returns Promise<void>

    • Parameters

      • useDistanceCulling: boolean

      Returns Promise<void>

    • Returns Promise<boolean>

    • Parameters

      • coefficient: number

      Returns Promise<void>

    • Returns Promise<number>

    • Parameters

      • allowBulkModelVertices: boolean

      Returns Promise<void>