Modeling method and device of node, electronic equipment and readable storage medium
By acquiring node configuration parameters and identifying the outline of the target drawing, the node sections are split and reinforced, solving the problems of accuracy and efficiency in modeling irregular components, and realizing accurate modeling of complex nodes and flexible calculation of engineering quantities.
Patent Information
- Application Number
- CN202310186718.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2026-01-27
- Estimated Expiration
- 2043-02-10
AI Technical Summary
Existing technologies cannot guarantee the accuracy and efficiency of modeling nodes of irregular components, especially in irregularly shaped components where there are many nodes that are difficult to represent independently, resulting in inflexible calculation of engineering quantities.
By obtaining the configuration parameters of the nodes, determining the relationships between the nodes, identifying the outline of the target drawing, splitting the node sections, generating sub-sections, and adding reinforcement, the nodes are finally combined into a node model.
It enables accurate modeling of complex and irregular components, reduces the number of nodes, improves modeling efficiency, and supports flexible quantity calculation.
Smart Images

Figure CN116361888B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of architectural software modeling technology, and specifically to a method, apparatus, electronic device, and readable storage medium for modeling nodes. Background Technology
[0002] In architectural structural drawings, components with separately detailed reinforcement details are collectively referred to as nodes. In bill of quantities (BOQ) documentation, eaves, parapets, cantilever slabs, balconies, canopies, parapet walls, and other irregularly shaped components (walls, beams, etc.) whose reinforcement sections cannot be edited also need to be represented by nodes. However, representing irregularly shaped components with nodes requires modeling multiple existing individual components, drawing them separately, and then combining them to complete the modeling representation of these nodes for the irregularly shaped components.
[0003] Currently, the construction of irregular components is often handled by using modified components such as irregular eaves, balustrades, and custom lines. However, due to their diverse shapes and complex structures, the number of nodes is large, making it difficult to ensure the modeling accuracy of such nodes. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, electronic device, and readable storage medium for modeling nodes, in order to solve the problem of difficulty in ensuring the modeling accuracy of such nodes for heterogeneous components.
[0005] According to a first aspect, embodiments of the present invention provide a node modeling method, comprising: obtaining configuration parameters of the node; determining the relationship between nodes based on the configuration parameters of the node; identifying the outline of a target drawing based on the relationship between nodes, and determining the node cross section; splitting the node cross section to obtain multiple sub-sections; reinforcing the node cross section to obtain a cross section reinforcement model; and combining the multiple sub-sections with the cross section reinforcement model to generate a node model.
[0006] The node modeling method provided in this invention determines the relationships between nodes through node configuration parameters and identifies the contours in the target drawing based on these relationships. By splitting the node cross-section to generate multiple sub-sections, flexible node splitting is achieved. Reinforcement is then calculated based on the node cross-section to obtain a cross-sectional steel reinforcement model. Finally, each sub-section and the cross-sectional steel reinforcement model are combined to form a node model, enabling accurate modeling of complex nodes. Therefore, for irregularly shaped and structurally complex nodes, it is unnecessary to combine multiple single components; independent representation can be achieved through node cross-sections, reducing the number of nodes and improving modeling accuracy and efficiency.
[0007] In conjunction with the first aspect, in the first embodiment of the first aspect, the step of identifying the outline of the target drawing based on the relationship between nodes and determining the node cross section includes: extracting a set of line elements from the target drawing according to a preset method based on the relationship between nodes; extracting an optimal set of line elements from the set of line elements; and processing the optimal line elements in the optimal set of line elements based on a preset closed region algorithm to obtain the node cross section.
[0008] The node modeling method provided in this invention extracts the optimal set of line primitives from the target drawing and uses a closed region algorithm to form closed polygons from these line primitives, thus generating node cross-sections. Therefore, for any structure or shape in the target drawing, a corresponding node cross-section can be generated, expanding the application scenarios of node cross-section extraction and improving the accuracy of node modeling.
[0009] In conjunction with the first embodiment of the first aspect, in the second embodiment of the first aspect, the step of extracting the optimal set of line primitives from the set of line primitives includes: preprocessing the line primitives in the set of line primitives based on line primitive features to obtain a preprocessed set of line primitives; identifying the intersection positions corresponding to each line primitive in the preprocessed set of line primitives; and extracting multiple optimal line primitives from the preprocessed set of line primitives according to the intersection positions of each line primitive to obtain the optimal set of line primitives.
[0010] In conjunction with the second embodiment of the first aspect, in the third embodiment of the first aspect, the step of extracting multiple optimal line primitives from the preprocessed line primitive set according to the intersection positions of each of the line primitives to obtain the optimal line primitive set includes: breaking the line primitives according to the intersection positions to obtain a sub-primary set; selecting multiple sub-primary elements from the sub-primary set whose line start and line end points intersect with other line primitives, and whose line start and line end points are unique intersection points, and determining the multiple sub-primary elements as the optimal line primitive set.
[0011] The node modeling method provided in this embodiment of the invention improves the accuracy of line element extraction by selecting the optimal line elements from the preprocessed element set based on the intersection positions between line elements, thereby improving the accuracy of node cross-section extraction.
[0012] In conjunction with the second embodiment of the first aspect, in the fourth embodiment of the first aspect, the step of extracting multiple optimal line elements from the preprocessed line element set according to the intersection position of each of the line elements to obtain the optimal line element set further includes: when there are multiple branching line elements at the intersection position of the line elements in the preprocessed line element set, obtaining a labeled element; and determining the branching line element that matches the labeled element as the optimal line element.
[0013] The node modeling method provided in this embodiment of the invention further improves the accuracy of line primitive extraction by combining the intersection position between line primitives and the matching of labeled primitives to select the optimal line primitives from the preprocessed primitive set.
[0014] In conjunction with the second embodiment of the first aspect, in the fifth embodiment of the first aspect, the step of extracting multiple optimal line primitives from the preprocessed line primitive set according to the intersection position of each of the line primitives to obtain the optimal line primitive set further includes: determining a single-intersection line primitive with only one intersection point according to the intersection position; and determining the single-intersection line primitive as the optimal line primitive.
[0015] The node modeling method provided in this embodiment of the invention avoids the omission of optimal line primitives by identifying single-intersection line primitives, and further improves the extraction accuracy of line primitives.
[0016] In conjunction with the first aspect, in the sixth embodiment of the first aspect, splitting the node cross section to obtain multiple sub-sections includes: in response to a drawing operation of a split line, splitting the node cross section based on the drawing operation to obtain multiple sub-sections.
[0017] The node modeling method provided in this embodiment of the invention achieves flexible splitting of node cross-sections by drawing splitting lines.
[0018] In conjunction with the first aspect, in the seventh embodiment of the first aspect, the method further includes: constructing a primitive model based on each of the sub-sections to obtain multiple target primitives; determining the corresponding civil engineering quantity calculation type based on the type of each of the target primitives; and determining the civil engineering quantity corresponding to each of the target primitives according to the respective civil engineering quantity calculation type.
[0019] The node modeling method provided in this embodiment of the invention facilitates the determination of the corresponding civil engineering quantities based on the type of each target graphic element by constructing a primitive model for each sub-section, thereby enabling flexible calculation of civil engineering quantities.
[0020] In conjunction with the seventh embodiment of the first aspect, in the eighth embodiment of the first aspect, the method further includes: determining the corresponding civil engineering summary type based on the type of each of the target graphic elements; and determining the summary engineering quantity corresponding to each of the target graphic elements according to each of the civil engineering summary types.
[0021] The node modeling method provided in this embodiment of the invention determines the corresponding civil engineering summary type based on the type of each target graphic element, so as to present the engineering quantity of each target graphic element according to the civil engineering summary type.
[0022] In conjunction with the first aspect, in the ninth embodiment of the first aspect, the method for reinforcing the node section to obtain a section reinforcement model includes: extracting reinforcement lines and reinforcement identifiers from the target drawing to obtain point reinforcement and line reinforcement; and generating the section reinforcement model based on the correspondence between the point reinforcement, the line reinforcement and the node section.
[0023] The node modeling method provided in this embodiment of the invention extracts rebar lines and rebar identifiers to obtain point rebars and line rebars. This allows the point rebars and line rebars to be arranged in the node cross-section to generate a cross-sectional rebar model by combining the correspondence between the point rebars, line rebars and node cross-sections. This achieves a separate representation of the cross-sectional rebar model, which facilitates the determination of rebar quantity based on the cross-sectional rebar model.
[0024] According to a second aspect, embodiments of the present invention provide a node modeling apparatus, comprising: an acquisition module for acquiring configuration parameters of a node; a node relationship determination module for determining the relationship between nodes based on the configuration parameters of the node; a section creation module for identifying the outline of a target drawing based on the relationship between nodes and determining the node section; a section splitting module for splitting the node section to obtain multiple sub-sections; a section reinforcement module for reinforcing the node section to obtain a section reinforcement model; and a model generation module for combining the multiple sub-sections with the section reinforcement model to generate a node model.
[0025] According to a third aspect, embodiments of the present invention provide an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the node modeling method described in the first aspect or any embodiment of the first aspect.
[0026] According to a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing a computer to perform the node modeling method described in the first aspect or any embodiment of the first aspect.
[0027] It should be noted that the beneficial effects of the node modeling device, electronic device, and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding content in the node modeling method, and will not be repeated here. Attached Figure Description
[0028] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0029] Figure 1 This is a flowchart of a node modeling method according to an embodiment of the present invention;
[0030] Figure 2 A schematic diagram of parameter configuration in an embodiment of the present invention is shown;
[0031] Figure 3 A schematic diagram of the node cross-section is shown in an embodiment of the present invention;
[0032] Figure 4 This is another flowchart of a node modeling method according to an embodiment of the present invention;
[0033] Figure 5 A schematic diagram of line element interruption is shown in an embodiment of the present invention;
[0034] Figure 6 A schematic diagram of the selection of intersecting line elements in an embodiment of the present invention is shown;
[0035] Figure 7 A schematic diagram of the selection of bifurcation line elements in an embodiment of the present invention is shown;
[0036] Figure 8 A schematic diagram of node cross-section splitting in an embodiment of the present invention is shown;
[0037] Figure 9 This is another flowchart of a node modeling method according to an embodiment of the present invention;
[0038] Figure 10 This is a structural block diagram of a node modeling device according to an embodiment of the present invention;
[0039] Figure 11 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0041] In architectural structural drawings, components with separately detailed reinforcement details are collectively referred to as nodes. In bill of quantities (BOQ) documentation, eaves, parapets, cantilever slabs, balconies, canopies, parapet walls, and other irregularly shaped components (walls, beams, etc.) whose reinforcement sections cannot be edited also need to be represented by nodes. However, representing irregularly shaped components with nodes requires modeling multiple existing individual components, drawing them separately, and then combining them to complete the modeling representation of these nodes for the irregularly shaped components.
[0042] Currently, the construction of irregular components is often handled by using modified components such as irregular eaves, balustrades, and custom lines. However, due to their diverse shapes and complex structures, the number of nodes is large, making it difficult to ensure the modeling accuracy of such nodes.
[0043] Meanwhile, modeling multiple existing single components and drawing them separately to combine them to complete the architectural modeling representation of nodes such as irregular components makes it difficult to achieve independent representation; and because the existing component types are limited, it is difficult to determine the civil engineering quantity according to the quota division difference requirements. For example, the calculation of the quantity of parapet walls and cantilever slabs requires exhaustively listing component types, which is not flexible enough; it is difficult to split nodes such as irregular components, which affects the determination of the quantity of specified types of engineering.
[0044] Based on this, the technical solution of this invention accurately models the corresponding parts of the nodes by designing the configuration parameters of the nodes, thereby reducing the time of manual operation. It also achieves the splitting of irregular components by splitting the node cross-section. For irregular component nodes with diverse shapes and complex structures, it is not necessary to combine multiple single components; they can be independently represented by the node cross-section, reducing the number of nodes and improving modeling accuracy and efficiency.
[0045] According to an embodiment of the present invention, an embodiment of a node modeling method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0046] This embodiment provides a node modeling method that can be used in electronic devices, such as computers and tablets. Figure 1 This is a flowchart of a node modeling method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0047] S11, obtain the node's configuration parameters.
[0048] The configuration parameters are custom configurations made by technicians for each node, and these parameters are stored on an electronic device. These configuration parameters include node model parameters, node sub-model parameters, node drawing parameters, and node reinforcement parameters, and each parameter is independent of the others.
[0049] Specifically, node model parameters are represented by a node table, such as... Figure 2 As shown. In the node table, the component type (Type) is used as the unique code encoding, and the component ID is used as the record ID. Each node table has a corresponding attached attribute table, which includes a business attribute table, a geometric attribute table, and a primitive table. The primitive table and the node table correspond one-to-one through the component ID.
[0050] Node sub-model parameters are represented by a node sub-component table. Similar to the node table, this sub-component table uses the component type (Type) as a unique code encoding and the component ID as the record ID in the node table. Furthermore, the node sub-component table and the node table establish a parent-child relationship through the PID field. Figure 2 As shown.
[0051] Node drawing parameters include the drawing name recorded in the node and the element information stored in the drawing. The node drawing name is uniquely identified by a GUID and bound to the ID in the node table, establishing a one-to-one correspondence between the "node" and the drawing. The drawing is stored as a physical file, which is a portion of the CAD elements extracted by the node. It saves the data after the CAD elements have been streamed, which can solve the problem of the large space occupied by the original drawing, resulting in a large space occupied by the project file.
[0052] The reinforcement parameters for each node can be stored in a separate database, establishing a one-to-one correspondence between the reinforcement ID and the node table. Specifically, the node reinforcement parameters are represented by data tables describing the properties of reinforcing bars, such as the reinforcement detailing table and the reinforcement attribute table. The correspondence between these data tables and the node table is established using IDs.
[0053] S12, determine the relationship between nodes based on the node configuration parameters.
[0054] Based on the node configuration parameters, the node model parameters, node sub-model parameters, node drawing parameters, and node reinforcement parameters are all independent, and they are interconnected through component IDs. Therefore, the relationships between nodes can be determined based on the component IDs. These relationships allow control over the display of the model corresponding to the node configuration parameters and the differentiation of the model in quantity calculations.
[0055] S13, Identify the outline of the target drawing based on the relationship between nodes, and determine the node cross-sections.
[0056] The target drawing is a CAD drawing, and the nodes and sections are represented by abstract polygons, such as... Figure 3 As shown, the polygon includes non-connected polygons such as single-section, multi-ring section, cavity section and variable section, and each polygon is a single-path polygon represented by a cross section.
[0057] Specifically, electronic devices can identify CAD line elements in the target drawing based on the relationship between nodes, and then construct closed polygons for the nodes based on the identified CAD line elements. The surface formed by these closed polygons is the node cross section.
[0058] S14, split the node section to obtain multiple sub-sections.
[0059] Draw section dividing lines according to preset rules, divide the node section into several closed polygons according to the section dividing lines, obtain several sub-sections, and establish a unique identifier ID for each sub-section so that it corresponds to the node sub-component table.
[0060] S15, reinforcement is added to the node section to obtain the section reinforcement model.
[0061] Reinforcement includes point reinforcement arrangement and line reinforcement arrangement. The electronic equipment identifies point reinforcement and line reinforcement from the characteristics of the target drawing, and arranges the point reinforcement and line reinforcement according to the point reinforcement position, point reinforcement mark, line reinforcement position and line reinforcement mark to generate a cross-sectional reinforcement model.
[0062] S16 combines multiple sub-sections with the section reinforcement model to generate a node model.
[0063] Based on the splitting relationship between node sections and sub-sections, the subordinate relationship between node sections and sub-sections is determined. Then, based on the relationship between nodes, the correspondence between the section reinforcement model and the node section is determined. Based on this correspondence, multiple sub-sections constituting the node section are combined with the section reinforcement model to generate the node model.
[0064] The node modeling method provided in this embodiment determines the relationships between nodes through node configuration parameters and identifies the contours in the target drawing based on these relationships. By splitting the node cross-section, multiple sub-sections are generated, enabling flexible node splitting. Reinforcement is then calculated based on the node cross-section to obtain a cross-sectional steel reinforcement model. These sub-sections and the cross-sectional steel reinforcement model are then combined to form the node model, achieving accurate modeling for complex nodes. Therefore, for irregularly shaped and structurally complex nodes, there is no need to combine multiple single components; independent representation can be achieved through the node cross-section, reducing the number of nodes and improving modeling accuracy and efficiency.
[0065] This embodiment provides a node modeling method that can be used in electronic devices, such as computers and tablets. Figure 4 This is a flowchart of a node modeling method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps:
[0066] S21, Obtain the node's configuration parameters. See the relevant descriptions in the above embodiments for detailed explanations.
[0067] S22, determine the relationships between nodes based on the node configuration parameters. See the relevant descriptions in the above embodiments for detailed explanation.
[0068] S23, Identify the outline of the target drawing based on the relationship between nodes, and determine the node cross-sections.
[0069] Specifically, step S23 above may include:
[0070] S231, based on the relationship between nodes, extract the set of line elements from the target drawing according to a preset method.
[0071] The preset extraction method is a pre-defined extraction method, including extraction by layer, extraction by color, etc. The line element set is a collection of line elements to be selected. When extracting line elements from a target drawing, technicians can select an extraction method, such as extraction by layer, and then use a mouse or other pointing device to select the CAD line elements in the target drawing. Correspondingly, the electronic device can respond to the technician's settings and selection operations, and extract line elements in the same layer from the target drawing based on the relationships between nodes, obtaining a set of line elements in the same layer. Similarly, extraction by color will yield a set of line elements of the same color.
[0072] S232, extract the optimal set of line graph elements from the set of line graph elements.
[0073] The optimal line primitive set is a collection of optimal line primitives, which are the valid line primitives that constitute the outline of the target drawing. Specifically, the optimal line primitives include: line primitives whose start and end points both have a unique intersection with other line primitives and have no branching lines; line primitives that have only one intersection with other line primitives; and line primitives that match the annotation primitives in the target drawing. The extraction of optimal line primitives will be described in detail in the following embodiments.
[0074] Since the line primitive set consists of initially extracted CAD line primitives, in order to ensure the accuracy of the line primitives, it is necessary to filter the CAD line primitives in the line primitive set and extract the optimal line primitives to form the optimal line primitive set.
[0075] Optionally, step S232 above may include:
[0076] (1) Based on the features of line primitives, the line primitives in the line primitive set are preprocessed to obtain a preprocessed line primitive set.
[0077] Based on the type of CAD elements (lines, text, polylines, dimensions, etc.), the corresponding line element features are determined. The line elements in the line element set are then preprocessed using these features to remove invalid line elements, resulting in a set of line elements that meet the preprocessing requirements of the line element features.
[0078] Specifically, based on the characteristics of line primitives, non-line primitives such as text primitives and dimensioning primitives in the line primitive set are excluded.
[0079] Specifically, based on the characteristics of the node drawings, lines that are complete circles and within one rebar diameter are point reinforcements. These lines themselves form a closed profile, but they are not line elements that constitute the profile of the node section. By judging through geometric features, line elements that geometrically satisfy the condition of being a complete circle formed by a single line and whose radius is within the error range of one rebar diameter are excluded.
[0080] Specifically, free line primitives (i.e., those that do not intersect with any line primitives) are excluded.
[0081] Specifically, for line elements that are dimensioned but not dimensioned in type, and that are surrounded by dimension text, the line length and dimension length are calculated, and line elements within the error range are excluded.
[0082] Specifically, line elements with a length of less than 1 mm and overlapping line elements are excluded.
[0083] (2) Identify the intersection points of each line element in the preprocessed line element set.
[0084] The intersection point is the location where each line element intersects with other line elements. After preprocessing, free-floating line elements in the line element set are excluded, leaving each line element in the preprocessed set with corresponding intersecting line elements. The intersection point of each line element can be determined based on the intersection situation.
[0085] (3) Based on the intersection position of each line element, extract multiple optimal line elements from the preprocessed line element set to obtain the optimal line element set.
[0086] Based on the intersection point position, each line element in the preprocessed line element set is screened a second time to remove invalid line elements and extract the optimal line elements that can form the node cross section profile, thus forming the optimal line element set.
[0087] Here, the optimal line primitives are selected from the preprocessed primitive set by selecting the intersection points between line primitives, which can improve the accuracy of line primitive extraction and further ensure the accuracy of node cross-section extraction. Optionally, the above step (3) may include:
[0088] (31) Break the line primitives according to the intersection point to obtain a set of sub-primitives.
[0089] (32) Select multiple sub-elements from the sub-elements set whose line start and line end points intersect with other line elements and whose line start and line end points are unique intersection points, and determine the multiple sub-elements as the optimal line element set.
[0090] The line primitives in the preprocessed primitive set are broken according to their intersection points to obtain multiple broken line primitives. These broken line primitives are then used to form a sub-primitive set. For example, Figure 5 Line primitive 1 and line primitive 2 shown have an intersection point A. These two line primitives are broken at the intersection point A to obtain 4 new line primitives, namely sub-primary primitive 1, sub-primary primitive 2, sub-primary primitive 3 and sub-primary primitive 4. These 4 new line primitives are stored in the sub-primary primitive set.
[0091] The optimal line element is selected by traversing the set of sub-elements and choosing those whose starting and ending points both intersect uniquely with other line elements and which have no branching lines. For example, ... Figure 6 The sub-element set shown has the following intersection situation. The sub-element S with one intersection point at the start point and one intersection point at the end point of the line is the optimal line element.
[0092] Optionally, step (3) above may also include:
[0093] (33) When there are multiple branching line elements at the intersection of the line elements in the preprocessed line element set, obtain the labeled elements.
[0094] (34) The bifurcation line element that matches the labeled element is determined as the optimal line element.
[0095] When a line element is determined to have multiple branching line elements at its intersection point, the label element at that intersection point can be identified and matched with each branching line element. If the label element and the branching line element have the same length and the same text direction, then that branching line is selected as the optimal line element, and other mismatched branching line elements are discarded. For example, ... Figure 7 The line element B shown has two branching line elements at the intersection point. Since the branching line element R matches the labeled element, line element B and branching line element R are preferred as the optimal line elements.
[0096] By combining the intersection points between line primitives and the matching of labeled primitives, the optimal line primitives are selected from the preprocessed primitive set, further improving the accuracy of line primitive extraction.
[0097] Optionally, step (3) above may also include:
[0098] (35) Determine the single-intersection line primitive with only one intersection point according to the intersection point position.
[0099] (36) Determine the single intersection point line primitive as the optimal line primitive.
[0100] Traverse the intersection positions of each line primitive in the preprocessed line primitive set, determine the single-intersection line primitive with only one intersection point and no branching, and put the single-intersection line primitive as the optimal line primitive into the optimal line primitive set.
[0101] It should be noted that line elements that cannot be excluded can be treated as a set of line elements that have been broken, so that they can be manually selected for exclusion.
[0102] By identifying single-intersection line primitives, the omission of optimal line primitives is avoided, further improving the accuracy of line primitive extraction.
[0103] S233, based on the preset closed region algorithm, processes the optimal line primitives in the optimal line primitive set to obtain the node cross section.
[0104] The preset closed region algorithm is a pre-defined algorithm used to generate closed polygons, which connects the best line primitives in the optimal line primitive set to form a closed polygon. The algorithm for closing the polygon is not limited here; those skilled in the art can determine it according to actual needs.
[0105] The optimal line primitives in the optimal line primitive set are connected using the closed region algorithm to generate closed polygons. A unique identifier (ID) is also generated for each closed polygon to distinguish them. The area enclosed by this closed polygon is the node section. By constructing display nodes for these node sections, the corresponding geometric model can be displayed on the electronic device's view interface.
[0106] S24, split the node section to obtain multiple sub-sections.
[0107] Specifically, step S24 may include: in response to the drawing operation of splitting lines, splitting the node cross section based on the drawing operation to obtain multiple sub-sections.
[0108] Technicians draw dividing lines such as straight lines, arcs, and circles according to actual needs, in order to divide the node section into multiple sub-sections. For example... Figure 8As shown, the electronic device can respond to the technician's drawing operation on the splitting lines, and generate splitting lines such as straight lines, arcs, and circles according to the drawing operation, splitting the node cross-section of single cross-section, single cross-section non-connected multi-ring, cavity cross-section and other types into multiple sub-cross-sections.
[0109] Specifically, when there are multiple splitting lines, the electronic device can extend the splitting lines indefinitely. First, take one splitting line to divide the node cross section into several cross section polygons, and then traverse the next splitting line in turn to split the previous cross section division result (including undivided and divided cross sections) again, and finally generate all the split cross section polygons. The cross section area enclosed by each cross section polygon is the sub-cross section.
[0110] S25, reinforcement is added to the node section to obtain the section reinforcement model.
[0111] Specifically, step S25 above may include:
[0112] S251, extract the rebar lines and rebar markings from the target drawing to obtain point reinforcement and line reinforcement.
[0113] Extract rebar lines and rebar identifiers from the target drawing based on the features of the CAD drawing. Specifically, rebar lines and identifiers can be extracted by layer, by color, or by single element. Alternatively, they can be extracted using a combination of these three methods. The extracted rebar lines and identifiers are then combined to form point reinforcement and line reinforcement.
[0114] S252 generates a cross-sectional reinforcement model based on the correspondence between point reinforcement, line reinforcement and node cross-section.
[0115] By establishing the correspondence between point reinforcement, line reinforcement, and node cross-sections, and arranging the point and line reinforcement within the node cross-sections, a cross-sectional reinforcement model can be obtained. Each reinforcement line has independent attributes, and technicians can define and edit the reinforcement information using the reinforcement editing tab in the visual interface.
[0116] S26, combine multiple sub-sections with the section reinforcement model to generate a node model. See the relevant descriptions in the above embodiments for detailed explanations.
[0117] The node modeling method provided in this embodiment extracts the optimal set of line primitives from the target drawing and uses a closed region algorithm to form closed polygons from these line primitives, thus generating node cross-sections. Therefore, for any structure or shape in the target drawing, a corresponding node cross-section can be generated, expanding the application scenarios of node cross-section extraction and improving the accuracy of node modeling. Flexible splitting of node cross-sections is achieved by drawing split lines. By extracting rebar lines and rebar identifiers, point rebars and line rebars are obtained. This allows for the arrangement of point rebars and line rebars within the node cross-section to generate a cross-sectional rebar model, thus achieving a separate representation of the cross-sectional rebar model and facilitating the determination of rebar quantity based on this model.
[0118] As an optional implementation, after the node model is constructed, the corresponding engineering quantities can be determined based on the constructed node model. Specifically, such as... Figure 9 As shown, the above method may further include:
[0119] S31, construct the primitive model based on each sub-section to obtain multiple target primitives.
[0120] Based on the node cross-section and each sub-cross-section, corresponding cross-sectional primitive models are drawn to obtain multiple target primitives, where each target primitive includes a parent primitive and each sub-primitive. Specifically, the electronic device can respond to the technician's line drawing of the cross-sectional primitive model and draw the target primitives based on this line drawing method.
[0121] S32, based on the type of each target graphic element, determine the corresponding civil engineering quantity calculation type.
[0122] Each target graphic element has pre-defined corresponding quantity calculation attributes, including civil engineering quantity calculation attributes and civil engineering summary attributes. Different target graphic elements correspond to different civil engineering quantity calculation types. By parsing the quantity calculation attribute content corresponding to each target graphic element, the corresponding civil engineering quantity calculation type can be determined.
[0123] S33, determine the civil engineering quantity corresponding to each target element according to each civil engineering quantity calculation type.
[0124] Based on the type of civil engineering quantity calculation, determine the corresponding quantity calculation rules, determine the civil engineering quantity of each target element according to the quantity calculation rules corresponding to each target element, and then add up the civil engineering quantities of each target element to obtain the total civil engineering quantity.
[0125] S34, based on the type of each target graphic element, determine the corresponding civil engineering summary type.
[0126] Different target elements correspond to specific civil engineering summary types. By analyzing the quantity calculation attributes of each target element, the corresponding civil engineering summary type can be determined. This civil engineering summary type supports various types such as eaves, parapets, shear walls, custom types, cantilever slabs, balconies, canopies, and parapet walls.
[0127] S35, determine the total quantity of work corresponding to each target element according to each civil engineering summary type.
[0128] The calculated civil engineering quantities are summarized according to the civil engineering summary type to obtain the corresponding summary quantities, which are then displayed or saved. By setting separate civil engineering quantity calculation and civil engineering summary types, the civil engineering quantities are calculated using the target element type and corresponding quantity calculation rules, and the summary quantities are displayed according to the set civil engineering summary type, thereby meeting the differentiated quantity allocation requirements for different nodes.
[0129] The node modeling method provided in this embodiment constructs primitive models for each sub-section, facilitating the determination of corresponding civil engineering quantities based on the type of each target primitive, thus enabling flexible calculation of civil engineering quantities. The corresponding civil engineering summary type is determined by the type of each target primitive, allowing the quantities of each target primitive to be presented according to the civil engineering summary type.
[0130] This embodiment also provides a node modeling apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0131] This embodiment provides a node modeling device, such as... Figure 10 As shown, it includes:
[0132] Module 41 is used to obtain the configuration parameters of the node.
[0133] The node relationship determination module 42 is used to determine the relationship between nodes based on the node configuration parameters.
[0134] Section creation module 43 is used to identify the outline of the target drawing based on the relationship between nodes and determine the node sections.
[0135] The section splitting module 44 is used to split the node section to obtain multiple sub-sections.
[0136] Section reinforcement module 45 is used to reinforce the node section to obtain the section reinforcement model.
[0137] The model generation module 46 is used to combine multiple sub-sections with the cross-section reinforcement model to generate a node model.
[0138] Optionally, the above-mentioned section creation module 43 includes:
[0139] The line element extraction submodule is used to extract a set of line elements from the target drawing based on the relationships between nodes and according to a preset method.
[0140] The optimal line primitive extraction submodule is used to extract the optimal line primitive set from the line primitive set.
[0141] The closure processing submodule is used to process the optimal line primitives in the optimal line primitive set based on a preset closure region algorithm to obtain the node cross section.
[0142] Optionally, the above-mentioned optimal line primitive extraction submodule may include:
[0143] The preprocessing unit is used to preprocess the line primitives in the line primitive set based on the line primitive features to obtain a preprocessed line primitive set.
[0144] The identification unit is used to identify the intersection positions of each line element in the preprocessed line element set.
[0145] The extraction unit is used to extract multiple optimal line primitives from the preprocessed line primitive set according to the intersection position of each line primitive, so as to obtain the optimal line primitive set.
[0146] Optionally, the extraction unit is specifically used to: break the line primitives according to the intersection position to obtain a set of sub-primitives; select multiple sub-primitives from the set of sub-primitives whose line start and line end points intersect with other line primitives and whose line start and line end points are unique intersection points, and determine the multiple sub-primitives as the optimal set of line primitives.
[0147] Optionally, the extraction unit is further configured to: obtain labeled elements when there are multiple branching line elements at the intersection of line elements in the preprocessed line element set; and determine the branching line element that matches the labeled element as the optimal line element.
[0148] Optionally, the extraction unit is further configured to: determine a single-intersection line primitive with only one intersection point according to the intersection point position; and determine the single-intersection line primitive as the optimal line primitive.
[0149] Optionally, the above-mentioned section splitting module 44 includes:
[0150] The response submodule is used to respond to the drawing operation of split lines, and splits the node cross-section based on the drawing operation to obtain multiple sub-sections.
[0151] Optionally, the above-mentioned cross-section reinforcement module 45 includes:
[0152] The rebar information extraction submodule is used to extract rebar lines and rebar identifiers from the target drawing to obtain point rebars and line rebars.
[0153] The generation submodule is used to generate a cross-sectional reinforcement model based on the correspondence between point reinforcement, line reinforcement and node cross-section.
[0154] Optionally, the modeling apparatus for the aforementioned nodes may further include:
[0155] The target primitive construction module is used to construct primitive models based on each sub-section, resulting in multiple target primitives.
[0156] The quantity calculation type determination module is used to determine the corresponding civil engineering quantity calculation type based on the type of each target graphic element.
[0157] The Civil Engineering Quantity Determination Module is used to determine the civil engineering quantity corresponding to each target element according to each civil engineering quantity calculation type.
[0158] The summary type determination module is used to determine the corresponding civil engineering summary type based on the type of each target graphic element.
[0159] The summary quantity determination module is used to determine the summary quantity of each target element according to each civil engineering summary type.
[0160] In this embodiment, the node modeling device is presented in the form of a functional unit. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0161] The further functional descriptions of each module and submodule are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0162] The node modeling device provided in this embodiment determines the relationships between nodes through node configuration parameters and identifies the contours in the target drawing based on these relationships. It generates multiple sub-sections by splitting the node cross-section, achieving flexible node splitting. Reinforcement is then calculated based on the node cross-section to obtain a cross-sectional steel reinforcement model. Finally, each sub-section and the cross-sectional steel reinforcement model are combined to form a node model, achieving accurate modeling for complex nodes. Therefore, for irregularly shaped and structurally complex nodes, there is no need to combine multiple single components; independent representation can be achieved through node cross-sections, reducing the number of nodes and improving modeling accuracy and efficiency.
[0163] This invention also provides an electronic device having Figure 10 The modeling device for the nodes shown.
[0164] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of the present invention, such as... Figure 11 As shown, the electronic device may include: at least one processor 601, such as a central processing unit (CPU), at least one communication interface 603, memory 604, and at least one communication bus 602. The communication bus 602 is used to enable communication between these components. The communication interface 603 may include a display screen or a keyboard; optionally, the communication interface 603 may also include a standard wired interface or a wireless interface. The memory 604 may be high-speed volatile random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory 604 may also be at least one storage device located remotely from the aforementioned processor 601. The processor 601 may be combined with... Figure 10 The described apparatus has an application program stored in memory 604, and a processor 601 calls the program code stored in memory 604 to perform any of the above method steps.
[0165] The communication bus 602 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 602 can be divided into an address bus, a data bus, and a control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0166] The memory 604 may include volatile memory, such as random-access memory (RAM); the memory may also include non-volatile memory, such as flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 604 may also include a combination of the above types of memory.
[0167] The processor 601 can be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and an NP.
[0168] The processor 601 may further include a hardware chip. This hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0169] Optionally, the memory 604 is also used to store program instructions. The processor 601 can invoke the program instructions to implement the node modeling method shown in the above embodiments of this application.
[0170] This invention also provides a non-transitory computer storage medium storing computer-executable instructions that can execute the node modeling method in any of the above method embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium may also include combinations of the above types of memory.
[0171] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for modeling nodes, characterized in that, include: Get the node's configuration parameters; The relationships between nodes are determined based on the configuration parameters of the nodes; Based on the relationship between the nodes, the outline of the target drawing is identified, and the node cross-section is determined. The node screenshot is a surface composed of closed polygons constructed for the node based on the identified CAD line primitives. The node cross section is split to obtain multiple sub-sections, including: drawing cross section dividing lines according to preset rules, dividing the node cross section into several closed polygons according to the cross section dividing lines, and obtaining several sub-sections; The reinforcement of the node section is calculated to obtain the section reinforcement model; The multiple sub-sections are combined with the cross-section reinforcement model to generate a node model; The step of identifying the outline of the target drawing based on the relationship between nodes and determining the node cross-section includes: extracting a set of line elements from the target drawing according to a preset method based on the relationship between nodes; extracting an optimal set of line elements from the set of line elements; and processing the optimal line elements in the optimal set of line elements based on a preset closed region algorithm to obtain the node cross-section. The step of extracting the optimal set of line primitives from the set of line primitives includes: preprocessing the line primitives in the set of line primitives based on their features to obtain a preprocessed set of line primitives; identifying the intersection positions of each line primitive in the preprocessed set of line primitives; and extracting multiple optimal line primitives from the preprocessed set of line primitives according to the intersection positions of each line primitive to obtain the optimal set of line primitives. The step of extracting multiple optimal line primitives from the preprocessed line primitive set according to the intersection positions of each line primitive to obtain the optimal line primitive set includes: breaking the line primitives according to the intersection positions to obtain a sub-primary set; selecting multiple sub-primary primitives from the sub-primary set whose line start and line end points intersect with other line primitives, and whose line start and line end points are unique intersection points, and determining the multiple sub-primary primitives as the optimal line primitive set.
2. The method according to claim 1, characterized in that, The step of extracting multiple optimal line primitives from the preprocessed line primitive set according to the intersection positions of the various line primitives to obtain the optimal line primitive set further includes: When multiple branching line elements exist at the intersection point in the preprocessed line element set, the labeled elements are obtained; The bifurcation line element that matches the labeled element is determined as the optimal line element.
3. The method according to claim 1, characterized in that, The step of extracting multiple optimal line primitives from the preprocessed line primitive set according to the intersection positions of the various line primitives to obtain the optimal line primitive set further includes: Based on the location of the intersection point, a single-intersection line element with only one intersection point is determined; The single-intersection line primitive is determined as the optimal line primitive.
4. The method according to claim 1, characterized in that, The node cross-section is split to obtain multiple sub-sections, including: In response to the drawing operation of splitting lines, the node cross-section is split based on the drawing operation to obtain multiple sub-sections.
5. The method according to claim 1, characterized in that, Also includes: Based on each of the sub-sections, a primitive model is constructed to obtain multiple target primitives; Based on the type of each target graphic element, determine the corresponding civil engineering quantity calculation type; The civil engineering quantity corresponding to each target element is determined according to each of the aforementioned civil engineering quantity calculation types.
6. The method according to claim 5, characterized in that, Also includes: Based on the type of each target graphic element, determine the corresponding civil engineering summary type; The total quantity of work corresponding to each target element is determined according to each of the aforementioned civil engineering summary types.
7. The method according to claim 1, characterized in that, The reinforcement of the node section is calculated to obtain the section reinforcement model, including: Extract the rebar lines and rebar markings from the target drawing to obtain point rebars and line rebars; Based on the correspondence between the point reinforcement, the line reinforcement, and the node section, the cross-sectional reinforcement model is generated.
8. A node modeling apparatus, characterized in that, include: The acquisition module is used to obtain the configuration parameters of the nodes; The node relationship determination module is used to determine the relationship between nodes based on the configuration parameters of the nodes; The section creation module is used to identify the outline of the target drawing based on the relationship between the nodes and determine the node sections. The node screenshot is a surface constructed by closed polygons for the node based on the identified CAD line primitives. The section splitting module is used to split the node section to obtain multiple sub-sections, including: drawing section dividing lines according to preset rules, dividing the node section into several closed polygons according to the section dividing lines, and obtaining several sub-sections; The section reinforcement module is used to reinforce the nodal section to obtain the section reinforcement model; The model generation module is used to combine the multiple sub-sections with the cross-section reinforcement model to generate a node model; The section creation module is further configured to extract a set of line elements from the target drawing based on the relationship between the nodes according to a preset method; extract an optimal set of line elements from the set of line elements; and process the optimal line elements in the optimal set of line elements based on a preset closed region algorithm to obtain the node section. The section creation module is further configured to preprocess the line primitives in the line primitive set based on the line primitive features to obtain a preprocessed line primitive set; identify the intersection position corresponding to each line primitive in the preprocessed line primitive set; and extract multiple optimal line primitives from the preprocessed line primitive set according to the intersection position of each line primitive to obtain the optimal line primitive set. The section creation module is further configured to break the line primitives according to the intersection point positions to obtain a set of sub-primitives; select multiple sub-primitives from the set of sub-primitives whose line start and line end points intersect with other line primitives, and whose line start and line end points are unique intersection points, and determine the multiple sub-primitives as the optimal set of line primitives.
9. An electronic device, characterized in that, include: A memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, the processor executing the computer instructions to perform the node modeling method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the node modeling method according to any one of claims 1-7.
Citation Information
Patent Citations
Fault detection in HVAC-systems using building information models and heat flow models
CN102687085A
Two-stage parameterization establishing method of assembly type concrete structure BIM
CN107330153A