A method and apparatus for constructing a three-dimensional model

By combining data mapping from geographic information systems and building reference maps, the location of objects in three-dimensional space is automatically obtained, solving the problem of low efficiency in manually configuring points in 3D model construction. This enables fast and accurate 3D model construction and positioning, and is suitable for data and scene interaction in digital twin technology.

CN114299148BActive Publication Date: 2025-10-31BOE TECHNOLOGY GROUP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111653271.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-10-31
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

Manually configuring spatial points in three-dimensional space is tedious, inefficient, and makes it difficult to efficiently construct three-dimensional models.

Method used

By mapping latitude and longitude data based on geographic information systems to coordinate data in three-dimensional space, and combining it with preset architectural reference maps, the system automatically acquires and constructs the location information of objects in three-dimensional space. It uses the relative relationship between GIS coordinates and three-dimensional models to locate outdoor spatial objects, uses CAD drawings to determine the location of indoor equipment, and performs indoor spatial positioning through spatial division and coding methods.

Benefits of technology

It enables rapid and accurate positioning in three-dimensional space, reduces the workload of manually drawing equipment models, meets positioning requirements of different precision, supports data storage, exchange and business analysis, and improves the efficiency and accuracy of three-dimensional model construction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114299148B_ABST
    Figure CN114299148B_ABST
Patent Text Reader

Abstract

This invention provides a method and apparatus for constructing a three-dimensional model, solving the problem of cumbersome and inefficient manual configuration of spatial points in three-dimensional space. The method includes: obtaining the outdoor location information of each first object in three-dimensional space based on the mapping relationship between latitude and longitude data from a geographic information system and coordinate data in three-dimensional space, wherein the first object includes buildings; acquiring a preset building reference map corresponding to the building; obtaining the indoor location information of each second object within the building relative to the building based on the preset building reference map; obtaining the object position information of each second object in three-dimensional space based on the outdoor location information of each first object and the indoor location information of each second object relative to the building; and constructing a three-dimensional model based on the outdoor location information of each first object and the object position information of each second object in three-dimensional space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of spatial positioning technology, specifically to a method and apparatus for constructing a three-dimensional model. Background Technology

[0002] With the development of science and technology, digital twin technology has gradually moved from a theoretical concept to a stage of technological application. However, at present, there are many technical problems to be solved in mapping from the physical world to the virtual world, and no single technology can perfectly solve all the problems existing in "digital twins".

[0003] Implementing spatial physical coordinate technology in game engines is an inevitable trend in the development of digital twins. The core advantage of game engines lies in their powerful "scene expressiveness." On one hand, through real-time dynamic rendering, they can construct rich and detailed scene representations to better recreate the world we "see." On the other hand, powerful physics engines can realistically simulate the operating rules of the real world. These technologies are precisely what "digital twins" urgently need. However, for digital twins, manual modeling alone is far from sufficient. It is also necessary to process urban baselines obtained through other methods. The purpose of this processing is not merely "scene construction," but rather to provide comprehensive support for data storage, exchange, and business analysis. These are technical capabilities that game companies currently lack.

[0004] With the further development of digital twin technology, the technical interaction between data and scenes has been enhanced, building upon scene representation and data integration analysis. Finding a specific spatial location through data analysis within a digital twin becomes the foundation for this interaction. In traditional 3D space, spatial points are typically configured manually, requiring modelers to fix and place the points to be displayed. However, locating a large number of data points is relatively difficult, and manually configuring spatial points is tedious and inefficient. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method and apparatus for constructing a three-dimensional model, which solves the problem of cumbersome and inefficient manual configuration of spatial points in three-dimensional space.

[0006] An embodiment of the present invention provides a three-dimensional model construction method comprising:

[0007] Based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, the outdoor location information of each first object in three-dimensional space is obtained, wherein the first object includes buildings;

[0008] Obtain a preset architectural reference map corresponding to the building, and obtain the indoor position information of each second object in the building relative to the building based on the preset architectural reference map;

[0009] Based on the outdoor position information of each of the first objects in the three-dimensional space and the indoor position information of each of the second objects relative to the building, the object position information of each of the second objects in the three-dimensional space is obtained.

[0010] A three-dimensional model is constructed based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space.

[0011] In one implementation, the step of obtaining the outdoor location information of each first object in three-dimensional space based on the mapping relationship between coordinate data from a geographic information system and coordinate data in three-dimensional space includes:

[0012] Obtain the reference latitude and longitude data of the first preset reference point in the geographic information system, and obtain the first reference coordinate data of the first preset reference point in the three-dimensional space;

[0013] Obtain the comparative latitude and longitude data of each of the first objects in the geographic information system;

[0014] Based on the reference latitude and longitude data and the comparison latitude and longitude data, the geographical distance between each of the first objects and the first preset reference point is calculated;

[0015] Based on the mapping relationship between the latitude and longitude data of the geographic information system and the coordinate data in the three-dimensional space, the first reference coordinate data, and the geographic distances, the outdoor location information of each of the first objects in the three-dimensional space is obtained.

[0016] In one embodiment, the step of obtaining the indoor position information of each second object within the building relative to the building based on the preset building reference drawing includes:

