CN116361888A - Modeling method and device for node, electronic equipment and readable storage medium - Google Patents
Modeling method and device for node, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN116361888A CN116361888A CN202310186718.3A CN202310186718A CN116361888A CN 116361888 A CN116361888 A CN 116361888A CN 202310186718 A CN202310186718 A CN 202310186718A CN 116361888 A CN116361888 A CN 116361888A
- Authority
- CN
- China
- Prior art keywords
- line
- node
- section
- primitive
- primitives
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Evolutionary Computation (AREA)
- Civil Engineering (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Structural Engineering (AREA)
- Computational Mathematics (AREA)
- Architecture (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Image Analysis (AREA)
Abstract
The invention relates to the technical field of building software modeling, and discloses a node modeling method, a node modeling device, electronic equipment and a readable storage medium. Wherein the method comprises the following steps: acquiring configuration parameters of a node; determining the relationship between nodes based on configuration parameters of the nodes; identifying the outline of the target drawing based on the relationship among the nodes, and determining the node section; splitting the node section to obtain a plurality of sub-sections; reinforcing bars are arranged on the section of the node to obtain a section reinforcing bar model; and combining the plurality of sub-sections with the section steel bar model to generate a node model. By implementing the technical scheme of the invention, flexible splitting of the nodes is realized, the number of the nodes is reduced, the complex nodes can be accurately modeled, and the modeling accuracy and the modeling efficiency are improved.
Description
Technical Field
The invention relates to the technical field of building software modeling, in particular to a node modeling method, a node modeling device, electronic equipment and a readable storage medium.
Background
In the building construction drawings, there are components labeled by large figures of concrete details described in separate detail, such components being collectively referred to as nodes. In the inventory business, the cornices, the breast boards, the cantilever boards, the balconies, the rainsheds, the parapet walls and other special-shaped components (walls, beams and the like) which cannot be edited in the section of the steel bars are also required to be replaced by nodes. However, the use of nodes instead of the existing multiple single components to model, respectively drawn, to combine to complete the modeled representation of such nodes for the foreign components.
At present, the construction of the nodes aiming at the different members is commonly processed by special-shaped cornices, breast boards, custom lines and other members, but the number of the nodes is large due to the complicated modeling and complicated structure, and the modeling accuracy of the nodes is difficult to ensure.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a method, an apparatus, an electronic device, and a readable storage medium for modeling a node, so as to solve the problem that it is difficult to guarantee the modeling accuracy for the node of the type of the opposite member.
According to a first aspect, an embodiment of the present invention provides a method for modeling a node, including: acquiring configuration parameters of a node; determining the relationship between nodes based on the configuration parameters of the nodes; identifying the outline of the target drawing based on the relationship between the nodes, and determining the node section; splitting the node section to obtain a plurality of sub-sections; reinforcing bars are arranged on the section of the node to obtain a section reinforcing bar model; and combining the plurality of sub-sections with the section steel bar model to generate a node model.
According to the modeling method of the nodes, provided by the embodiment of the invention, the relationship among the nodes is determined through the configuration parameters of the nodes, and the contours in the target drawing are identified according to the relationship among the nodes; the node section is split to generate a plurality of sub-sections, so that flexible splitting of the node is realized; according to the method, the section steel bar model is obtained by reinforcing according to the node section, and then each sub-section and the section steel bar model are combined into the node model, so that accurate modeling for complex nodes is realized. Therefore, the node for the heterogeneous member with various shapes and complex structures can realize independent representation through the section of the node without combining a plurality of single members, thereby reducing the number of the nodes and improving the modeling accuracy and the modeling efficiency.
With reference to the first aspect, in a first implementation manner of the first aspect, the identifying the outline of the target drawing based on the relationship between nodes, and determining the node section include: extracting a line drawing element set from the target drawing according to a preset mode based on the relation among the nodes; extracting an optimal line pattern element set from the line pattern element set; and processing the optimal line primitives in the optimal line primitive set based on a preset closed area algorithm to obtain the node section.
According to the modeling method for the node, provided by the embodiment of the invention, the optimal line drawing element set in the target drawing is extracted, and the optimal line drawing element is formed into a closed polygon through a closed area algorithm, namely the node section is generated. Therefore, for any structure or modeling in the target drawing, the corresponding node section can be generated, the application scene of extracting the node section is expanded, and the accuracy of node modeling is improved.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the extracting an optimal line primitive set from the line primitive set includes: preprocessing line primitives in the line primitive set based on line primitive characteristics to obtain a preprocessed line primitive set; identifying the corresponding intersection point position of each line element in the preprocessing line element set; and extracting a plurality of optimal line primitives from the preprocessed line primitive set according to the intersection point positions of the line primitives to obtain the optimal line primitive set.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the extracting, according to an intersection position of each line primitive, a plurality of optimal line primitives from the preprocessed line primitive set to obtain the optimal line primitive set includes: breaking the line drawing element according to the intersection point position to obtain a sub-element set; and screening out a plurality of sub-primitives, wherein a line starting point and a line ending point of the plurality of sub-primitives are respectively intersected with other line primitives, and the line starting point and the line ending point are respectively the unique intersection points, and determining the plurality of sub-primitives as an optimal line primitive set.
According to the modeling method for the node, provided by the embodiment of the invention, the optimal line drawing element is screened from the preprocessed line drawing element set through the intersection point position among the line drawing elements, so that the extraction accuracy of the line drawing element is improved, and the extraction accuracy of the node section is improved.
With reference to the second implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the extracting, according to an intersection position of each line primitive, a plurality of optimal line primitives from the preprocessed line primitive set to obtain the optimal line primitive set further includes: when a plurality of bifurcation line primitives exist in the intersection point position of the line primitives in the preprocessing line primitive set, obtaining an annotation line primitive; and determining the bifurcation line primitive matched with the labeling primitive as an optimal line primitive.
According to the modeling method of the node, provided by the embodiment of the invention, the optimal line primitives are screened from the preprocessed line primitive set by combining the intersection point positions among the line primitives and the matching property of the labeling line primitives, so that the extraction accuracy of the line primitives is further improved.
With reference to the second implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the extracting, according to an intersection position of each line primitive, a plurality of optimal line primitives from the preprocessed line primitive set to obtain the optimal line primitive set further includes: determining single-intersection line primitives with only one intersection point according to the intersection point positions; and determining the single-intersection line primitive as the optimal line primitive.
According to the modeling method for the nodes, provided by the embodiment of the invention, through identifying the single-intersection line pattern element, the missing extraction of the optimal line pattern element is avoided, and the extraction accuracy of the line pattern element is further improved.
With reference to the first aspect, in a sixth implementation manner of the first aspect, splitting the node section to obtain a plurality of sub-sections includes: responding to the drawing operation of the split line, splitting the node section based on the drawing operation, and obtaining a plurality of sub sections.
According to the node modeling method provided by the embodiment of the invention, flexible splitting of the node section is realized by drawing the splitting line.
With reference to the first aspect, in a seventh implementation manner of the first aspect, the method further includes: constructing a primitive model based on each sub-section to obtain a plurality of target primitives; determining a corresponding civil engineering quantity type based on the type of each target primitive; and determining the civil engineering quantity corresponding to each target graphic element according to each civil engineering quantity type.
According to the modeling method of the node, provided by the embodiment of the invention, through constructing the primitive model of each sub-section, the corresponding civil engineering quantity is conveniently determined according to the type of each target primitive, and the flexible calculation of the civil engineering quantity is realized.
With reference to the seventh implementation manner of the first aspect, in an eighth implementation manner of the first aspect, the method further includes: determining a corresponding civil engineering summary type based on the type of each target primitive; and determining the summarized engineering quantity corresponding to each target graphic element according to each civil engineering summarized type.
According to the modeling method of the node, which is provided by the embodiment of the invention, the corresponding civil engineering summarization type is determined through the type of each target primitive, so that each target primitive is presented with the engineering quantity according to the civil engineering summarization type.
With reference to the first aspect, in a ninth implementation manner of the first aspect, the method performs reinforcement on a section of the node to obtain a section reinforcement model, including: extracting a reinforcing steel bar line and a reinforcing steel bar mark from the target drawing to obtain a point reinforcing steel bar and a line reinforcing steel bar; and generating the section steel bar model based on the corresponding relation between the point ribs, the line ribs and the node section.
According to the modeling method for the node, provided by the embodiment of the invention, the point bar and the line bar are obtained by extracting the bar wire and the bar mark, so that the corresponding relation between the point bar, the line bar and the node section can be combined, the point bar and the line bar are arranged in the node section to generate the section bar model, the independent representation of the section bar model is realized, and the bar calculation is conveniently determined according to the section bar model.
According to a second aspect, an embodiment of the present invention provides a modeling apparatus for a node, including: the acquisition module is used for acquiring configuration parameters of the node; the node relation determining module is used for determining the relation between the nodes based on the configuration parameters of the nodes; the section creating module is used for identifying the outline of the target drawing based on the relationship among the nodes and determining the node section; the section splitting module is used for splitting the node section to obtain a plurality of sub-sections; the section reinforcement module is used for reinforcing the section of the node to obtain a section reinforcement model; and the model generation module is used for combining the plurality of sub-sections with the section steel bar model to generate a node model.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: the modeling method of the node according to the first aspect or any implementation manner of the first aspect is implemented by the processor through executing the computer instructions.
According to a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing a computer to perform the method of modeling a node according to the first aspect or any implementation manner of the first aspect.
It should be noted that, the modeling apparatus, the electronic device, and the computer-readable storage medium for a node provided in the embodiments of the present invention have the corresponding beneficial effects, please refer to the description of the corresponding content in the modeling method for the node, and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of modeling a node according to an embodiment of the invention;
FIG. 2 is a schematic diagram of parameter configuration in an embodiment of the present invention;
FIG. 3 shows a schematic diagram of a cross section of a node in an embodiment of the invention;
FIG. 4 is another flow chart of a method of modeling a node according to an embodiment of the invention;
FIG. 5 illustrates a schematic broken view of a line primitive in an embodiment of the present invention;
FIG. 6 shows a screening schematic of intersecting line elements in an embodiment of the invention;
FIG. 7 shows a screening schematic of bifurcation line graph elements in an embodiment of the present invention;
FIG. 8 illustrates a node cross-sectional split schematic in an embodiment of the invention;
FIG. 9 is yet another flow chart of a method of modeling a node in accordance with an embodiment of the present invention;
FIG. 10 is a block diagram of a modeling apparatus of a node according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the building construction drawings, there are components labeled by large figures of concrete details described in separate detail, such components being collectively referred to as nodes. In the inventory business, the cornices, the breast boards, the cantilever boards, the balconies, the rainsheds, the parapet walls and other special-shaped components (walls, beams and the like) which cannot be edited in the section of the steel bars are also required to be replaced by nodes. However, the use of nodes instead of the existing multiple single components to model, respectively drawn, to combine to complete the modeled representation of such nodes for the foreign components.
At present, the construction of the nodes aiming at the different members is commonly processed by special-shaped cornices, breast boards, custom lines and other members, but the number of the nodes is large due to the complicated modeling and complicated structure, and the modeling accuracy of the nodes is difficult to ensure.
Meanwhile, building modeling representation of nodes such as opposite members is combined and completed through modeling by a plurality of existing single members and respectively drawing, and independent representation is difficult to realize; the existing components are limited in types, so that civil engineering quantity is difficult to determine according to the requirement of quota division difference, for example, the engineering quantity calculation of parapet walls and cantilever plates needs to be exhaustive of the types of the components, and the method is not flexible; the resolution of the nodes such as the foreign members is difficult to realize, and the determination of the engineering quantity of the designated type is influenced.
Based on the method, the technical scheme of the invention accurately models the corresponding part of the node by designing the configuration parameters of the node so as to shorten the time of manual operation, and the resolution of the opposite member is realized by splitting the section of the node. For the heterogeneous member nodes with various shapes and complex structures, independent representation can be realized through the node sections without combining a plurality of single members, so that the number of the nodes is reduced, and the modeling accuracy and the modeling efficiency are improved.
According to an embodiment of the present invention, there is provided an embodiment of a modeling method of a node, it being noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a method for modeling a node is provided, which may be used in an electronic device, such as a computer, a tablet computer, etc., and fig. 1 is a flowchart of a method for modeling a node according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
s11, acquiring configuration parameters of the node.
The configuration parameters are custom configuration for the node by a technician, and are stored in the electronic device. The configuration parameters comprise node model parameters, node sub-model parameters, node drawing parameters and node reinforcement parameters, and the parameters are mutually independent.
Specifically, the node model parameters are represented in a node table, as shown in FIG. 2. In the node table, the Type of the component is used as the Type of the unique Code, and the ID of the component is used as the record ID of the node table. The node table is correspondingly provided with a corresponding attached attribute table, the attached attribute table comprises a service attribute table, a geometric attribute table and a graphic primitive table, and the graphic primitive table and the node table are in one-to-one correspondence through a component ID.
The node sub-model parameters are represented by a node sub-component table, which is similar to the node table, in that it uses the component Type as the Type of unique Code encoding, uses the component ID as the record ID of the node table, and establishes a parent-child relationship between the node sub-component table and the node table through the field PID, as shown in fig. 2.
The node drawing parameters comprise drawing names recorded in nodes and primitive information stored in the drawing, wherein the node drawing names generate unique identifications through GUIDs, are bound with IDs in a node table, and establish a one-to-one correspondence between 'nodes' and the drawing. The drawing is stored as a physical file, is a part of CAD (computer aided design) primitives extracted by the node, and stores data of the CAD primitives after fluidization, so that the problem that the original drawing occupies a large space and the engineering file occupies a large space can be solved.
The node reinforcement parameters can be stored as a separate database, and a one-to-one correspondence is established between the reinforcement IDs and the node tables. Specifically, the node reinforcement parameters are represented by a data table describing reinforcement attribute information, such as a reinforcement table, a reinforcement attribute table and the like. And establishing a corresponding relation between a data table describing the steel bar attribute information and a node table through the ID, such as a steel bar reinforcement table, a steel bar attribute table and the like.
S12, determining the relationship between the nodes based on the configuration parameters of the nodes.
According to the configuration parameters of the nodes, the node model parameters, the node sub-model parameters, the node drawing parameters and the node reinforcement parameters can be determined to be independent, and are mutually associated through the component IDs, so that the relation among the nodes can be determined according to the component IDs. The display of the model corresponding to the node configuration parameters can be controlled through the relationship among the nodes, and the model can be distinguished in terms of calculation.
S13, identifying the outline of the target drawing based on the relationship among the nodes, and determining the node section.
The target drawing is a CAD drawing, the node section is used for abstracting and representing the polygon, as shown in fig. 3, the polygon comprises a single section, a multi-ring section, a cavity section, a variable section and other non-communicated polygons, and each polygon is a single-path polygon represented by a section.
Specifically, the electronic device may identify CAD line primitives in the target drawing based on the relationship between nodes, and then construct a closed polygon for the nodes according to the identified CAD line primitives, where a plane formed by the closed polygon is a node cross section.
S14, splitting the node sections to obtain a plurality of sub-sections.
Drawing section dividing lines according to a preset rule, dividing the node section into a plurality of closed polygons according to the section dividing lines to obtain a plurality of sub-sections, and establishing unique identification IDs for the sub-sections so as to correspond to the node sub-component tables.
And S15, reinforcing bars are arranged on the section of the node, and a section reinforcing bar model is obtained.
The reinforcement comprises point reinforcement arrangement and line reinforcement arrangement, wherein the electronic equipment identifies the point reinforcement and the line reinforcement according to the characteristics of the target drawing, and arranges the point reinforcement and the line reinforcement according to the point reinforcement position, the point reinforcement mark, the line reinforcement position and the line reinforcement mark to generate a section reinforcement model.
S16, combining the plurality of sub-sections with the section reinforcing steel bar model to generate a node model.
And determining the subordinate relation between the node section and the sub-section according to the split relation between the node section and the sub-section. And then, according to the relation between the nodes, determining the corresponding relation between the section reinforcing steel bar model and the node section, and according to the corresponding relation, combining a plurality of sub-sections forming the node section with the section reinforcing steel bar model to generate the node model.
According to the modeling method of the nodes, provided by the embodiment, the relationship among the nodes is determined through the configuration parameters of the nodes, and the contours in the target drawing are identified according to the relationship among the nodes; the node section is split to generate a plurality of sub-sections, so that flexible splitting of the node is realized; according to the method, the section steel bar model is obtained by reinforcing according to the node section, and then each sub-section and the section steel bar model are combined into the node model, so that accurate modeling for complex nodes is realized. Therefore, the node for the heterogeneous member with various shapes and complex structures can realize independent representation through the section of the node without combining a plurality of single members, thereby reducing the number of the nodes and improving the modeling accuracy and the modeling efficiency.
In this embodiment, a method for modeling a node is provided, which may be used in an electronic device, such as a computer, a tablet computer, etc., and fig. 4 is a flowchart of a method for modeling a node according to an embodiment of the present invention, as shown in fig. 4, where the flowchart includes the following steps:
s21, acquiring configuration parameters of the node. For detailed description, reference is made to the corresponding relevant description of the above embodiments.
S22, determining the relationship between the nodes based on the configuration parameters of the nodes. For detailed description, reference is made to the corresponding relevant description of the above embodiments.
S23, identifying the outline of the target drawing based on the relationship among the nodes, and determining the node section.
Specifically, the step S23 may include:
s231, extracting a line drawing element set from the target drawing according to a preset mode based on the relation among the nodes.
The preset mode is a preset extraction mode, and the preset mode comprises layer-by-layer extraction, color-by-color extraction and the like. The line primitive set is a set formed by line primitives to be selected. When a technician extracts line primitives in the target drawing, an extraction mode can be selected, for example, the line primitives are extracted according to layers, and then the CAD line primitives in the target drawing are clicked by a clicking device such as a mouse. Correspondingly, the electronic equipment can respond to the setting operation and the clicking operation of the technician, and extract the line primitives in the same layer from the target drawing according to the layer based on the relation between the nodes, so as to obtain the line primitive set of the same layer. And similarly, drawing the line primitive set according to the color to obtain the line primitive set with the same color.
S232, extracting an optimal line drawing element set from the line drawing element set.
The optimal line primitive set is a set formed by optimal line primitives, and the optimal line primitives are effective line primitives for forming the outline of the target drawing. Specifically, the optimal line primitive includes: the starting point and the line end point are respectively provided with a line element which has a unique intersection point with other line elements and has no bifurcation line, a line element which has only one intersection point with other line elements, and a line element which is matched with a labeling line element in the target drawing. The extraction of the optimum line drawing element will be described in detail in the following embodiments.
Because the line primitive set is the CAD line primitive which is primarily extracted, in order to ensure the accuracy of the line primitive, the CAD line primitive in the line primitive set needs to be screened, and the optimal line primitive is extracted to form the optimal line primitive set.
Optionally, the step S232 may include:
(1) And preprocessing the line primitives in the line primitive set based on the line primitive characteristics to obtain a preprocessed line primitive set.
And determining the corresponding line primitive characteristics according to the types (lines, characters, multi-section lines, dimension marks and the like) of the CAD primitive. Preprocessing line primitives in the line primitive set through line primitive features to remove invalid line primitives, and screening out the line primitive set meeting the line primitive feature preprocessing.
Specifically, non-line primitives such as text primitives and dimension marking primitives in the line primitive set are removed based on the line primitive characteristics.
Specifically, according to the characteristics of the node drawing, the lines which are round and have the diameter of one steel bar are point bars, and the lines form a closed contour, but are not line elements forming the section contour of the node. And (3) judging the geometric characteristics, namely eliminating the line drawing elements which geometrically meet the whole circle formed by a single line and have the radius within the range of the diameter of the steel bar.
Specifically, free (i.e., non-intersecting) line primitives are excluded.
Specifically, for line elements of the size marking instead of the size marking type, and the surrounding of which has the size marking characters, the line length and the marking length are calculated, and the line elements within the error range are excluded.
Specifically, line elements having a length of less than 1mm and overlapping line elements are excluded.
(2) And identifying the corresponding intersection point position of each line element in the preprocessed line element set.
The intersection point position is a position where each line element intersects with other line elements. And removing free line primitives in the line primitive set after preprocessing, wherein each line primitive in the preprocessed line primitive set has a corresponding intersecting line primitive. And determining the intersection point position of each line element according to the intersection condition of each line element.
(3) And extracting a plurality of optimal line primitives from the preprocessed line primitive set according to the intersection point positions of the line primitives to obtain the optimal line primitive set.
And performing secondary screening on each line element in the preprocessed line element set according to the intersection point position to reject the null line element, and extracting an optimal line element capable of forming the node section outline to form the optimal line element set.
The optimal line primitives are screened from the preprocessed line primitive set through the intersection point positions among the line primitives, so that the extraction accuracy of the line primitives can be improved, and the extraction accuracy of the node sections can be further ensured. Optionally, the step (3) may include:
(31) And breaking the line drawing element according to the intersection point position to obtain a sub-image element set.
(32) And screening out a plurality of sub-image elements of which the line starting point and the line ending point are unique intersection points from the sub-image element set, and determining the plurality of sub-image elements as an optimal line image element set.
Breaking each line primitive in the pretreatment primitive set according to the intersection point position to obtain a plurality of broken line primitives, and forming the line primitives obtained through breaking into a sub-primitive set. For example, the line element 1 and the line element 2 shown in fig. 5 have an intersection point position a, and then the two line elements are broken at the intersection point position a, so that 4 new line elements, namely, the sub-element 1, the sub-element 2, the sub-element 3 and the sub-element 4, are obtained, and the 4 new line elements are stored in the sub-element set.
Traversing each sub-element in the sub-element set, and selecting the sub-element which has unique intersection points with other line elements and has no bifurcation line between the line start point and the line end point as the optimal line element. For example, in the case of intersecting sub-elements in the sub-element set shown in fig. 6, it is preferable that the sub-element S at which each of the line start point and the line end point intersects is an optimal line element.
Optionally, the step (3) may further include:
(33) And when a plurality of bifurcation line primitives exist in the intersection point positions of the line primitives in the preprocessing line primitive set, acquiring the labeling line primitives.
(34) And determining the bifurcation line primitive matched with the labeling primitive as an optimal line primitive.
When the fact that a plurality of bifurcation line primitives exist at the intersection point position of the line primitive is determined, the marking line primitive of the line primitive at the intersection point position can be identified, and the marking line primitive is matched with each bifurcation line primitive. If the length of the marked primitive is the same as that of the bifurcation line primitive and the character direction is the same, taking the bifurcation line as an optimal line primitive, and discarding other non-matched bifurcation line primitives. For example, as shown in fig. 7, there are two bifurcation line elements at the intersection point position of the line element B, and since the bifurcation line element R matches with the labeling line element, the line element B and the bifurcation line element R are preferable as the optimal line elements.
And by combining the intersection point positions among the line primitives and the matching property of the labeling line primitives, the optimal line primitives are screened from the preprocessed line primitive set, so that the extraction accuracy of the line primitives is further improved.
Optionally, the step (3) may further include:
(35) And determining single-intersection line primitives with only one intersection point according to the intersection point positions.
(36) And determining the single-intersection line element as an optimal line element.
And traversing the intersection point positions of each line element in the preprocessing line element set, determining single-intersection point line elements which only have one intersection point and have no bifurcation, and placing the single-intersection point line elements serving as optimal line elements into the optimal line element set.
It should be noted that, for the line elements that cannot be excluded, the line elements may be used as a line element set subjected to interrupt processing, so as to perform manual click exclusion.
By identifying the single-intersection line element, the missing extraction of the optimal line element is avoided, and the extraction accuracy of the line element is further improved.
S233, processing the optimal line primitives in the optimal line primitive set based on a preset closed area algorithm to obtain a node section.
The preset closed area algorithm is a preset algorithm for generating a closed polygon, namely, the optimal line primitives in the optimal line primitive set are connected into the closed polygon. The blocking algorithm is not limited herein, and one skilled in the art can determine it according to actual needs.
And carrying out connection processing on the optimal line primitives in the optimal line primitive set according to a closed area algorithm to generate a closed polygon, and simultaneously generating a unique identifier ID of the closed polygon so as to distinguish different closed polygons. The area surrounded by the closed polygon is a node section, and a display node of the node section is constructed, so that a geometric model corresponding to the node section can be displayed on a view interface of the electronic equipment.
S24, splitting the node sections to obtain a plurality of sub-sections.
Specifically, the step S24 may include: responding to the drawing operation of the split line, splitting the node section based on the drawing operation, and obtaining a plurality of sub sections.
And drawing splitting lines such as straight lines, arcs and circles by technicians according to actual needs so as to split the node section into a plurality of sub-sections through the splitting lines. As shown in fig. 8, the electronic device may respond to a drawing operation of a technician on the split line, and generate a split line such as a straight line, an arc line, a circle, and the like according to the drawing operation, and split a node section of a single section, a single section non-connected multi-ring, a cavity section, and the like into a plurality of sub-sections.
Specifically, when a plurality of splitting lines exist, the electronic device can infinitely extend the splitting lines, firstly take one splitting line to divide the node section into a plurality of section polygons, then sequentially traverse the next splitting line, split the previous section division result (including the sections which are not divided and are already divided) again, and finally generate all the split section polygons, wherein the section areas surrounded by all the section polygons are sub-sections.
And S25, reinforcing bars are arranged on the section of the node, and a section reinforcing bar model is obtained.
Specifically, the step S25 may include:
s251, extracting the reinforcement wire and the reinforcement mark from the target drawing to obtain the point reinforcement and the wire reinforcement.
And extracting the reinforcement wire and the reinforcement mark from the target drawing according to the CAD drawing characteristics. Specifically, the reinforcing steel bar lines and the reinforcing steel bar marks can be extracted according to the layers, the reinforcing steel bar lines and the reinforcing steel bar marks can be extracted according to the colors, the reinforcing steel bar lines and the reinforcing steel bar marks can be extracted according to the single graphic element, and the reinforcing steel bar lines and the reinforcing steel bar marks can be extracted in a combined mode in three modes. And combining the point bar and the line bar according to the extracted steel bar line and the steel bar mark.
S252, a section steel bar model is generated based on the corresponding relation between the point ribs, the line ribs and the node sections.
And arranging the point ribs and the line ribs in the node section according to the corresponding relation between the point ribs and the line ribs and the node section, so as to obtain the section steel bar model. Each reinforcement wire has independent attributes, and technicians can define and edit reinforcement information through reinforcement editing tags in the visual interface.
S26, combining the plurality of sub-sections with the section reinforcing steel bar model to generate a node model. For detailed description, reference is made to the corresponding relevant description of the above embodiments.
According to the modeling method of the node, the optimal line drawing element set in the target drawing is extracted, and the optimal line drawing element is formed into a closed polygon through a closed area algorithm, namely the node section is generated. Therefore, for any structure or modeling in the target drawing, the corresponding node section can be generated, the application scene of extracting the node section is expanded, and the accuracy of node modeling is improved. By drawing the splitting lines, flexible splitting of the node sections is achieved. The point bars and the line bars are obtained by extracting the steel bar lines and the steel bar marks, so that the corresponding relation of the point bars, the line bars and the node sections can be combined, the point bars and the line bars are arranged in the node sections to generate the section steel bar model, the independent representation of the section steel bar model is realized, and the calculation of the steel bars is conveniently determined according to the section steel bar model.
As an alternative embodiment, after the node model is built, the corresponding engineering amount may be determined according to the built node model. Specifically, as shown in fig. 9, the method may further include:
and S31, constructing a primitive model based on each sub-section to obtain a plurality of target primitives.
And drawing corresponding section primitive models according to the node sections and the sub-sections to obtain a plurality of target primitives, wherein the target primitives comprise a parent primitive and each sub-primitive. In particular, the electronic device may draw the target primitive based on a line drawing of the cross-sectional primitive model in response to a technician's line drawing.
S32, determining corresponding civil engineering quantity types based on the types of the target primitives.
Each target graphic element is preset with corresponding calculation quantity attributes, wherein the calculation quantity attributes comprise civil engineering calculation quantity attributes and civil engineering summarization attributes. Different target primitives correspond to different civil engineering calculation amount types, and the corresponding civil engineering calculation amount types can be determined by analyzing the calculation amount attribute content corresponding to each target primitive.
And S33, determining the civil engineering quantity corresponding to each target graphic element according to each civil engineering quantity type.
And determining a corresponding calculation rule according to the civil engineering calculation type, determining the civil engineering quantity according to the calculation rule corresponding to each target primitive, and superposing the civil engineering quantities of each target primitive to obtain all the civil engineering quantities.
S34, determining corresponding civil engineering summary types based on the types of the target primitives.
And the corresponding civil engineering summarization types can be determined by analyzing the calculation amount attribute content corresponding to each target primitive. The civil engineering summarizing type can support different types such as cornices, breast boards, shear walls, custom, overhanging boards, balconies, rainsheds, parapet walls and the like.
And S35, determining the summarized engineering quantity corresponding to each target graphic element according to each civil engineering summarized type.
And summarizing the calculated civil engineering quantity according to the civil engineering summarization type to obtain a corresponding summarization engineering quantity, and displaying or storing the corresponding summarization engineering quantity. The civil engineering quantity is calculated by adopting the target primitive type and the corresponding calculation rule by respectively setting the civil engineering quantity type and the civil engineering summarization type, and the summarized engineering quantity is displayed according to the set civil engineering summarization type, so that the differential classifying requirements of different nodes are met.
According to the modeling method of the node, provided by the embodiment, through carrying out primitive model construction on each sub-section, corresponding civil engineering quantity is conveniently determined according to the types of each target primitive, and flexible calculation of the civil engineering quantity is realized. And determining a corresponding civil engineering summarization type through the type of each target primitive so as to present the engineering quantity for each target primitive according to the civil engineering summarization type.
The embodiment also provides a modeling device for a node, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a modeling apparatus of a node, as shown in fig. 10, including:
the obtaining module 41 is configured to obtain configuration parameters of the node.
The node relation determining module 42 is configured to determine the relation between the nodes based on the configuration parameters of the nodes.
The section creating module 43 is configured to identify the outline of the target drawing based on the relationship between nodes, and determine the node section.
The section splitting module 44 is configured to split the node section to obtain a plurality of sub-sections.
And the section reinforcement module 45 is used for reinforcing the section of the node to obtain a section reinforcement model.
The model generating module 46 is configured to combine the plurality of sub-sections with the section bar model to generate a node model.
Optionally, the section creating module 43 includes:
And the line drawing element extraction sub-module is used for extracting a line drawing element set from the target drawing according to a preset mode based on the relation among the nodes.
And the optimal line drawing component extraction sub-module is used for extracting an optimal line drawing component set from the line drawing component set.
And the closed processing sub-module is used for processing the optimal line drawing element in the optimal line drawing element set based on a preset closed area algorithm to obtain a node section.
Optionally, the optimal line drawing element extraction sub-module may include:
and the preprocessing unit is used for preprocessing the line primitives in the line primitive set based on the line primitive characteristics to obtain a preprocessed line primitive set.
And the identification unit is used for identifying the corresponding intersection point position of each line element in the preprocessing line element set.
And the extraction unit is used for extracting a plurality of optimal line primitives from the preprocessed line primitive set according to the intersection point positions of the line primitives to obtain an optimal line primitive set.
Optionally, the extracting unit is specifically configured to: breaking the line drawing element according to the intersection point position to obtain a sub-image element set; and screening out a plurality of sub-image elements of which the line starting point and the line ending point are unique intersection points from the sub-image element set, and determining the plurality of sub-image elements as an optimal line image element set.
Optionally, the above extraction unit is specifically further configured to: when a plurality of bifurcation line primitives exist in the intersection point positions of the line primitives in the preprocessing line primitive set, obtaining an annotation line primitive; and determining the bifurcation line primitive matched with the labeling primitive as an optimal line primitive.
Optionally, the above extraction unit is specifically further configured to: determining single-intersection line primitives with only one intersection point according to the intersection point positions; and determining the single-intersection line element as an optimal line element.
Optionally, the section splitting module 44 includes:
and the response sub-module is used for responding to the drawing operation of the splitting line, splitting the node section based on the drawing operation and obtaining a plurality of sub-sections.
Optionally, the section reinforcement module 45 includes:
and the reinforcing steel bar information extraction submodule is used for extracting reinforcing steel bar lines and reinforcing steel bar marks from the target drawing to obtain point reinforcing steel bars and line reinforcing steel bars.
And the generation submodule is used for generating a section steel bar model based on the corresponding relation between the point ribs, the line ribs and the node sections.
Optionally, the modeling apparatus of the above node may further include:
and the target primitive construction module is used for constructing primitive models based on all the sub-sections to obtain a plurality of target primitives.
And the calculation amount type determining module is used for determining corresponding civil engineering calculation amount types based on the types of the target primitives.
And the civil engineering quantity determining module is used for determining the civil engineering quantity corresponding to each target graphic element according to each civil engineering quantity type.
And the summarization type determining module is used for determining corresponding civil engineering summarization types based on the types of the target primitives.
And the summarized engineering quantity determining module is used for determining summarized engineering quantities corresponding to the target primitives according to the civil engineering summarized types.
The modeling means of the node in this embodiment are presented in the form of functional units, where the units refer to ASIC circuits, processors and memories executing one or more software or firmware programs, and/or other devices that can provide the functionality described above.
Further functional descriptions of the above modules and sub-modules are the same as those of the above corresponding embodiments, and are not repeated here.
The modeling device of the nodes provided by the embodiment determines the relationship among the nodes through the configuration parameters of the nodes, and identifies the outline in the target drawing according to the relationship among the nodes; the node section is split to generate a plurality of sub-sections, so that flexible splitting of the node is realized; according to the method, the section steel bar model is obtained by reinforcing according to the node section, and then each sub-section and the section steel bar model are combined into the node model, so that accurate modeling for complex nodes is realized. Therefore, the node for the heterogeneous member with various shapes and complex structures can realize independent representation through the section of the node without combining a plurality of single members, thereby reducing the number of the nodes and improving the modeling accuracy and the modeling efficiency.
The embodiment of the invention also provides electronic equipment, and a modeling device with the nodes shown in fig. 10.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 11, the electronic device may include: at least one processor 601, such as a central processing unit (Central Processing Unit, CPU), at least one communication interface 603, a memory 604, at least one communication bus 602. Wherein the communication bus 602 is used to enable connected communications between these components. The communication interface 603 may include a Display screen (Display), a Keyboard (Keyboard), and the selectable communication interface 603 may further include a standard wired interface, and a wireless interface. The memory 604 may be a high-speed volatile random access memory (Random Access Memory, RAM) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 604 may also optionally be at least one storage device located remotely from the processor 601. Where the processor 601 may be a device as described in connection with fig. 10, the memory 604 stores an application program, and the processor 601 invokes the program code stored in the memory 604 for performing any of the method steps described above.
The communication bus 602 may be, among other things, a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, etc. The communication bus 602 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 11, but not only one bus or one type of bus.
Wherein the memory 604 may comprise volatile memory (RAM), such as random-access memory (RAM); the memory may also include a nonvolatile memory (non-volatile memory), such as a flash memory (flash memory), a hard disk (HDD) or a Solid State Drive (SSD); memory 604 may also include a combination of the types of memory described above.
The processor 601 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP, among others.
The processor 601 may further comprise a hardware chip, among other things. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
Optionally, the memory 604 is also used for storing program instructions. The processor 601 may invoke program instructions to implement the modeling method of the node as shown in the above-described embodiments of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, which stores computer executable instructions that can execute the modeling method of the node in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical disc, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a Hard Disk (HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.
Claims (13)
1. A method of modeling a node, comprising:
acquiring configuration parameters of a node;
Determining the relationship between nodes based on the configuration parameters of the nodes;
identifying the outline of the target drawing based on the relationship between the nodes, and determining the node section;
splitting the node section to obtain a plurality of sub-sections;
reinforcing bars are arranged on the section of the node to obtain a section reinforcing bar model;
and combining the plurality of sub-sections with the section steel bar model to generate a node model.
2. The method of claim 1, wherein the identifying the outline of the target drawing based on the inter-node relationship, determining the node cross-section, comprises:
extracting a line drawing element set from the target drawing according to a preset mode based on the relation among the nodes;
extracting an optimal line pattern element set from the line pattern element set;
and processing the optimal line primitives in the optimal line primitive set based on a preset closed area algorithm to obtain the node section.
3. The method of claim 2, wherein the extracting the optimal line primitive set from the line primitive set comprises:
preprocessing line primitives in the line primitive set based on line primitive characteristics to obtain a preprocessed line primitive set;
identifying the corresponding intersection point position of each line element in the preprocessing line element set;
And extracting a plurality of optimal line primitives from the preprocessed line primitive set according to the intersection point positions of the line primitives to obtain the optimal line primitive set.
4. A method according to claim 3, wherein said extracting a plurality of optimal line primitives from said preprocessed line primitive set according to their respective intersection positions, comprises:
breaking the line drawing element according to the intersection point position to obtain a sub-element set;
and screening out a plurality of sub-primitives, wherein a line starting point and a line ending point of the plurality of sub-primitives are respectively intersected with other line primitives, and the line starting point and the line ending point are respectively the unique intersection points, and determining the plurality of sub-primitives as an optimal line primitive set.
5. The method of claim 3, wherein extracting a plurality of 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, further comprises:
when a plurality of bifurcation line primitives exist in the intersection point position of the line primitives in the preprocessing line primitive set, obtaining an annotation line primitive;
and determining the bifurcation line primitive matched with the labeling primitive as an optimal line primitive.
6. The method of claim 3, wherein extracting a plurality of 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, further comprises:
determining single-intersection line primitives with only one intersection point according to the intersection point positions;
and determining the single-intersection line primitive as the optimal line primitive.
7. The method of claim 1, wherein splitting the node section to obtain a plurality of sub-sections comprises:
responding to the drawing operation of the split line, splitting the node section based on the drawing operation, and obtaining a plurality of sub sections.
8. The method as recited in claim 1, further comprising:
constructing a primitive model based on each sub-section to obtain a plurality of target primitives;
determining a corresponding civil engineering quantity type based on the type of each target primitive;
and determining the civil engineering quantity corresponding to each target graphic element according to each civil engineering quantity type.
9. The method as recited in claim 8, further comprising:
determining a corresponding civil engineering summary type based on the type of each target primitive;
And determining the summarized engineering quantity corresponding to each target graphic element according to each civil engineering summarized type.
10. The method of claim 1, wherein the reinforcing bars are arranged on the cross section of the node to obtain a cross section reinforcing bar model, comprising:
extracting a reinforcing steel bar line and a reinforcing steel bar mark from the target drawing to obtain a point reinforcing steel bar and a line reinforcing steel bar;
and generating the section steel bar model based on the corresponding relation between the point ribs, the line ribs and the node section.
11. A modeling apparatus of a node, comprising:
the acquisition module is used for acquiring configuration parameters of the node;
the node relation determining module is used for determining the relation between the nodes based on the configuration parameters of the nodes;
the section creating module is used for identifying the outline of the target drawing based on the relationship among the nodes and determining the node section;
the section splitting module is used for splitting the node section to obtain a plurality of sub-sections;
the section reinforcement module is used for reinforcing the section of the node to obtain a section reinforcement model;
and the model generation module is used for combining the plurality of sub-sections with the section steel bar model to generate a node model.
12. An electronic device, comprising:
A memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of modeling a node of any of claims 1-10.
13. A computer readable storage medium storing computer instructions for causing a computer to perform the method of modeling a node according to any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310186718.3A CN116361888A (en) | 2023-02-10 | 2023-02-10 | Modeling method and device for node, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310186718.3A CN116361888A (en) | 2023-02-10 | 2023-02-10 | Modeling method and device for node, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116361888A true CN116361888A (en) | 2023-06-30 |
Family
ID=86926824
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310186718.3A Pending CN116361888A (en) | 2023-02-10 | 2023-02-10 | Modeling method and device for node, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116361888A (en) |
-
2023
- 2023-02-10 CN CN202310186718.3A patent/CN116361888A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8041744B2 (en) | Computer-aided modeling | |
DE60009122T2 (en) | PATTERN RECOGNITION FOR DATA EXCHANGE BETWEEN COMPUTER BASED DESIGN SYSTEMS | |
EP1074927B1 (en) | Intelligent wiring diagram system | |
CN111553963B (en) | Meta-grid generation method and device based on geographic information | |
CN112561386A (en) | Method, device and equipment for acquiring business process | |
US20060242630A1 (en) | Process for preparing design procedure document and apparatus for the same | |
DE112013005820T5 (en) | Graphical user interface for a tool for site planning in the design automation of electronic systems | |
JP4322615B2 (en) | Component information processing apparatus, component information processing method, and component information processing program provided with three-dimensional layout adjustment CAD system | |
US20030020765A1 (en) | Method and system for transforming limited source graphical data | |
CN115017569A (en) | Two-dimensional and three-dimensional linked bridge parametric modeling and plotting method, device, equipment and medium | |
CN112818456A (en) | Layer configuration method, electronic equipment and related product | |
US20210012048A1 (en) | Method for Providing Details to a Computer Aided Design (CAD) Model, a Computer Program Product and a Server Therefore | |
CN111985014B (en) | Modeling method and system based on standard atlas | |
CN116361888A (en) | Modeling method and device for node, electronic equipment and readable storage medium | |
CN109934894B (en) | CAD (computer-aided design) drawing method and device and computer-readable storage medium | |
CN111753349A (en) | Dimension modification method of structural member, Revit platform and storage medium | |
CN113191310B (en) | Boundary recognition method, device and equipment for vector PDF drawing entity filling | |
CN112580123B (en) | Liang Tuyuan editing method, liang Tuyuan editing device, electronic equipment and readable storage medium | |
US8661390B2 (en) | Method of extracting block binders and an application in block placement for an integrated circuit | |
CN115249303A (en) | Layout drawing method, device, equipment and storage medium based on drawing segmentation | |
JP2006240183A (en) | Method and apparatus for fabricating mold | |
CN114444185A (en) | In-situ labeling identification method and device and electronic equipment | |
JP4489468B2 (en) | CLEARANCE DISTANCE MEASURING METHOD FOR PRINTED BOARD DESIGN APPARATUS, CLEARANCE DISTANCE MEASURING APPARATUS FOR PRINTED BOARD DESIGN APPARATUS, PROGRAM, AND COMPUTER READABLE RECORDING MEDIUM | |
CN116342738B (en) | Automatic extraction and graphic display manufacturing method of forbidden vector range based on GIS | |
CN114283441B (en) | Two-dimensional drawing recognition modeling method and device suitable for railway passenger station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |