Design information filling method, device and electronic equipment for three-dimensional model

By automatically generating and associating 3D components in a 3D model, the problem of low efficiency in filling 3D model design information is solved, and efficient and accurate information transmission is achieved.

CN121543176BActive Publication Date: 2026-04-28GANSU DIANTONG POWER ENG DESIGN CONSULTING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GANSU DIANTONG POWER ENG DESIGN CONSULTING CO LTD
Filing Date
2026-01-19
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

In existing technologies, the efficiency of filling design information in 3D models is low, and the reliance on manual input leads to excessive time consumption.

Method used

Three-dimensional components are generated based on two-dimensional planar drawings, and design information is filled into the three-dimensional model through automated matching and association, reducing manual intervention.

Benefits of technology

It improves the efficiency of filling design information into 3D models, ensures the accuracy of information transmission, and reduces human error.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121543176B_ABST
    Figure CN121543176B_ABST
Patent Text Reader

Abstract

The application discloses a three-dimensional model design information filling method and device and electronic equipment. The method comprises the following steps: generating at least one first component based on at least one pixel contained in a two-dimensional planar graph; in the case that a first target component in the at least one first component matches a three-dimensional model successfully, establishing an association relationship between a first pixel corresponding to the first target component and the three-dimensional model; and filling design information contained in the first pixel to the three-dimensional model based on the association relationship, thereby achieving the purpose of reducing the design information filling of the three-dimensional model, improving the design information filling efficiency of the three-dimensional model, and solving the technical problem of low design information filling efficiency of the three-dimensional model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, and more specifically, to a method, apparatus, and electronic device for filling in design information of a three-dimensional model. Background Technology

[0002] In the field of architectural engineering design, two-dimensional plan drawings are the core technical documents for conveying structural design intentions, containing design information such as component layout, cross-sectional dimensions, and reinforcement parameters, while three-dimensional models are the basic carrier for realizing digital construction and management.

[0003] Currently, in related technologies, the process of transferring design information from two-dimensional planar drawings to three-dimensional models usually relies on manual input. Designers need to first identify the graphic elements in the two-dimensional planar drawings, extract the design information, and then locate the corresponding three-dimensional components in the three-dimensional modeling software and manually input and fill in the design information. However, this method takes a long time, resulting in low efficiency in filling the design information in the three-dimensional model.

[0004] There is currently no effective solution to the above problems. Summary of the Invention

[0005] This application provides a method, apparatus, and electronic device for filling design information into a 3D model, so as to at least solve the technical problem of low efficiency in filling design information into a 3D model.

[0006] According to one aspect of the embodiments of this application, a method for filling design information into a three-dimensional model is provided, comprising: generating at least one first component based on at least one graphic element contained in a two-dimensional planar drawing, wherein the first component is a three-dimensional component; establishing an association relationship between the first graphic element corresponding to the first target component and the three-dimensional model when a first target component in at least one of the first components successfully matches the three-dimensional model; and filling the three-dimensional model with design information contained in the first graphic element based on the association relationship, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional component contained in the three-dimensional model.

[0007] According to another aspect of the embodiments of this application, a design information filling device for a three-dimensional model is also provided, comprising: a generation unit, configured to generate at least one first component based on at least one graphic element contained in a two-dimensional planar drawing, wherein the first component is a three-dimensional component; a first establishment unit, configured to establish an association relationship between the first graphic element corresponding to the first target component and the three-dimensional model when a first target component among the at least one of the first components successfully matches the three-dimensional model; and a first filling unit, configured to fill the design information contained in the first graphic element into the three-dimensional model based on the association relationship, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional component contained in the three-dimensional model.

[0008] As an optional solution, the above-mentioned device further includes: a second establishing unit, used to establish a horizontal two-dimensional coordinate system based on the above-mentioned three-dimensional model; and a traversal unit, used to traverse all the above-mentioned first components and perform the following steps on the current component: obtaining the height information corresponding to the current component; obtaining the midpoint coordinates corresponding to the current component, wherein the midpoint coordinates are used to indicate the geometric center of the current component in the above-mentioned horizontal two-dimensional coordinate system; and performing fuzzy matching on the above-mentioned three-dimensional model based on the midpoint coordinates and the height information corresponding to the current component to obtain at least one second component, wherein the second component matches the midpoint coordinates and the height information.

[0009] As an optional solution, the traversal unit includes: a first acquisition module, configured to acquire the projection line corresponding to each of the second components in the horizontal two-dimensional coordinate system; a second acquisition module, configured to acquire the axis corresponding to the current component and the axis corresponding to the third component when the distance between the projection line corresponding to the third component and the midpoint coordinate is less than the width of the third component, wherein the axis is located in the horizontal two-dimensional coordinate system; a third acquisition module, configured to acquire an overlap condition and determine the current component as the first target component when the overlap condition is satisfied between the axis corresponding to the current component and the axis corresponding to the third component; and an establishment module, configured to establish the association relationship between the first target component and the third component.

[0010] As an optional solution, the third acquisition module includes: a first acquisition submodule, used to acquire the component type corresponding to the current component, and acquire the overlapping condition based on the component type; a second acquisition submodule, used to acquire the deviation information of the two-dimensional flat drawing, and acquire the overlapping condition based on the deviation information, wherein the deviation information is used to indicate the drawing accuracy of the two-dimensional flat drawing.

[0011] As an optional solution, the first establishment unit includes: a fourth acquisition module, configured to acquire the geometric features corresponding to the fourth components when there are multiple fourth components that fail to match in the three-dimensional model, and determine a second target component from at least one of the first components based on the geometric features corresponding to each of the fourth components; and establish an association relationship between the second graphic element corresponding to the second target component and the multiple fourth components; and a fifth acquisition module, configured to acquire the geometric features corresponding to the fifth components when there are multiple fifth components that fail to match in at least one of the first components, and determine a third target component from the three-dimensional model based on the geometric features corresponding to each of the fifth components; and establish an association relationship between the third graphic element corresponding to the third target component and the multiple fifth components.

[0012] As an optional solution, the above-mentioned device further includes: a determining unit, configured to determine a fourth target component matching the first graphic element from the three-dimensional model based on the above-mentioned correlation relationship; an acquiring unit, configured to acquire spatial information of the fourth target component, wherein the spatial information is used to indicate the position of the fourth target component in the three-dimensional model; and a second filling unit, configured to fill the first graphic element with the spatial information based on the above-mentioned correlation relationship.

[0013] As an optional solution, the second filling unit includes: a sixth acquisition module, used to acquire the target design information of the first graphic element, wherein the target design information is used to indicate the modified design information; and a determination module, used to determine the target design information as the design information corresponding to the fourth target component based on the above-mentioned association relationship and the above-mentioned spatial information.

[0014] According to another aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the design information filling method for the three-dimensional model as described above.

[0015] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described method for filling design information of a three-dimensional model through the computer program.

[0016] In this embodiment, at least one first component is generated based on at least one graphic element contained in a two-dimensional flat drawing, wherein the first component is a three-dimensional component; if a first target component in at least one of the first components successfully matches the three-dimensional model, an association relationship is established between the first graphic element corresponding to the first target component and the three-dimensional model; based on the association relationship, the design information contained in the first graphic element is filled into the three-dimensional model, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components contained in the three-dimensional model, thereby achieving the purpose of reducing the filling of design information in the three-dimensional model, thereby achieving the technical effect of improving the filling efficiency of design information in the three-dimensional model, and thus solving the technical problem of low filling efficiency of design information in the three-dimensional model. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a schematic diagram illustrating the application environment of an optional method for filling design information into a three-dimensional model according to an embodiment of this application;

[0019] Figure 2 This is a schematic diagram of the flow of an optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0020] Figure 3 This is a schematic diagram of an optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0021] Figure 4 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0022] Figure 5 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0023] Figure 6 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0024] Figure 7 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0025] Figure 8 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0026] Figure 9 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0027] Figure 10 This is a schematic diagram of another optional method for filling in design information of a three-dimensional model according to an embodiment of this application;

[0028] Figure 11 This is a schematic diagram of an optional three-dimensional model design information filling device according to an embodiment of this application;

[0029] Figure 12 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of this application. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. 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 apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0032] According to one aspect of the embodiments of this application, a method for filling in design information of a three-dimensional model is provided. Optionally, as an optional implementation, the above-described method for filling in design information of a three-dimensional model can be applied, but is not limited to, to applications such as... Figure 1 The environment shown may include, but is not limited to, user equipment 102 and server 112. User equipment 102 may include, but is not limited to, a display 104, a processor 106 and a memory 108. Server 112 includes a database 114 and a processing engine 116.

[0033] The specific process can be summarized in the following steps:

[0034] In step S102, the user equipment 102 generates at least one first component based on at least one graphic element contained in the two-dimensional flat drawing;

[0035] Step S104: Send at least one first component to server 112 via network 110;

[0036] In steps S106-S110, server 112 matches at least one third component with the three-dimensional model, and if at least one first component has a first target component that is successfully matched with the three-dimensional model, establishes an association relationship between the first graphic element corresponding to the first target component and the three-dimensional model; based on the association relationship, the design information contained in the first graphic element is filled into the three-dimensional model.

[0037] In step S112, the three-dimensional model filled with design information is sent to the user equipment 102 via the network 110. The user equipment 102 displays the three-dimensional model filled with design information on the display 104 via the processor 106 and stores the three-dimensional model filled with design information in the memory 108.

[0038] remove Figure 1 Beyond the examples shown, the terminal devices described above can be terminal devices configured with a target client, including but not limited to at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), laptops, tablets, PDAs, MIDs (Mobile Internet Devices), PADs, desktop computers, smart TVs, etc. The target client can be a video client, instant messaging client, browser client, educational client, etc. The networks described above can include, but are not limited to, wired networks and wireless networks. The wired networks include local area networks (LANs), metropolitan area networks (MANs), and wide area networks (WANs). The wireless networks include Bluetooth, Wi-Fi, and other networks that enable wireless communication. The server described above can be a single server, a server cluster consisting of multiple servers, or a cloud server. The above is merely an example, and no limitations are imposed in this embodiment.

[0039] Alternatively, as an alternative implementation method, such as Figure 2 As shown, the method for filling in the design information of a 3D model can be performed by an electronic device, such as... Figure 1 The user equipment or server shown includes the following specific steps:

[0040] S202, Based on at least one graphic element contained in the two-dimensional flat diagram, generate at least one first component, wherein the first component is a three-dimensional component;

[0041] Optionally, in this embodiment, the two-dimensional planar drawing may be, but is not limited to, an engineering design drawing drawn using a planar overall representation method, which presents the arrangement, geometric dimensions, numbering, and related design annotations of components such as beams, columns, and walls in the building structure in a two-dimensional vector form.

[0042] Optionally, in this embodiment, graphic elements can be, but are not limited to, the basic units constituting component design information in a two-dimensional planar drawing. These include graphic elements reflecting the component's geometry, such as the axis of a beam or the outline of a column, as well as text elements describing component attributes, such as component number, cross-sectional dimension annotations, and material specifications. Each graphic element corresponds to one or more design information items for the component and is the smallest unit for splitting and extracting two-dimensional design information.

[0043] Optionally, in this embodiment, the first component can be, but is not limited to, a three-dimensional solid component generated based on a single or a group of related graphic elements in a two-dimensional planar drawing, according to preset three-dimensional modeling rules, such as determining the cross-sectional shape of the three-dimensional component based on the cross-sectional dimensions of the graphic element, determining the length of the three-dimensional component based on the axis length, and determining the modeling logic based on the component type. For further example, assuming there is a graphic element "KL1 (500×800)," if the beam axis length in the graphic element is 6m, according to the three-dimensional modeling rules for frame beams, a three-dimensional rectangular beam entity with a length of 6m and a cross-sectional dimension of 500mm×800mm can be generated. This entity can be understood as the first component corresponding to the graphic element "KL1".

[0044] Optionally, in this embodiment, by using a two-dimensional flat drawing as the data source, firstly, graphic elements and text elements related to the component in the drawing are extracted as graphic elements through graphic element recognition, and then each graphic element is transformed into a three-dimensional entity with corresponding geometric parameters according to the three-dimensional modeling rules corresponding to the component type, so as to obtain at least one first component, thereby realizing the transformation of two-dimensional design information into three-dimensional form.

[0045] S204, if at least one of the first components has a first target component that is successfully matched with the three-dimensional model, establish the association relationship between the first graphic element corresponding to the first target component and the three-dimensional model;

[0046] Optionally, in this embodiment, the three-dimensional model may be, but is not limited to, a digital model constructed using three-dimensional modeling software that reflects the spatial form and basic attributes of the engineering entity, and may include, but is not limited to, information such as the geometric shape and spatial position of the three-dimensional components.

[0047] Optionally, in this embodiment, the association relationship may be, but is not limited to, a one-to-one correspondence between the first graphic element corresponding to the first target component and the matched three-dimensional component in the three-dimensional model after the first target component is successfully matched with the three-dimensional model. It may be, but is not limited to, stored in the form of data mapping, such as recording the correspondence between graphic element ID and three-dimensional component ID, so as to ensure that the two-dimensional design information can accurately point to the corresponding three-dimensional component.

[0048] Optionally, in this embodiment, all generated first components are matched with the three-dimensional components in the existing three-dimensional model. The matching logic may include, but is not limited to, spatial position overlap calculation, cross-sectional size comparison, and component type consistency verification, thereby filtering out the first components that meet the matching conditions. Then, the first target component is used as an intermediate component, and its corresponding first graphic element is bound to the matched three-dimensional component in the three-dimensional model to form a direct correspondence between the first graphic element and the three-dimensional component, and the association relationship is stored in the form of data records.

[0049] Optionally, in this embodiment, the spatial overlap calculation is the core logic for determining whether two components (such as the axis of a beam) in a two-dimensional plan drawing and components in a three-dimensional model (such as the positioning lines of a Revit beam) are the same component by quantifying the overlap ratio in the horizontal or spatial coordinate system. Specifically, the horizontal two-dimensional coordinate range of the two-dimensional graphic elements (such as the X and Y coordinates of the start and end points of the axis) and the spatial position parameters of the three-dimensional component (such as the projection range of the axis in the horizontal two-dimensional coordinate system) are extracted, and the proportion of the length of the overlapping part to the total length is calculated. For example, the axis range of beam KL1 in the two-dimensional plan drawing is X=10m~16m, Y=8m, and the projection range of the axis of beam L-01 in the three-dimensional model is X=10.1m~15.9m, Y=8m. The overlap length is 5.8m, and the total length is 6m, with an overlap of 96.7%, which can be determined as a positional match.

[0050] Optionally, in this embodiment, the cross-sectional dimension comparison is performed by comparing the cross-sectional parameters (such as width × height) of the components labeled in the two-dimensional plan drawing with the cross-sectional attributes of the components in the three-dimensional model to verify whether the two match. Specifically, the cross-sectional labels in the two-dimensional drawing (such as "500×800" indicating a width of 500mm and a height of 800mm) are extracted and compared with the cross-sectional dimension parameters of the three-dimensional components (such as "b=500mm, h=800mm" for a Revit beam) for numerical error analysis, which can be, but is not limited to, deviations within a certain range. For example, if the KL2 beam is labeled "400×700" in the two-dimensional plan drawing, the corresponding beam cross-section in the three-dimensional model is "405×695", with errors of 1.25% and 0.71% respectively, both within the allowable range, and is judged to be a cross-sectional match.

[0051] Optionally, in this embodiment, the component type consistency check is performed by verifying whether the type identifier of the component in the two-dimensional plan drawing is consistent with the type attribute of the component in the three-dimensional model, ensuring that they belong to the same type of structural component. Specifically, the numbering information of the two-dimensional graphic elements (e.g., "KL" represents a frame beam, "KZ" represents a frame column, and "L" represents a non-frame beam) is parsed and compared with the type parameters of the three-dimensional component, requiring a complete match in type classification (e.g., "KL" must correspond to the "frame beam" type in the three-dimensional model). For example, the graphic element numbered "KZ1" in the two-dimensional drawing (representing a frame column) needs to match the component with the type attribute "frame column" in the three-dimensional model. If the corresponding three-dimensional component type is "structural column", it is determined that the types are inconsistent, and the match fails.

[0052] Optionally, in this embodiment, if a first target component in at least one of the first components successfully matches a three-dimensional model, an association relationship is established between the first graphic element corresponding to the first target component and the three-dimensional model. This can also be understood, but is not limited to, as establishing an association relationship between the first target component and a three-dimensional component in the three-dimensional model if a first target component in at least one of the first components successfully matches a three-dimensional component in the three-dimensional model.

[0053] Optionally, in this embodiment, if at least one of the first components fails to match the first target component with the three-dimensional model, the geometric features of the first component can be matched with the geometric features of the three-dimensional components in the three-dimensional model. This allows the matching to continue even if the original matching fails, ensuring that the first component can be associated with the three-dimensional model.

[0054] S206, based on the association relationship, fill the design information contained in the first graphic element into the three-dimensional model, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components contained in the three-dimensional model.

[0055] Optionally, in this embodiment, the design information may be, but is not limited to, information contained in the two-dimensional planar drawing elements that defines the functions and engineering application parameters of the three-dimensional components. It may be, but is not limited to, functional attributes such as component type, purpose, and stress level, and engineering parameters such as cross-sectional dimensions, material strength, reinforcement parameters, and construction process requirements. The design information may include, but is not limited to, design element information, outer contour information, and standard design data information.

[0056] Optionally, in this embodiment, based on the established association between the first graphic element and the three-dimensional component, complete design information is first extracted from the first graphic element, and then the extracted design information is entered into the associated three-dimensional component attributes one by one according to the information storage format of the three-dimensional model, such as the attribute parameter bar of the Revit component, thus completing the transfer and filling of design information from the two-dimensional graphic element to the three-dimensional model.

[0057] It should be noted that, without importing design information, the 3D model of a component obtained through 3D modeling software usually lacks some detailed design information, such as reinforcement parameters and concrete strength grade. However, the technical solution described in this application embodiment can establish an association between the first graphic element corresponding to the first target component and the 3D component in the 3D model after the first target component and the 3D component in the 3D model are successfully matched. Then, based on the association, the design information contained in the first graphic element is filled into the 3D component. This enables the design information contained in the 2D flat drawing to be quickly filled into the 3D model, improving the efficiency of filling the 3D model with design information.