[0017] Obtain the drawing coordinate data of the second preset reference point in the preset architectural reference drawing, and obtain the second reference coordinate data of the second preset reference point in the three-dimensional space;

[0018] Obtain the object coordinate data of each of the second objects in the preset building reference drawing;

[0019] Based on the coordinate data of the drawing and the coordinate data of the object, the coordinate distance between each of the second objects and the second preset reference point is calculated;

[0020] Based on the second reference coordinate data and each of the coordinate distances, the object position information of each of the second objects in the three-dimensional space is obtained.

[0021] In one embodiment, the preset building reference drawing includes a general engineering drawing and a building drawing, wherein each building drawing corresponds to a building in the general engineering drawing;

[0022] The step of obtaining the drawing coordinate data of the second preset reference point in the preset architectural reference drawing includes:

[0023] Obtain the drawing coordinate data of the second preset reference point in the overall engineering drawing;

[0024] The step of obtaining the object coordinate data of each of the second objects in the preset architectural reference drawing includes:

[0025] Obtain the building coordinate data of each of the aforementioned buildings within the general engineering drawing;

[0026] Obtain the architectural coordinate data of each of the second objects in the corresponding architectural drawing;

[0027] Based on the building coordinate data and the building interior coordinate data, obtain the object coordinate data of the second object in the overall engineering drawing.

[0028] In one embodiment, the step of obtaining the indoor position information of each second object within the building relative to the building based on the preset building reference drawing further includes:

[0029] Obtain the floor information of each of the second objects within the corresponding building, and obtain the height data of each of the second objects based on the floor information;

[0030] The step of obtaining the object position information of each of the second objects in the three-dimensional space based on the second reference coordinate data and each of the coordinate distances includes:

[0031] Based on the second reference coordinate data, each of the coordinate distances, and each of the height data, the object position information of each of the second objects in the three-dimensional space is obtained.

[0032] In one implementation, after the step of obtaining the outdoor location information of each first object in three-dimensional space based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, the method further includes:

[0033] Obtain the segmentation information and encoding information of each of the first objects;

[0034] The division information, encoding information and outdoor location information of each first object are associated, and the associated division information, encoding information and outdoor location information of each first object are stored.

[0035] In one embodiment, after the step of obtaining the object position information of each second object in the three-dimensional space based on the outdoor position information of each of the first objects in the three-dimensional space and the indoor position information of each of the second objects relative to the building, the method further includes:

[0036] Select the initial connector of the second object, and obtain the next connector that connects to the initial connector based on the connection point of the initial connector. Recursively process each branch to form a tree structure until the connection point reaches the next level connector as the end.

[0037] Data for each connector is saved to a database, and the end connectors are tagged;

[0038] Within the three-dimensional space, the connectors and buildings are placed according to their actual positions. All the connectors are traversed, and the database is queried to determine whether the connector is an end connector.

[0039] If so, a ray is emitted from the center point of the end connector, the space where the object is located is obtained based on the object that the ray collides with, and the space corresponding to the end connector is determined based on the space where the object is located.

[0040] An embodiment of the present invention provides a three-dimensional model construction device, comprising:

[0041] The acquisition module is used to acquire preset architectural reference drawings corresponding to the buildings;

[0042] The processing module is used to obtain the outdoor location information of each first object in three-dimensional space based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, wherein the first object includes a building; to obtain the indoor location information of each second object in the building relative to the building based on the preset building reference map; and to obtain the object location information of each second object in the three-dimensional space based on the outdoor location information of each first object in the three-dimensional space and the indoor location information of each second object relative to the building.

[0043] The construction module is used to construct a three-dimensional model based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space.

[0044] An embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the three-dimensional model construction method as described above.

[0045] One embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the three-dimensional model construction method described above.

[0046] This invention provides a 3D model construction method and apparatus. It processes different spatial locations using different methods. For example, it uses the relative relationship between GIS coordinates and the 3D model to locate static and dynamic objects in a large outdoor space; it uses spatial division and coding to determine the location of indoor spaces; and it employs different strategies for different spatial divisions to meet different business needs. It combines CAD site plans and CAD floor plans to determine the location of equipment in 3D space, avoiding the need to draw numerous equipment models. It dynamically generates equipment models based on their locations, enabling rapid positioning of equipment models. Furthermore, it determines the affected area of ​​the equipment based on the logical connection relationships of the equipment's connectors, and performs reverse positioning of the equipment. These different spatial locations are interdependent, solving most spatial positioning problems within 3D space. The above method can solve the positioning problem of 3D models within 3D space, meeting positioning requirements of varying accuracy. Attached Figure Description

[0047] Figure 1 The diagram shown is a flowchart of a three-dimensional model construction method provided in an embodiment of the present invention.

[0048] Figure 2 The diagram shown is a schematic diagram of an outdoor spatial positioning process provided by an embodiment of the present invention.

[0049] Figure 3 The diagram shown is a schematic diagram of an outdoor spatial positioning process provided by an embodiment of the present invention.

[0050] Figure 4 The diagram shown is a schematic diagram of an indoor space positioning process provided by an embodiment of the present invention.

[0051] Figure 5 The diagram shown is a schematic diagram of an engineering general drawing provided by an embodiment of the present invention.

