Method, device and equipment for linkage between three-dimensional building model and two-dimensional drawing

By establishing a binding relationship between 3D models and 2D drawings in the backend device, and using BIMFACE software for lightweight display and interaction, the problem of linkage between non-same-source and partially same-source drawings and models is solved, realizing the linkage between 3D building models and 2D drawings, and meeting the joint review requirements in the field of engineering and construction.

CN115859431BActive Publication Date: 2026-02-24GLODON CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202211536500.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2026-02-24
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

Existing technologies cannot link 3D building models that are not from the same source or are partially from the same source with 2D drawings, making it impossible to conduct comprehensive joint 2D and 3D review.

Method used

By establishing a binding relationship between 3D model files and 2D drawings through backend devices, lightweight display and interaction are achieved using BIMFACE software. Non-homogeneous model drawings are parsed and matched, and feature point binding relationships are established between model views and drawings to realize component-level and spatial-level linkage.

Benefits of technology

It enables the linkage between 2D drawings and 3D models between non-same-source and partially same-source drawings, meets user review requirements, provides a guarantee for 2D and 3D linkage, and is not limited by drawing modifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115859431B_ABST
    Figure CN115859431B_ABST
Patent Text Reader

Abstract

The application discloses a kind of three-dimensional building model and the linkage method, device, equipment and medium of two-dimensional drawing, the method includes: obtaining the three-dimensional model file of building, and the drawing file of building, the three-dimensional model file and drawing file are sent to backend equipment, the backend equipment is used to establish the binding relationship between model view in the three-dimensional model file and at least one two-dimensional drawing, the model view and at least one two-dimensional drawing are non-homologous graph model or partial homologous graph model;Receive the binding relationship, and according to the view interface of binding relationship display target two-dimensional drawing and model view, receive the click operation of user on view interface;In response to the click operation, determine the target component in the model view, or target graph element on target two-dimensional drawing, and show target component or target graph element, the present method realizes the linkage between non-homologous graph model, partial homologous graph model and two-dimensional drawing and three-dimensional model, satisfies joint examination demand.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, and in particular to a method, apparatus, and equipment for linking three-dimensional architectural models with two-dimensional drawings. Background Technology

[0002] In the field of engineering and construction, two-dimensional construction drawings are typically used to present and deliver architectural design results. However, with the increasing application of BIM (Building Information Modeling) in the construction industry, three-dimensional building models have also emerged as a new structured and digital way to present architectural design results. As digital design advances, digital drawings and models will be comprehensively applied throughout the entire construction process, gradually promoting BIM design and review, and joint review of two-dimensional construction drawings and three-dimensional building models. In the scenario of joint two-dimensional and three-dimensional review, specific technologies are used to link the display of two-dimensional drawings and three-dimensional models. Operations on two-dimensional drawings can automatically trigger interaction with the model; conversely, operations on the model can automatically trigger interaction with the two-dimensional drawings. Through integrated two-dimensional and three-dimensional review, joint review of two-dimensional and three-dimensional design results can be achieved during the construction drawing review stage.

[0003] In related technologies, the implementation schemes for joint 2D and 3D review only address certain cases where the drawing and model share the same origin, and are not applicable to all situations. For example, when 2D drawings exported from building data are modified or edited using drawing design software, the modified 2D drawings and the 3D model are no longer from the same source; that is, the original binding relationship between the two is broken, making joint 2D and 3D review impossible. Furthermore, for models and 2D construction drawings that are not from the same source, joint 2D and 3D review is also impossible because there is no binding relationship between them, thus failing to meet user needs. Summary of the Invention

[0004] This invention primarily addresses the technical problem that some homogeneous or heterogeneous graphic models cannot achieve 2D / 3D linkage. To solve this problem, embodiments of this application provide a method, apparatus, and device for linking 3D architectural models with 2D drawings. Specifically, the following technical solution is disclosed:

[0005] In a first aspect, embodiments of the present invention disclose a method for linking a three-dimensional architectural model with two-dimensional drawings, the method comprising:

[0006] Obtain a 3D model file of the building, as well as a drawing file of the building, the drawing file including at least one 2D drawing of the building;

[0007] The three-dimensional model file and the drawing file are sent to the backend device, which is used to establish a binding relationship between the model view in the three-dimensional model file and at least one two-dimensional drawing. The model view and the at least one two-dimensional drawing are non-same source model or partially same source model.

[0008] The binding relationship is received, and a view interface for displaying the target two-dimensional drawing and the model view is displayed according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing;

[0009] Receive user clicks on the view interface;

[0010] In response to the click operation, a target component in the model view or a target element on the target 2D drawing is determined and the target component or the target element is displayed.

[0011] In conjunction with the first aspect, in one possible implementation of the first aspect, the backend device is used to establish a binding relationship between a model view in the 3D model file and at least one 2D drawing, including: parsing the 3D model file to obtain a model library file, the model library file including at least one set of correspondences, each set of correspondences including a correspondence between a model view and a 2D drawing; in the at least one set of correspondences, searching for a model view that matches at least one 2D drawing in the drawing file; and establishing a binding relationship between the model view in the 3D model file and the at least one 2D drawing based on the feature points of the matching model view and the feature points of the corresponding 2D drawing.

[0012] In conjunction with the first aspect, in another possible implementation of the first aspect, obtaining the three-dimensional model file of the building includes: obtaining the model source file of the building; and using a conversion tool to convert the model source file into the three-dimensional model file, wherein the three-dimensional model file is a zdb model file.

[0013] In conjunction with the first aspect, in another possible implementation of the first aspect, obtaining the building's drawing file includes: modifying and editing the building's drawing file to generate the at least one two-dimensional drawing.

[0014] In conjunction with the first aspect, in another possible implementation of the first aspect, parsing the three-dimensional model file to obtain a model library file includes: extracting and exporting a lightweight model file from the three-dimensional model file to obtain multiple two-dimensional view drawing files; and generating a lightweight two-dimensional view drawing file for each model view according to the multiple two-dimensional view drawing files and the component table in the three-dimensional model file, based on custom view data, wherein the lightweight two-dimensional view drawing file includes a one-to-one correspondence between the primitives in the two-dimensional view drawing and the model components.

[0015] In conjunction with the first aspect, in another possible implementation of the first aspect, establishing the binding relationship based on the feature points of the matching model view and the feature points of the corresponding two-dimensional drawing includes: calculating at least one coordinate transformation matrix between the two-dimensional drawing and the model view based on the feature point coordinates of the model view and the feature point coordinates of the corresponding two-dimensional drawing; and establishing a binding relationship between the model view in the three-dimensional model file and the at least one two-dimensional drawing based on the at least one coordinate transformation matrix.

[0016] In conjunction with the first aspect, in another possible implementation of the first aspect, if the user's click operation on the view interface is a click operation on the target two-dimensional drawing, then determining the target component in the model view in response to the click operation includes:

[0017] If the click operation hits the target graphic element, then the bounding box information corresponding to the target graphic element is obtained;

[0018] Based on the binding relationship between the target 2D drawing and the model view, and the bounding box information, determine the position area of ​​the target graphic element on the model view;

[0019] A target model component is determined in the location region, and the target model component has a mapping relationship with the target primitive;

[0020] Obtain the target component ID from the target model components, and determine the target component based on the target component ID.

[0021] In conjunction with the first aspect, in another possible implementation of the first aspect, determining the target model component in the location region includes: if there is at least one graphic element in the location region, obtaining a set of graphic elements containing the at least one graphic element; and searching for the target model component corresponding to the target graphic element ID in the set of graphic elements contained in the location region according to the correspondence between the target graphic element ID and the model component ID.