[0058] It is understood that, through the embodiments provided in this application, there is no need for manual comparison one by one. By automatically establishing the matching and association relationship between the first component and the three-dimensional model, the manual matching cost of two-dimensional graphic elements and three-dimensional components is reduced, and the association efficiency is improved. Based on the established association relationship, design information can be automatically filled from the first graphic element to the three-dimensional model, avoiding repetitive manual input operations and significantly improving the filling efficiency of design information. The establishment of the association relationship ensures the accuracy of design information transmission, reduces errors in the manual matching and input process, realizes the efficient and accurate transmission of two-dimensional planar drawing design information to the three-dimensional model, and solves the problem of low design information filling efficiency in the prior art.

[0059] Through the embodiments provided in this application, at least one first component is generated based on at least one graphic element contained in a two-dimensional flat drawing, wherein the first component is a three-dimensional component; when a first target component in at least one of the first components successfully matches a three-dimensional model, an association relationship is established between the first graphic element corresponding to the first target component and the three-dimensional model; based on the association relationship, the design information contained in the first graphic element is filled into the three-dimensional model, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components contained in the three-dimensional model, thereby achieving the purpose of reducing the filling of design information in the three-dimensional model, thereby achieving the technical effect of improving the filling efficiency of design information in the three-dimensional model, and thus solving the technical problem of low filling efficiency of design information in the three-dimensional model.

[0060] As an optional approach, before establishing the association between the first graphic element corresponding to the first target component and the 3D model, the method further includes:

[0061] S1-1, Establish a horizontal two-dimensional coordinate system based on the two-dimensional flat surface diagram;

[0062] Iterate through all first components and perform the following steps on the current component:

[0063] S1-2, Obtain the height information corresponding to the current component;

[0064] S1-3, obtain the midpoint coordinates of the current component, where the midpoint coordinates are used to indicate the geometric center of the current component in the horizontal two-dimensional coordinate system;

[0065] S1-4. Based on the midpoint coordinates and the height information corresponding to the current component, perform fuzzy matching on the 3D model to obtain at least one second component, wherein the second component matches the midpoint coordinates and height information.

[0066] Optionally, in this embodiment, the horizontal two-dimensional coordinate system may be, but is not limited to, a two-dimensional rectangular coordinate system established based on the planar space of the two-dimensional flat drawing. It may be, but is not limited to, using a fixed reference point in the two-dimensional flat drawing, such as the origin of the grid or the lower left corner of the drawing, as the origin of the coordinate system, with the horizontal direction in the drawing as the X-axis and the vertical direction as the Y-axis. This system is used to quantify the planar spatial position of the graphic elements in the two-dimensional flat drawing and the corresponding first component, thereby providing a unified planar coordinate reference for matching the spatial position of the first component with the three-dimensional model, avoiding position judgment deviations caused by inconsistent coordinate systems, and ensuring spatial consistency of the matching.

[0067] Optionally, in this embodiment, the height information may be, but is not limited to, the vertical position parameter of the current component. It can also be understood as the position parameter of the current component on a two-dimensional coordinate system perpendicular to the horizontal. In the building model, it can correspond to the height of a building floor, used to reflect the vertical position of the component in three-dimensional space. Its function is to supplement the three-dimensional position information of the component and avoid misjudging components with different heights on the same plane due to matching only the planar position.

[0068] Optionally, in this embodiment, the midpoint coordinates may be, but are not limited to, the geometric center coordinates of the current component's planar projection in the horizontal two-dimensional coordinate system. They are obtained by calculating the X and Y axis coordinates of the center point of the component's planar projection and are used to accurately indicate the planar center position of the component. This simplifies the planar position matching logic and improves matching efficiency.

[0069] Optionally, in this embodiment, the second component may be, but is not limited to, a three-dimensional component that meets the conditions after preliminary matching of the three-dimensional model based on the midpoint coordinates and height information. This can narrow down the range of subsequent precise matching, reduce the amount of calculation, and improve the overall matching efficiency.

[0070] Optionally, in this embodiment, based on the two-dimensional planar drawing, an origin and coordinate axes are selected to construct a unified planar coordinate system; then, all first components are accessed sequentially, each accessed first component is determined as the current component, and the vertical position parameters of the current component are extracted as height information; then, the planar projection shape of the current component in the horizontal two-dimensional coordinate system is determined, and the X and Y coordinates of the projection center are obtained through geometric calculation as the midpoint coordinates to reflect the planar center position of the component; finally, using the midpoint coordinates and height information as dual conditions, components are screened in the three-dimensional model. On the plane, the distance between the three-dimensional component and the midpoint coordinates meets the distance condition; vertically, the height meets a specific height condition, such as being on the second floor, and the three-dimensional components that meet the conditions are then determined as the second components.

[0071] Optionally, in this embodiment, fuzzy matching can be, but is not limited to, a technical logic for preliminary screening of candidate components by extracting the component's attribute features (such as midpoint coordinates, cross-sectional dimensions, component type, etc.) from the two-dimensional planar drawing components and the three-dimensional model components, and setting reasonable error thresholds (such as spatial position overlap greater than or equal to the overlap threshold, and cross-sectional dimension error less than or equal to the error threshold). For example, several second components can be screened from the three-dimensional model based on the midpoint coordinates and height information of the two-dimensional beam, and then the range can be further narrowed down by conditions such as projection line distance and axis overlap, thereby reducing the computational load of subsequent precise matching, while being compatible with minor deviations in the design or modeling process, and improving the efficiency and robustness of matching.

[0072] To further illustrate the fuzzy matching process, consider three different beams, A, B, and C, in a 3D model. Obtain the midpoints of the projections of beams A, B, and C onto a horizontal 2D coordinate system. The midpoint coordinates of beam A are (2560mm, 3280mm), the midpoint coordinates of beam B are (2320mm, 5750mm), and the midpoint coordinates of beam C are (2680mm, 3350mm). Cache the beam coordinates of beams A, B, and C.

[0073] Next, following the 500mm rounding rule, group the X and Y coordinates in 500mm intervals, take the nearest 500mm integer multiples, calculate the rounded X and Y values ​​for each beam, and construct a Key in the format (X, Y, 0).

[0074] It should be noted that in the rounding rule, if the remainder when the coordinate value is divided by 500 is less than or equal to 250, it is rounded down; if the remainder is greater than 250, it is rounded up. Therefore, in calculating the Key of beam A, since X = 2560mm and 2560 ÷ 500 ≈ 5.12, it is rounded to 5 × 500 = 2500mm. Y = 3280mm and 3280 ÷ 500 ≈ 6.56, it is rounded to 7 × 500 = 3500mm. The final Key of beam A is (2500, 3500, 0). Similarly, the Key of beam B is (2500, 6000, 0), and the Key of beam C is (2500, 3500, 0).

[0075] Furthermore, the beams are grouped according to the constructed key, and IDs with the same key are grouped together to form cached data. For example, beams A and C are in one group, and beam B is in another group.

[0076] Then, extract the midpoint coordinates of the two-dimensional beam (equivalent to the current component) generated from the elements of the two-dimensional flat drawing to be matched, such as (2520mm, 3310mm), and calculate the fuzzy key according to the same rounding rule to obtain the fuzzy key as (2500, 3500, 0).

[0077] Finally, since the fuzzy key of the two-dimensional beam is the same as the key of beam A and beam C, beam A and beam C are identified as the second components that match the midpoint coordinates and height information of the two-dimensional beam.

[0078] It should be noted that by first establishing a unified coordinate system and then extracting the height information and midpoint coordinates of each first component, a small number of second components are selected from a large number of three-dimensional components based on two parameters. This not only avoids misjudgment of components with different heights on the same plane, but also enables the rapid acquisition of second components that match the current component, thus improving the efficiency of obtaining second components by matching the current component.

[0079] The embodiments provided in this application establish a horizontal two-dimensional coordinate system based on a two-dimensional planar diagram; traverse all first components and perform the following steps on the current component: obtain the height information corresponding to the current component; obtain the midpoint coordinates corresponding to the current component, wherein the midpoint coordinates are used to indicate the geometric center of the current component in the horizontal two-dimensional coordinate system; based on the midpoint coordinates and the height information corresponding to the current component, perform fuzzy matching on the three-dimensional model to obtain at least one second component, wherein the second component matches the midpoint coordinates and height information. By first establishing a unified coordinate system and then extracting the height information and midpoint coordinates of each first component, a small number of second components are selected from a large number of three-dimensional components based on two parameters. This avoids misjudgment of components with different heights on the same plane and enables rapid acquisition of second components that match the current component, thus improving the efficiency of obtaining second components through matching the current component.

[0080] As an optional approach, after obtaining at least one second component by performing fuzzy matching on the 3D model based on the midpoint coordinates and the height information corresponding to the current component, the method further includes:

[0081] S2-1, Obtain the projection line of each second component in the horizontal two-dimensional coordinate system;