[0052] Figure 6 The diagram shown is a schematic diagram of an architectural drawing provided in an embodiment of the present invention.

[0053] Figure 7 The diagram shown is a schematic representation of the influence range of a device according to an embodiment of the present invention.

[0054] Figure 8 The diagram shown is a schematic representation of the device connection relationship according to an embodiment of the present invention.

[0055] Figure 9The diagram shown is a schematic representation of the spatial correspondence between a terminal device and an embodiment of the present invention.

[0056] Figure 10 The diagram shown is a structural schematic of a three-dimensional model building device provided in an embodiment of the present invention. Detailed Implementation

[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0058] This embodiment provides a method for constructing a three-dimensional model, such as Figure 1 As shown, the three-dimensional model construction method includes:

[0059] Step 01: Based on the mapping relationship between latitude and longitude data of the geographic information system and coordinate data in three-dimensional space, obtain the outdoor location information of each first object in three-dimensional space, wherein the first object includes buildings.

[0060] Optionally, the first object may include buildings, public facilities, special facilities, etc., and may also include various non-man-made natural attractions, such as mountains, rivers and lakes.

[0061] Step 02: Obtain a preset architectural reference map corresponding to the building, and obtain the indoor position information of each second object in the building relative to the building based on the preset architectural reference map.

[0062] Optionally, the second object is a device, such as a camera or sensor.

[0063] Step 03: Based on the outdoor position information of each of the first objects in the three-dimensional space and the indoor position information of each of the second objects relative to the building, obtain the object position information of each of the second objects in the three-dimensional space;

[0064] Step 04: Construct a three-dimensional model based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space.

[0065] In one embodiment of the present invention, common POIs (Points of Interest) for locating outdoor spaces in three-dimensional space can be selected from large, locatable buildings, public facilities, special facilities, etc., and their latitude and longitude coordinates can be obtained through GIS (Geographic Information System or Geo-Information System) data.

[0066] like Figure 2 As shown, the steps for obtaining the outdoor location information of each first object in three-dimensional space based on the mapping relationship between coordinate data from a geographic information system and coordinate data in three-dimensional space include:

[0067] Step 011: Obtain the reference latitude and longitude data of the first preset reference point in the geographic information system, and obtain the first reference coordinate data of the first preset reference point in the three-dimensional space. First, select a point in the three-dimensional space as the first reference point, and obtain the latitude and longitude coordinates of the first reference point as the reference latitude and longitude coordinates based on the GIS data. The relationship between the latitude and longitude coordinates and the actual distance is determined, i.e., a change of 0.00001 degrees in latitude and longitude represents the actual coordinate difference.

[0068] For static objects, their latitude and longitude coordinates can be obtained. For dynamic objects, their latitude and longitude coordinates need to be pushed to the backend in real time.

[0069] Step 012: Obtain the comparative latitude and longitude data of each of the first objects in the geographic information system. After obtaining the latitude and longitude coordinates of the first object, calculate the relative difference between the latitude and longitude coordinates of the first object and the reference point in three-dimensional space. Based on the actual distance represented by the difference in latitude and longitude coordinates, the relative coordinates of the first object and the reference point in three-dimensional space can be calculated.

[0070] Step 013: Calculate the geographical distance between each of the first objects and the first preset reference point based on the reference latitude and longitude data and the comparison latitude and longitude data.

[0071] Step 014: Based on the mapping relationship between the latitude and longitude data of the geographic information system and the coordinate data in the three-dimensional space, the first reference coordinate data, and the geographic distances, obtain the outdoor location information of each of the first objects in the three-dimensional space. The specific location coordinates of the object in the three-dimensional space can be determined by adding the relative coordinates to the position of the reference point. The specific calculation formula is as follows:

[0072] P x (x,y)=(L x (lang,lati)-L b (lang,lati))×Δ(x,y)+Pb (x, y)

[0073] Where: L b (lang, laati) are the latitude and longitude of the reference point, P b (x, y) are the specific coordinates of the reference point in three-dimensional space, Δ(x, y) is the actual coordinate difference represented by latitude and longitude, and P x (x, y) are the specific coordinates of a three-dimensional object in three-dimensional space.

[0074] In this embodiment, the method for outdoor spatial positioning is referenced. Figure 3 As shown, when creating a 3D model, the modeler needs to obtain the location and outline information of the outdoor space based on satellite maps and GIS data. The GIS data is used to generate the approximate outline of the building, and then the 3D modeling software extrudes the corresponding basic model based on the outline. Since the 3D model itself has relative positional relationships, the location information of corresponding points in the outdoor space can be obtained based on the relative mapping relationship between the GIS data and the dimensions of the 3D model. Generally, it is necessary to first determine the latitude and longitude information of the 3D model's reference point, then determine the actual 3D distance corresponding to the latitude and longitude difference, calculate the relative distance between the point to be located and the reference point in the 3D model, and determine the relative position of the point in 3D space based on the latitude and longitude difference. This method mainly uses the latitude and longitude of the point to accurately locate the specific position of the 3D model and can be applied to dynamically moving 3D points, such as vehicles and people. The relative values ​​of 3D objects within the 3D engine can be determined by calculating the relative values ​​of latitude and longitude; it can also accurately locate static landmark points.