[0022] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: if there are no graphic elements in the location region, converting them into corresponding region coordinates in the model based on preset coordinate points in the location region; locating the region coordinates on the view interface and displaying the region location corresponding to the region coordinates.

[0023] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: if the click operation does not hit the target primitive, obtaining the click position based on the click event, the click position being represented by a screen coordinate system; converting the click position represented by the screen coordinate system into coordinates in a model view; determining the corresponding three-dimensional coordinates in the model based on the coordinates in the model view; and performing camera positioning and display on the click position based on the three-dimensional coordinates.

[0024] In conjunction with the first aspect, in another possible implementation of the first aspect, if the user's click operation on the view interface is a click operation in the model view, then determining the target element on the target two-dimensional drawing in response to the click operation includes:

[0025] The component hit by the click operation is obtained, and the component type of the component is determined; if the component type is a spatial component, the bounding box information of the component is obtained, and the bounding box information of the component includes at least one component, and the at least one component forms a component set;

[0026] Based on the conversion relationship between model view primitives and model components, determine the first view primitive set corresponding to the component set;

[0027] Convert the target bounding box information determined in the first view element set into the corresponding bounding box information in the drawing;

[0028] The target primitive is determined based on the bounding box information in the drawing.

[0029] In conjunction with the first aspect, in another possible implementation of the first aspect, the target bounding box information determined in the first view element set is converted into the corresponding bounding box information in the drawing, including:

[0030] Based on the bounding box information of each element in the first view element set, the target bounding box information is determined, wherein the target bounding box is the bounding box with the largest range among all the bounding boxes of all elements in the first view element set; based on the coordinate transformation relationship between the drawing and the view element set, the target bounding box information is converted into the corresponding bounding box information in the drawing.

[0031] In conjunction with the first aspect, in another possible implementation of the first aspect, determining the target graphic element based on the bounding box information in the drawing includes: detecting whether one or more graphic elements exist in the drawing area based on the bounding box information in the drawing; if they exist, determining the one or more graphic elements as the target graphic element.

[0032] In conjunction with the first aspect, in another possible implementation of the first aspect, the method further includes: if the component type is a general-purpose component, then determining the second view element set corresponding to the component based on the conversion relationship between the model view elements and the model component; determining the corresponding drawing element set based on the bounding box information in the second view element set; determining whether the drawing element set contains one or more elements; if yes, determining the one or more elements as the target element; if no, determining the area enclosed by the drawing element set, obtaining the area coordinates, and displaying the area position corresponding to the area coordinates.

[0033] Secondly, embodiments of the present invention also disclose a linkage device between a three-dimensional architectural model and two-dimensional drawings, the device comprising:

[0034] The acquisition unit is used to acquire a three-dimensional model file of the building and a drawing file of the building, wherein the drawing file includes at least one two-dimensional drawing of the building;

[0035] A sending unit is used to send the three-dimensional model file and the drawing file to a back-end device. The back-end device is used to establish a binding relationship between the model view in the three-dimensional model file and at least one two-dimensional drawing. The model view and the at least one two-dimensional drawing are non-same-source models or partially same-source models.

[0036] A receiving unit is used to receive the binding relationship;

[0037] The display unit is used to display a view interface of the target two-dimensional drawing and the model view according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing;

[0038] The receiving unit is also used to receive click operations from the user on the view interface;

[0039] A determining unit is configured to determine, in response to the click operation, a target component in the model view, or a target element on the target two-dimensional drawing, and to display the target component or the target element through the display unit.

[0040] Thirdly, embodiments of the present invention also disclose an electronic device, including a processor and a memory, wherein the memory is coupled to the processor; the memory stores computer-readable program instructions, and when the instructions are executed by the processor, the linkage method between the three-dimensional building model and the two-dimensional drawings described in the first aspect or any implementation thereof is implemented.

[0041] In addition, embodiments of the present invention also disclose a computer-readable storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, it implements the method for linking a three-dimensional building model with two-dimensional drawings as described in the first aspect or any embodiment of the first aspect.

[0042] The linkage method and apparatus provided in this embodiment establish a binding relationship between a 3D model file of a building and at least one 2D drawing through a backend device, and display it on the view interface of a frontend device based on this binding relationship. This enables linkage between the 2D drawing and the 3D model on the frontend device, thereby meeting the user's review requirements. Furthermore, this method is not limited by secondary or tertiary modifications of the drawing, thus enabling the establishment of binding relationships between 2D drawings and 3D models that are not from the same source or are partially from the same source, ensuring 2D / 3D linkage. Attached Figure Description

[0043] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0044] Figure 1A A schematic diagram of a window component provided for an embodiment of the present invention;

[0045] Figure 1B A schematic diagram of a bounding box provided for an embodiment of the present invention;

[0046] Figure 1C An example diagram of two-dimensional and three-dimensional linkage is provided for an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of a two-dimensional and three-dimensional linkage scene provided in an embodiment of the present invention;

[0048] Figure 3 A flowchart illustrating a method for linking a three-dimensional architectural model with two-dimensional drawings, provided in an embodiment of the present invention;

[0049] Figure 4 This is a schematic diagram illustrating how to obtain a 3D model file according to an embodiment of the present invention;

[0050] Figure 5 This is a schematic diagram illustrating a method for binding a three-dimensional building model with two-dimensional drawings, provided in an embodiment of the present invention.

[0051] Figure 6 A flowchart illustrating a method for generating lightweight two-dimensional view drawings according to an embodiment of the present invention;

[0052] Figure 7 A schematic diagram of a zdb model file provided in an embodiment of the present invention;

[0053] Figure 8 A flowchart for establishing a binding relationship is provided as an embodiment of the present invention;

[0054] Figure 9 This is a schematic diagram of a feature point grid data provided in an embodiment of the present invention;

[0055] Figure 10 A flowchart illustrating another method for linking a three-dimensional building model with two-dimensional drawings, provided in an embodiment of the present invention;

[0056] Figure 11 A flowchart of a two-dimensional and three-dimensional linkage method provided in an embodiment of the present invention;

[0057] Figure 12 A flowchart of another two-dimensional and three-dimensional linkage method provided in an embodiment of the present invention;

[0058] Figure 13 A flowchart of another two-dimensional linkage method provided in an embodiment of the present invention;

[0059] Figure 14 A flowchart of another two-dimensional linkage method provided in an embodiment of the present invention;

[0060] Figure 15 A structural block diagram of a linkage device provided in an embodiment of the present invention;

[0061] Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0062] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. 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.

[0063] The technical solution of this application relates to the field of engineering and construction, such as the application of three-dimensional information models in the entire process of engineering and construction, specifically, in the joint review of construction drawings and three-dimensional models during the construction drawing review stage.

[0064] First, let's introduce the technical terms and industry standards relevant to this application.

[0065] 1. Homologous and non-homologous graphics

[0066] "Drawing model" is an abbreviation for two-dimensional construction drawings and three-dimensional architectural models. Two-dimensional construction drawings are also called two-dimensional drawings, and three-dimensional architectural models are also called three-dimensional models.

[0067] The concept of "shared source of drawing and model" refers to 2D drawings and 3D models originating from the same data source; that is, the 2D drawings are derived from views of the 3D model. Conversely, "different source of drawing and model" (or "non-shared source of drawing and model") means that the 2D drawings and 3D models do not originate from the same data source; that is, the 2D drawings are not derived from views of the 3D model. For example, if the source file of the 3D model is obtained from original building information / data, and the source file of the 2D drawing is derived from the 3D model source file and then modified or edited, the modified 2D drawing and the 3D model are not from the same source. Furthermore, if the 2D drawing is derived from another model (not the 3D model source file) or directly from the original building information / data, then the two also fall under the category of "non-shared source of drawing and model."

[0068] 2. BIMFACE software