[0082] S2-2, If the distance between the projection line of the third component and the midpoint coordinates in at least one second component is less than the width of the third component, obtain the axis corresponding to the current component and obtain the axis corresponding to the third component, wherein the axis is located in the horizontal two-dimensional coordinate system;

[0083] S2-3, Obtain the overlap condition, and if the overlap condition is satisfied between the axis corresponding to the current component and the axis corresponding to the third component, determine the current component as the first target component;

[0084] S2-4, Establish the association between the first target component and the third component.

[0085] Optionally, in this embodiment, the projection line of the second component may refer to, but is not limited to, the line segment formed after the second component in the three-dimensional model is projected onto the horizontal two-dimensional coordinate system in a direction perpendicular to the plane of the horizontal two-dimensional coordinate system, which can reflect the planar outline or axis position of the second component, thereby enabling the planar shape of the three-dimensional second component to be transformed into a two-dimensional line segment.

[0086] Optionally, in this embodiment, the third component may be, but is not limited to, a three-dimensional component selected from at least one second component that satisfies the condition that the distance between the projection line and the midpoint coordinate of the current component is less than or equal to its own width. It can further narrow down the range based on the second components obtained by fuzzy matching, and select components that are more related to the planar position of the current component, thereby reducing the amount of calculation.

[0087] Optionally, in this embodiment, the axis of the current component may, but is not limited to, refer to the central axis of the current component in the horizontal two-dimensional coordinate system. It is usually the core line segment that reflects the length direction of the component. Its position and direction are consistent with the axis of the corresponding component in the two-dimensional planar drawing. It can serve as a geometric reference for matching the current component with the third component. It can, but is not limited to, determine whether the two are corresponding components by judging the overlap condition with the axis of the third component.

[0088] Optionally, in this embodiment, the axis of the third component may, but is not limited to, refer to the central axis of the third component in the horizontal two-dimensional coordinate system, and may, but is not limited to, be consistent with the position of the projection line of the third component, reflecting the length direction and planar position of the third component, and can be used as a comparison benchmark for overlapping and matching with the axis of the current component. By judging the overlap condition of the two axes, it can be determined whether the two are corresponding components.

[0089] Optionally, in this embodiment, each second component in the three-dimensional model is projected onto the horizontal two-dimensional coordinate system along a direction perpendicular to the horizontal two-dimensional coordinate system to generate a projection line that reflects the planar outline or axial position of the second component. The geometric parameters (such as length and endpoint coordinates) of the projection line are consistent with the shape of the second component in the horizontal direction, thereby converting the three-dimensional second component into a two-dimensional projection line and eliminating the dimensional difference between three-dimensional and two-dimensional.

[0090] Next, calculate the vertical distance between the projection line of each second component and the midpoint coordinates of the current component, and select the second components whose distance is less than their own width as the third components; then extract the central axes of the current component and the third component in the horizontal two-dimensional coordinate system respectively.

[0091] Then, the preset overlap conditions are invoked to calculate whether the axis of the current component and the axis of the third component meet the preset overlap conditions. This can be achieved, but is not limited to, by dividing the length of the overlapping line by the shorter axis length to obtain the overlap ratio. If the ratio is greater than or equal to the threshold corresponding to the overlap condition, the current component is determined to be the first target component corresponding to the third component. By quantifying the overlap conditions, the axial correlation between the current component and the third component is accurately determined, avoiding misjudgments caused by slight positional deviations and ensuring the accurate correspondence between the first target component and the third component.

[0092] Finally, after determining the first target component, a one-to-one correspondence between the two is established in the form of data mapping.

[0093] Understandably, by filtering the midpoint distance of the projection line and verifying the overlap of the axis, the range of candidate components is further narrowed, thereby improving the positioning accuracy of the first target component; and by judging the axis correlation based on the quantified overlap condition, the subjective error of manual judgment is avoided, and the matching accuracy between the first target component and the third component is improved.

[0094] The embodiments provided in this application obtain the projection lines corresponding to each second component in a horizontal two-dimensional coordinate system. If, in at least one second component, the distance between the projection line corresponding to the third component and its midpoint coordinate is less than the width of the third component, the axis corresponding to the current component and the axis corresponding to the third component are obtained, wherein the axes are located in a horizontal two-dimensional coordinate system. Overlap conditions are obtained, and if the overlap conditions are met between the axis corresponding to the current component and the axis corresponding to the third component, the current component is determined as the first target component. An association relationship is established between the first target component and the third component. By using projection line midpoint distance filtering and axis overlap matching for dual verification, the range of candidate components is further narrowed, thereby improving the positioning accuracy of the first target component. Furthermore, the axis correlation is judged based on quantified overlap conditions, avoiding subjective errors from manual judgment and improving the matching accuracy between the first target component and the third component.

[0095] As an optional approach, the overlap condition is obtained, including at least one of the following:

[0096] S3-1, Obtain the component type corresponding to the current component, and obtain the overlap condition based on the component type;

[0097] S3-2, obtain the deviation information of the two-dimensional flat drawing, and obtain the overlap condition based on the deviation information. The deviation information is used to indicate the drawing accuracy of the two-dimensional flat drawing.

[0098] Optionally, in this embodiment, the component type corresponding to the current component may refer to, but is not limited to, standard structural component types such as beam, column, slab, wall, and foundation, which are based on the structural category to which the current component belongs. These types are core components in building structural design, and their geometric shapes, stress characteristics, and modeling rules are significantly different.

[0099] Optionally, in this embodiment, the deviation information of the two-dimensional flat drawing may be, but is not limited to, quantitative data used to indicate the accuracy of the two-dimensional flat drawing. It may include, but is not limited to, the deviation value of the intersection of the beam axis and the grid, the distance from the component annotation center point to the component line, and the completeness of the geometric parameters of complex components such as curved beams. This information can reflect the degree of deviation between the two-dimensional flat drawing and the ideal design state, thereby providing a basis for the dynamic adjustment of the overlap condition. For example, if a two-dimensional flat drawing with high accuracy is drawn, the corresponding overlap condition can be set higher to ensure accurate matching; while if a flat drawing with low accuracy is drawn, the corresponding overlap condition needs to be appropriately reduced to avoid matching failure due to drawing deviation.

[0100] To further illustrate, if the deviation between the beam axis and the grid in the two-dimensional flat drawing is less than or equal to 3mm and the annotation distance is less than or equal to 5mm, then the drawing accuracy of the two-dimensional flat drawing is high, and the overlap condition can be set to 85%. If the axis deviation is greater than 8mm and the annotation distance is greater than 12mm, then the drawing accuracy of the two-dimensional flat drawing is low, and the overlap condition can be set to 70%.

[0101] Optionally, in this embodiment, the component type of the current component is first determined by identifying the element attributes of the two-dimensional planar graph corresponding to the current component; then, based on the preset mapping relationship between component types and overlap conditions, the overlap condition threshold for the corresponding type is retrieved. By setting overlap conditions differently for component types, the problem of inaccurate matching of high-precision components or failure to match low-precision components caused by using a uniform threshold is avoided, ensuring that the overlap conditions are adapted to the component characteristics and that the overlap conditions match the component type, thereby improving the matching accuracy.

[0102] Optionally, in this embodiment, deviation information of the two-dimensional planar drawing is extracted through graphic element recognition, such as beam axis deviation, annotation distance, and completeness of complex component parameters. Then, the drawing accuracy level of the planar drawing is determined based on the deviation information. According to the preset mapping relationship between accuracy level and overlap conditions, the corresponding overlap condition threshold is obtained. By dynamically adjusting the overlap conditions based on the drawing accuracy of the two-dimensional planar drawing, the matching and adaptation problem caused by differences in drawing quality is solved. High-precision drawings correspond to high overlap conditions, thus ensuring accurate matching, while low-precision drawings correspond to low overlap conditions, improving the matching success rate when matching on low-precision drawings.

[0103] Optionally, in this embodiment, if two different overlap conditions are obtained at the same time, the overlap degree corresponding to the two different overlap degrees can be weighted and summed, and the overlap degree after weighted summation can be used as the new overlap condition.

[0104] Optionally, in this embodiment, different weights can be obtained according to the current project stage. For example, if fast matching is required in the preliminary modeling stage, the weight of drawing accuracy can be increased, such as a component type weight of 0.4 and a drawing accuracy weight of 0.6, to accommodate deviations in low-precision drawings. In the construction drawing refinement stage, high-precision matching is required, such as a component type weight of 0.7 and a drawing accuracy weight of 0.3, to ensure accurate matching of core components. This can meet the differentiated needs of different project stages, improve the adaptability of overlapping conditions and projects, and thus adapt to different requirements at different stages.

[0105] It should be noted that by using a dual approach—obtaining overlap conditions based on component type and obtaining overlap conditions based on deviation information from two-dimensional planar drawings—the problem of poor adaptability caused by using a uniform overlap threshold in existing technologies is solved. Different component types and different drawing accuracies correspond to differentiated overlap conditions, making the overlap conditions highly adaptable to the actual matching scenario. Moreover, there is no need to manually set overlap conditions; the acquisition is automated through component type recognition and deviation information extraction, reducing manual intervention costs and improving the efficiency of overlap condition acquisition.

