Three-dimensional modeling method, device, equipment, and storage medium for prefabricated components
By identifying and matching edge lines and labeling elements in electronic drawings of prefabricated components, three-dimensional elements are automatically created, which solves the problems of cumbersome and low efficiency of the three-dimensional modeling process in the existing technology, and achieves fast and accurate three-dimensional modeling.
Patent Information
- Application Number
- CN202211048282.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2042-08-30
AI Technical Summary
In the prior art, the three-dimensional modeling process of prefabricated components is cumbersome, the workload is huge and the efficiency is low, which makes it time-consuming and labor-intensive for technicians to manually draw three-dimensional models, and is prone to human errors.
By loading electronic drawings of prefabricated components, identify edge elements and labeled elements, form a closed frame sequence and labeled sequence, and match them, create three-dimensional primitives to form a three-dimensional model of prefabricated components.
It realizes the rapid completion of three-dimensional modeling of prefabricated components, improves modeling efficiency and accuracy, reduces the rate of human error, and significantly reduces the workload.
Smart Images

Figure CN117671186B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of construction engineering. Specifically, the present invention can provide a three-dimensional modeling method, device, equipment, and storage medium for prefabricated components. Background Art
[0002] In the field of construction engineering, three-dimensional quantity calculation software can be used to automatically calculate the engineering quantity based on a three-dimensional model. However, if the engineering quantity of a construction project is calculated through a three-dimensional model, a three-dimensional model must be drawn according to two-dimensional engineering drawings. In conventional techniques, technicians generally use three-dimensional drawing software to manually draw three-dimensional models, but this method is very time-consuming and laborious. Not only is the work efficiency extremely low, but also problems such as human errors are likely to occur during the drawing process. Therefore, the method of relying on technicians to manually draw three-dimensional models of prefabricated components has problems such as a cumbersome modeling process, a huge workload, and low efficiency, which urgently need to be solved. Summary of the Invention
[0003] To solve the problems in the prior art that the three-dimensional modeling process of prefabricated components is cumbersome, the workload is huge, and the efficiency is low, the present invention provides a three-dimensional modeling method, device, equipment, and storage medium for prefabricated components, achieving the purposes of improving the modeling efficiency, optimizing the modeling process, and reducing the workload.
[0004] To achieve the above technical objectives, the present invention can provide a three-dimensional modeling method for prefabricated components, including: loading the electronic drawing of the prefabricated component to be three-dimensionally modeled, where the electronic drawing includes line graph elements and annotation graph elements for representing the prefabricated component; obtaining component identifiers by identifying the annotation graph elements, and obtaining line attribute information by identifying the line graph elements; forming an annotation sequence using the component identifiers, where the annotation sequence includes multiple component identifiers; and based on the line attribute information, forming a closed box sequence based on the lines of the line graph elements, where the closed box sequence includes multiple closed boxes; matching the closed box sequence with the annotation sequence to obtain the pairing result of the closed boxes and the component identifiers; and creating three-dimensional graph elements according to the pairing result to form a three-dimensional model of the prefabricated component through the three-dimensional graph elements.
[0005] To achieve the above technical objectives, the present invention can provide a three-dimensional modeling device for prefabricated components, including: a drawing loading module for loading the electronic drawing of the prefabricated component to be three-dimensionally modeled, where the electronic drawing contains line drawing elements and annotation drawing elements for representing the prefabricated component; a drawing element recognition module for obtaining component identifiers by recognizing the annotation drawing elements and for obtaining line attribute information by recognizing the line drawing elements; a sequence formation module for forming an annotation sequence using the component identifiers, the annotation sequence including multiple component identifiers; and the sequence formation module for forming a closed frame sequence based on the line attributes of the line drawing elements and based on the lines of the line drawing elements, the closed frame sequence including multiple closed frames; a sequence matching module for matching the closed frame sequence with the annotation sequence to obtain a pairing result of the closed frames and the component identifiers; and a drawing element creation module for creating three-dimensional drawing elements according to the pairing result to form a three-dimensional model of the prefabricated component through the three-dimensional drawing elements.
[0006] To achieve the above technical objectives, the present invention can also provide a computer device, including a memory and a processor. When the computer-readable instructions stored in the memory are executed by the processor, the processor is caused to execute the steps of the three-dimensional modeling method for prefabricated components in at least one embodiment of the present invention.
[0007] To achieve the above technical objectives, the present invention can also provide a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, one or more processors are caused to execute the steps of the three-dimensional modeling method for prefabricated components in at least one embodiment of the present invention.
[0008] The beneficial effects of the present invention include: The present invention can identify line drawing elements and annotation drawing elements from the loaded electronic drawing of the prefabricated component, thereby obtaining a closed frame sequence based on the line drawing elements and an annotation sequence based on the annotation drawing elements, and then creating a three-dimensional model of the prefabricated component on the basis of matching the closed frame sequence with the annotation sequence. It can be seen that the modeling process of the present invention is more convenient than the prior art, improving the accuracy and speed of three-dimensional modeling of prefabricated components, with good practicability. The three-dimensional modeling technical solution for prefabricated components provided by the embodiments of the present invention has the advantages of time-saving and labor-saving modeling process, high modeling efficiency, and extremely low human error rate, bringing great convenience to users and having a better user experience. Description of the Drawings
[0009] Figure 1 Shows a schematic flowchart of the three-dimensional modeling method for prefabricated components in one or more embodiments of the present invention.
[0010] Figure 2 Shows a schematic flowchart of recognizing annotation drawing elements and line drawing elements in one or more embodiments of the present invention.
[0011] Figure 3 Shows a schematic flowchart of parsing annotation primitives in one or more embodiments of the present invention.
[0012] Figure 4 Shows a schematic flowchart of feature extraction for edge primitives in one or more embodiments of the present invention.
[0013] Figure 5 Shows a schematic flowchart of forming a closed box sequence based on edges in one or more embodiments of the present invention.
[0014] Figure 6 Shows a schematic flowchart of forming a closed box sequence using all closed boxes in one or more embodiments of the present invention.
[0015] Figure 7 Shows a schematic flowchart of matching a closed box sequence with an annotation sequence in one or more embodiments of the present invention.
[0016] Figure 8 Shows a schematic diagram of the structural composition of a three-dimensional modeling device for prefabricated components in one or more embodiments of the present invention.
[0017] Figure 9 Shows a schematic diagram of the internal structural composition of a computer device in one or more embodiments of the present invention. Detailed implementation manners
[0018] The following combines the specification drawings to explain and illustrate in detail a three-dimensional modeling method, device, equipment, and storage medium for prefabricated components provided by the present invention.
[0019] To overcome the deficiencies of the conventional method of manually drawing 3D models by technicians, the present invention provides a 3D modeling method for prefabricated components, thereby achieving rapid completion of the 3D modeling of prefabricated components, thoroughly solving the problems such as cumbersome implementation process, large workload, and low efficiency in manually drawing the 3D models of prefabricated components by technicians, and improving the 3D modeling efficiency of prefabricated components. A 3D modeling method for prefabricated components provided by an embodiment of the present invention includes: loading the electronic drawing of the prefabricated component to be 3D modeled, where the electronic drawing contains edge line elements and annotation elements for representing the prefabricated component; obtaining the component identifier by identifying the annotation elements, and obtaining the edge line attribute information by identifying the edge line elements; forming an annotation sequence using the component identifier, and the annotation sequence includes multiple component identifiers; and based on the edge line attribute information, forming a closed frame sequence based on the edges of the edge line elements, and the closed frame sequence includes multiple closed frames; matching the closed frame sequence with the annotation sequence to obtain the pairing result of the closed frames and the component identifiers; creating 3D elements according to the pairing result to form the 3D model of the prefabricated component through the 3D elements. Compared with the conventional technology, the present invention can identify the edge line elements and annotation elements from the loaded electronic drawing of the prefabricated component, thereby obtaining the closed frame sequence based on the edge line elements and the annotation sequence based on the annotation elements, and then creating the 3D model of the prefabricated component on the basis of matching the closed frame sequence with the annotation sequence. It can be seen that the present invention is more convenient than the prior art, improves the accuracy and speed of 3D modeling of prefabricated components, has good practicability, and the 3D modeling technical solution provided by the present invention has the advantages of time-saving and labor-saving modeling process, high modeling efficiency, and extremely low human error rate, bringing great convenience to users and good user experience. The present invention realizes the function of 2D to 3D conversion compared with the prior art, that is, it realizes the automatic and efficient conversion of the 2D drawing of the prefabricated component into the corresponding 3D model of the prefabricated component.
[0020] As Figure 1 shown, at least one embodiment of the present invention provides a 3D modeling method for prefabricated components, and the 3D modeling method includes but is not limited to steps S100 to S500.
[0021] Step S100: Load the electronic drawing of the prefabricated component to be three-dimensionally modeled. The electronic drawing contains line elements and annotation elements for representing the prefabricated component. Among them, there can be multiple prefabricated components in the electronic drawing. For example, for multiple prefabricated components used in the current construction project, taking the prefabricated floor slab as an example of the prefabricated component, the prefabricated components in the above-mentioned electronic drawing can be all the prefabricated floor slabs used in the current construction project. In addition, the electronic drawing involved in at least one embodiment of the present invention can be a CAD (Computer Aided Design) drawing, such as a two-dimensional CAD plan drawing, and can be loaded on a newly created project after creating a new project on the interface of the quantity calculation software or drawing software integrated with the three-dimensional modeling solution of the prefabricated component of the present invention.
[0022] Step S200: Obtain the component identifier by identifying the annotation element, and obtain the edge attribute information by identifying the line element.
[0023] The annotation element in at least one embodiment of the present invention includes a digital annotation element and / or a character annotation element. The digital annotation element can include annotation elements with only numbers such as length annotation elements and width annotation elements. The character annotation element can include annotation elements with letters such as name annotation elements, dimension annotation elements, weight annotation elements, and volume annotation elements. Embodiments of the present invention can obtain attribute information such as the name, length, width, thickness, weight, volume, insertion point position, and edge structure type of the prefabricated component by identifying the annotation element; embodiments of the present invention can also obtain attribute information such as the edge position, edge extension direction, and edge length by identifying the line element. It can be seen that the embodiments of the present invention can identify various annotation elements for prefabricated components, thereby providing comprehensive and accurate annotation-related data for the three-dimensional modeling of prefabricated components.
[0024] Such as Figure 2As shown, in one or more embodiments of the present invention, the component identifier is obtained by identifying the labeled primitive, and the edge attribute information is obtained by identifying the edge primitive, which may include but is not limited to steps S210 to S220. Step S210, in response to the instruction to extract labels, extract the labeled primitives from the electronic drawing, and set all the extracted labeled primitives on the first layer, where the first layer may be the label layer in the layer management; analyze each labeled primitive in the first layer to obtain the component identifier. Step S220, in response to the instruction to extract edges, extract the edge primitives from the electronic drawing, and set all the extracted edge primitives on the second layer, where the second layer may be the edge layer in the layer management; extract the features of each edge primitive in the second layer to obtain the edge attribute information. By extracting the labeled primitives and edge primitives respectively based on the corresponding extraction instructions, the present invention can obtain the labeled primitives and edge primitives of the prefabricated components from the electronic drawing as needed, providing a convenient operation method for users. In this embodiment, based on the layer management method of the first layer and the second layer, the labeled primitives and edge primitives are effectively grouped and clustered, avoiding the problem of mutual interference between different types of primitives in the subsequent processing, and on this basis, the component identifier can be automatically parsed and the edge attribute information can be automatically extracted respectively to complete the automatic acquisition of the key information for describing the prefabricated components. It can be seen that the embodiment of the present invention further improves the accuracy and efficiency of the primitive recognition process.
[0025] As Figure 3 shown, in an alternative embodiment of the present invention, analyzing each labeled primitive in the first layer to obtain the component identifier includes but is not limited to steps S211 to S213. Step S211, respectively extract the label features from each labeled primitive in the first layer, and the extraction methods include but are not limited to selecting by layer, selecting by color, or selecting by single primitive; Step S212, respectively match each label feature with the keywords in the preset keyword list. The keywords in the keyword list may include but are not limited to name keywords (such as YDB, PCB, PCYB, DBS, DBD, YB, etc.), volume keywords (such as m3, M3, cubic, etc.), and weight keywords (such as t, T, ton, etc.), and the matching method may select the fuzzy matching algorithm; for the labeled primitive with only numbers, in an alternative embodiment of the present invention, the component identifier corresponding to the labeled primitive with only numbers is associated in a quadtree manner for further matching. Step S213, determine the component identifier based on the keywords that match the label features successfully. In this embodiment, by matching the extracted label features with the keywords, the recognition rate of the component identifier is greatly improved, effectively avoiding problems such as incorrect extraction of label features or misrecognition of labels, and further improving the reliability of the present invention.
[0026] In at least one alternative embodiment of the present invention, determining a component identifier based on a keyword that successfully matches a labeled feature includes: verifying the keyword that successfully matches the labeled feature, and the verification method may include a legality verification, such as whether there is already a keyword with the same name. If not, it indicates that the verification is passed; using the keyword that passes the verification as the component identifier. Specifically, when implementing, the keyword that passes the verification can be added to a preset name list, which is used to save the keywords that pass the verification. Based on the method of using the keyword that successfully matches the labeled feature, the present invention further reduces the possibility of errors in the labeled feature and further improves the accuracy of the component identifier obtained in this embodiment.
[0027] As Figure 4 shown, in at least one embodiment of the present invention, feature extraction is performed on each edge graphic element in the second layer to obtain edge attribute information, which may include but is not limited to steps S221 to S222. Step S221, respectively extract the edge features of each edge from each edge graphic element, and the extraction methods include but are not limited to selecting by layer, selecting by color, or selecting by single graphic element; among them, the edge features include the edge length, edge position, and edge extension direction, and the edge position can specifically be the coordinates of the edge on the electronic drawing. Step S222, for the edges of each edge graphic element, use the corresponding edge features as the edge attribute information. In this embodiment, the edge attributes are described by the edge position, edge length, and edge extension direction, so as to provide a comprehensive, accurate, and reliable edge-related data source for forming a three-dimensional model of the prefabricated component later, to ensure the accuracy of the three-dimensional modeling of the prefabricated component.
[0028] Step S300, forming a labeling sequence using the component identifiers, where the labeling sequence includes multiple component identifiers; and based on the edge attribute information, forming a closed box sequence based on the edges of the edge graphic elements, where the closed box sequence includes multiple closed boxes.
[0029] Among them, the labeling sequence can represent the set of all recognized component identifiers, and the closed box sequence can represent the set of all recognized closed boxes; specifically, when implementing, the closed box can include an independent closed box, a nested closed box, an interrelated closed box, etc.
[0030] As Figure 5As shown, in one or more embodiments of the present invention, according to the edge attribute information, a closed box sequence is formed based on the edges of the edge primitives, including but not limited to steps S310 to S320. Step S310, screen the edges of each edge primitive according to the edge attribute information. For example, screen out the edges shorter than a preset length, screen out the edges whose shapes do not conform to the preset shape, etc., and construct a closed box through the screened edges. In this embodiment, the closed box is a closed polygon; the process of constructing a closed box through edges can adopt the search2d (two-dimensional search) algorithm. The algorithm process may include, for example: traverse all edges to record the starting point set, and then automatically determine which edges can form a closed polygon through the coordinate set relationship. Step S320, use all the constructed closed boxes to form a closed box sequence, that is, obtain a set of closed boxes. It can be seen that this embodiment can filter out the edges that do not meet the requirements. This method not only improves the accuracy of the constructed three-dimensional model, but also can significantly reduce the calculation amount in the process of constructing the closed box.
[0031] As Figure 6 shown, in one or more embodiments of the present invention, use all the constructed closed boxes to form a closed box sequence, including but not limited to steps S321 to S324.
[0032] Step S321, identify the area of the closed region covered by each closed box, that is, the area of the polygon corresponding to each closed box.
[0033] In one or more alternative embodiments of the present invention, after identifying the area of the closed region covered by each closed box, step S322 is further included.
[0034] Step S322, if multiple closed boxes with the same center are identified, filter out the closed boxes with non-maximum closed region area among the multiple closed boxes; wherein, in the embodiments of the present invention, for multiple concentric closed boxes, the closed box with the largest area is used as the reserved closed box. By retaining the closed box with the largest area among the multiple concentric closed boxes, the present invention effectively avoids unnecessary calculation amount in the modeling process.
[0035] Step S323, filter out the closed boxes with closed region area less than the threshold, and use the remaining closed boxes to form a closed box sequence. Among them, the threshold can be set accordingly according to the current specific prefabricated component or use the default value. At least one embodiment of the present invention realizes denoising by removing smaller closed boxes, effectively improving the accuracy of three-dimensional modeling and helping to significantly reduce the calculation amount in the process of three-dimensional modeling.
[0036] In at least one embodiment of the present invention, after using the remaining closed boxes to form a closed box sequence, it further includes but not limited to step S324.
[0037] Step S324, if it is detected that there are multiple closed boxes with overlapping positions in the closed box sequence, the multiple closed boxes with overlapping positions are regarded as one closed box. In this embodiment, by unifying multiple overlapping closed boxes into one closed box, further denoising is achieved, and unnecessary computational amount is reduced.
[0038] In addition, in an alternative embodiment of the present invention, when using the edge lines to form a closed box, a mature closed box generation algorithm can be adopted, such as an Area Generator, and the implementation process thereof will not be elaborated in this embodiment.
[0039] Step S400, the closed box sequence is matched with the annotation sequence to obtain the pairing result of the closed box and the component identifier.
[0040] As Figure 7 shown, in at least one embodiment of the present invention, matching the closed box sequence with the annotation sequence includes, but is not limited to, steps S410 to S420.
[0041] Step S410, calculate the distance between each closed box in the closed box sequence and each component identifier in the annotation sequence on the electronic drawing. Specifically, this distance can be the straight-line distance on the electronic drawing between the center of the closed box and the center of the component identifier. Step S420, for any closed box, after determining the distances between each component identifier and the closed box, in this embodiment, the closed box with the minimum distance is paired with the component identifier. Based on the above matching method with the minimum distance between the closed box and the component identifier, this embodiment can accurately and automatically identify the component identifier corresponding to the closed box, and the computational amount required for the above implementation process is small.
[0042] In addition, in an alternative embodiment of the present invention, the weighted bipartite graph maximum matching algorithm can be used to match the closed box sequence with the annotation sequence. For example, a globally optimal search method can be adopted to determine the distance on the electronic drawing between the closed boxes in the closed box sequence and the component identifiers in the annotation sequence on the basis of weighting. The weights used for distance calculation can be set according to the actual situation. For example, different types of component identifiers correspond to different weights, and this will not be elaborated in this embodiment; in this embodiment, the component identifier with the closest distance to each closed box is obtained to determine the matching result of the closed box and the component identifier.
[0043] Before matching the closed frame sequence with the annotation sequence in at least one embodiment of the present invention, it further includes: obtaining recognition option parameters; where the recognition option parameters include at least one of component name, component size, component shape, positional relationship between different components, whether there is an arc edge, legal area range, and legal edge structure type, etc. Taking the precast floor slab as an example, the component size is, for example, the minimum length and width dimensions of the precast floor slab, and the positional relationship between different components can be, for example, the length of the precast floor slab extending into the support; the recognition option parameters in this embodiment can be from user input or can be default values. The closed frame sequence and the annotation sequence are filtered according to the recognition option parameters, and then the filtered closed frame sequence and annotation sequence are matched. Taking the precast floor slab as an example, for example, the closed frames smaller than the minimum length and width dimensions of the precast floor slab can be filtered out, and for example, the component identifiers that do not conform to the length of the precast floor slab extending into the support can be filtered out, but it is not limited to this. In this embodiment, the closed frame sequence and the annotation sequence are filtered by the recognition option parameters, and the closed frames and component identifiers that do not conform to the recognition option parameters can be filtered out. The above means can not only improve the accuracy of the pairing result of the closed frame and the component identifier, but also reduce the matching times of the closed frame and the component identifier, thereby improving the processing efficiency.
[0044] Step S500, create 3D primitives according to the pairing result to form a 3D model of the prefabricated component through the 3D primitives. In specific implementation, in the embodiment of the present invention, 3D primitives can be created one by one on the basis of obtaining the pairing result, and then position judgment, direction judgment, rotation attempt and other processing can be performed on each created 3D primitive according to the polygon existence direction, rotation angle and component identifier related information of the closed frame, etc. Then, according to the processing results, these 3D primitives are combined into a 3D model. When integrating the solution of the present invention into a 3D quantity calculation software, the process of forming a 3D model based on the pairing result in this embodiment can be realized by calling the GMP (Graphical Modeling Project) interface to create 3D primitives and form a 3D model of the prefabricated component through the created 3D primitives. The prefabricated components in the embodiment of the present invention include but are not limited to at least one of precast floor slabs, precast columns, precast beams, and precast walls. It can be seen that the present invention has a wide application range and realizes automatic and rapid 3D modeling of one or more prefabricated components.
[0045] Particularly for precast floor slabs, the embodiments of the present invention can specifically provide a rapid three-dimensional modeling method for precast floor slabs. Precast floor slabs are commonly used in composite slabs. Composite slabs are common components in prefabricated buildings and are also one of the main load-bearing components in prefabricated buildings. A composite slab can be composed of a precast floor slab produced by a component factory and a cast-in-place layer cast on-site. The thickness of the precast floor slab can be 60 mm (millimeters), and the thickness of the cast-in-place layer can be 70 mm. Generally, for the convenience of construction and to save formwork, the edges of the precast floor slab will extend into support members (such as beams, walls, etc.), so that the support members can play a certain supporting role and help reduce the formwork laying at the edges of the support members.
[0046] Taking the precast floor slab as an example, after the embodiments of the present invention are implemented, the modeling time for the precast floor slabs of one floor is increased from 8 hours of manual drawing to 20 minutes of the present invention (including the time for manual inspection and modification).
[0047] The three-dimensional modeling method for prefabricated components in one or more embodiments of the present invention can be used in the field of construction project cost, realizing rapid three-dimensional modeling of prefabricated components such as precast floor slabs in construction projects, and then can realize rapid calculation of the engineering quantity of prefabricated components. It can be seen that the three-dimensional modeling method in the embodiments of the present invention can be integrated into three-dimensional quantity calculation software to calculate the engineering quantity after three-dimensional modeling of the input two-dimensional drawings; this three-dimensional modeling method can also be integrated into computer-aided design software to realize rapid three-dimensional modeling of the input two-dimensional drawings, and then calculate the engineering quantity through three-dimensional quantity calculation software.
[0048] As Figure 8 shown, based on the same inventive technical concept as the three-dimensional modeling method for prefabricated components provided by the embodiments of the present invention, at least one embodiment of the present invention can also provide a three-dimensional modeling device for prefabricated components.
[0049] Among them, the three-dimensional modeling device for prefabricated components provided by the embodiments of the present invention includes, but is not limited to, a drawing loading module, a graphic element recognition module, a sequence formation module, a sequence matching module, and a graphic element creation module, which are specifically described as follows.
[0050] The drawing loading module is used to load the electronic drawing of the prefabricated component to be three-dimensionally modeled, and the electronic drawing contains edge graphic elements and annotation graphic elements for representing the prefabricated component.
[0051] The graphic element recognition module is used to obtain the component identifier by recognizing the annotation graphic elements, and to obtain the edge attribute information by recognizing the edge graphic elements.
[0052] Optionally, the graphic element recognition module is used to extract marked graphic elements from the electronic drawing in response to an instruction to extract markings, and set all the extracted marked graphic elements on the first layer; the graphic element recognition module is used to parse each marked graphic element in the first layer to obtain component identifiers.
[0053] Optionally, the graphic element recognition module is used to separately extract marking features from each marked graphic element in the first layer, and is used to separately match each marking feature with keywords in a preset keyword list, and is used to determine component identifiers based on the keywords that match the marking features successfully.
[0054] Optionally, the graphic element recognition module is used to verify the keywords that match the marking features successfully, and use the keywords that pass the verification as component identifiers.
[0055] Optionally, the graphic element recognition module is used to extract edge graphic elements from the electronic drawing in response to an instruction to extract edges, and set all the extracted edge graphic elements on the second layer; the graphic element recognition module is used to extract features of each edge graphic element in the second layer to obtain edge attribute information.
[0056] Optionally, the marked graphic elements include numerical marked graphic elements and / or character marked graphic elements.
[0057] Optionally, the graphic element recognition module can be used to separately extract edge features of each edge from each edge graphic element; wherein, the edge features include edge length, edge position and edge extension direction; the graphic element recognition module is used to use the corresponding edge features as edge attribute information for the edges of each edge graphic element.
[0058] The sequence formation module is used to form a marking sequence using component identifiers, and the marking sequence includes multiple component identifiers; and the sequence formation module is used to form a closed frame sequence based on the edge attribute information and the edges of the edge graphic elements, and the closed frame sequence includes multiple closed frames.
[0059] Optionally, the sequence formation module is used to screen the edges of each edge graphic element according to the edge attribute information, and is used to construct closed frames through the screened edges, and is used to form a closed frame sequence using all the constructed closed frames.
[0060] Optionally, the sequence formation module is used to identify the area of the closed region covered by each closed frame respectively, and is used to filter out the closed frames with a closed region area smaller than a threshold, and is used to form a closed frame sequence using the remaining closed frames.
[0061] Optionally, the sequence formation module is further used to filter out the closed frames with a non-maximum closed region area among multiple closed frames according to the identified multiple closed frames with the same center.
[0062] Optionally, the sequence formation module is further configured to, according to the detection that there are multiple overlapping bounding boxes in the detected bounding box sequence, regard the multiple overlapping bounding boxes as one bounding box.
[0063] A sequence matching module, configured to match the bounding box sequence with the annotation sequence to obtain the pairing result of the bounding box and the component identifier.
[0064] Optionally, the sequence matching module is configured to calculate the distance between each bounding box in the bounding box sequence and each component identifier in the annotation sequence on the electronic drawing, and to pair the bounding box with the minimum distance with the component identifier.
[0065] Optionally, the three-dimensional modeling device for prefabricated components in one or more embodiments of the present invention further includes a sequence screening module; the sequence screening module is configured to obtain identification option parameters; wherein, the identification option parameters include at least one of component name, component size, component shape, and positional relationship between different components; the sequence screening module is configured to screen the bounding box sequence and the annotation sequence according to the identification option parameters, so as to match the screened bounding box sequence with the annotation sequence.
[0066] A primitive creation module, configured to create three-dimensional primitives according to the pairing result, so as to form a three-dimensional model of the prefabricated component through the three-dimensional primitives.
[0067] Optionally, the prefabricated component may include at least one of a precast floor slab, a precast column, a precast beam, and a precast wall.
[0068] As Figure 9 shown, based on the same inventive concept as the three-dimensional modeling method for prefabricated components provided by the embodiments of the present invention, at least one embodiment of the present invention can further provide a computer device, including a memory and a processor, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor is caused to execute the steps of the three-dimensional modeling method for prefabricated components in any embodiment of the present invention. Among them, the detailed implementation process of the three-dimensional modeling method for prefabricated components has been described in detail in this specification, and will not be elaborated here.
[0069] As Figure 9 shown, based on the same inventive concept as the three-dimensional modeling method for prefabricated components provided by the embodiments of the present invention, at least one embodiment of the present invention can further provide a storage medium storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, one or more processors are caused to execute the steps of the three-dimensional modeling method for prefabricated components in any embodiment of the present invention. Among them, the detailed implementation process of the three-dimensional modeling method for prefabricated components has been described in detail in this specification, and will not be elaborated here.
[0070] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a definable list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable storage medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or used in conjunction with these instruction execution systems, apparatus, or devices. For the purposes of this specification, a "computer-readable storage medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable storage medium include the following: an electrical connection part with one or more wirings (electronic device), a portable computer disk cartridge (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable storage medium can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing as appropriate, and then stored in a computer memory.
[0071] It should be understood that various parts of the present invention can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0072] In the description of this specification, the descriptions referring to terms such as "this embodiment", "one embodiment", "some embodiments", "examples", "specific examples", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0073] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, "a plurality" means at least two, such as two, three, etc., unless otherwise specifically and clearly defined.
[0074] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, and simple improvements made to the substantial content of the present invention shall be included within the protection scope of the present invention.
Claims
1. A three-dimensional modeling method for prefabricated components, characterized in that Including: Loading the electronic drawing of the prefabricated component to be three-dimensionally modeled, where the electronic drawing contains line drawing elements and dimensioning drawing elements for representing the prefabricated component; Obtaining the component identifier by identifying the dimensioning drawing elements, including: in response to an instruction to extract dimensions, extracting the dimensioning drawing elements from the electronic drawing, setting all the extracted dimensioning drawing elements on a dimensioning layer, parsing each of the dimensioning drawing elements in the dimensioning layer to obtain the component identifier. Among them, dimensioning features are respectively extracted from each of the dimensioning drawing elements in the dimensioning layer by means of layer selection, color selection or single drawing element selection, and each of the dimensioning features is respectively matched with the name keyword, volume keyword and weight keyword in a preset keyword list; determining the component identifier based on the keyword successfully matched with the dimensioning feature, including: verifying the keyword successfully matched with the dimensioning feature, and the verification method includes legality verification, adding the keyword passing the verification to a preset name list, and the preset name list is used to store the keywords passing the verification; and obtaining the edge attribute information by identifying the line drawing elements, including: in response to an instruction to extract edges, extracting the line drawing elements from the electronic drawing, setting all the extracted line drawing elements on an edge layer in layer management, extracting the edge features of each edge from each of the line drawing elements, and the edge features include edge length, edge position and edge extension direction. For the edges of each of the line drawing elements, the corresponding edge features are used as the edge attribute information; Forming a dimensioning sequence using the component identifier, and the dimensioning sequence includes multiple component identifiers; and forming a closed frame sequence based on the edges of the line drawing elements according to the edge attribute information, including: screening the edges of each of the line drawing elements according to the edge attribute information, and constructing a closed frame with the screened edges. For multiple concentric closed frames, the closed frame with the largest area is used as the retained closed frame, and forming a closed frame sequence using all the constructed closed frames; the closed frame sequence includes multiple closed frames, and the closed frame is a closed polygon; Obtaining identification option parameters, where the identification option parameters include at least one of component name, component size, component shape, positional relationship between different components, whether there is an arc edge, legal area range and legal edge structure type, screening the closed frame sequence and the dimensioning sequence according to the identification option parameters, and matching the screened closed frame sequence and the dimensioning sequence to obtain the pairing result of the closed frame and the component identifier; Creating three-dimensional drawing elements one by one according to the pairing result, and performing position judgment, direction judgment and rotation attempt processing on each of the created three-dimensional drawing elements according to the polygon existence direction, rotation angle and component identifier of the closed frame, so as to combine multiple three-dimensional drawing elements into a three-dimensional model of the prefabricated component according to the processing result.
2. The three-dimensional modeling method of the prefabricated component according to claim 1, wherein The marked graphic elements include digital marked graphic elements and / or character marked graphic elements.
3. The three-dimensional modeling method of the prefabricated component according to claim 1, characterized in that The forming of a closed box sequence by using all the constructed closed boxes includes: Identifying the area of the closed region covered by each closed box respectively; Filtering out the closed boxes with the closed region area less than the threshold value, and forming a closed box sequence by using the remaining closed boxes.
4. The three-dimensional modeling method of the prefabricated component according to claim 1, characterized in that It further includes: If it is detected that there are multiple overlapping closed boxes in the closed box sequence, regarding the multiple overlapping closed boxes as one closed box.
5. The three-dimensional modeling method of the prefabricated component according to claim 1, characterized in that The matching of the filtered closed box sequence with the marked sequence includes: Calculating the distances between each closed box in the closed box sequence and each component identifier in the marked sequence on the electronic drawing; Pairing the closed box with the minimum distance with the component identifier.
6. The three-dimensional modeling method of the prefabricated component according to claim 1, characterized in that The prefabricated component includes at least one of a precast floor slab, a precast column, a precast beam, and a precast wall.
7. A three-dimensional modeling device for prefabricated components, characterized in that, It includes: A drawing loading module, configured to load an electronic drawing of a prefabricated component to be three-dimensionally modeled, where the electronic drawing contains edge graphic elements and marked graphic elements for representing the prefabricated component; A graphic element identification module, configured to obtain component identifiers by identifying the marked graphic elements. The graphic element identification module is configured to extract the marked graphic elements from the electronic drawing in response to an instruction for extracting marks; The graphic element identification module is configured to set all the extracted marked graphic elements on a marked layer, analyze each marked graphic element in the marked layer to obtain the component identifier; the graphic element identification module is configured to extract marked features from each marked graphic element in the marked layer by means of layer selection, color selection, or single graphic element selection, and to match each marked feature with a name keyword, a volume keyword, and a weight keyword in a preset keyword list respectively, and to determine the component identifier based on the keyword that successfully matches the marked feature; the graphic element identification module is configured to perform verification on the keyword that successfully matches the marked feature, and the verification method includes legality verification. The graphic element identification module is further configured to add the keyword that passes the verification to a preset name list, and this preset name list is used to save the keyword that passes the verification; the graphic element identification module is configured to obtain edge attribute information by identifying the edge graphic elements; the graphic element identification module is configured to extract the edge graphic elements from the electronic drawing in response to an instruction for extracting edges, and set all the extracted edge graphic elements on an edge layer in layer management; the graphic element identification module is configured to extract edge features of each edge from each edge graphic element, and the edge features include edge length, edge position, and edge extension direction. The graphic element identification module is configured to use the corresponding edge features as the edge attribute information for the edges of each edge graphic element; A sequence forming module, configured to form a marked sequence by using the component identifiers, and the marked sequence includes multiple component identifiers; And a sequence forming module is configured to form a closed box sequence based on the side line of the side line graphic element according to the side line attribute information, where the closed box sequence includes a plurality of closed boxes; the sequence forming module is configured to screen the side lines of each of the side line graphic elements according to the side line attribute information, and is configured to construct a closed box through the screened side lines. For multiple concentric closed boxes, the sequence forming module is configured to use the closed box with the largest area as the reserved closed box, and is configured to form a closed box sequence by using all the constructed closed boxes. The closed box is a closed polygon; A sequence screening module is configured to obtain identification option parameters, where the identification option parameters include at least one of a component name, a component size, a component shape, a positional relationship between different components, whether there is an arc edge, a legal area range, and a legal edge structure type. The sequence screening module is further configured to screen the closed box sequence and the annotation sequence according to the identification option parameters; A sequence matching module is configured to match the screened closed box sequence with the annotation sequence to obtain a pairing result of the closed box and the component identifier; A graphic element creating module is configured to create three-dimensional graphic elements one by one according to the pairing result, and is configured to perform position judgment, direction judgment, and rotation attempt processing on each of the created three-dimensional graphic elements according to the polygon existence direction, rotation angle, and component identifier of the closed box, so as to combine the plurality of three-dimensional graphic elements into a three-dimensional model of the prefabricated component according to the processing result.
8. A computer device, characterized in that, It includes a memory and a processor. Computer-readable instructions are stored in the memory. When the computer-readable instructions are executed by the processor, the processor is caused to execute the steps of the three-dimensional modeling method of the prefabricated component according to any one of claims 1 to 6.
9. A storage medium storing computer-readable instructions, characterized in that, When the computer-readable instructions are executed by one or more processors, the one or more processors are caused to execute the steps of the three-dimensional modeling method of the prefabricated component according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method, system, terminal and medium for 3D modeling by drawing data
CN109064557A
Model generation method and device, computer equipment and storage medium
CN113971309A