[0069] BIMFACE software is a lightweight BIM (Building Information Modeling) engine with completely independent intellectual property rights. Software developers in the construction industry can carry out secondary development on the basic functions provided by BIMFACE to provide end users with richer and more valuable BIM applications.

[0070] BIMFACE software features engineering file format conversion, lightweight model / drawing display, and BIM data management. For example, it supports cloud-based conversion of over fifty engineering file formats without requiring plugins, fully preserving the original file information; it allows direct opening of models / drawings on browsers, mobile phones, and tablets without installing specialized software, maximizing model size compression and minimizing CPU, memory, and graphics card overhead. Furthermore, it supports structured cloud storage of massive amounts of BIM data (such as component information, spatial information, and view information), making data retrieval convenient and fast.

[0071] The technical solution of this invention uses the BIMFACE software to achieve lightweight display of two-dimensional drawings and three-dimensional models, and interactive effects between drawings and models.

[0072] 3. Component

[0073] In BIMFACE, all models are composed of a finite number of components. The total number of components for a model can be viewed using the "Basic Information" button in the default toolbar. A component is intuitively the smallest unit that a user can select, such as... Figure 1A For example, windows in a 3D model are composed of individual components.

[0074] In addition to geometric information, components also have component ID, bounding box information, component details, and other information. Clicking on a component will display its component ID (elementId) and bounding box information in the console. In Revit software, each component has a unique ID (referred to as "componentId" in BIMFACE).

[0075] 3. Bounding Box

[0076] A bounding box is a regular cube, representing the largest boundary of an object (a model, a component, or a group of components) in a view; or, more specifically, the smallest rectangular or cuboid boundary enclosing a drawing element or model component in a plane or space. For example... Figure 1B As shown. Generally, the data structure of a BoundingBox consists of two three-dimensional coordinates [x, y, z], which are the coordinates of the lower left corner and the upper right corner of the bounding box, respectively.

[0077] For example, the configuration could be: {"min":{"x":20174.19735877,"y":60867.4780141,"z":2946.2499989},

[0078] "max":{"x":20824.19735877,"y":61517.4784042,"z":3046.2499989}}.

[0079] Alternatively, primitives can also be positioned using bounding boxes.

[0080] 4. Two-dimensional and three-dimensional linkage

[0081] During construction handover, construction is coordinated based on the layout of the 2D drawing platform and the visualization of the 3D model. In Revit, 2D drawings generated from the model can be linked with the 3D model; BIMFACE enables this functionality on the web. This functionality includes: clicking on a component in the 2D drawing will locate and highlight the component in the 3D model, and vice versa. For example... Figure 1CAs shown, clicking on a parking space component in the 3D model on the left side of the view will highlight the corresponding parking space area in the 2D drawing on the right side.

[0082] In addition, the planar layout of two-dimensional drawings, the spatial topology of three-dimensional models, and visualization work together to facilitate the review of two-dimensional drawings, three-dimensional models, and various components in the overall building structure.

[0083] In related technologies, 2D / 3D linkage solutions only address certain cases of models and drawings originating from the same source, failing to cover most application scenarios. For example, 2D / 3D linkage cannot be achieved between models and drawings that are not from the same source. Furthermore, even with models and drawings from the same source, if the exported 2D drawing is modified and edited using drawing design software (becoming a new 2D drawing), it becomes a different source from the 3D model, making 2D / 3D linkage impossible.

[0084] Furthermore, current 2D / 3D linkage is limited to situations where corresponding components exist in both 2D drawings and 3D models. When components do not have corresponding counterparts, 2D / 3D linkage is not possible. For example, if a room component in the model has no corresponding element in the 2D drawing, linkage is not possible; consequently, spatial-level joint review is also impossible.

[0085] This application provides a solution for enabling 2D and 3D linkage review of non-same-source or partially same-source drawing models. It binds the relationship between independent 2D drawings and 3D architectural models. The system automatically parses and matches non-same-source 3D models and 2D drawings, thereby establishing an association between the 2D drawing and a specific view of the 3D model. Combined with the connection between the model and its view (2D drawing), it creates a pathway between the 2D drawing and the 3D model, thus achieving component-level linkage, spatial-level linkage, and linkage of special spatial components between same-source and non-same-source drawing models.

[0086] The technical solutions provided in the embodiments of this application will be described in detail below.

[0087] The technical solution of this application can be applied to a network system, such as Figure 2 As shown, the network system includes a server 100 and a client 200, wherein the server 100 and the client 200 are connected via a network. Furthermore, the server 100 can be a standalone server, a server cluster consisting of multiple servers, or a server providing basic cloud computing services such as cloud services / cloud computing, data centers, web servers, network services, cloud communication, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0088] Client 200 includes at least one terminal device, or user equipment (UE), which includes, but is not limited to, various personal computers (PCs), laptops, smartphones, tablets, and portable wearable devices. Figure 2 As shown, at least one UE includes: a laptop (UE1), a desktop computer (UE2), and a mobile phone (UE3).

[0089] In addition, the network connecting server 100 and client 200 can include various connection types, such as wired and wireless communication links, such as wireless local area network (WLAN) or fiber optic cable, etc.

[0090] It should be understood that the network system described above may also include other devices or apparatuses, such as switches, and this embodiment does not impose any limitations on this.

[0091] Additionally, it should be noted that this system is designed to process design models and design drawing files generated during the architectural design process. Design models are 3D architectural models, and design drawings are 2D drawings. The generation process of 3D architectural models and 2D drawings is not detailed here; users / clients can use design tools to generate them during the production process. The 3D architectural model files and 2D drawing files do not need to originate from the same source; this application does not impose any restrictions on this.

[0092] This embodiment provides a method for linking a three-dimensional building model with two-dimensional drawings. This method can be executed by a front-end device, such as a client or a web page. Figure 3 As shown, the method includes:

[0093] Step 101: Obtain the three-dimensional model file of the building and the drawing file of the building, the drawing file including at least one two-dimensional drawing of the building.

[0094] The 3D model file is generated by a conversion tool, and the drawing file can also be called a drawing source file. At least one 2D drawing can be generated by a lightweight conversion of the drawing source file. The conversion tool can be a zdb converter or a zdb conversion tool.

[0095] Specifically, one method for obtaining a 3D model file of a building is as follows: the client uses a zdb converter to convert the source model file of the building to generate the 3D model file. This converted 3D model file is either a zdb model file or zdb model data. Furthermore, the source model file supports rvt / bdv formats.

[0096] like Figure 4As shown, the client uses a zdb converter to read and parse the 3D model source file of the building, converting it into zdb format model data according to component specifications, and then exporting the zdb model file. During the export process, the user can customize the drawing name corresponding to each view of the model source file. Furthermore, it should be understood that the front-end device can also utilize other installed software to achieve the function of converting model source files into zdb model files.

[0097] After logging into the system via a webpage, the front-end device uploads the generated and exported 3D model file to the back-end server or network system based on user operation. Correspondingly, the back-end server / network system receives the 3D model file sent by the front-end device.

[0098] In step 101 above, the front-end device can also perform lightweight conversion on the building's drawing source file to generate at least one two-dimensional drawing. The drawing source file can be obtained by editing a third-party drawing and design tool.

[0099] Lightweight conversion is a well-known concept in the BIM industry. It can be understood as converting data into model data suitable for browser rendering, including geometric data and industry data, etc. In this embodiment, one or more 2D drawings after lightweight conversion can be displayed on a web page (such as a browser). It should be noted that in this embodiment, both front-end and / or back-end devices can display the lightweight converted 2D drawings through BIMFACE software.

[0100] Step 102: Send the 3D model file and the drawing file to the backend device, the backend device being used to establish a binding relationship between the model view in the 3D model file and at least one 2D drawing.