[0106] The embodiments provided in this application obtain the component type corresponding to the current component and, based on the component type, obtain the overlap condition; they also obtain the deviation information of the two-dimensional flat drawing and, based on the deviation information, obtain the overlap condition, wherein the deviation information is used to indicate the drawing accuracy of the two-dimensional flat drawing. By using a dual approach of obtaining overlap conditions based on component type and based on the deviation information of the two-dimensional flat drawing, the poor adaptability problem caused by using a uniform overlap threshold in the prior art is solved. Different component types and different drawing accuracies correspond to differentiated overlap conditions, making the overlap conditions highly adaptable to the actual matching scenario; moreover, there is no need to manually set the overlap conditions, as the acquisition is automated through component type recognition and deviation information extraction, reducing manual intervention costs and improving the efficiency of obtaining overlap conditions.

[0107] As an optional approach, after establishing the association between the first graphic element corresponding to the first target component and the 3D model, the method further includes at least one of the following:

[0108] S4-1, In the case of multiple fourth components that fail to match in the 3D model, obtain the geometric features corresponding to the fourth components, and determine the second target component from at least one first component based on the geometric features corresponding to each fourth component; establish the association relationship between the second graphic element corresponding to the second target component and multiple fourth components;

[0109] S4-2, In the case that there are multiple fifth components that fail to match in at least one first component, obtain the geometric features corresponding to the fifth component, and determine the third target component from the three-dimensional model based on the geometric features corresponding to each fifth component; establish the association relationship between the third graphic element corresponding to the third target component and the multiple fifth components.

[0110] Optionally, in this embodiment, the fourth component may refer to, but is not limited to, a three-dimensional component that, after the initial matching process between the first target component and the three-dimensional model, has not been successfully matched with any first component, possesses a complete three-dimensional geometric shape (such as length, cross-section, and spatial position), but is not associated with the design information of the two-dimensional planar drawing.

[0111] Optionally, in this embodiment, geometric features may refer to, but are not limited to, the geometric parameters of the component in a horizontal two-dimensional coordinate system or three-dimensional space, and may include, but are not limited to, the component's midpoint coordinates, cross-sectional dimensions, length, axial direction, outer contour shape (such as arc or straight line), spatial position overlap, etc.

[0112] Optionally, in this embodiment, the second target component may refer to, but is not limited to, a first component selected from at least one first component whose geometric feature similarity to the merged fourth component meets a preset threshold, which can find a corresponding design information source for the merged fourth component, such as a second graphic element, to ensure that the fourth component to be merged can be associated with complete two-dimensional design information.

[0113] Optionally, in this embodiment, the fifth component may refer to, but is not limited to, multiple components in at least one first component that have not been successfully matched with any three-dimensional component. These components are associated with the design information of the two-dimensional planar drawing, but no corresponding three-dimensional model component has been found. For example, component E, generated based on the KL6 element of the planar drawing, does not find a corresponding Revit beam during the initial matching process, thus it is the fifth component; while in the three-dimensional model, there is a 12m long Revit beam L-11, which needs to be divided into 3 segments, each 4m long, and one of these segments matches component E.

[0114] Optionally, in this embodiment, the third target component may refer to, but is not limited to, a three-dimensional component that, after being selected and split from the three-dimensional model, has a geometric feature similarity to the fifth component that meets a preset threshold.

[0115] Optionally, in this embodiment, if there are multiple unmatched fourth components in the three-dimensional model, the geometric features of each fourth component are first extracted, and the merging conditions are determined by the geometric features. After merging, the merged geometric features are compared with all first components, and the first components with the same similarity are selected as the second target components. Finally, the association between the second graphic element corresponding to the second target component and the merged fourth component is established, and the design information is transmitted.

[0116] To further illustrate, optionally, if the second target component is determined from the first component based on the geometric characteristics of the fourth component, such as the splicing method, location, and connected components of the fourth component, and the fourth component is merged, and it is determined whether the merged component matches the second target component, if they match, then an association relationship is established between the fourth component and the second target component.

[0117] Optionally, in this embodiment, if there are multiple unmatched fifth components in the first component, the geometric features of each fifth component are extracted first; then, the separable third target components are selected from the three-dimensional model and split according to the geometric features of the fifth components; after splitting, the similarity of the geometric features of each split component with the fifth component is judged, and if the similarity is met, the association relationship between the third target component and the corresponding third graphic element of the fifth component is established.

[0118] It should be noted that by merging the first component that fails to match, or by breaking the three-dimensional components in the three-dimensional model that fails to match, matching can continue even when it fails. This allows for matching even in different complex projects, improving adaptability to complex projects and ensuring that two-dimensional design information can be fully transferred to the three-dimensional digital model.

[0119] It is understood that the content described in this embodiment can also be regarded as, in the case that the first target component in at least one first component fails to match with the three-dimensional model, matching is performed based on the geometric features of the first component and the geometric features of the three-dimensional component in the three-dimensional model, so that matching can continue even if the original matching fails, so as to ensure that the first component can be associated with the three-dimensional model.

[0120] Through the embodiments provided in this application, when there are multiple fourth components that fail to match in the 3D model, the geometric features corresponding to the fourth components are obtained, and a second target component is determined from at least one first component based on the geometric features corresponding to each fourth component; an association relationship is established between the second graphic element corresponding to the second target component and the multiple fourth components; when there are multiple fifth components that fail to match in at least one first component, the geometric features corresponding to the fifth components are obtained, and a third target component is determined from the 3D model based on the geometric features corresponding to each fifth component; an association relationship is established between the third graphic element corresponding to the third target component and the multiple fifth components.

[0121] By merging the first component that fails to match, or breaking the three-dimensional components in the three-dimensional model that fail to match, matching can continue even if it fails. This improves the adaptability to complex projects and ensures that two-dimensional design information can be fully transferred to the three-dimensional digital model.

[0122] As an optional approach, after filling the 3D model with the design information contained in the first graphic element based on the association relationship, the method also includes:

[0123] S5-1, Based on the correlation relationship, determine the fourth target component that matches the first graphic element from the three-dimensional model;

[0124] S5-2, Obtain the spatial information of the fourth target component, wherein the spatial information is used to indicate the position of the fourth target component in the three-dimensional model;

[0125] S5-3, based on the association relationship, fill the spatial information into the first graphic element.

[0126] Optionally, in this embodiment, the fourth target component may refer to, but is not limited to, the three-dimensional component determined from the three-dimensional model that corresponds to the first graphic element.

[0127] Optionally, in this embodiment, the spatial information may, but is not limited to, the positional parameters of the fourth target component in the three-dimensional model. It may include, but is not limited to, the coordinates of the fourth target component in the three-dimensional coordinate system, its spatial elevation, and its spatial relative position with surrounding components. This directly reflects the actual arrangement position of the fourth target component in the three-dimensional model, supplementing the two-dimensional first graphic element with three-dimensional spatial positional data. This solves the problem that the two-dimensional planar drawing only contains planar positional information and lacks three-dimensional spatial information, enabling the two-dimensional graphic element to possess both design attributes and three-dimensional spatial attributes. Furthermore, the spatial information may also include the component ID of the fourth target component.

[0128] Optionally, in this embodiment, by calling the mapping data between the first graphic element ID and the three-dimensional component ID stored in the association relationship, a three-dimensional component uniquely corresponding to the current first graphic element is determined from the three-dimensional model and used as the fourth target component.

[0129] Next, the three-dimensional spatial parameters of the fourth target component are extracted through the interface provided by the three-dimensional modeling software, including but not limited to three-dimensional coordinates, spatial elevation, relative position, component ID, etc.

[0130] Finally, the extracted spatial information is written into the first graphic element according to the preset format, so that the two-dimensional graphic element contains both design information and three-dimensional spatial information.

[0131] It should be noted that the existing relationships ensure the accuracy of spatial information transmission, while spatial information makes two-dimensional graphic elements more valuable for engineering guidance. This allows two-dimensional plan drawings to have both design information and spatial information from three-dimensional models, thus improving the comprehensiveness of information in two-dimensional plan drawings.

[0132] Through the embodiments provided in this application, a fourth target component matching the first graphic element is determined from the 3D model based on the association relationship; spatial information of the fourth target component is obtained, wherein the spatial information is used to indicate the position of the fourth target component in the 3D model; and the spatial information is filled into the first graphic element based on the association relationship. The existing association relationship ensures the accuracy of spatial information transmission, while the spatial information makes the 2D graphic element more valuable for engineering guidance, enabling the 2D plan drawing to possess both design information and spatial information from the 3D model, thus improving the comprehensiveness of the 2D plan drawing information.

[0133] As an optional approach, after filling the spatial information into the first graphic element based on the association relationship, the method also includes:

[0134] S6-1, Obtain the target design information of the first graphic element, wherein the target design information is used to indicate the modified design information;

[0135] S6-2, based on the correlation and spatial information, the target design information is determined as the design information corresponding to the fourth target component.

[0136] Optionally, in this embodiment, the target design information may refer to, but is not limited to, design change data initiated on the first element of the two-dimensional structural construction drawing, used to indicate the modified design information, and may include, but is not limited to, adjustments to component cross-sectional dimensions, changes in material strength, modifications to reinforcement parameters, and updates to component numbers.