[0075] In one embodiment of the present invention, indoor equipment includes, for example, cameras, sensors (temperature and humidity sensors, environmental sensors, pressure sensors, flow sensors), etc. The amount of data generated by indoor equipment is enormous. Manually drawing numerous equipment models by 3D modelers is a time-consuming and error-prone task. To reduce the workload of 3D modelers, the location of indoor equipment can be obtained through CAD, and a 3D model can be dynamically generated in 3D space based on the location information obtained from the CAD. For example, CAD drawings for a park typically include general engineering plans (such as...). Figure 5 (as shown) and the corresponding floor plan (as shown) Figure 6 (As shown). The coordinates of the equipment in the park can be determined based on the relative coordinates of the equipment within the floor and the relative coordinates of the floor relative to the overall building plan, which is a three-dimensional spatial transformation.

[0076] When 3D modelers create accurate 3D models, they need to determine the specific location of each building based on the overall architectural plan and determine the internal structure of the 3D building based on the CAD drawings.

[0077] refer to Figure 4As shown, the step of obtaining the indoor position information of each second object within the building relative to the building based on the preset architectural reference drawing includes:

[0078] Step 021: Obtain the drawing coordinate data of the second preset reference point in the preset architectural reference drawing, and obtain the second reference coordinate data of the second preset reference point in the three-dimensional space. The preset architectural reference drawing includes a site plan and architectural drawings, which can be CAD drawings, wherein each architectural drawing corresponds to one of the buildings in the site plan.

[0079] The step of obtaining the drawing coordinate data of the second preset reference point in the preset architectural reference drawing includes: obtaining the drawing coordinate data of the second preset reference point in the engineering general drawing. A reference point in the CAD general drawing can be selected as the second preset reference point, and the drawing coordinate data of the second preset reference point in the CAD general drawing can be obtained.

[0080] Step 022: Obtain the object coordinate data of each of the second objects in the preset architectural reference drawing. Optionally, the second object is a device.

[0081] The step of obtaining the object coordinate data of each of the second objects in the preset architectural reference drawing includes:

[0082] Step 0221: Obtain the building coordinate data of each building within the overall engineering drawing. After selecting a second preset reference point within the overall engineering drawing, determine the relative coordinates of each building with respect to the second preset reference point. The points selected for each building are generally regular landmarks of the building, such as the four corners of the building. If the building is irregular, points can be selected based on relatively fixed points within the building, such as a structural column, thus ensuring a definite location within each building.

[0083] Step 0222: Obtain the architectural coordinate data of each of the second objects in the corresponding architectural drawing; each device is drawn in CAD by blocks, generally with a fixed XY coordinate. This allows the position coordinates of the device relative to the building floor reference point to be determined in the architectural CAD based on the floor reference point. Different types can also retain type data in the device's data object.

[0084] The step of obtaining the indoor position information of each second object within the building relative to the building based on the preset architectural reference drawing further includes: obtaining the floor information of each second object within the corresponding building, and obtaining the height data of each second object based on the floor information. The height information of the equipment cannot be determined in CAD and needs to be determined in three-dimensional space. After the horizontal coordinates of each device are determined, the height coordinates of the equipment need to be determined according to the floor height and uniformly labeled with the determined values. The reference point for selecting the floor is generally determined based on the reference point selected for the building, thus determining the precise relative position of the building and the floor.

[0085] Step 0223: Based on the building coordinate data and the building interior coordinate data, obtain the object coordinate data of the second object in the overall engineering drawing.

[0086] Step 023: Calculate the coordinate distance between each of the second objects and the second preset reference point based on the coordinate data of the drawing and the coordinate data of the object.

[0087] Step 024: Based on the second reference coordinate data and each of the coordinate distances, obtain the object position information of each of the second objects in the three-dimensional space.

[0088] The step of obtaining the object position information of each second object in the three-dimensional space based on the second reference coordinate data and each of the coordinate distances includes: obtaining the object position information of each second object in the three-dimensional space based on the second reference coordinate data, each of the coordinate distances and each of the height data.

[0089] Based on the second preset reference point selected in the overall engineering drawing, determine the coordinate position of the second preset reference point in 3D space. Then, based on the relative position between the second preset reference point and each building, determine the relative position coordinates of each building in 3D space. There will be a deviation between each floor reference point and the building reference point, which needs to be fine-tuned according to the specific 3D model. This deviation can be determined manually; adding the deviation coordinates to the building coordinates of the 3D model gives the horizontal coordinates of each floor. Then, based on the position of each piece of equipment relative to the floor reference points, determine the relative position of each piece of equipment relative to the 3D model of each floor. Adding the relative position to the horizontal reference coordinates of each floor gives the coordinates of each piece of equipment.

[0090] The location of each device will be coded according to its type. The basic information and location information of each device will be written into the database or backend, so that the location of each device can be located and the basic information of the device can be viewed at any time.

[0091] The specific calculation formula is as follows:

[0092] P Bn (x,y)=P B0 (x,y)+Δ′ Bn (x,y)

[0093] P Ln (x,y)=P Bn (x,y)+Δ′ Ln (x,y)