[0101] Among them, at least one two-dimensional drawing can be a drawing file that has been modified two or three times, and its relationship with the model view in the model source file is that it is partially the same source model or not the same source model.

[0102] Correspondingly, the backend device, such as the server, receives the 3D model file and at least one 2D drawing from the frontend device. This embodiment does not limit the order in which the 3D model file and at least one 2D drawing are obtained, nor does it limit the method of acquisition. The data can be obtained from one client or from different clients.

[0103] After the backend device establishes the binding relationship, it sends the binding relationship to the frontend device.

[0104] Step 103: Receive the binding relationship and display the view interface of the target two-dimensional drawing and the model view according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing.

[0105] Specifically, the process includes: moving the mouse within the 3D model view window, selecting a component in the 3D model view, and obtaining the component's ObjectId; then using the getDrawingListById() method to obtain the component's view location in the model based on the component's ObjectId, and obtaining a view list sheetList. If multiple views contain the component, a view is randomly selected from the sheetList, such as the first view sheet1; finally, based on the first view sheet1 and the binding relationship between the 2D drawing and the 3D model view obtained in step 102, the corresponding 2D drawing drawing1, i.e., the target 2D drawing, is obtained and rendered. This method can find a suitable and desirable drawing among multiple 2D drawings as the target 2D drawing, and then display it together with the 3D model view in the view interface.

[0106] Step 104: Receive the user's click operation on the view interface.

[0107] The view interface simultaneously displays a 3D model view and a target 2D drawing. The click operation includes: the user clicking on the model view or the target 2D drawing on the view interface.

[0108] Step 105: In response to the click operation, determine the target component in the model view, or the target element on the target 2D drawing, and display the target component or the target element.

[0109] Since the above steps establish a binding relationship between the model view and the target 2D drawing, when the front-end device receives a user's click operation, such as clicking on a component in the model view, it finds the corresponding target element in the target 2D drawing according to the binding relationship; or when clicking on an element on the target 2D drawing, it determines the target component in the model view according to the binding relationship, and finally displays the target component or target element.

[0110] The linkage method provided in this embodiment establishes a binding relationship between a 3D model file of a building and at least one 2D drawing through a backend device, and displays it on the view interface of the frontend device based on this binding relationship. This enables linkage between the 2D drawing and the 3D model on the frontend device, thereby meeting the user's review requirements. Furthermore, this method is not limited by secondary or tertiary modifications of the drawing, and it enables the establishment of binding relationships between 2D drawings and 3D models that are not from the same source or are partially from the same source, ensuring 2D / 3D linkage.

[0111] Optionally, in step 102 of this embodiment, the backend device establishes a binding relationship between the model view in the 3D model file and at least one 2D drawing, specifically including:

[0112] First, the 3D model file is parsed to obtain a model library file. The model library file includes a view-drawing relationship table, which contains at least one set of correspondences. Each set of correspondences includes a correspondence between a model view and a 2D drawing. For example, it contains m sets of correspondences, where m ≥ 1 and m is a positive integer.

[0113] Next, in the at least one set of correspondences, a model view that matches at least one two-dimensional drawing of the drawing file is found.

[0114] Specifically, assuming n 2D drawings are obtained in step 101, where n ≥ 1, then according to the relationships defined in the view drawing relationship table, the backend device selects a matching model view from m sets of correspondences for each of the n 2D drawings. For example, a unique identifier corresponds to any of the n 2D drawings. Using this unique identifier, the device searches for a model view associated with that identifier in the m sets of correspondences, and selects it as the matching model view. Following a search-by-search method, at least one matching model view may be found in the m sets of correspondences, where m ≥ n. One possible scenario is that all n 2D drawings find a corresponding matching model view, resulting in a maximum of n model views.

[0115] Finally, based on the feature points of the matched model views and the feature points of the corresponding two-dimensional drawings, a binding relationship is established between the model views in the three-dimensional model file and the at least one two-dimensional drawing.

[0116] Specifically, this includes: after finding at least one matching model view (e.g., n model views), calculating the association between each pair of model views and the corresponding two-dimensional drawing based on the feature points of each model view and the feature points of at least one matching two-dimensional drawing, and then establishing the binding relationship between the model view and the two-dimensional drawing through all the association relationships, thereby realizing the establishment of the association relationship between some homologous drawing models and non-homologous drawing models.

[0117] The method provided in this embodiment uses a view-drawing association table in the model library file as a medium to find a model view that matches at least one two-dimensional drawing in the drawing source file, thereby establishing a binding relationship between the model view and the two-dimensional drawing. Based on this binding relationship, joint review between the two-dimensional drawing and the three-dimensional model is realized, thus meeting the user's review needs.

[0118] In addition, this method constructs a mapping path from the 3D building model to the model view and then to the spatial component primitives of the 2D drawings, enabling the mutual linkage between the 2D drawings and the 3D model. Moreover, this method is not limited by the second or third modification of the drawings, thus realizing the establishment of the binding relationship between 2D drawings and 3D models with non-same source models and partially same source models, providing a guarantee for 2D and 3D linkage.

[0119] Optionally, in one specific embodiment of this example, obtaining at least one two-dimensional drawing of a building includes: a backend device receiving a source drawing file of the building uploaded by a frontend device; and performing a lightweight conversion on the source drawing file to obtain the at least one two-dimensional drawing. The at least one two-dimensional drawing may correspond to different views and angles of the building model. Specifically, the lightweight conversion process and the process of displaying the converted two-dimensional drawing are not described in detail in this embodiment.

[0120] In addition, the aforementioned lightweight conversion process for drawing source files also includes: performing grid identification on the drawing source files to obtain grid data, which includes: grid names and a grid intersection matrix. Specifically, the grid identification process is as follows: Figure 5 As shown, the process includes: performing a lightweight conversion on the source drawing file to obtain lightweight drawing data, i.e., 2D drawing data; and performing grid recognition on the source drawing file using AI technology to obtain grid data for the source drawing file. This grid data is used for coordinate system alignment and correction between subsequent views and the drawing. It should be noted that the order in which the lightweight conversion and grid recognition steps are performed is not restricted.

[0121] In addition, the lightweight conversion process described above also includes: performing a lightweight conversion on the 3D model file to obtain a lightweight model, and exporting the view, such as... Figure 5 As shown, then establish the binding relationship between the model view and the two-dimensional drawing.

[0122] Specifically, such as Figure 6 As shown, the backend device parses the 3D model file to obtain a model library file, including:

[0123] Step 102-1: Extract and export the lightweight model file from the 3D model file to obtain multiple 2D view drawing files.

[0124] Step 102-2: Based on the multiple two-dimensional view drawing files and the component table in the three-dimensional model file, generate a lightweight two-dimensional view drawing file for each model view according to the customized view data.

[0125] The lightweight file for the 2D view drawing includes a one-to-one correspondence between the graphic elements and model components in the 2D view drawing. Graphic elements are identified by graphic element IDs, and model components are identified by model component IDs.

[0126] The aforementioned 3D model file, specifically the zdb model file, includes: BMV lightweight data and model library data. For example... Figure 7 As shown, the ZDB file includes: a design information table, a BMV model lightweight file, and a model library file.

[0127] Furthermore, the design information table describes the model's design information; this table can be in XLSX format. The BMV lightweight model file is used for subsequent online model browsing and may include lightweight model rendering and drawing generation modules. The model library file (DB file) includes: component tables, relationship tables, geometric information tables, and system tables.

[0128] The component table describes relevant information about model components, such as views, grid lines, elevations, walls, doors, and windows. The relationship tables include: a view drawing relationship table, a view component relationship table, and a grid intersection table.