[0137] Optionally, in this embodiment, the design change operation initiated by the user on the first graphic element is obtained through graphic element recognition in 2D design software, such as CAD, and extracted and converted into standardized modification information. This enables accurate acquisition of design change data from the 2D perspective, transforming unstructured modification operations into transferable quantitative information, providing a clear basis for subsequent synchronization to the 3D model, and avoiding errors in 3D model updates due to unclear modification information.

[0138] Next, based on the correlation, a fourth target component matching the first graphic element and located in the 3D model is identified. Then, a secondary verification is performed using the spatial information of the fourth target component to confirm the accuracy of the location. Finally, the acquired modification information is written into the attribute parameters of the fourth target component, updating its corresponding design information and synchronizing the 3D model with the 2D modifications. Through dual positioning using both correlation and spatial information, it ensures that modification information is accurately transmitted to the corresponding fourth target component in the 3D model, avoiding incorrect modification targets. Simultaneously, it achieves automated updates of 2D design changes in the 3D model, eliminating the need for manual modification of 3D component parameters and improving the efficiency of design changes.

[0139] It should be noted that the modification information of the first element in the two-dimensional model is obtained first, and then the fourth target component in the three-dimensional model is initially located based on the established relationship. The spatial information of the fourth target component is combined to verify the accuracy of the location. Finally, the modification information is updated to the design information corresponding to the fourth target component. This achieves the technical effect of automating and accurately synchronizing two-dimensional design changes in the three-dimensional model, avoiding the inefficiency and errors of manually modifying three-dimensional components, ensuring that the two-dimensional and three-dimensional design information are always consistent, and improving the efficiency and accuracy of design changes.

[0140] The embodiments provided in this application obtain target design information for a first graphic element, wherein the target design information is used to indicate the modified design information; based on the association relationship and spatial information, the target design information is determined to be the design information corresponding to the fourth target component. By first obtaining the modification information of the first graphic element in the two-dimensional model, then relying on the established association relationship to initially locate the fourth target component in the three-dimensional model, and combining the spatial information of the fourth target component to verify the accuracy of the location, the modification information is finally updated to the design information corresponding to the fourth target component. This achieves the technical effect of automating and accurately synchronizing two-dimensional design changes in the three-dimensional model, avoiding the inefficiency and errors of manually modifying three-dimensional components, ensuring that the two-dimensional and three-dimensional design information are always consistent, and improving the efficiency and accuracy of design changes.

[0141] As an optional solution, in order to better understand the process of the above-mentioned three-dimensional model design information filling method, the following describes the execution flow of the above-mentioned server fault prediction method in conjunction with optional embodiments, but it is not intended to limit the technical solution of the embodiments of this application.

[0142] This embodiment proposes a method for adding structured drawing information to a 3D model. The specific steps are as follows:

[0143] 1) Convert the standard drawing into a 3D digital model of a single layer and single component (before this conversion, select a point on the plane as the corresponding coordinates, set a number in the dialog box as the layer elevation, and optionally set a number in the dialog box as the plane rotation value). The generated standard drawing includes information data for several independent structural components. The data for a single independent component includes the design element information (also known as standard element information) corresponding to the component, the outer contour information of the component, and other manufacturing attribute information of the component (collectively referred to as standard design data information).

[0144] 2) Obtain the created 3D model data from the existing 3D model using the API (REVIT, TS3D) or standard data interface file.

[0145] 3) The outer contour data of the 3D digital model generated from the flat drawing is matched one-to-one with the existing 3D model data based on the components.

[0146] 4) After matching, based on the interface provided by the 3D modeling software, including API or standard data interface, write the 2D recognition standard graphic element information and standard design data based on the components into the 3D model.

[0147] Currently, structural information acquisition primarily relies on engineers reading drawings and then manually entering the data. This involves placing 2D drawings under a 3D model for data input or matching, but the data needs to be acquired from 2D data within the 3D platform for recognition, which can lead to data distortion. Furthermore, the interactive features of current 3D model software are less convenient than those of 2D software. Additionally, algorithms need to be reconstructed within the 3D software.

[0148] However, inputting structural construction drawings and component information into Revit is a complex and time-consuming process. Typically, comparing CAD construction drawings with the Revit model requires repeated manual operations, resulting in high labor costs and a high risk of errors. This embodiment utilizes image recognition technology to automatically improve the efficiency of inputting 3D Revit data.

[0149] S7-1 identifies graphic elements in the CAD drawing. After identifying the beam drawing, run the "Generate Beam trvt" command. Select the export file directory and name, as well as supplementary information such as floor elevation. Next, after identifying the drawing, generate the interface file, specify the alignment point, and finally generate the file.

[0150] S7-2, import data into the Revit model. A pop-up dialog box will appear. Then click the alignment point to complete the import of data, 2D drawings, and the model. It should be noted that this process imports not only the components and assigns them attributes, but also the design graphic information such as design text and logos.

[0151] The technical process of implementation, such as Figure 3 As shown, it includes:

[0152] S302, Obtain CAD drawing element information;

[0153] S304 assigns CAD drawing element information according to professional rules and converts it into component classification information; at the same time, it marks the data source of the component classification information.

[0154] S306, combine component classification information to obtain multiple individual components and information groups of individual components in the component group;

[0155] S308 uses the association between CAD drawing elements and structural information to reversely represent the component number and information category corresponding to the drawing element;

[0156] S310, using coordinate rules to match the information of a single component group with the REVIT model information, so that the REVIT model components can obtain the structural information of graphic element analysis;

[0157] S312, copy the graphic element information to the corresponding position of the 3D model, and establish the association between the graphic element and the identification component and the identification component and the REVIT model component based on the established association between the graphic element and the identification component and the REVIT model component.

[0158] S314 In REVIT, the graph generation logic is used to prioritize the association between graph elements and the model.

[0159] Optionally, in this embodiment, character group recognition is performed based on CAD to obtain graphic elements in the two-dimensional plan drawing. Then, the graphic elements in the two-dimensional plan drawing are identified to form components and generate attribute information. The information source is obtained through drawing recognition. The graphic elements are then digitally identified in reverse. Next, based on interface data provided by Revit, domestic TS3D, and Glodon GTJ (data that can reproduce the shape of the digital model), the planar data created from the two-dimensional plan drawing is analyzed with this data. For beams, firstly, all beams in the vicinity are searched by reinforcement location. Secondly, the correct beams are precisely matched using the set found in the first step. Through the three-dimensional software structure, the graphic element information is written to the corresponding position in the three-dimensional model. Optionally, based on the established association between graphic elements and identified components, and the association between identified components and Revit model components, by establishing the association between graphic elements and Revit model components, the graphic element data and model data can be kept consistent, and subsequent linkage modifications can be achieved using Revit's mechanisms.

[0160] Optionally, in this embodiment, coordinate rules and fuzzy correction rules (with certain data tolerance and data uniqueness judgment under professional rules, etc.) are used to match the information of a single component group with the information of the REVIT model. Optionally, the structural information of the REVIT model components is copied to obtain the structural information of the graphic element analysis. Among them, the fuzzy matching of beams includes the following steps:

[0161] S8-1, cache beam data; where S1 includes:

[0162] S8-1-1, take the midpoints X and Y of the beam. Since a single-layer matching is used, Z is ignored.

[0163] S8-1-2, X and Y are rounded within a fixed range (parameter: 500mm), constructing a string (X, Y, 0) as the key;

[0164] S8-1-3, group beam IDs with the same Key together.

[0165] S8-2, find the beam based on the data; where S2 includes:

[0166] S8-2-1, Take the midpoint of the two-dimensional data beam and calculate the fuzzy key;

[0167] S8-2-2: Search for Revit beams in the cache based on the key. The first search is a fuzzy search, which can find multiple beams.

[0168] S8-2-3, perform detailed matching based on the Revit beams found through fuzzy matching.

[0169] S8-3, detailed matching; where S3 includes:

[0170] S8-3-1, The distance from the 2D beam positioning point to the Revit beam line must be less than or equal to the Revit beam width;

[0171] S8-3-2, Project the compliant two-dimensional beam line onto the Revit beam line to construct a new positioning line;

[0172] S8-3-3, Calculate the overlap line between the line constructed in step 2 and the Revit component positioning line;

[0173] S8-3-4, Calculate the overlap ratio;

[0174] S8-3-5: When the overlap ratio is greater than or equal to 80% (parameter), it is considered a complete match.

[0175] S8-4, handles beams that are still not matched after the previous step; S4 also includes:

[0176] S8-4-1, retrieve all Revit beam IDs that do not have a matching ID;

[0177] S8-4-2, retrieve all unmatched 2D beam data;

[0178] S8-4-3, calculate the Revit beams that need to be merged (one 2D data point corresponds to multiple Revit beams);

[0179] S8-4-4, execute beam merging, and match the merged beams with the two-dimensional data;

[0180] S8-4-5, Calculate the Revit beam that needs to be broken (one Revit beam corresponds to multiple 2D data).

[0181] S8-4-6, perform beam splitting, and match the split beams with the two-dimensional data respectively.

[0182] For data that still cannot be matched in S8-5, write it to the Log record.