[0094] P En (x,y)=P Ln (x,y)+Δ′ En (x,y)

[0095] Where: P Bn (x, y) are the coordinates of each building in three-dimensional space, P B0 (x, y) are the coordinates of the building reference point in three-dimensional space, Δ′ Bn (x, y) represents the relative positions of each building to the reference point on the CAD site plan, as determined by the CAD site plan. Ln (x, y) are the coordinates of each floor in three-dimensional space, Δ′ Ln (x, y) represents the position of each floor relative to the building. This needs to be determined individually for each floor, especially for irregularly shaped floors. Δ′ En (x, y) are the relative coordinates of each piece of equipment relative to the floor reference point, as determined in the floor CAD. En (x, y) are the final horizontal coordinates of each device in three-dimensional space.

[0096] Once the horizontal coordinates of each device are determined, the height coordinates need to be determined based on the floor height. These should be uniformly labeled with fixed values. After the device locations are determined, models of each device can be dynamically generated based on their positions and ultimately displayed in 3D space. After the device models are generated, there may be deviations. If these deviations are due to floor levels, the deviation value Δ′ between the floor and the building can be adjusted. Ln (x, y), if the equipment is not positioned correctly, the deviation value Δ′ of the building relative to the floor can be adjusted. En (x, y) is used to determine the appropriate device location, and the final device is updated in the database or backend.