[0129] The view-drawing relationship table is a list of view and associated drawing names, which may include m sets of correspondences, each set being a correspondence between a model view and a two-dimensional drawing.

[0130] The view component relationship table describes one or more component sets contained in a certain view of the model.

[0131] The grid intersection table describes the grid intersection information of the model, which is used to align the coordinate points of subsequent 2D drawings and model views.

[0132] The geometric information table describes the geometric information of the model components. The system table describes other information.

[0133] It should be understood that the model library file may include other, more or fewer, relational tables and information content, and this embodiment does not impose any restrictions on this.

[0134] In steps 102-1 and 102-2 above, the zdb model file is parsed, and the following processing is performed based on the information in the file: The lightweight BMV model data is exported as a view. Based on the view data defined in the model, a lightweight 2D view drawing file is generated for each view. Specifically, the lightweight 2D view drawing file generated in step 102-2 contains the 2D geometric data required for lightweight display. For example, the Revit IDs.json file describes the correspondence between view elements in the 2D view drawing and components in the model. The data structure is shown in Table 1 below.

[0135] Table 1

[0136] View Element ID Model Component ID 150 448979 155 448981 160 448983 165 448985 171 448987 177 448989 ...... ......

[0137] In addition, after performing steps 102-1 and 102-2 above, the method includes: processing the view drawing relationship list data of the zdb model file, and searching for the corresponding model view drawing file for each of the at least one two-dimensional drawings in the drawing source file. For example, searching whether there is a view element ID of 150 in at least one two-dimensional drawing; if so, finding that the model component ID corresponding to the element is 448979, and thus determining that the model view matching the two-dimensional drawing of the current element is the model view with component ID 448979.

[0138] Alternatively, in another embodiment, such as Figure 8 As shown, the binding relationship established above based on the feature points of the matching model view and the feature points of the corresponding 2D drawing specifically includes:

[0139] Step 1: Calculate at least one coordinate transformation matrix between the two-dimensional drawing and the model view based on the feature point coordinates of the model view and the feature point coordinates of the corresponding two-dimensional drawing.

[0140] Step 2: Establish at least one binding relationship between the model view in the 3D model file and the at least one 2D drawing based on the at least one coordinate transformation matrix.

[0141] Specifically, two feature points, such as p1, p2 and p3, p4, are set in a set of matching model views and 2D drawings. Based on the drawings of n source view files and the model views matched for each source file drawing, two feature points are found in each 2D drawing, assuming the two feature points are p1 and p2, and two feature points p3 and p4 in the matching model view. p1 and p3 correspond, and p2 and p4 correspond. After determining the four feature points, the coordinate transformation matrix between the 2D drawing and the corresponding model view file is calculated based on the coordinates of the four features p1, p2, p3, and p4 from step 104-2. This coordinate transformation matrix represents the transformation relationship between the first coordinate system and the second coordinate system. The first coordinate system is the coordinate system of feature points p1 and p2, i.e., the coordinate system of the 2D drawing; the second coordinate system is the coordinate system of feature points p3 and p4, i.e., the coordinate system of the model view. Similarly, steps 104-1 and 104-2 are repeated until the coordinate transformation matrix is ​​calculated for each 2D drawing source file and the corresponding model view file.

[0142] Optionally, the process of selecting and determining the above feature points p1, p2, p3, and p4 includes:

[0143] First, AI recognition technology is used to obtain the grid data of the drawing source file. The grid data is described as the axis names and intersection point coordinate matrix. Then, the grid data of the corresponding model view is obtained by parsing the 3D model file. This grid data is also described as the axis names and intersection point coordinate matrix of the 3D model. Next, three points that are not on the same straight line are found in the grid intersection point data matrix of one drawing from the drawing source file. For example… Figure 9 As shown, the three points found in the first grid data are p11, p12, and p13; similarly, three points that are not on the same straight line are also found in the grid data of the model view (i.e., the second grid data), such as p21, p22, and p23.

[0144] Next, compare the positional relationships of the points found in the first and second grid data to see if they meet the matching conditions. For example, determine if the names of the intersecting axes corresponding to points p11 and p21 are consistent, that is, determine if the names w and h of the intersecting axis of p11 are consistent with the names w and h of the intersecting axis of p21. In this example, it is determined that the names of the intersecting axes of p11 and p12 are consistent, thus meeting the matching conditions. Here, intersecting axes refer to two axes that intersect at a point in the drawing, and w and h are the names of the two axes. Figure 9 In the example, the axis names can also be a, b, x, y, z, k, etc.

[0145] Similarly, determine whether the names b and y of the intersecting axis of point p12 are the same as those of point p22, and whether the names x and k of the intersecting axis of point p13 and point p23 are the same. The specific process for determining whether they are the same is as described above.

[0146] A similarity test is performed on triangle ABC formed by connecting points p11, p12, and p13, and triangle A'B'C' formed by connecting points p11, p12, and p13. If the two triangles are similar, then p11, p12, p21, and p22 are selected as the found feature points p1, p2, p3, and p4. If the triangles are not similar, then the p1 to p4 points found in this test do not meet the feature point requirements, and new feature points need to be configured.

[0147] The method provided in this embodiment selects and calculates feature points on the 2D drawing file and feature points on the 3D model view to obtain a transformation matrix between the two coordinate systems of the 2D drawing and the 3D model. Based on this transformation matrix, a binding relationship is established between the 2D drawing and the 3D model. During the binding process between the 3D model view and the 2D drawing, component-level mapping is performed through component and primitive mapping relationships, and the model's 3D spatial coordinates are compared with the view... Figure 2 The coordinate system transformation matrix of the 2D plane coordinates achieves spatial-level mapping.

[0148] Optionally, in the process of generating at least one coordinate transformation matrix in step 1 above, the process also includes: generating at least one coordinate transformation matrix through automatic alignment. If there is a large difference between the model view and the two-dimensional drawing, manual assistance is required to achieve coordinate system alignment and establish a mapping from the model view coordinate system to the two-dimensional drawing coordinate system.

[0149] It should be understood that this embodiment illustrates the calculation of the coordinate transformation matrix between the two-dimensional drawing coordinate system of the source drawing file and the two-dimensional drawing coordinate system of the model view using a feature point matching method. Feature point matching can be, but is not limited to, finding the coordinate transformation matrix through the grid data of the two drawings. It can also be determined through more data or other methods. This embodiment does not impose any restrictions on this.

[0150] In addition, during the calculation of the coordinate system transformation matrix, this method also unifies the format of 3D model files of different formats into zdb format files, and unifies the data standards to facilitate the subsequent processing of output results and lightweight display.

[0151] The following provides a detailed explanation of steps 104 and 105 in the above embodiments. Steps 104 and 105 are processes of 2D / 3D linkage on the view interface of the front-end device, based on the binding relationship established between the 3D model view and the 2D drawing. Specifically, the first type of linkage process is first introduced, where the user clicks on a graphic element on the 2D drawing, and the 3D model is linked accordingly. For example... Figure 10 As shown, the method includes the following steps:

[0152] Step 201: Receive user clicks on the 2D drawing.

[0153] The click operation is used to select at least one graphic element on the two-dimensional drawing area. For example, the mouse moves over the drawing area and clicks on a graphic element in the two-dimensional drawing area. After establishing the binding relationship between the three-dimensional model library file and the two-dimensional drawing source file in the above embodiment, the graphic elements of the three-dimensional model view and the two-dimensional drawing can be displayed on the display interface at the same time, and step 201 is executed based on the two-dimensional drawing and the three-dimensional model view on the display interface.

[0154] Optionally, the two-dimensional drawing is the target two-dimensional view in the foregoing embodiments.

[0155] Step 202: Determine whether the click operation hits the target primitive.

