### Box Selection Configuration Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/CommonComponentControl.html Example configuration object for box selection, specifying the mouse button to trigger the selection. ```javascript { //框选触发操作的方式 0 左键 1 滚轮 2 右键 默认左键 PC端生效 APP端只支持单手框选 PointerdownButtonType:0, } ``` -------------------------------- ### DTXV2 Scene Configuration File Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-ProjectConfig.html A comprehensive example of a scene configuration file for DTXV2 projects. This JSON structure defines project-wide settings, default scene properties, lighting, camera, and view configurations. ```json { //设置整个工程的模型请求地址 "Url": { "burl": "https://dtx.ysbdtp.cn",//轻量化服务地址 "rurl": "/dtx-rwd2-server/3d/", "groupCode": "JD" }, //设置当前场景的默认属性信息 "Scene": { "color_background": "#ffffff" }, //当前场景灯光默认属性信息 "Light": { //平行光 "DirectionalLight": { "set_position": [0, 1000000, 1000000], "color_color": "#ffffff", "intensity": 2 }, //环境光 "AmbientLight": { "color_color": "#D3D3D3",//D3D3D3 "intensity": 1 } }, //当前场景相机的默认属性信息 "Camera": { //透视相机配置参数 "PerspectiveCamera": { "set_position": [0, -80000, 0], "set_up": [0, 0, 1]//朝向-Z轴朝上 }, //正交相机配置参数 "OrthographicCamera": { "set_position": [0, -80000, 0], "set_up": [0, 0, 1]//朝向-Z轴朝上 } }, //场景默认视角配置 "DefaultCameraLookAtState": { //场景默认显示模式 3D 2D平面图 "DefaultCameraModel": "3D", //场景视角计算配置项目-3D "FrontViewLookAtConfig_3D": { "FrontViewDirection": [0, -1, 0],//建筑楼层正视图的朝向 默认北为建筑正视图 "SphereHorizontalAngle": 0,//相机从正面观察建筑 水平方向上的默认角度 "SphereVerticalAngle": -90,//相机从正面观察建筑 垂直方向上的默认角度 "Scale": 1.5,//缩放因子 目标的2D投影正好填充满屏幕之后再按照该比例拉远相机从而得到合适大小的位置 "BoundingSphereDistance": 1000//在缩放因子的基础上再次将相机拉远到固定的距离 }, //场景视角计算配置项目-2D平面图 "FrontViewLookAtConfig_2D": { "FrontViewDirection": [0, -1, 0],//建筑楼层正视图的朝向 默认北为建筑正视图 "SphereHorizontalAngle": 0,//相机从正面观察建筑 水平方向上的默认角度 "SphereVerticalAngle": -90,//相机从正面观察建筑 垂直方向上的默认角度 }, //场景默认视角配置参数 "SceneCameraDefaultState": { //3D模式 视角配置 "CameraState_3D": { "Controls_Custom": { "f_setTarget": [0, 0, 0, false], "f_setPosition": [0, -80000, 0, false] } }, //平面图模式 视角配置 "CameraState_2D": { "Controls_Custom": { "f_setTarget": [0, 0, 0, false], "f_setPosition": [0, -80000, 0, false] }, } } }, //当前场景控制器默认控制属性信息 "Controls": { //系统控制器 "Controls_Server": { "minDistance": 0,//最小缩放距离 "maxDistance": 1000000,//最大缩放距离 "minPolarAngle": 0,//最小仰角 "maxPolarAngle": 90,//最大仰角 "enableDamping": false,//场景是否开启阻尼 "dampingFactor": 0.1//默认阻尼系数 }, //3D控制器 "Controls_Custom_3D": { "minPolarAngle": 0,//最小仰角 "maxPolarAngle": Math.PI / 2,//最大仰角 "azimuthAngle": 0,//默认水平方向弧度 "smoothTime": 0.19, } } } ``` -------------------------------- ### initDefaultScene Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.SceneInitHelp.html Initializes the scene with default settings. This is a common starting point for new scenes. ```APIDOC ## initDefaultScene ### Description Initializes the scene with default settings. ### Method Not specified (likely a function call within an SDK) ### Endpoint Not applicable (SDK function) ### Parameters None explicitly documented. ### Request Example ``` // Example usage within the SDK SceneInitHelp.initDefaultScene(); ``` ### Response None explicitly documented. ``` -------------------------------- ### Get Vertical Tube Height Change Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Provides an example of the callback structure for monitoring changes in pipe height. It includes the current height and a flag indicating if the client can edit the height. ```javascript (e)=>{ e//结构参考 { Height:0, IsClientUpdate:false } } ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-Android.html Methods for creating objects on a local host. ```APIDOC ## createBoxWithFloor ### Description Creates a box on a specified floor. ### Method Not specified ### Endpoint Not specified ### Parameters None specified ### Request Example None specified ### Response None specified ``` -------------------------------- ### Get Vertical Tube Template and Operation Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Defines the structure for obtaining pipe templates that can be added to the scene. It categorizes templates by type (elbow, tee, etc.) and includes image names and data structures for each. ```javascript { TemplateContent: { verticalTube_2:[{ imageName:"", verticalTubeData:{...} }], verticalTube_3:[{ imageName:"", verticalTubeData:{...} }], verticalTube_4:[{ imageName:"", verticalTubeData:{...} }], verticalTube_Custom:[{ imageName:"", verticalTubeData:{...} }], VerticalTube_Valve:[{ imageName:"VerticalTube_Valve", verticalTubeData:{...} }], VerticalTube_EndValve:[{ imageName:"VerticalTube_EndValve", verticalTubeData:{...} }], VerticalTube_Plug:[{ imageName:"VerticalTube_Plug", verticalTubeData:{...} }], VerticalTube_PipeHead:[{ imageName:"", verticalTubeData:{...} }] } } ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-OCC-Main.html Methods for creating boxes with floor information. ```APIDOC ## createBoxWithFloor ### Description Creates a box with specified floor information. ### Method Not specified ### Endpoint Not specified ``` -------------------------------- ### Get Current Editor Vertical Direction Number Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Illustrates the structure of the returned object for the number of active directions of a currently edited pipe. Use this to understand the activation status of pipe axes and directions. ```javascript (e)=>{ e//结构 { AxisNumber:0, DirNumber:0 } } ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-MessageObject.html Utility method for creating boxes with floor information. ```APIDOC ## createBoxWithFloor ### Description Creates a box with specified floor information. ### Method (Not specified, likely a function call in an SDK) ### Endpoint (Not applicable for SDK methods) ``` -------------------------------- ### Scene Init Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ToolControl.html Methods for managing scene initialization and loading. ```APIDOC ## autoLoadSceneMesh ### Description Automatically loads scene mesh data. ### Method POST ### Endpoint /api/scene/mesh/autoLoad ## initDefaultScene ### Description Initializes the scene with default settings. ### Method POST ### Endpoint /api/scene/init/default ## loadSceneMeshWithPipeline ### Description Loads scene mesh data using a specified pipeline. ### Method POST ### Endpoint /api/scene/mesh/loadWithPipeline ### Parameters #### Request Body - **pipeline** (string) - Required - The name or path of the pipeline to use. ## reloadSceneOccData ### Description Reloads the scene's OCC (Object-Centric Collaboration) data. ### Method POST ### Endpoint /api/scene/occData/reload ``` -------------------------------- ### Get Other Floor Load Mesh Data Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Shows the structure of the callback data for loading mesh data across floors based on vertical tube data. This is useful for managing and loading models for different floors. ```javascript (e)=>{ e//结构 [ { FloorID:'' LoadMeshData:[ { } ] } ] } ``` -------------------------------- ### Scene Init Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-DTXV2_ProjectConfig.html Methods for initializing and managing scenes. ```APIDOC ## autoLoadSceneMesh ### Description Automatically loads scene mesh data. ### Method POST ### Endpoint /api/scene/mesh/autoload ## initDefaultScene ### Description Initializes the default scene. ### Method POST ### Endpoint /api/scene/init/default ## loadSceneMeshWithPipeline ### Description Loads scene mesh data using a specified pipeline. ### Method POST ### Endpoint /api/scene/mesh/load/pipeline ### Parameters #### Request Body - **pipeline** (string) - Required - The name of the pipeline to use. ## reloadSceneOccData ### Description Reloads the scene OCC (Object Component) data. ### Method POST ### Endpoint /api/scene/occ/reload ``` -------------------------------- ### Get Vertical Tube Template and Operation Ray and Line Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Specifies that the return structure for obtaining templates based on rays or lines is consistent with the `getVerticalTubeTemplateAndOperation` function. Use this when needing to add components connected to existing rays or lines. ```javascript 返回结构同 getVerticalTubeTemplateAndOperation 保持一致 ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/MeshControl.html Methods for creating local host elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified in source) ### Endpoint (Not specified in source) ### Parameters (Not specified in source) ### Request Example (Not specified in source) ### Response (Not specified in source) ``` -------------------------------- ### OfflineControl: offlineMeshData Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OfflineControl.html Use this method to get offline lightweight model information. It requires a project ID, download configuration, and a callback for download progress. The `downConfig` parameter specifies floor lists and custom URLs, while `endBlock` provides status updates during the offline process. ```javascript downConfig参数 { "FloorArray":[ { "FloorID":"", "CustomUrl":"" } ], "PublicMeshCustomUrl":"", } ``` ```javascript endBlock参数 离线过程状态回调 离线过程中会多次调用 { "State":0, "Error_FloorIDArray":[''], "Error_IsPublicMesh":false, "DownloadProgress": 0, "AllNumber": 0, "IsEnd": true, "IsSuccess": false } ``` -------------------------------- ### Space Style Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/CommonComponentControl.html Example object for setting the color and opacity of a space. ```javascript { color:'red',//颜色 opacity:1.0,//透明度 } ``` -------------------------------- ### Example configUrl parameter for initDefaultScene Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.SceneInitHelp.html The configUrl parameter is an array of strings representing the download addresses for all project configuration files. ```javascript ["./JsonConfig/PorjectConfig.json"] ``` -------------------------------- ### Scene Init Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-Android.html Methods for initializing and managing scene data. ```APIDOC ## autoLoadSceneMesh ### Description Automatically loads scene mesh data. ### Method POST ### Endpoint /api/scene/mesh/autoload ## initDefaultScene ### Description Initializes the scene with default settings. ### Method POST ### Endpoint /api/scene/init/default ## loadSceneMeshWithPipeline ### Description Loads scene mesh data using a specified pipeline. ### Method POST ### Endpoint /api/scene/mesh/load/pipeline ### Parameters #### Request Body - **pipeline** (string) - Required - The name or path of the pipeline to use. ## reloadSceneOccData ### Description Reloads the scene's OCC (Object-Centric Context) data. ### Method POST ### Endpoint /api/scene/occ/reload ``` -------------------------------- ### Box Selection Style Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/CommonComponentControl.html Example CSS style object for customizing the appearance of the box selection. ```javascript background: rgba(0, 145, 255, 0.1);border: 2px solid #0091ff; ``` -------------------------------- ### Scene Init Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-UserHelp.html Methods for loading and managing scene data. ```APIDOC ## autoLoadSceneMesh ### Description Automatically loads scene mesh data. ### Method POST ### Endpoint /api/scene/mesh/autoload ## initDefaultScene ### Description Initializes the default scene. ### Method POST ### Endpoint /api/scene/init/default ## loadSceneMeshWithPipeline ### Description Loads scene mesh data using a specified pipeline. ### Method POST ### Endpoint /api/scene/mesh/load/pipeline ## reloadSceneOccData ### Description Reloads the OCC data for the current scene. ### Method POST ### Endpoint /api/scene/occ/reload ``` -------------------------------- ### Save Draw Point Model Callback Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.DrawPointControl.html This is an example of the callback function format for saveDrawPointModel. The returned result format is the same as the '编辑点位保存数据格式'. ```javascript (e)=>{ //返回结果同[编辑点位保存数据格式] } ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-API.html Methods for creating elements on localhost. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a floor. ### Method (Not specified) ### Endpoint (Not specified) ``` -------------------------------- ### Remove Elbow Callback Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_ShiYanTai.Main_NiXiangLiGuan.html Example of the callback function structure for removing an elbow, including parameters for line configuration and custom ID. ```javascript removeWanTou_NiXiangLiGuan (customID, remvoeBlock) remvoeBlock回调函数 (content)=>{ } content结构 { liGuanConfig_Param:{},//mergeLine_NiXiangGuanLi API的入参 customID_Param:'', inEditorModel_CreateWanTouWithClickLine_NiXiangLiGuan API入参 } ``` -------------------------------- ### Localhost Create Help Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OfflineControl.html Methods for creating local host elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a floor. ### Method Not specified ### Endpoint Not specified ### Parameters Not specified ### Request Example Not specified ### Response Not specified ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-DTXV2_ShuJing.html Helper methods for creating local host elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method Not specified ### Endpoint Not specified ### Parameters Not specified ### Request Example Not specified ### Response Not specified ``` -------------------------------- ### Get All Scene Codes Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/MeshContentSelectControl.html Retrieves a list of all existing codes for models within the current scene. Use this to get a collection of all model codes. ```javascript getAllCodeWithScene () ``` -------------------------------- ### Example loadConfig parameter for autoLoadSceneMesh Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.SceneInitHelp.html The loadConfig parameter structure is consistent with the loadMeshWithCodeList_Server API. This example shows how to exclude specific model IDs during loading. ```javascript { //设置整个工程的模型请求地址 "Url": { "burl": "https://qa-revit.ysbdtp.com",//轻量化服务地址 } } ``` -------------------------------- ### LocalhostCreateHelp Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/PersagyWeb3DController.html Helper methods for creating objects in the local environment. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified) ### Endpoint (Not specified) ### Parameters (Not specified) ### Request Example (Not specified) ### Response (Not specified) ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_ShiYanTai.Main_HengXiangGuanXi.html Methods for creating objects within the localhost environment, specifically creating a box with floor. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a floor. ### Method (Not specified in source) ### Endpoint (Not specified in source) ``` -------------------------------- ### Start Default Occlusion Optimization Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OcclusionControl.html Starts the default optimization strategy for occlusion. Requires occID, floor content, floor list, and an optional list of excluded IDs. ```javascript startRunDefaultOcc(occID, floorContent, floorList, excludeIDList) ``` -------------------------------- ### Set Draw Point Block Callback Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.DrawPointControl.html This is an example of the callback function structure for setDrawPointBlock, which provides real-time updates during the drawing process. It includes the type of callback and its parameters. ```javascript (e)=>{ Type:'AllPointNumber',//回调参数类型 Param:{//回调内容 Number:0 } } Type类型分类 AllPointNumber 数量统计信息 ``` -------------------------------- ### Initialize Project Controller (DTXV2) Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-Project-Main.html Demonstrates how to import and initialize the DTXV2 project controller for WEB applications. Ensure the scene name is unique if multiple scenes are used. ```javascript //引用 import {ProjectModel,PersagyWeb3DController,GlobleData} from '@/components/Project' //初始化项目控制器 以DTXV2项目为例 let projectControl = new ProjectModel.DTXV2_Main('PersagyWeb3D')//PersagyWeb3D是场景自定义名称 目的是为了区分多场景共存并实现独立控制 //初始化项目控制器中的业务模块 projectControl.initControl() ``` -------------------------------- ### OcclusionControl Structure Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OcclusionControl.html This example shows the expected structure for an occlusion control object, including its properties like query object, precision, mesh collection, and listener state. ```javascript { occID:{ occObject:null, jingDu:null, idMap:{ meshID:{ isOccShow:true, outlineContent:null } }, isBuild:false, listenerStateBlock:null, } } ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/Model_Base_Model_Base.html Methods for creating objects within the localhost environment. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified, likely a function call) ### Endpoint (Not applicable) ``` -------------------------------- ### Space Line Style Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/CommonComponentControl.html Example object for setting the color, opacity, and line width of a space's border. Opacity may not be adjustable if the space model has gradients enabled. ```javascript { color:'red',//颜色 opacity:1.0,//透明度 如果空间模型开启渐变则不支持动态修改透明度 linewidth:1,//线条宽度 } ``` -------------------------------- ### LocalhostCreateHelp Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/Type_NameString.html Helper methods for creating elements locally. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method POST ### Endpoint /localhost/create/box-with-floor ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ToolControl.html Methods for creating objects using localhost help. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method Not specified ### Endpoint Not specified ``` -------------------------------- ### Filter All Project Vertical Tube Data Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.VerticalTubeCreate.html Provides an example structure for the callback function used in filtering vertical tube data. This callback receives filtered data and IDs for elements that should only be displayed. ```javascript (e)=>{ e//结构 { newData:[], justShowDataID:[] } } ``` -------------------------------- ### LocalhostCreateHelp Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-DTXV2_API.html Methods for creating local host elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified, assumed to be a function call) ### Endpoint (Not specified) ### Parameters (Not specified) ### Request Example (Not specified) ### Response (Not specified) ``` -------------------------------- ### getPointHeightWithFloor Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-DTXV2_ShuJing.html Gets the height of a point on a floor. ```APIDOC ## getPointHeightWithFloor ### Description Gets the height of a point on a floor. ### Method Not specified (likely a function call within an SDK) ### Endpoint Not applicable (SDK method) ### Parameters Not specified in the source. ### Request Example Not specified in the source. ### Response Not specified in the source. ``` -------------------------------- ### LocalhostCreateHelp Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.PublicAPI_Main.html Helper methods for creating objects locally. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a floor. ### Method (Not specified in source) ### Endpoint (Not specified in source) ### Parameters (Not specified in source) ### Request Example (Not specified in source) ### Response #### Success Response (200) (Not specified in source) #### Response Example (Not specified in source) ``` -------------------------------- ### ProjectAPI_Public.PublicAPI_Main Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ConfigControl.html Helper methods for various functionalities like camera, scene initialization, and opacity. ```APIDOC ## getCameraHelp ### Description Provides help or information related to camera functionality. ### Method GET (Assumed) ### Endpoint /api/public/help/camera ## getLocalhostCreateHelp ### Description Offers assistance for creating elements locally. ### Method GET (Assumed) ### Endpoint /api/public/help/create/local ## getMoreClickHelp ### Description Provides help related to click interactions. ### Method GET (Assumed) ### Endpoint /api/public/help/click/more ## getOpacityHelp ### Description Provides help or information regarding opacity settings. ### Method GET (Assumed) ### Endpoint /api/public/help/opacity ## getSceneInitHelp ### Description Offers help for scene initialization processes. ### Method GET (Assumed) ### Endpoint /api/public/help/scene/init ## getTipHelp ### Description Provides help or information related to tips and guidance. ### Method GET (Assumed) ### Endpoint /api/public/help/tip ``` -------------------------------- ### getInstance Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.GlobleData.html Gets the singleton instance of GlobleData. ```APIDOC ## getInstance ### Description Gets the singleton instance of GlobleData. ### Method (Not specified, likely a static method call) ### Endpoint (Not applicable for SDK methods) ### Parameters (No parameters specified) ### Request Example (No request example provided) ### Response (No response details provided) ``` -------------------------------- ### LocalhostCreateHelp Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/DTXV2_ModelName.html Helper methods for creating local host elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method POST ### Endpoint /api/public/localhostcreatehelp/createBoxWithFloor ``` -------------------------------- ### getMeshHeightWithElevation Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_DTXV2.CreateVirtualModel.html Gets the mesh height with elevation information. ```APIDOC ## getMeshHeightWithElevation ### Description Gets the mesh height with elevation information. ### Method Not specified ### Endpoint Not specified ### Parameters None specified ### Request Example None specified ### Response None specified ``` -------------------------------- ### getPointHeightWithFloor Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/Model_Base_Model_Base.html Gets the height of a point relative to the floor. ```APIDOC ## getPointHeightWithFloor ### Description Gets the height of a point relative to the floor. ### Method Not specified ### Endpoint Not specified ### Parameters Not specified ### Request Example Not specified ### Response Not specified ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ConfigControl.html Methods for creating elements using localhost help. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified) ### Endpoint (Not specified) ### Parameters (Not specified) ### Request Example (Not specified) ### Response (Not specified) ``` -------------------------------- ### startRunDefaultOcc Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OcclusionControl.html Starts the default optimization strategy for occlusion. ```APIDOC ## startRunDefaultOcc (occID, floorContent, floorList, excludeIDList) ### Description Starts the default optimization strategy for occlusion. ### Parameters #### Path Parameters - **occID** (String) - Default control ID - **floorContent** (Object) - Building information in the scene - **floorList** (Array.) - Model code range for this optimization - **excludeIDList** (Array.) - Special case: Model IDs to exclude (optional) ### Request Example ```json { "floorContent": { "modelIdToCalculate": { "outline": [] // Walls' outer contour } }, "floorList": [ /* Structure consistent with loadMeshWithCodeList_Server API's floorList */ ] } ``` ``` -------------------------------- ### Localhost Create Help Methods Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/tutorial-PersagyWeb3D-Main.html Helper methods for creating local host elements, such as boxes. ```APIDOC ## createBoxWithFloor ### Description Creates a box with a specified floor. ### Method (Not specified, likely a function call) ### Endpoint (Not applicable, SDK method) ``` -------------------------------- ### startRunDefaultOcc Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/OcclusionControl.html Starts the default occlusion process for the scene. ```APIDOC ## startRunDefaultOcc ### Description Initiates the default occlusion behavior for the scene. This typically applies standard occlusion rules. ### Method Not specified (assumed to be a method call on an object) ### Parameters None. ``` -------------------------------- ### initScene Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/Model_Base_Model_Base.html Initializes the scene. ```APIDOC ## initScene ### Description Initializes the scene. ### Method Not specified ### Endpoint Not specified ### Parameters Not specified ### Request Example Not specified ### Response Not specified ``` -------------------------------- ### Localhost Create Help Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.SceneInitHelp.html Helper functions for creating local scene elements. ```APIDOC ## createBoxWithFloor ### Description Creates a box element within a specified floor. ### Method POST ### Endpoint /localhost/create/box ### Parameters #### Request Body - **floorId** (string) - Required - The identifier of the floor. - **boxData** (object) - Required - Data for the box to be created. ### Request Example { "floorId": "floor1", "boxData": { "position": [0, 0, 0], "dimensions": [1, 1, 1] } } #### Response #### Success Response (200) - **message** (string) - Confirmation message. - **boxId** (string) - The ID of the created box. ### Response Example { "message": "Box created successfully.", "boxId": "box456" } ``` -------------------------------- ### Create Device Access Points Show Tip Example Source: https://github.com/tiandaowentao/dtx-v23-d/blob/master/ProjectAPI_Public.TipHelp.html Example structure for `accessPointContent` when creating a tip panel for access points. Includes custom tip ID, helper line style, access point coordinates and direction, and the DOM tip content. ```javascript accessPointContent结构参考 { TipCustomID:'', HelpLineStyle:{ color:'red', length:100 }, AssessPointContent:{ Position:{X:-42.835,Y:0,Z:0}, Direction:{X:-1,Y:0,Z:0}, }, DomTipContent:{ Type:"GateGroup_DomTip", BGStyle:{ BorderColor:'red', BGColor:'#ffffff' }, Content:{ Title:'1', Color:'#000000' }, Param:{ } } ```