[0097] In this embodiment, the method for locating indoor devices is relevant to applications such as those in industrial parks, which often require a large number of monitoring devices. During park maintenance, 3D modelers need to draw all the devices (e.g., cameras, sensors (temperature and humidity sensors, flow sensors, etc.), a repetitive task that leads to low efficiency. The data for these devices typically comes from CAD drawings, which usually indicate the specific locations of various devices, such as cameras and sensors. CAD drawings generally include site plans and individual floor plans. To obtain the specific location of each device in 3D space, a reference point for each floor is first selected. Based on this reference point, the relative coordinates of each device with respect to that floor's reference point are obtained. Then, based on the site plan... To obtain the position of each building relative to the center point of the site plan, for standard floors, the floor positions are relatively consistent; for irregularly shaped buildings, the floor positions need slight adjustments. This allows the position of various equipment relative to the center point of the site plan to be determined. The position information of each piece of equipment, along with other information, from the CAD drawings is written into the database. Based on the relative positional relationship between the building origin in the CAD site plan and the origin in the 3D engine, the location of each piece of equipment can be accurately determined. This eliminates the need to draw models of all equipment within each floor; instead, the corresponding equipment models are automatically generated based on the position information in the database. The equipment information is also stored in the database for easy matching, significantly reducing the modeling work for modelers and enabling rapid project deployment.

[0098] In one embodiment of the present invention, within a three-dimensional space, the indoor space serves as the model foundation and data source for space management, requiring a realistic reconstruction of all three-dimensional spaces. Spatial coding can be used for positioning, distinguishing between specific coding types to obtain a specific spatial location or a type of spatial location, such as locating a specific room, a room for a specific purpose, an employee's workstation, or the location of special equipment.

[0099] After the step of obtaining the outdoor location information of each first object in three-dimensional space by mapping the latitude and longitude data of the geographic information system to the coordinate data in three-dimensional space, the method further includes:

[0100] Step 051: Obtain the segmentation and encoding information of each of the first objects. Each region is divided using spatial encoding. The indoor space model can be cut into enclosed areas such as rooms according to the floor slab. The specific segmentation level needs to be determined according to business requirements. For example, if it is only necessary to locate to the room level, the floor slab segmentation only needs to be divided to the room level. If it is necessary to locate to a specific workstation or an indoor parking space, it needs to be segmented according to the workstation.

[0101] Step 052: Associate the partitioning information, encoding information, and outdoor location information of each of the first objects, and store the associated partitioning information, encoding information, and outdoor location information of each of the first objects. After dividing the first objects into different spaces, the remaining spaces, such as corridors, staircases, and other public spaces, can be divided into different parts separately. For example, an L-shaped corridor can be divided into regular rectangular sections according to relative areas. After space partitioning, the model needs to be encoded. The encoding can be differentiated by type or by purpose. The differentiation strategy can be determined according to actual business needs.

[0102] For example, the following methods can be used in the spatial coding of the park:

[0103] Strategy A: Park - Building - Floor - Room, Code: XXXXXX-X01-F001-RM001(CO001)

[0104] Strategy B: Park-Building-Floor-Room-Workstation Code, Code:

[0105] XXXXXX-X01-F001-RM001-100001

[0106] Strategy C: Park - Building - Floor - Use - Room, Code:

[0107] XXXXXX-X01-F001-XXXX-RM001

[0108] Strategy D: Park - Zone - Building - Floor - Room - Purpose, Code:

[0109] XXXXXX-A-X01-F001-RM001-XXXX

[0110]

[0111] RM stands for room, CO stands for hallway, etc.

[0112] Model coding, implemented within the editor, involves naming 3D objects. After coding, the model's coded data is written to the database, along with its basic information such as dimensions, material, area, and components. For example, to obtain the specific location of an employee, one can search the database for a spatial code containing that employee's ID, and then locate the specific 3D position based on that spatial code.

[0113] In this embodiment, the method for locating indoor spaces involves dividing the space according to factors such as region, building, floor, and usage category. To pinpoint the specific location of a space, it can be coded. The coding rules need to be designed based on the space division strategy. The divided models are named according to their codes, and the model codes are written into a database. The database records the model code and other relevant information, thus establishing a correspondence between the model and the database. To locate a specific space, one only needs to retrieve the model based on the code and obtain the space information from the database for display. This method can be applied to any application requiring spatial positioning; the coding strategy needs to be designed according to specific requirements.

[0114] In one embodiment of the present invention, a method for locating the influence area of ​​a three-dimensional spatial indoor device is described, with reference to... Figure 7 As shown, the area of ​​influence of a device defines its scope of impact. Devices are connected via connectors, and the influence can be extended based on the logical relationships of these connections. Connectors typically include terminals, such as air purifiers or electrical outlets. The scope of influence is ultimately determined by the logical connection relationships between the device, its connector, its terminal, and the space where the terminal is located. If a terminal within a certain range malfunctions, the device at that terminal can be located and controlled within the 3D engine, thus establishing a complete operational chain that can be applied to any maintenance system.

[0115] The control terminal and the device terminal generally have a tree-like logical relationship, and the logical relationship of the tree structure can be determined by the connection points of the model.

[0116] In 3D modeling software (such as Revit), connections are represented by lines. For example, a pipe-like connection is typically represented by two points and a line. A model usually has multiple connection points, and each connection point contains multiple connected components. For example... Figure 8 As shown, connection 1 is the initial connection. Connection 1 contains two connection points, 1 and 2. Connection point 1 contains one connection 1. Connection point 2 contains two connections: connection 1 and connection 2. Connection 2 also contains two connection points: point 2 and point 3. Connection point 3 contains three connections: connection 2, connection 3, connection 5, and so on. Connection 4 has connection point 1 and a connection terminal. The terminal corresponds to a specific space. Thus, the spatial range affected by the terminal can be determined from connection 1 based on the connection relationship. This logical relationship of connections needs to be obtained within the corresponding 3D modeling software; the 3D model itself does not possess logical connection relationships.

[0117] After the step of obtaining the object position information of each second object in the three-dimensional space based on the outdoor position information of each first object in the three-dimensional space and the indoor position information of each second object relative to the building, the method further includes:

[0118] Step 061: Select the initial connector of the second object. Based on the connection point of the initial connector, obtain the next connector that connects to the initial connector. Recursively process each branch to form a tree structure until the connection point reaches the next level connector as the end. For example, select the initial connector P1 (connection 1). Generally, the initial connector can be the connection object of the control end. According to the connection point (point 2) of the initial connector, the object connected to point 2 is connection 1. If the object connected to the connection point is equal to its parent connector, skip it. In this way, the next connector of point 2 is determined to be connection 2, that is, the next node of connector 1 is connection 2.

[0119] Step 062: Save the data of each connector to the database and mark the end connector; save the data of each connector to the database. Optionally, the connector data includes the connector's own ID, its parent connector ID, and its child connector ID. If the connector is an end connector, it needs to be marked as an end connector.

[0120] Step 063: In the three-dimensional space, place the connectors and buildings according to their actual positions, traverse all the connectors, and query the database to see if the connector is an end connector; if a connector with multiple connection points is encountered, such as point 3, point 3 has multiple connectors, and the next level connector of connection 2 has two: connection 3 and connection 5, and so on, recursively traversing each branch to form a tree structure.

[0121] Step 064: If yes, emit a ray from the center point of the end connector. The space where the object is located is obtained based on the object the ray collides with. The space corresponding to the end connector is then determined based on the space where the object is located. After determining all ends, the space corresponding to each end needs to be obtained within the 3D engine. Within the 3D engine, place the connectors and buildings according to their actual positions, traverse all connector models, and query the database to see if they are marked as ends. If a connector is marked as an end, emit a ray from the center point of the end within the 3D engine. The object that the ray can collide with is the space where that object is located, thus determining the space corresponding to the end. Once the space corresponding to the end is determined, write it into the database. This connects the logical relationships of the entire link through the database. When a connector forms a loop, it can cause an infinite loop during traversal. In this case, it is necessary to manually delete a specific connection. When there is no gap between the end and its space, the space where the end is located cannot be detected, requiring manual raising of the end model's position.

[0122] To determine the influence range of a device, first query its child connected objects, then query the child connected objects of those child connected objects, and so on, until you encounter the end node. Based on the space corresponding to that end node, you can obtain the influence range of the device. Conversely, if a problem occurs within a certain area, you can query the end node within that area, query the parent connected object connected to that end node, and traverse upwards until you reach the root node. This will identify the device controlling that space, establishing a bidirectional logical relationship. (See reference...) Figure 9 As shown.

[0123] In this embodiment, regarding the method for locating the affected areas of equipment, the 3D models exist independently within the 3D engine, with no specific logical relationships between them. However, within the park's operation and maintenance system, it is necessary to clearly understand the affected areas and ranges of each device. This necessitates determining the logical relationships between the devices and their connections. For example, in the control area of ​​a hot and cold water valve, if a room experiences a leak, the valve needs to be shut off, requiring rapid and accurate location of the valve. Similarly, in the control area of ​​a fresh air system, typically after the building's design is completed, maintenance personnel cannot accurately pinpoint the affected area. Creating a digital twin within the 3D engine requires clearly understanding the affected areas of each device, and then using these affected areas to reverse-engineer the location of each control device. To determine the affected areas of various devices within the 3D engine, the logical relationships between the device connections can be used to determine the affected areas based on the endpoints. For example, valves are connected to pipes. Once the connection relationships of the pipes are determined, the area controlled by the valve can be identified based on the area corresponding to the end of the pipe. Similarly, in a fresh air system, fresh air ducts are the connecting elements. After determining the logical relationships of these connections, the control area of ​​the fresh air system can be determined based on the fresh air unit. In an energy system, distribution cabinets and power lines are the connecting elements. Determining the logical relationships of the power lines and the sockets as the endpoints allows us to determine the area affected by the distribution cabinet. Identifying the impact area of ​​each device allows for a better understanding of its control range. When a problem occurs in a certain area, the specific affected device can be located in reverse, allowing for rapid resolution of the problem in that area.

[0124] This embodiment provides a three-dimensional model construction device 100, such as Figure 10 As shown, the 3D model construction device includes an acquisition module 10, a processing module 20, and a construction module 30. Wherein,

[0125] Module 10 is used to acquire a preset architectural reference drawing corresponding to the building;

[0126] Processing module 20 is used to obtain the outdoor location information of each first object in three-dimensional space based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, wherein the first object includes a building; to obtain the indoor location information of each second object in the building relative to the building based on the preset building reference map; and to obtain the object location information of each second object in the three-dimensional space based on the outdoor location information of each first object in the three-dimensional space and the indoor location information of each second object relative to the building.

[0127] The construction module 30 is used to construct a three-dimensional model based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space.

[0128] This embodiment provides an electronic device that may include a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the three-dimensional model construction method described in the above embodiment. It is understood that the electronic device may also include an input / output (I / O) interface and communication components.

[0129] The processor is used to execute all or part of the steps in the 3D model construction method as described in the embodiments. The memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.

[0130] The processor can be implemented as an Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), controller, microcontroller, microprocessor, or other electronic components, and is used to execute the three-dimensional model construction method in the above embodiments.