[0183] Optionally, the column fuzzy matching includes the following steps:

[0184] S9-1, Fuzzy matching; where the column fuzzy matching method is the same as the beam fuzzy matching method, and the column uses the column midpoint;

[0185] S9-2, exact match; where S2 includes:

[0186] S9-2-1, Query columns from fuzzy matching results;

[0187] S9-2-2, Calculate the distance from a 2D column to a Revit column (ignore Z);

[0188] S9-2-3, a match is considered successful if the distance is less than 100mm (parameter);

[0189] S9-3: Data that fails to match is written to the Log record.

[0190] Optionally, the wall column data processing includes the following steps:

[0191] S10-1, Revit uses a planar representation to depict walls and columns;

[0192] S10-2, directly use two-dimensional data to draw detailed items, text, lines, and annotations;

[0193] S10-3, embed the reinforcement data into the detail drawing project.

[0194] Optionally, the board fuzzy matching includes the following steps:

[0195] S11-1, Fuzzy matching, wherein the fuzzy matching method for plates is the same as that for beams, and the plate centroid is used for plates;

[0196] S11-2, exact match; where S2 includes:

[0197] S11-2-1, Query the panel from the fuzzy matching results;

[0198] S11-2-2, Calculate the distance from the positioning point of the 2D plate to the centroid of the Revit plate (ignore Z);

[0199] S11-2-3, a match is considered successful if the distance is less than 100mm (parameter);

[0200] S11-3, Data that fails to match is written to the Log record.

[0201] Optionally, such as Figure 4 The image shown is a schematic diagram of a two-dimensional planar method. Figure 4 As shown, this includes beam numbers and span markings such as “KL1 (1)” and “KL2 (2)”, cross-sectional dimension markings such as “500×800”, and stirrup markings such as “Φ8@100 / 200 (4)”.

[0202] Optionally, such as Figure 5 As shown, the command module in the 2D plan drawing design software includes functions for generating column TRVT, generating wall column TRVT, generating beam TRVT, and generating slab TRVT. Further, optionally... Figure 6 As shown, after clicking the command to generate the beam trvt, a prompt box appears indicating that a trvt file has been generated, including the filename: test beam.trvt, and the floor elevation (m): 3; then, optionally as follows... Figure 7 As shown, the alignment base point 704 is determined from the two-dimensional flat diagram 702, and the corresponding first interface file is generated.

[0203] Optionally, such as Figure 8 As shown, the command module in the 3D model design software includes options to import beam construction drawing data, slab construction drawing data, column construction drawing data, and wall / column construction drawing data. After selecting the "Import Beam Construction Drawing Data" command, the generated first interface file is imported, and the previously determined alignment base point is clicked to import the first interface file into the 3D model.

[0204] Further examples, such as Figure 9 As shown in (a), this is a 3D model 902, which can optionally be as follows: Figure 9 As shown in (b), the design information 904 is the design information derived from the flat drawing. After obtaining the design information 904, the design information 904 is imported into the three-dimensional model 902 based on the association established between the flat drawing and the three-dimensional model 902.

[0205] Optionally, such as Figure 10 As shown, Figure 10 (a) is the standard drawing 1002, and the standard drawing 1002 contains design information, optionally as follows: Figure 10 As shown in (b), after establishing the association between the flat method diagram 1002 and the target three-dimensional model, the flat method diagram 1002 is labeled in reverse based on the structural information of the target three-dimensional model to obtain the flat method diagram 1004, which includes label 1006, label 1008 and label 1010.

[0206] The embodiments provided in this application improve the conversion efficiency of structural data information models. This facilitates the further integration and in-depth use of Building Information Modeling (BIM) with industry. Since standard plan drawings constitute a large proportion of structural design, the above method can also be applied to non-standard plan design fields.

[0207] It is understood that in the specific embodiments of this application, data such as user information are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0208] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0209] According to another aspect of the embodiments of this application, a design information filling device for a three-dimensional model is also provided for implementing the above-described design information filling method for a three-dimensional model. For example... Figure 11 As shown, the device includes:

[0210] The generation unit 1102 is used to generate at least one first component based on at least one graphic element contained in the two-dimensional flat drawing, wherein the first component is a three-dimensional component;

[0211] The first establishment unit 1104 is used to establish the association relationship between the first graphic element corresponding to the first target component and the three-dimensional model when at least one first component has a successful match between the first target component and the three-dimensional model.

[0212] The first filling unit 1106 is used to fill the three-dimensional model with the design information contained in the first graphic element based on the association relationship. The design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components in the three-dimensional model. For specific embodiments, please refer to the example shown in the above-described method for filling the design information of a three-dimensional model, which will not be repeated here.

[0213] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0214] As an optional solution, the device further includes: a second establishing unit for establishing a horizontal two-dimensional coordinate system based on the three-dimensional model; and a traversal unit for traversing all first components and performing the following steps on the current component: obtaining the height information corresponding to the current component; obtaining the midpoint coordinates corresponding to the current component, wherein the midpoint coordinates are used to indicate the geometric center of the current component in the horizontal two-dimensional coordinate system; and performing fuzzy matching on the three-dimensional model based on the midpoint coordinates and the height information corresponding to the current component to obtain at least one second component, wherein the second component matches the midpoint coordinates and the height information.

[0215] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0216] As an optional approach, the traversal unit includes: a first acquisition module for acquiring the projection line corresponding to each second component in a horizontal two-dimensional coordinate system; a second acquisition module for acquiring the axis corresponding to the current component and the axis corresponding to the third component when the distance between the projection line corresponding to the third component and the midpoint coordinate is less than the width of the third component, wherein the axis is located in a horizontal two-dimensional coordinate system; a third acquisition module for acquiring the overlap condition and determining the current component as the first target component when the overlap condition is satisfied between the axis corresponding to the current component and the axis corresponding to the third component; and an establishment module for establishing the association relationship between the first target component and the third component.

[0217] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0218] As an optional solution, the third acquisition module includes: a first acquisition submodule, used to acquire the component type corresponding to the current component, and acquire the overlap condition based on the component type; and a second acquisition submodule, used to acquire the deviation information of the two-dimensional flat drawing, and acquire the overlap condition based on the deviation information, wherein the deviation information is used to indicate the drawing accuracy of the two-dimensional flat drawing.

[0219] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0220] As an optional solution, the first establishment unit 1104 includes: a fourth acquisition module, used to acquire the geometric features corresponding to the fourth components when there are multiple fourth components that fail to match in the 3D model, and determine a second target component from at least one first component based on the geometric features corresponding to each fourth component; and establish the association relationship between the second graphic element corresponding to the second target component and the multiple fourth components; and a fifth acquisition module, used to acquire the geometric features corresponding to the fifth components when there are multiple fifth components that fail to match in at least one first component, and determine a third target component from the 3D model based on the geometric features corresponding to each fifth component; and establish the association relationship between the third graphic element corresponding to the third target component and the multiple fifth components.

[0221] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0222] As an optional solution, the device further includes: a determining unit, used to determine a fourth target component that matches the first graphic element from the three-dimensional model based on the association relationship; an acquiring unit, used to acquire spatial information of the fourth target component, wherein the spatial information is used to indicate the position of the fourth target component in the three-dimensional model; and a second filling unit, used to fill the spatial information into the first graphic element based on the association relationship.

[0223] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0224] As an optional solution, the second filling unit includes: a sixth acquisition module, used to acquire the target design information of the first graphic element, wherein the target design information is used to indicate the modified design information; and a determination module, used to determine the target design information as the design information corresponding to the fourth target component based on the association relationship and spatial information.

[0225] For specific implementation examples, please refer to the example shown in the above-described method for filling in the design information of a 3D model. These examples will not be repeated here.

[0226] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described method for filling design information into a three-dimensional model is also provided. This electronic device can, but is not limited to, […]. Figure 1 The user equipment 102 or server 112 shown in the figure, in this embodiment, is taken as an example of an electronic device, namely user equipment 102. Further, as shown in the figure... Figure 12 As shown, the electronic device includes a memory 108 and a processor 106. The memory 108 stores a computer program, and the processor 106 is configured to execute the steps of any of the above method embodiments via the computer program.

[0227] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.

[0228] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0229] S1, Based on at least one graphic element contained in the two-dimensional flat diagram, generate at least one first component, wherein the first component is a three-dimensional component;

[0230] S2, if at least one of the first components has a successful match between the first target component and the three-dimensional model, establish the association relationship between the first graphic element corresponding to the first target component and the three-dimensional model;

[0231] S3, based on the association relationship, fill the design information contained in the first graphic element into the three-dimensional model, where the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components in the three-dimensional model.

[0232] Alternatively, as those skilled in the art will understand, Figure 12 The structure shown is for illustrative purposes only. Figure 12 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 12 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 12 The different configurations shown.