[0156] Step 203: If yes, that is, the click operation hits the target graphic element, then obtain the bounding box information corresponding to the target graphic element. Specifically, after determining the target graphic element selected by the user's click operation, the bounding box information of the target graphic element is calculated based on the geometric data of the target graphic element.

[0157] Step 204: Determine the position area of ​​the target graphic element on the model view based on the binding relationship between the target 2D drawing and the model view, as well as the bounding box information.

[0158] Specifically, based on the binding relationship between the target two-dimensional drawing and the three-dimensional model view obtained in the above embodiments, the model view corresponding to the target two-dimensional drawing is obtained, and the position region P of the target primitive bounding box on the model view is further calculated based on the coordinate transformation matrix.

[0159] Step 205: Determine the target model component in the location region, wherein the target model component has a mapping relationship with the target primitive.

[0160] Step 206: Obtain the target component ID in the target model component, and determine the target component based on the target component ID.

[0161] Based on the mapping relationship between the primitive ID and the target component ID in the model view, the target component ID corresponding to the target primitive ID is calculated, and the target component corresponding to the target component ID is located in the corresponding model view.

[0162] Step 207: Display the target component. Specifically, one display method is to highlight the target component.

[0163] The method provided in this embodiment displays two-dimensional drawings and three-dimensional model views in a lightweight manner on the client side, such as a browser. It listens for user click events on elements in the two-dimensional drawing and click events on the drawing itself. When a click event occurs, it obtains the position coordinates of the clicked element in the drawing or the bounding box information of the clicked element. It then transforms the bounding box information in the view using a matrix transformation. Based on the bounding box information, it obtains the set of elements within the bounding box in the view and maps them to the target element in the model using a component-element relationship mapping table. Finally, it performs specific display and drawing operations on the target element. This method realizes the mutual linkage between two-dimensional drawings and three-dimensional model views, providing convenience for joint review of drawings and models.

[0164] Specifically, in one possible implementation, such as Figure 11 As shown, step 205 specifically includes:

[0165] Step 205-1: Determine whether at least one graphic element exists in the location region identified in step 204. The purpose is to find one or more graphic elements in the location region P.

[0166] Step 205-2: If so, obtain a set of graphic elements that contains at least one graphic element. For example, obtain a set of graphic element IDs.

[0167] Step 205-3: Based on the correspondence between the target primitive ID and the model component ID, search for the target model component corresponding to the target primitive ID in the set of primitives contained in the location region.

[0168] In addition, the method also includes: if the judgment result in step 205-1 is negative, that is, there are no graphic elements in the location area, then step 205-4 is executed.

[0169] Step 205-4: Convert the preset coordinate points in the location area into the corresponding area coordinates in the model.