[0131] The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0132] This embodiment also provides a computer-readable storage medium. The functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0133] Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0134] The aforementioned storage media include: flash memory, hard disks, multimedia cards, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disks, optical discs, servers, APP application stores, and various other media capable of storing program verification codes, on which computer programs are stored. When the computer program is executed by a processor, it can implement the following method steps:

[0135] Step 01: Based on the mapping relationship between latitude and longitude data of the geographic information system and coordinate data in three-dimensional space, obtain the outdoor location information of each first object in three-dimensional space, wherein the first object includes buildings;

[0136] Step 02: Obtain a preset architectural reference map corresponding to the building, and obtain the indoor position information of each second object in the building relative to the building based on the preset architectural reference map;

[0137] Step 03: Based on the outdoor position information of each of the first objects in the three-dimensional space and the indoor position information of each of the second objects relative to the building, obtain the object position information of each of the second objects in the three-dimensional space;

[0138] Step 04: Construct a three-dimensional model based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space.

[0139] The specific implementation methods and effects can be referred to in the above embodiments, and will not be repeated here.

[0140] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention. It will be clearly understood by those skilled in the art that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0141] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0142] The basic principles of this application have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in this application are merely examples and not limitations, and should not be considered as essential features of each embodiment of this application. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the application to the necessity of employing the aforementioned specific details for implementation.

[0143] The block diagrams of devices, apparatuses, devices, and systems involved in this application are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner.

[0144] It should also be noted that in the apparatus, equipment, and methods of this application, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of this application.

[0145] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use this application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of this application. Therefore, this application is not intended to be limited to the aspects shown herein, but rather to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0146] In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified. All directional indications (such as up, down, left, right, front, back, top, bottom, etc.) in the embodiments of this application are only used to explain the relative positional relationships and movement of the components in a specific posture (as shown in the figures). If the specific posture changes, the directional indication will also change accordingly. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices.

[0147] Furthermore, the reference to "embodiment" herein means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0148] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims. The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for constructing a three-dimensional model, characterized in that, include: Based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, the outdoor location information of each first object in three-dimensional space is obtained, wherein the first object includes buildings; Obtain a preset architectural reference map corresponding to the building, and obtain the indoor position information of each second object in the building relative to the building based on the preset architectural reference map; Based on the outdoor position information of each of the first objects in the three-dimensional space and the indoor position information of each of the second objects relative to the building, the object position information of each of the second objects in the three-dimensional space is obtained. A three-dimensional model is constructed based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space. After the step of obtaining the object position information of each second object in the three-dimensional space based on the outdoor position information of each first object in the three-dimensional space and the indoor position information of each second object relative to the building, the method further includes: Select the initial connector of the second object, and obtain the next connector that connects to the initial connector based on the connection point of the initial connector. Recursively process each branch to form a tree structure until the connection point reaches the next level connector as the end. Data for each connector is saved to a database, and the end connectors are tagged; Within the three-dimensional space, the connectors and buildings are placed according to their actual positions. All the connectors are traversed, and the database is queried to determine whether the connector is an end connector. If so, a ray is emitted from the center point of the end connector, the space where the object is located is obtained based on the object that the ray collides with, and the space corresponding to the end connector is determined based on the space where the object is located.