[0233] The memory 108 can be used to store software programs and modules, such as the program instructions / modules corresponding to the three-dimensional model design information filling method and apparatus in this embodiment. The processor 106 executes various functional applications and data processing by running the software programs and modules stored in the memory 108, thereby realizing the above-mentioned three-dimensional model design information filling method. The memory 108 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 108 may further include memory remotely located relative to the processor 106, and these remote memories can be connected to electronic devices 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. Specifically, the memory 108 may be used, but is not limited to, to store information such as graphic elements, first components, three-dimensional models, and design information. As an example, such as Figure 12 As shown, the memory 108 may include, but is not limited to, the generation unit 1102, the first creation unit 1104, and the first filling unit 1106 in the design information filling device for the 3D model. Furthermore, it may include, but is not limited to, other module units in the design information filling device for the 3D model, which will not be described further in this example.

[0234] Optionally, the transmission device 1202 is used to receive or send data via a network. Specific examples of the network described above may include wired and wireless networks. In one example, the transmission device 1202 includes a Network Interface Controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In another example, the transmission device 1202 is a radio frequency (RF) module used to communicate with the Internet wirelessly.

[0235] In addition, the aforementioned electronic device also includes: a display 104 for displaying the aforementioned graphic elements, first component, three-dimensional model, design information, and other information; and a connection bus 1204 for connecting the various module components in the aforementioned electronic device.

[0236] In other embodiments, the aforementioned user equipment or server can be a node in a distributed system, wherein the distributed system can be a blockchain system, which is a distributed system formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer network, and any form of computing device, such as a server, user equipment, or other electronic device, can become a node in the blockchain system by joining this peer-to-peer network.

[0237] According to one aspect of this application, a computer program product is provided, comprising a computer program / instructions containing program code for performing the methods shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions provided in embodiments of this application.

[0238] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0239] It should be noted that the computer system of the electronic device is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0240] A computer system includes a Central Processing Unit (CPU), which performs various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) or loaded from RAM. ROM also stores various programs and data required for system operation. The CPU, ROM, and RAM are interconnected via a bus. Input / output interfaces (I / O interfaces) are also connected to the bus.

[0241] The following components are connected to the input / output interface: input sections including keyboards, mice, etc.; output sections including cathode ray tubes (CRTs), liquid crystal displays (LCDs), and speakers; storage sections including hard drives; and communication sections including network interface cards such as LAN cards and modems. The communication section performs communication processing via a network such as the Internet. Drives are also connected to the input / output interface as needed. Removable media, such as disks, optical discs, magneto-optical discs, semiconductor memories, etc., are installed on the drive as needed so that computer programs read from them can be installed into the storage section as required.

[0242] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium. When the computer program is executed by a central processing unit, it performs various functions defined in the system of this application.

[0243] According to one aspect of this application, a computer-readable storage medium is provided, wherein a processor of a computer device reads computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.

[0244] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:

[0245] S1, Based on at least one graphic element contained in the two-dimensional flat diagram, generate at least one first component, wherein the first component is a three-dimensional component;

[0246] S2, if at least one of the first components has a successful match between the first target component and the three-dimensional model, establish the association relationship between the first graphic element corresponding to the first target component and the three-dimensional model;

[0247] S3, based on the association relationship, fill the design information contained in the first graphic element into the three-dimensional model, where the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components in the three-dimensional model.

[0248] Optionally, in embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0249] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware of an electronic device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0250] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0251] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.

[0252] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0253] In the several embodiments provided in this application, it should be understood that the disclosed user equipment can be implemented in other ways. The device embodiments described above are merely illustrative; for example, 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 displayed or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between units or modules may be electrical or other forms.

[0254] 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; that is, 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.

[0255] Furthermore, the functional units in the various embodiments of this application 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. The integrated unit can be implemented in hardware or as a software functional unit.

[0256] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for filling in design information of a three-dimensional model, characterized in that, include: Based on at least one graphic element contained in the two-dimensional flat diagram, at least one first component is generated, wherein the first component is a three-dimensional component; If at least one of the first components successfully matches the first target component with the three-dimensional model, an association relationship is established between the first graphic element corresponding to the first target component and the three-dimensional model. Based on the aforementioned relationship, the design information contained in the first graphic element is filled into the three-dimensional model, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components contained in the three-dimensional model; Before establishing the association between the first graphic element corresponding to the first target component and the three-dimensional model, the method further includes: A horizontal two-dimensional coordinate system is established based on the aforementioned three-dimensional model; Iterate through all the first components and perform the following steps on the current component: Obtain the height information corresponding to the current component; Obtain the midpoint coordinates corresponding to the current component, wherein the midpoint coordinates are used to indicate the geometric center of the current component in the horizontal two-dimensional coordinate system; Based on the midpoint coordinates and the height information corresponding to the current component, fuzzy matching is performed on the three-dimensional model to obtain at least one second component, wherein the second component matches the midpoint coordinates and the height information. Obtain the projection line of each of the second components in the horizontal two-dimensional coordinate system; If, in at least one of the second components, the distance between the projection line corresponding to the third component and the midpoint coordinates is less than the width of the third component, the axis corresponding to the current component is obtained, and the axis corresponding to the third component is obtained, wherein the axis is located in the horizontal two-dimensional coordinate system; Obtain the overlap condition, and if the overlap condition is satisfied between the axis corresponding to the current component and the axis corresponding to the third component, determine the current component as the first target component; Establish the association between the first target component and the third component; To obtain overlap conditions, at least one of the following must be included: Obtain the component type corresponding to the current component, and obtain the overlap condition based on the component type; Obtain the deviation information of the two-dimensional flat surface diagram, and obtain the overlap condition based on the deviation information, wherein the deviation information is used to indicate the drawing accuracy of the two-dimensional flat surface diagram.

2. The method according to claim 1, characterized in that, Before establishing the association between the first graphic element corresponding to the first target component and the three-dimensional model, the method further includes at least one of the following: In the case where there are multiple fourth components that fail to match in the three-dimensional model, the geometric features corresponding to the fourth components are obtained, and based on the geometric features corresponding to each fourth component, a second target component is determined from at least one first component. Establish the association relationship between the second graphic element corresponding to the second target component and the multiple fourth components; In the case where there are multiple fifth components that fail to match in at least one of the first components, the geometric features corresponding to the fifth components are obtained, and a third target component is determined from the three-dimensional model based on the geometric features corresponding to each of the fifth components. Establish the association relationship between the third graphic element corresponding to the third target component and the multiple fifth components.

3. The method according to any one of claims 1 to 2, characterized in that, After filling the 3D model with the design information contained in the first graphic element based on the association relationship, the method further includes: Based on the aforementioned relationship, a fourth target component matching the first graphic element is determined from the three-dimensional model; Obtain spatial information of the fourth target component, wherein the spatial information is used to indicate the position of the fourth target component in the three-dimensional model; Based on the aforementioned relationship, the spatial information is filled into the first graphic element.

4. The method according to claim 3, characterized in that, After filling the spatial information into the first graphic element based on the aforementioned association, the method further includes: Obtain the target design information of the first graphic element, wherein the target design information is used to indicate the modified design information; Based on the aforementioned relationship and spatial information, the target design information is determined to be the design information corresponding to the fourth target component.

5. A device for filling design information into a three-dimensional model, characterized in that, include: A generation unit is configured to generate at least one first component based on at least one graphic element contained in a two-dimensional flat drawing, wherein the first component is a three-dimensional component; The first establishment unit is used to establish the association relationship between the first graphic element corresponding to the first target component and the three-dimensional model when at least one of the first components has a first target component that successfully matches the three-dimensional model; The first filling unit is used to fill the design information contained in the first graphic element into the three-dimensional model based on the association relationship, wherein the design information is used to indicate the functional attributes and engineering parameters of the three-dimensional components contained in the three-dimensional model; The device is further configured to: establish a horizontal two-dimensional coordinate system based on the three-dimensional model before establishing the association between the first graphic element corresponding to the first target component and the three-dimensional model; traverse all the first components and perform the following steps on the current component: obtain the height information corresponding to the current component; obtain the midpoint coordinates corresponding to the current component, wherein the midpoint coordinates are used to indicate the geometric center of the current component in the horizontal two-dimensional coordinate system; perform fuzzy matching on the three-dimensional model based on the midpoint coordinates and the height information corresponding to the current component to obtain at least one second component, wherein the second component matches the midpoint coordinates and the height information; The device is further configured to: acquire the projection line corresponding to each of the second components in the horizontal two-dimensional coordinate system; acquire the axis corresponding to the current component and the axis corresponding to the third component, wherein the axis is located in the horizontal two-dimensional coordinate system, if the distance between the projection line corresponding to the third component and the midpoint coordinate is less than the width of the third component in at least one of the second components; acquire an overlap condition, and if the overlap condition is satisfied between the axis corresponding to the current component and the axis corresponding to the third component, determine the current component as the first target component; and establish an association relationship between the first target component and the third component. The device is further configured to obtain the component type corresponding to the current component, and obtain the overlap condition based on the component type; and / or obtain the deviation information of the two-dimensional flat drawing, and obtain the overlap condition based on the deviation information, wherein the deviation information is used to indicate the drawing accuracy of the two-dimensional flat drawing.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by an electronic device to perform the method according to any one of claims 1 to 4.

7. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 4 through the computer program.

Citation Information

Patent Citations

  • BIM-based two-dimensional and three-dimensional collaborative design method and device, medium and product

    CN119227184A

  • BIM-based two-dimensional data and three-dimensional model verification matching method and system

    CN120524719A