[0170] Specifically, the coordinates of the four vertices of the location region P can be used to calculate the corresponding region coordinates (x', y', z') in the model using the getModelPosition() method.

[0171] Step 205-5: Locate the region coordinates on the view interface and display the region position corresponding to the region coordinates. For example, in the model window of the view interface, locate the model to the three-dimensional region coordinates (x', y', z') and view the region position.

[0172] The method provided in this embodiment determines and displays the position of the three-dimensional region corresponding to the user's click operation when there are no graphic elements in the location area, thereby realizing two-dimensional and three-dimensional linkage.

[0173] Additionally, optional, such as Figure 12 As shown, in step 202 above, after determining whether the click operation hits the target graphic element, the method further includes:

[0174] Step 208: If no, that is, the click operation in step 201 did not hit the target primitive, then obtain the click position according to the click event, and the click position is represented by the screen coordinate system.

[0175] Specifically, the screen coordinates of the click location are obtained based on the mouse click event corresponding to the click operation, such as mouseDownEvent. Let's assume the screen coordinates are {x:400,y:300}.

[0176] Step 209: Convert the click position represented by the screen coordinate system into coordinates in the model view.

[0177] One possible implementation is to use the clientToWord() method to convert the screen coordinates to the world coordinates of the point in the drawing. For example, after coordinate transformation, the screen coordinates {x:400,y:300} are converted to the world coordinates {x:16000,y:2800}.

[0178] Step 210: Determine the corresponding three-dimensional coordinates in the model based on the coordinates in the model view.

[0179] Based on the matching relationship between the two-dimensional drawing and the three-dimensional model view obtained above, the model view corresponding to the two-dimensional drawing is obtained, and the coordinates of the points hit on the current two-dimensional drawing in the three-dimensional model view are further calculated based on the coordinate transformation matrix.

[0180] Step 211: Perform camera positioning and display on the clicked location based on the three-dimensional coordinates.

[0181] Based on the point coordinates in the view obtained in step 210, the corresponding three-dimensional coordinates (x', y', z') in the model are calculated according to the getModelPosition() method. In the three-dimensional model view, the model is positioned at the three-dimensional coordinates (x', y', z') for viewing and display.

[0182] The method provided in this embodiment, when the user clicks on a graphic element but does not hit it, uses the correspondence between the two-dimensional drawing and the three-dimensional model view, as well as the coordinate transformation matrix, to display a certain position in the two-dimensional drawing that the user clicked on in the three-dimensional model view in the form of the positioning three-dimensional coordinates, thereby realizing the linkage between the two-dimensional drawing and the three-dimensional model.

[0183] In another embodiment of this application, a second method for two-dimensional and three-dimensional linkage is also provided. When a user clicks on a three-dimensional model in a model view on a view interface, the corresponding target element on a target two-dimensional drawing is determined in response to the click operation. Specifically, as shown... Figure 13 As shown, the method includes:

[0184] Step 301: Receive user clicks in the 3D building model.

[0185] Step 302: Obtain the component hit by the click operation and determine the component type.

[0186] Specifically, after the front-end device detects the user's click operation, it obtains the component's ObjectId and retrieves the component information based on that ObjectId. This component information includes the component type. Further, component types are divided into spatial components and general components. A spatial component refers to a component that includes at least one other component; for example, a spatial component is a house, which includes components such as doors, windows, walls, beams, and columns. A general component refers to a component with a single structure, such as a door, window, or column.

[0187] Step 303: If the component type is a spatial component, then obtain the bounding box information of the component.

[0188] The bounding box information of the component includes at least one component, and the at least one component forms a component set. In one example, the bounding box information is represented by coordinates as [{x1,y1,z1},{x2,y2,z2}].

[0189] Step 304: Determine the first view element set corresponding to the component set based on the conversion relationship between the model view elements and the model components.

[0190] Specifically, based on the bounding box information, all components in the model within this bounding box are obtained, resulting in a model component ID set objectIdSet; then, based on the previously obtained mapping relationship between model view primitives and model component IDs, the corresponding view primitive set drawingObjectIdSet, i.e., the first view primitive set, is obtained using the model component ID set objectIdSet.

[0191] Step 305: Convert the target bounding box information determined in the first view element set into the corresponding bounding box information in the drawing.

[0192] Step 306: Determine the target primitive based on the bounding box information in the drawing.

[0193] Further, see Figure 14 Step 305 above specifically includes:

[0194] Step 305-1: Determine the target bounding box information based on the bounding box information of each element in the first view element set, wherein the target bounding box is the bounding box with the largest range among all bounding boxes of all elements in the first view element set.

[0195] Specifically, in the view, based on the first view primitive set, such as the drawingObjectIdSet primitive set, the getObjectBoundingBox() method is used to obtain the bounding box information of each primitive, and the large bounding box that can surround all primitives is calculated by merging them. Let's assume it is labeled BigBox1. The coordinates of this large bounding box are [{minX1,minY1}, {maxX1,maxY1}], where max represents the maximum value and min represents the minimum value.

[0196] Step 305-2: Based on the coordinate transformation relationship between the drawing and the view element set, convert the target bounding box information into the corresponding bounding box information in the drawing.

[0197] Specifically, based on the coordinate transformation matrix obtained in the aforementioned embodiment, the bounding box information corresponding to it in the drawing is calculated using the large bounding box BigBox1 in the view. For example, the bounding box information is marked as BigBox2, and its coordinates are [{minX2,minY2}, {maxX2,maxY2}].

[0198] Step 306: Using the BigBox2 bounding box information, draw the rectangular bounding box region in the drawing and position the drawing around that region. More specifically, step 306 includes:

[0199] Step 306-1: Determine whether one or more graphic elements exist in the drawing area. One possible implementation is to determine whether one or more graphic elements exist based on the bounding box information in the drawing.

[0200] Step 306-2: If it exists, then determine the one or more primitives as the target primitives and obtain a primitive set.

[0201] Step 306-3: Light up the target graphic element in the graphic element set.

[0202] Optionally, in this embodiment, the above method further includes:

[0203] Step 307: If the component type is a general component, then determine the second view element set that the component should be based on the conversion relationship between the model view elements and the model components.

[0204] The conversion relationship between model view primitives and model components is obtained through the above embodiments.

[0205] Step 308: Determine the corresponding drawing element set based on the bounding box information in the second view element set.

[0206] The determined set of drawing elements also corresponds to the drawing area within the drawing elements. Then, step 306-1 is executed: determining whether the set of drawing elements contains one or more elements, i.e., the same as step 306-1. If yes, steps 306-2 and 306-3 are executed. For details, please refer to the aforementioned embodiment, which will not be repeated here. If no, step 309 is executed.

[0207] Step 309: If no, i.e., there are no one or more graphic elements, then determine the area enclosed by the set of graphic elements in the drawing, obtain the coordinates of the area, and display it at the area position corresponding to the coordinates of the area.

[0208] In a specific example, when it is a regular component, based on the previously obtained mapping table between model view elements and model component IDs, the second view element set drawingObjectIdSet2 corresponding to the component in the view is obtained using ObjectId. Based on the second view element set drawingObjectIdSet2, the bounding box information of each element in the view is obtained, resulting in the set of bounding boxes drawingObjectBoundingBoxSet1 in the view. Based on the previously obtained coordinate transformation matrix, the coordinates of each bounding box in the drawing are transformed using drawingObjectBoundingBoxSet1, resulting in the corresponding set of bounding boxes drawingObjectBoundingBoxSet2 in the drawing.

[0209] In the drawing, the getElementsByBoundingBox method is used to find the drawing elements contained in each bounding box of the drawingObjectBoundingBoxSet2 collection, and obtain the second set of drawing elements, drawingObjectIdSet2; and then it is determined whether there is data in the drawingObjectIdSet2.

[0210] If drawingObjectIdSet2 contains data, then each element is highlighted according to the second drawing element set drawingObjectIdSet2, and the drawing is moved to the position in the element set. If drawingObjectIdSet2 is empty, meaning no element is found in the second drawing element set, then the information of the large bounding box that can enclose all bounding box areas is calculated in the drawing based on drawingObjectBoundingBoxSet2, the rectangular bounding box area is drawn in the drawing, and the drawing is positioned in that area.

[0211] The method provided in this embodiment displays a lightweight 3D model view and a 2D drawing on a client, such as a browser. It also listens for components in the model. When a user clicks or operates on a model component, it reads the component information and obtains the component's element representation set in the view through the mapping between components and elements. It then determines whether an element set (one or more elements) exists in the element representation set. If an element set is found, it continues to obtain the bounding box information of the set in the view based on the element set. The bounding box information in the drawing is then transformed using a matrix, thereby locking the elements within the bounding box range in the drawing and performing corresponding display operations on the elements.

[0212] If the primitive set cannot be found, the spatial geometry information of the model components is read, the bounding box of the model components is obtained, and the corresponding view is calculated. Figure 2 The bounding box of the 2D plane is transformed by a matrix to obtain the corresponding coordinate position information in the drawing, thereby locking the graphic elements within the bounding box in the drawing, performing corresponding display operations on the graphic elements, and thus realizing the linkage of the drawing.

[0213] In addition, this embodiment also provides a linkage device for three-dimensional building models and two-dimensional drawings, which is used to achieve the aforementioned Figures 3 to 6 , Figure 8 For the specific steps shown, please refer to [link / reference]. Figure 15 As shown, the device includes: an acquisition unit 410, a transmission unit 420, a receiving unit 430, a display unit 440, and a determination unit 450. In addition, the device may include other more or fewer structures or units, such as a storage unit, etc. This embodiment does not limit this.

[0214] The acquisition unit 410 is used to acquire a three-dimensional model file of the building and a drawing file of the building, wherein the drawing file includes at least one two-dimensional drawing of the building.

[0215] The sending unit 420 is used to send the three-dimensional model file and the drawing file to the back-end device. The back-end device is used to establish a binding relationship between the model view in the three-dimensional model file and at least one two-dimensional drawing. The model view and the at least one two-dimensional drawing are non-homogeneous or partially homogeneous drawing models.

[0216] The receiving unit 430 is used to receive the binding relationship.

[0217] Display unit 440 is used to display a view interface of target two-dimensional drawing and model view according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing.

[0218] The receiving unit 430 is also used to receive click operations by the user on the view interface.

[0219] The determining unit 450 is used to determine the target component in the model view or the target graphic element on the target two-dimensional drawing in response to the click operation, and to display the target component or the target graphic element through the display unit.

[0220] Optionally, the linkage device is a front-end device, such as a client.

[0221] In addition, the aforementioned acquisition unit 410, sending unit 420, receiving unit 430, display unit 440 and determination unit 450 are also used to implement other method steps of the linkage method between a three-dimensional building model and two-dimensional drawings in the foregoing embodiments.

[0222] Optionally, in another embodiment, the linkage device can also be a backend device, such as a server, used to execute the method steps of the backend device in the foregoing embodiments, thereby realizing the linkage between the graphic and the model based on the two-dimensional model.

[0223] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 16 As shown, the electronic device may include a processor 110 and a memory 120, wherein the processor 110 and the memory 120 may be connected via a bus or other means. Figure 16 For example, the connection is via a bus. Furthermore, the electronic device also includes at least one interface 130, which can be a communication interface or other interface; this embodiment does not impose any limitations on this.

[0224] The electronic device can be the front-end device in the above embodiments, or it can also be a back-end device.

[0225] The processor 110 can be a central processing unit (CPU). The processor 110 can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.

[0226] The memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the linkage method between the three-dimensional building model and the two-dimensional drawings in the embodiments of the present invention. The processor 110 executes various functional applications and data processing by running the non-transitory software programs, instructions, and modules stored in the memory 120, thereby realizing the linkage method between the three-dimensional building model and the two-dimensional drawings in the above method embodiments.

[0227] The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor 110, etc. Furthermore, the memory 120 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 120 may optionally include memory remotely located relative to the processor 110, and these remote memories may be connected to the processor 110 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0228] In addition, at least one interface 130 is used for communication between the electronic device and external devices, such as communication with a server. Optionally, at least one interface 130 can also be used to connect peripheral input / output devices, such as a keyboard or display screen.

[0229] The one or more modules are stored in the memory 120, and when executed by the processor 110, they perform as described above. Figures 3 to 6 ,as well as Figure 8 The method steps in the illustrated embodiments, and the execution thereof, are as follows: Figures 10 to 14 The method steps described above are as follows. Specifically, the implementation process of the method can be found in the description of the foregoing method embodiments, which will not be elaborated in detail here.

[0230] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium can also include combinations of the above types of memory.

[0231] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for linking a three-dimensional architectural model with two-dimensional drawings, characterized in that, The method includes: Obtain a 3D model file of the building, as well as a drawing file of the building, the drawing file including at least one 2D drawing of the building; The three-dimensional model file and the drawing file are sent to the backend device, which is used to establish a binding relationship between the model view in the three-dimensional model file and at least one two-dimensional drawing. The model view and the at least one two-dimensional drawing are non-same source model or partially same source model. The binding relationship is received, and a view interface for displaying the target two-dimensional drawing and the model view is displayed according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing; Receive user clicks on the view interface; In response to the click operation, a target component in the model view or a target element on the target two-dimensional drawing is determined and the target component or the target element is displayed. The backend device is used to establish a binding relationship between the model view in the 3D model file and at least one 2D drawing, including: The 3D model file is parsed to obtain a model library file, which includes at least one set of correspondences, and each set of correspondences includes a correspondence between a model view and a 2D drawing. In the at least one set of correspondences, find a model view that matches at least one two-dimensional drawing of the drawing file; Based on the feature points of the matching model view and the feature points of the corresponding two-dimensional drawing, a binding relationship is established between the model view in the three-dimensional model file and the at least one two-dimensional drawing.

2. The method according to claim 1, characterized in that, The process of obtaining the 3D model file of the building includes: Obtain the model source file of the building; The source file of the model is converted into the three-dimensional model file using a conversion tool. The three-dimensional model file is a zdb model file.

3. The method according to claim 1, characterized in that, Obtain the building's drawing files, including: The building's drawing files are modified and edited to generate at least one two-dimensional drawing.

4. The method according to claim 1, characterized in that, Parsing the 3D model file yields a model library file, including: The lightweight model file in the 3D model file is extracted and exported to obtain multiple 2D view drawing files; Based on the multiple 2D view drawing files and the component table in the 3D model file, a lightweight 2D view drawing file is generated for each model view according to the customized view data. The lightweight 2D view drawing file includes a one-to-one correspondence between the graphic elements in the 2D view drawing and the model components.

5. The method according to claim 1, characterized in that, The binding relationship is established based on the feature points of the matched model view and the feature points of the corresponding 2D drawing, including: Based on the feature point coordinates of the model view and the feature point coordinates of the corresponding two-dimensional drawing, calculate at least one coordinate transformation matrix between the two-dimensional drawing and the model view; The binding relationship between the model view in the 3D model file and the at least one 2D drawing is established based on the at least one coordinate transformation matrix.

6. The method according to any one of claims 1-5, characterized in that, If the user's click operation on the view interface is a click operation on the target 2D drawing, then in response to the click operation, the target component in the model view is determined, including: If the click operation hits the target graphic element, then the bounding box information corresponding to the target graphic element is obtained; Based on the binding relationship between the target 2D drawing and the model view, and the bounding box information, determine the position area of ​​the target graphic element on the model view; A target model component is determined in the location region, and the target model component has a mapping relationship with the target primitive; Obtain the target component ID from the target model components, and determine the target component based on the target component ID.

7. The method according to claim 6, characterized in that, Determining the target model component in the location region includes: If at least one graphic element exists in the location region, then obtain a set of graphic elements containing the at least one graphic element; Based on the correspondence between the target primitive ID and the model component ID, the target model component corresponding to the target primitive ID is searched in the primitive set contained in the location region.

8. The method according to claim 7, characterized in that, The method further includes: If no graphic element exists in the location area, the area coordinates corresponding to the model are converted based on the preset coordinate points in the location area. Locate the region coordinates on the view interface and display the region location corresponding to the region coordinates.

9. The method according to claim 6, characterized in that, The method further includes: If the click operation does not hit the target primitive, the click position is obtained according to the click event, and the click position is represented by the screen coordinate system; Convert the click position represented by the screen coordinate system into coordinates in the model view; Determine the corresponding three-dimensional coordinates in the model based on the coordinates in the model view; The camera is positioned and displayed at the clicked location based on the three-dimensional coordinates.

10. The method according to any one of claims 1-5, characterized in that, If the user's click operation on the view interface is a click operation in the model view, then in response to the click operation, the target element on the target 2D drawing is determined, including: Obtain the component hit by the click operation and determine the component type of the component; If the component type is a spatial component, then the bounding box information of the component is obtained. The bounding box information of the component includes at least one component, and the at least one component forms a component set. Based on the conversion relationship between model view primitives and model components, determine the first view primitive set corresponding to the component set; Convert the target bounding box information determined in the first view element set into the corresponding bounding box information in the drawing; The target primitive is determined based on the bounding box information in the drawing.

11. The method according to claim 10, characterized in that, Converting the target bounding box information determined in the first view element set into the corresponding bounding box information in the drawing includes: The target bounding box information is determined based on the bounding box information of each element in the first view element set, wherein the target bounding box is the bounding box with the largest range among all the bounding boxes of all elements in the first view element set. Based on the coordinate transformation relationship between the drawing and the view element set, the target bounding box information is converted into the corresponding bounding box information in the drawing.

12. The method according to claim 10, characterized in that, Determining the target primitive based on the bounding box information in the drawing includes: Based on the bounding box information in the drawing, detect whether there are one or more graphic elements in the drawing area; If it exists, then the one or more primitives are identified as the target primitive.

13. The method according to claim 10, characterized in that, The method further includes: If the component type is a general component, then the second view element set corresponding to the component is determined according to the conversion relationship between the model view elements and the model components; Based on the bounding box information in the second view element set, determine the corresponding drawing element set; Determine whether the set of drawing elements contains one or more elements; If so, then the one or more graphic elements are determined to be the target graphic element; If not, determine the area enclosed by the set of drawing elements, obtain the coordinates of the area, and display the location of the area corresponding to the coordinates.

14. A linkage device between a three-dimensional architectural model and two-dimensional drawings, characterized in that, The device includes: The acquisition unit is used to acquire a three-dimensional model file of the building and a drawing file of the building, wherein the drawing file includes at least one two-dimensional drawing of the building; A sending unit is used to send the three-dimensional model file and the drawing file to a back-end device. The back-end device is used to establish a binding relationship between the model view in the three-dimensional model file and at least one two-dimensional drawing. The model view and the at least one two-dimensional drawing are non-same-source models or partially same-source models. A receiving unit is used to receive the binding relationship; The display unit is used to display a view interface of the target two-dimensional drawing and the model view according to the binding relationship, wherein the target two-dimensional drawing is one of the at least one two-dimensional drawing; The receiving unit is also used to receive click operations from the user on the view interface; A determining unit is configured to determine, in response to the click operation, a target component in the model view, or a target element on the target two-dimensional drawing, and to display the target component or the target element through the display unit; The sending unit is further configured to parse the three-dimensional model file to obtain a model library file, the model library file including at least one set of correspondences, each set of correspondences including a correspondence between a model view and a two-dimensional drawing; In the at least one set of correspondences, find a model view that matches at least one two-dimensional drawing of the drawing file; Based on the feature points of the matching model view and the feature points of the corresponding two-dimensional drawing, a binding relationship is established between the model view in the three-dimensional model file and the at least one two-dimensional drawing.

15. An electronic device, characterized in that, It includes a processor and a memory, wherein the memory is coupled to the processor; The memory stores computer-readable program instructions, which, when executed by the processor, implement the linkage method between the three-dimensional building model and the two-dimensional drawings as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Two-dimensional and three-dimensional linkage and superposition display method based on structured BIM model

    CN110688692A

  • Remote video and drawing model detection method and device

    CN112699430A

  • Method and system for linkage of two-dimensional drawing and three-dimensional model of web end

    CN114021239A

  • Design method for viewing three-dimensional model on mobile equipment based on plane drawing

    CN115146362A