2. The three-dimensional model construction method according to claim 1, characterized in that, The step of obtaining the outdoor location information of each first object in three-dimensional space by mapping coordinate data based on geographic information system coordinate data to coordinate data in three-dimensional space includes: Obtain the reference latitude and longitude data of the first preset reference point in the geographic information system, and obtain the first reference coordinate data of the first preset reference point in the three-dimensional space; Obtain the comparative latitude and longitude data of each of the first objects in the geographic information system; Based on the reference latitude and longitude data and the comparison latitude and longitude data, the geographical distance between each of the first objects and the first preset reference point is calculated; Based on the mapping relationship between the latitude and longitude data of the geographic information system and the coordinate data in the three-dimensional space, the first reference coordinate data, and the geographic distances, the outdoor location information of each of the first objects in the three-dimensional space is obtained.

3. The three-dimensional model construction method according to claim 1, characterized in that, The step of obtaining the indoor position information of each second object within the building relative to the building based on the preset building reference map includes: Obtain the drawing coordinate data of the second preset reference point in the preset architectural reference drawing, and obtain the second reference coordinate data of the second preset reference point in the three-dimensional space; Obtain the object coordinate data of each of the second objects in the preset building reference drawing; Based on the coordinate data of the drawing and the coordinate data of the object, the coordinate distance between each of the second objects and the second preset reference point is calculated; Based on the second reference coordinate data and each of the coordinate distances, the object position information of each of the second objects in the three-dimensional space is obtained.

4. The three-dimensional model construction method according to claim 3, characterized in that, The preset architectural reference drawing includes a general engineering drawing and an architectural drawing, and each architectural drawing corresponds to a building in the general engineering drawing; The step of obtaining the drawing coordinate data of the second preset reference point in the preset architectural reference drawing includes: Obtain the drawing coordinate data of the second preset reference point in the overall engineering drawing; The step of obtaining the object coordinate data of each of the second objects in the preset architectural reference drawing includes: Obtain the building coordinate data of each of the aforementioned buildings within the general engineering drawing; Obtain the architectural coordinates of each of the second objects within the corresponding architectural drawing; Based on the building coordinate data and the building interior coordinate data, obtain the object coordinate data of the second object in the overall engineering drawing.

5. The three-dimensional model construction method according to claim 3, characterized in that, The step of obtaining the indoor position information of each second object within the building relative to the building based on the preset building reference map further includes: Obtain the floor information of each of the second objects within the corresponding building, and obtain the height data of each of the second objects based on the floor information; The step of obtaining the object position information of each of the second objects in the three-dimensional space based on the second reference coordinate data and each of the coordinate distances includes: Based on the second reference coordinate data, each of the coordinate distances, and each of the height data, the object position information of each of the second objects in the three-dimensional space is obtained.

6. The three-dimensional model construction method according to claim 1, characterized in that, After the step of obtaining the outdoor location information of each first object in three-dimensional space by mapping the latitude and longitude data of the geographic information system to the coordinate data in three-dimensional space, the method further includes: Obtain the segmentation information and encoding information of each of the first objects; The division information, encoding information and outdoor location information of each first object are associated, and the associated division information, encoding information and outdoor location information of each first object are stored.

7. A three-dimensional model construction device, characterized in that, include: The acquisition module is used to acquire preset architectural reference drawings corresponding to the buildings; The processing module is used to obtain the outdoor location information of each first object in three-dimensional space based on the mapping relationship between latitude and longitude data of a geographic information system and coordinate data in three-dimensional space, wherein the first object includes a building; to obtain the indoor location information of each second object in the building relative to the building based on the preset building reference map; and to obtain the object location information of each second object in the three-dimensional space based on the outdoor location information of each first object in the three-dimensional space and the indoor location information of each second object relative to the building. The construction module is used to construct a three-dimensional model based on the outdoor location information of each of the first objects in the three-dimensional space and the object location information of each of the second objects in the three-dimensional space. The processing module is also used to select the initial connector of the second object, obtain the next connector connected to the initial connector based on the connection point of the initial connector, and recursively process each branch to form a tree structure until the connection point reaches the next level connector as the end. Data for each connector is saved to a database, and the end connectors are tagged; Within the three-dimensional space, the connectors and buildings are placed according to their actual positions. All the connectors are traversed, and the database is queried to determine whether the connector is an end connector. If so, a ray is emitted from the center point of the end connector, the space where the object is located is obtained based on the object that the ray collides with, and the space corresponding to the end connector is determined based on the space where the object is located.

8. An electronic device, characterized in that, include: The system includes a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the three-dimensional model construction method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, is used to implement the three-dimensional model construction method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Indoor and outdoor integrated modeling method and device

    CN108090959A

  • A position matching method for a BIM model and a three-dimensional geographic scene

    CN109670005A