Method for generating structural column label and related device thereof
By identifying and generating annotation lines for irregularly shaped columns, the problem of low efficiency in structural column annotation in existing technologies is solved, and automatic adjustment and reasonable arrangement of irregularly shaped column annotations are realized, thereby improving annotation quality and efficiency.
Patent Information
- Application Number
- CN202511106062.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-08
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-08-08
AI Technical Summary
In architectural structural design, the existing technology for labeling structural columns is inefficient and cannot be automatically adjusted. In particular, it cannot label irregularly shaped columns reasonably according to their shape, resulting in unreasonable labeling positions and increased workload.
By identifying reference lines and structural columns to be annotated in the target drawing, the minimum bounding rectangle of the irregular column is obtained. The target shape of the structural column is determined based on the number and positional relationship of the edge lines. The annotation lines are determined according to the preset annotation line generation rules to ensure that the annotation lines are not collinear with the reference lines and to generate reasonable annotations.
It improved the efficiency and quality of structural column labeling, reduced the workload of designers, and enabled automatic adjustment and neat arrangement of labels.
Smart Images

Figure CN120635256B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of architectural design, and particularly relates to a structural column marking generation method and a related device thereof. BACKGROUND
[0002] In architectural structure design, after various architectural components are designed in drawings, a large number of components, such as wall bodies and structural columns, need to be marked.
[0003] In the related art, the marking of structural columns in architectural drawings is generally manually performed, which is low in efficiency. When the position or size of a structural column changes, the corresponding marking cannot be automatically adjusted. In particular, for structural columns of different shapes, such as L-shaped columns and T-shaped columns, corresponding marking cannot be performed according to structural columns of different shapes, which results in unreasonable marking positions and greatly increases the workload of marking. SUMMARY
[0004] To solve or partially solve the problems in the related art, the present application provides a structural column marking generation method and a related device thereof, which can obtain corresponding marking lines according to the shape of a structural column and generate different markings, thereby improving marking efficiency and marking quality and reducing the workload of designers.
[0005] The first aspect of the present application provides a structural column marking generation method, including: identifying a reference line in a target drawing and a structural column to be marked; when the structural column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structural column; determining a target shape of the structural column based on the number of edge lines of the structural column, and a target position relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle; the target position relationship includes a collinear relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle; determining a marking line of the structural column based on the target shape of the structural column and a preset marking line determination rule; the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; and generating a marking of the structural column when the marking line and the reference line are parallel to each other.
[0006] With reference to the first aspect, in a possible implementation manner of the first aspect, the target shape of the structural column is determined based on the number of edges of the structural column, and a target position relationship between the edges of the structural column and edges of the minimum circumscribed rectangle, including: determining edges of the structural column that are collinear with edges of the minimum circumscribed rectangle as first edges; if the number of edges of the structural column is 6, adjacent edges of the structural column are perpendicular to each other, and the first edges include four first edges that are connected to each other, the structural column is an L-shaped column; if the number of edges of the structural column is 8, adjacent edges of the structural column are perpendicular to each other, and the first edges include three first edges that are connected to each other and one first edge that is not connected to each other, the structural column is a T-shaped column; if the number of edges of the structural column is 8, adjacent edges of the structural column are perpendicular to each other, and the first edges include two groups of two first edges that are connected to each other and the first edges in different groups are not connected to each other, the structural column is a Z-shaped column; if the number of edges of the structural column is 10, adjacent edges of the structural column are perpendicular to each other, and the first edges include two first edges that are connected to each other and two first edges that are not connected to each other, the structural column is a seven-shaped column; and if the number of edges of the structural column is 12, adjacent edges of the structural column are perpendicular to each other, and the first edges include four first edges that are not connected to each other, the structural column is a cross-shaped column.
[0007] With reference to the first aspect, in a possible implementation manner of the first aspect, the target shape of the structural column is determined based on the number of edges of the structural column, and a target position relationship between the edges of the structural column and edges of the minimum circumscribed rectangle, including: determining edges of the structural column that are collinear with edges of the minimum circumscribed rectangle as first edges; if the number of edges of the structural column is 6, adjacent edges of the structural column are perpendicular to each other, and the first edges include four first edges that are connected to each other, the structural column is an L-shaped column; if the number of edges of the structural column is 8, adjacent edges of the structural column are perpendicular to each other, and the first edges include three first edges that are connected to each other and one first edge that is not connected to each other, the structural column is a T-shaped column; if the number of edges of the structural column is 8, adjacent edges of the structural column are perpendicular to each other, and the first edges include two groups of two first edges that are connected to each other and the first edges in different groups are not connected to each other, the structural column is a Z-shaped column; if the number of edges of the structural column is 10, adjacent edges of the structural column are perpendicular to each other, and the first edges include two first edges that are connected to each other and two first edges that are not connected to each other, the structural column is a seven-shaped column; and if the number of edges of the structural column is 12, adjacent edges of the structural column are perpendicular to each other, and the first edges include four first edges that are not connected to each other, the structural column is a cross-shaped column.
[0008] In a possible implementation manner of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and the preset annotation line generation rule comprises: when the structural column is a Z-shaped column, a first edge line of the structural column is determined as a line collinear with an edge line of the minimum circumscribed rectangle, and first, second, third and fourth sub-edge lines of the structural column are determined as edge lines not collinear with the edge line of the minimum circumscribed rectangle, wherein the first sub-edge line is parallel to the fourth sub-edge line, and the second sub-edge line is parallel to the third sub-edge line; a fifth sub-edge line of the structural column is determined as a first edge line parallel to the first sub-edge line and closest to the first sub-edge line, and a sixth sub-edge line of the structural column is determined as a first edge line parallel to the fourth sub-edge line and closest to the fourth sub-edge line; a first region corresponding to the first sub-edge line and the fifth sub-edge line, a second region corresponding to the second sub-edge line and the third sub-edge line, and a third region corresponding to the fourth sub-edge line and the sixth sub-edge line are obtained respectively, and center lines of the first region, the second region and the third region are obtained respectively; if a target reference line collinear with the center line and intersecting the first edge line exists, a third edge line of the structural column is determined as an edge line parallel to the target reference line and located on both sides of the target reference line; edge lines of the structural column other than the third edge line are determined as the annotation line of the structural column; and if the target reference line does not exist, all edge lines of the structural column are determined as the annotation line of the structural column.
[0009] In a possible implementation manner of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and the preset annotation line generation rule comprises: when the structural column is a T-shaped column, a second edge line of the structural column is determined as an edge line collinear with an edge line of the minimum circumscribed rectangle and partially overlapping with the edge line of the minimum circumscribed rectangle; a perpendicular line is drawn to a first sub-edge line of the second edge line not connected with other second edge lines and extended to a second edge line parallel to the first sub-edge line, to obtain a center line corresponding to the first sub-edge line; perpendicular lines are drawn to a second sub-edge line and a third sub-edge line of the second edge line not parallel to the first sub-edge line and extended to the center line, to obtain a center line corresponding to the second sub-edge line and a center line corresponding to the third sub-edge line; if a target reference line collinear with the center line and intersecting the second edge line exists, a third edge line of the structural column is determined as an edge line parallel to the target reference line and located on both sides of the target reference line; edge lines of the structural column other than the third edge line are determined as the annotation line of the structural column; and if the target reference line does not exist, all edge lines of the structural column are determined as the annotation line of the structural column.
[0010] With reference to the first aspect, in a possible implementation manner of the first aspect, the determining the annotation lines of the structural column based on the target shape of the structural column and the preset annotation line generation rule comprises: when the structural column is a seven-shaped column, taking a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; drawing a perpendicular line for a first sub-side line and a second sub-side line of the first side line that are not connected with other first side lines respectively, and extending to a side line parallel to the first sub-side line and a side line parallel to the second sub-side line respectively to obtain a center line corresponding to the first sub-side line and a center line corresponding to the second sub-side line; drawing a perpendicular line for two first side lines of the first side line that are connected with each other respectively, and extending to a side line parallel to the two first side lines to obtain a target center line that intersects with one of the center line corresponding to the first sub-side line or the center line corresponding to the second sub-side line and does not intersect with the first sub-side line and the second sub-side line, and deleting the other center line; if there is a target reference line that is collinear with the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the target center line and intersects with the first side line, taking a side line of the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; if there is a target reference line that is parallel to the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the target center line and does not collinear, and intersects with the first side line, taking a side line of the structural column that is parallel to the target reference line and not collinear with the side line of the minimum circumscribed rectangle as the third side line; taking the side lines of the structural column except the third side line as the annotation lines of the structural column; if there is no target reference line, taking all the side lines of the structural column as the annotation lines of the structural column.
[0011] With reference to the first aspect, in a possible implementation manner of the first aspect, the determining the annotation line of the structural column based on the target shape of the structural column and the preset annotation line generation rule comprises: when the structural column is a cross-shaped column, taking a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; drawing a perpendicular line of a first sub-side line of the first side line that is equal in length and parallel to each other to obtain a center line corresponding to the first sub-side line; drawing a perpendicular line of a second sub-side line and a third sub-side line of the first side line that are not equal in length and parallel to each other, respectively, and extending to the center line corresponding to the first sub-side line, respectively, to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the center line corresponding to the third sub-side line, and intersects the first side line, taking a side line of the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; if there is a target reference line that is parallel to the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the center line corresponding to the third sub-side line, and intersects the first side line, taking a side line of the structural column that is parallel to the target reference line and has a distance less than a preset threshold to the target reference line as the third side line; determining a side line of the structural column other than the third side line as the annotation line of the structural column; if there is no target reference line, determining all side lines of the structural column as the annotation line of the structural column.
[0012] With reference to the first aspect, in a possible implementation manner of the first aspect, the generating the annotation of the structural column when the annotation line and the reference line are parallel to each other comprises: taking the annotation line and the reference line that are parallel to each other as a target annotation group; if a side line located at the outermost side in the target annotation group is a target annotation line, obtaining a target point of the target annotation line; drawing a perpendicular line of the reference line according to the target point, and generating the annotation of the structural column; if a side line located at the outermost side in the target annotation group is a target reference line, obtaining a target annotation line closest to the target reference line; drawing a perpendicular line of the target reference line to the target annotation line to obtain a target point on the target reference line; drawing a perpendicular line of the annotation line according to the target point, and generating the annotation of the structural column.
[0013] The second aspect of the present application provides a structural column label generation device, comprising: a recognition module configured to recognize a reference line and a structural column to be labeled in a target drawing; an acquisition module configured to acquire a minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; a shape determination module configured to determine a target shape of the structural column based on a number of edge lines of the structural column, and a target positional relationship between the edge lines of the structural column and edge lines of the minimum circumscribed rectangle; a label line determination module configured to determine a label line of the structural column based on the target shape of the structural column and a preset label line determination rule, wherein the label line of the structural column is not collinear with the reference line, and the preset label line determination rule is associated with the target shape of the structural column; and a generation module configured to generate a label of the structural column based on a second positional relationship between the label line and the reference line.
[0014] The third aspect of the present application provides an electronic device, comprising:
[0015] a processor; and
[0016] a memory having stored thereon executable code that, when executed by the processor, causes the processor to perform the method described above.
[0017] The fourth aspect of the present application provides a computer-readable storage medium having stored thereon executable code that, when executed by a processor of an electronic device, causes the processor to perform the method described above.
[0018] The technical solutions provided by the present application can include the following beneficial effects:
[0019] The structural column label generation method and related device provided by the present application comprise the following steps: recognizing a reference line and a structural column to be labeled in a target drawing; acquiring a minimum circumscribed rectangle of the structural column when the structural column is a special-shaped column; determining a target shape of the structural column based on a number of edge lines of the structural column, and a target positional relationship between the edge lines of the structural column and edge lines of the minimum circumscribed rectangle; the target positional relationship comprises a collinear relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle; determining a label line of the structural column based on the target shape of the structural column and a preset label line determination rule, wherein the label line of the structural column is not collinear with the reference line, and the preset label line determination rule is associated with the target shape of the structural column; and generating a label of the structural column when the label line and the reference line are parallel to each other, which can obtain a corresponding label line according to the shape of the structural column, generate different labels, improve the labeling efficiency and labeling quality, and reduce the workload of designers.
[0020] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0021] The above and other objects, features and advantages of the present application will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings in which like reference characters refer to like parts throughout the figures, and wherein:
[0022] Figure 1 is a flowchart of a method for generating structural column labels according to an embodiment of the present application;
[0023] Figure 2 is a structural diagram of a device for generating structural column labels according to an embodiment of the present application;
[0024] Figure 3 is a structural diagram of an electronic device according to an embodiment of the present application;
[0025] Figure 4 is a label diagram when a structural column is an L-shaped column according to an embodiment of the present application;
[0026] Figure 5 is a label diagram when a structural column is a Z-shaped column according to an embodiment of the present application;
[0027] Figure 6 is another label diagram when a structural column is a Z-shaped column according to an embodiment of the present application;
[0028] Figure 7 is another label diagram when a structural column is a Z-shaped column according to an embodiment of the present application;
[0029] Figure 8 is a label diagram when a structural column is a T-shaped column according to an embodiment of the present application;
[0030] Figure 9 is another label diagram when a structural column is a T-shaped column according to an embodiment of the present application;
[0031] Figure 10 is another label diagram when a structural column is a T-shaped column according to an embodiment of the present application;
[0032] Figure 11 is a label diagram when a structural column is a seven-shaped column according to an embodiment of the present application;
[0033] Figure 12 is another label diagram when a structural column is a seven-shaped column according to an embodiment of the present application;
[0034] Figure 13 is a label diagram when a structural column is a cross-shaped column according to an embodiment of the present application;
[0035] Figure 14is another marking schematic diagram of a structure column as a cross-shaped column according to an embodiment of the present application;
[0036] Figure 15 is another marking schematic diagram of a structure column as a cross-shaped column according to an embodiment of the present application;
[0037] Figure 16 is a schematic diagram of marking generation of a structure column according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] Embodiments of the present application will be described in more detail with reference to the drawings. Although the embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present application is more thoroughly and completely conveyed to those skilled in the art.
[0039] The terminology used in the present application is merely for the purpose of describing particular embodiments and is not intended to limit the present application. The singular forms "a", "an", and "the" used in the present application and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0040] It should be understood that although the terms "first", "second", "third", etc. can be used in the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information without departing from the scope of the present application. Therefore, the features defined with "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0041] In building structure design, the marking work of structure column is very important. In the traditional two-dimensional CAD environment, there are three main problems in marking generation: first, the marking generation process is tedious and inefficient, requiring a large amount of manual operation; second, there is a lack of linkage mechanism between marking and component, when the component position or size changes, the marking cannot be automatically adjusted; third, the marking position is chaotic, and it is difficult to achieve neat arrangement. Especially for special-shaped columns and other components with specific shape characteristics, the traditional method cannot identify their shape type, resulting in unreasonable marking position, greatly increasing the workload of marking.
[0042] To solve the above problems, the embodiment of the application provides a structural column marking generation method and a related device thereof, which can obtain corresponding marking lines according to the shape of the structural column, and generate different markings, thereby improving the marking efficiency and marking quality and reducing the workload of designers.
[0043] The technical solutions of the embodiments of the application are described in detail below with reference to the drawings.
[0044] Figure 1 is a flowchart of the structural column marking generation method shown in the embodiments of the application.
[0045] Referring to Figure 1 A structural column marking generation method comprises the following steps.
[0046] S110: identifying reference lines in a target drawing and structural columns to be marked.
[0047] Specifically, there can be multiple reference lines and multiple structural columns to be marked in the target drawing, and each structural column to be marked is separated by a certain distance. The reference line is an axis or auxiliary line in the target drawing for positioning the position of the structural column, which can be directly identified in the target drawing. The reference line can be pre-set in the process of drawing design, and the reference line can have different association relationships with the structural column to be marked, for example, the reference line intersects or coincides with the edge line of the structural column to be marked.
[0048] Specifically, the structural column refers to a vertical load-bearing component that needs to be marked in the architectural drawing. The structural column to be marked can be represented in the form of a line in the target drawing. Different structural columns can have different shapes, for example, the shape of the structural column can be a special-shaped column, a rectangular column or a circular column, etc. Different structural columns generate corresponding markings.
[0049] S120: when the structural column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structural column.
[0050] Specifically, the minimum circumscribed rectangle refers to the smallest rectangle that encloses the contour of the special-shaped column. For example, the minimum circumscribed rectangle can be generated according to the extreme points of the boundary of the special-shaped column. The minimum circumscribed rectangle can be used to determine the shape and edge line relationship of the structural column.
[0051] S130: determining a target shape of the structural column based on the number of edge lines of the structural column, the target position relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle. The target position relationship includes the collinear relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle.
[0052] Specifically, different structural columns have different numbers of edges, and the target position relationship is the collinear, connecting or parallel position relationship between the edges of the structural column and the edges of the circumscribed quadrilateral. Through the number of edges of the structural column and the target position relationship, different shapes of the structural column can be distinguished, for example, L-shaped, T-shaped, Z-shaped and other special-shaped column types can be distinguished.
[0053] In a possible implementation, an edge of the structural column that is collinear with the edge of the minimum circumscribed rectangle is determined as a first edge; if the number of edges of the structural column is 6, the adjacent edges of the structural column are perpendicular to each other, and the first edge includes four first edges connected to each other, the structural column is an L-shaped column; if the number of edges of the structural column is 8, the adjacent edges of the structural column are perpendicular to each other, and the first edge includes three first edges connected to each other and one first edge not connected to each other, the structural column is a T-shaped column; if the number of edges of the structural column is 8, the adjacent edges of the structural column are perpendicular to each other, and the first edge includes two groups of two first edges connected to each other and the first edges in different groups are not connected to each other, the structural column is a Z-shaped column; if the number of edges of the structural column is 10, the adjacent edges of the structural column are perpendicular to each other, and the first edge includes two first edges connected to each other and two first edges not connected to each other, the structural column is a seven-shaped column; wherein the two first edges connected to each other do not contact the two first edges not connected to each other; if the number of edges of the structural column is 12, the adjacent edges of the structural column are perpendicular to each other, and the first edge includes four first edges not connected to each other, the structural column is a cross-shaped column.
[0054] Specifically, the number of edges of the structural column is used to preliminarily determine the approximate shape of the structural column, for example, when the number of edges is 6, the shape of the structural column can be an L-shaped column, when the number of edges is 8, the shape of the structural column can be a T-shaped column or a Z-shaped column, and then the relationship between the first edges in the structural column is used to determine the shape of the structural column. By determining the shape of the structural column, the determination of the marking line can be performed for structural columns of different shapes.
[0055] S140: determining the marking line of the structural column based on the target shape of the structural column and the preset marking line determination rule; wherein the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column.
[0056] Specifically, the marking line determination rule refers to selecting the edge to be marked according to the shape of the special-shaped column, and different special-shaped columns of different shapes can determine different marking lines according to different marking line determination rules. In particular, in the process of determining the marking line, if a certain edge of the structural column is collinear with the reference line, the edge can be directly not used as the marking line.
[0057] Reference Figure 4In a possible implementation, when the structural column is an L-shaped column, a side line of the structural column that is collinear with and partially overlaps a side line of the minimum circumscribed rectangle is taken as a second side line; a perpendicular line is drawn to the second side line and extended to a side line parallel to the second side line to obtain a center line corresponding to the second side line; if there is a target reference line collinear with the center line and intersecting the second side line, a side line of the structural column that is parallel to the target reference line and not collinear with a side line of the minimum circumscribed rectangle is taken as a third side line, and side lines of the structural column other than the third side line are determined as labeling lines of the structural column; if there is no target reference line, all side lines of the structural column are determined as labeling lines of the structural column.
[0058] Specifically, when the structural column is an L-shaped column, two outer side lines partially overlapping the side lines thereof can be taken as second side lines, and the second side lines can be taken as column legs of the structural column; a perpendicular line is drawn to each second side line and extended to another side line parallel thereto to form two center lines that are perpendicular to each other; if there is a reference line collinear with any of the center lines and passing through the column leg, a side line of the structural column that is parallel to the reference line and not collinear with a side line of the minimum circumscribed rectangle is taken as a third side line, and the third side line is removed from the set of labeling lines. For example, when a horizontal reference line is collinear with a center line corresponding to a vertical column leg, the horizontal turning side line inside the L-shaped column is deleted, and the outer side line is reserved as a labeling line. If no reference line meeting the condition is detected, all side lines are reserved as labeling lines, so that the corresponding labeling lines of the L-shaped column can be obtained, and the subsequently generated labels can be more beautiful and concise. Figure 4 In the foregoing implementation, the side line corresponding to the purple color is a labeling line, and at this time, the reference lines passing through the second side line are all target reference lines, so a side line of the structural column that is parallel to the target reference line and not collinear with a side line of the minimum circumscribed rectangle is taken as a third side line.
[0059] Referring to Figures 5-7In a possible implementation, when the structural column is a Z-shaped column, a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle is taken as a first side line, and a side line of the structural column that is not collinear with the side line of the minimum circumscribed rectangle is taken as a first sub-side line, a second sub-side line, a third sub-side line, and a fourth sub-side line, where the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; a first side line of the structural column that is parallel to the first sub-side line and closest to the first sub-side line is taken as a fifth sub-side line, and a first side line of the structural column that is parallel to the fourth sub-side line and closest to the fourth sub-side line is taken as a sixth sub-side line; a first region corresponding to the first sub-side line and the fifth sub-side line, a second region corresponding to the second sub-side line and the third sub-side line, and a third region corresponding to the fourth sub-side line and the sixth sub-side line are obtained respectively, and center lines of the first region, the second region, and the third region are obtained respectively; if there is a target reference line that is collinear with the center line and intersects the first side line, a side line of the structural column that is parallel to the target reference line and located on both sides of the target reference line is taken as a third side line; side lines of the structural column other than the third side line are determined as the labeling lines of the structural column; and if there is no target reference line, all side lines of the structural column are determined as the labeling lines of the structural column. Figure 7 In the figure, the side line in purple is the determined labeling line.
[0060] Specifically, for the Z-shaped column, four groups of parallel side lines are identified first: the non-collinear side lines are divided into two groups of parallel side lines, and the closest first side lines are matched to form a pairing relationship. For example, the first sub-side line and the fifth sub-side line form a pair, and the distance between the two determines the boundary of the first region. The center lines of the three independent regions are generated, respectively corresponding to the three column stems of the Z-shaped column. Then, according to the relationship between the center line and the target reference line, the third side line is obtained, and the side lines of the structural column other than the third side line are determined as the labeling lines of the structural column.
[0061] Referring to Figures 8-10 In a possible implementation, when the structural column is a T-shaped column, a side line of the structural column that is collinear with a side line of the minimum circumscribed rectangle and partially overlaps the side line of the minimum circumscribed rectangle is taken as a second side line; a perpendicular line is drawn for a first sub-side line of the second side line that is not connected to other second side lines, and is extended to a second side line that is parallel to the first sub-side line, to obtain a center line corresponding to the first sub-side line; a perpendicular line is drawn for a second sub-side line and a third sub-side line of the second side line that are not parallel to the first sub-side line, and is extended to the center line, to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line and intersects the second side line, a side line of the structural column that is parallel to the target reference line and located on both sides of the target reference line is taken as a third side line; side lines of the structural column other than the third side line are determined as the labeling lines of the structural column; and if there is no target reference line, all side lines of the structural column are determined as the labeling lines of the structural column.
[0062] Specifically, when the structural column is a T-shaped column, first, the edge line in the structural column that is collinear with the edge line of the minimum circumscribed rectangle and partially overlaps the edge line is taken as a second edge line. For the first sub-edge line that is not connected, the perpendicular line extending to the parallel edge line forms a main center line, for example, the perpendicular line of the longitudinal end line extending to the transverse edge line forms the center line of the longitudinal column limb. For the second sub-edge line and the third sub-edge line that are transverse, the perpendicular line extending to the main center line forms an auxiliary center line of the transverse column limb. If there is a reference line, such as an axis, that is collinear with the main center line or the auxiliary center line, the two side edge lines parallel to the reference line are deleted, and the remaining edge lines are taken as the marking lines. If there is no such reference line, all the edge lines are taken as the marking lines, for example, when the three column limb center lines of the T-shaped column all have no corresponding reference line, all the edge lines are retained to ensure the integrity of the marking. Figure 10 In the figure, the edge line in purple is the determined marking line.
[0063] Referring to Figures 11-12 In a possible implementation, when the structural column is a seven-shaped column, the edge line in the structural column that is collinear with the edge line of the minimum circumscribed rectangle is taken as a first edge line; the perpendicular line of the first sub-edge line and the second sub-edge line in the first edge line that are not connected with other first edge lines is extended to the edge line parallel to the first sub-edge line and the second sub-edge line, respectively, to obtain the center line corresponding to the first sub-edge line and the center line corresponding to the second sub-edge line; the perpendicular line of the two first edge lines that are connected with each other is extended to the edge line parallel to the two first edge lines, to obtain a target center line that intersects with one of the center lines corresponding to the first sub-edge line or the center lines corresponding to the second sub-edge line and does not intersect with the first sub-edge line and the second sub-edge line, and the other center line is deleted; if there is a target reference line that is collinear with the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the target center line, and intersects with the first edge line, the edge line in the structural column that is parallel to the target reference line and located on both sides of the target reference line is taken as a third edge line; if there is a target reference line that is parallel to the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the target center line, and does not collinear, and intersects with the first edge line, the edge line in the structural column that is parallel to the target reference line and not collinear with the edge line of the minimum circumscribed rectangle is taken as a third edge line; the edge line in the structural column other than the third edge line is determined as the marking line of the structural column; if there is no target reference line, all the edge lines in the structural column are determined as the marking line of the structural column.
[0064] Specifically, when the structural column is a seven-shaped column, first, four first edge lines co-linear with four edges of the minimum circumscribed rectangle are identified. For two first sub-edge lines not connected, a center line perpendicular to each of the first sub-edge lines is generated to extend to the corresponding parallel edge line, forming positioning reference lines of two column limbs. Then, a perpendicular line is drawn for the two first edge lines connected to each other, and a center line is generated after extension. If the center line intersects with one of the center lines and does not pass through the two column limbs, the center line can be determined as a target center line. Finally, according to the positional relationship between the center line and the reference line, the marking lines of the structural column are determined. For example, when the horizontal reference line is co-linear with a certain center line, the two side edge lines corresponding to the center line are not used as the marking lines. In Figure 12 In the figure, the purple edge lines are the determined marking lines.
[0065] Referring to Figures 13-15 In a possible implementation, when the structural column is a cross-shaped column, an edge line of the structural column co-linear with an edge line of the minimum circumscribed rectangle is used as a first edge line. A perpendicular line is drawn for a first sub-edge line of the first edge line with equal length and parallel to each other, to obtain a center line corresponding to the first sub-edge line. A perpendicular line is drawn for a second sub-edge line and a third sub-edge line of the first edge line with unequal length and parallel to each other, and is extended to the center line corresponding to the first sub-edge line, to obtain a center line corresponding to the second sub-edge line and a center line corresponding to the third sub-edge line. If there is a target reference line co-linear with the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the center line corresponding to the third sub-edge line, and intersecting with the first edge line, an edge line of the structural column parallel to the target reference line and located on both sides of the target reference line is used as a third edge line. If there is a target reference line parallel to the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the center line corresponding to the third sub-edge line, and not co-linear, and intersecting with the first edge line, an edge line of the structural column parallel to the target reference line and with a distance less than a preset threshold value from the target reference line is used as the third edge line. The edge lines of the structural column except the third edge line are determined as the marking lines of the structural column. If there is no target reference line, all the edge lines of the structural column are determined as the marking lines of the structural column.
[0066] Specifically, the preset threshold can be preset, when there is a target reference line parallel to and not collinear with the center line corresponding to the first sub-edge line, and / or the center line corresponding to the second sub-edge line, and / or the center line corresponding to the third sub-edge line, and intersecting with the first edge line, and there are edge lines of the structural column on both sides of the target reference line, the edge line farther from the target reference line can be determined as the marking line, and therefore the preset threshold can be dynamically set. First, the edge line of the structural column collinear with the edge line of the minimum circumscribed rectangle is taken as the first edge line. A general cross-shaped column will have first edge lines of equal length and parallel to each other, which can be taken as the first sub-edge line, and the center line corresponding to the first sub-edge line is generated. Then, the edge lines of unequal length but parallel to each other in the first edge line are taken as the second sub-edge line and the third sub-edge line, respectively, and the center lines corresponding thereto are obtained. At this time, the number of center lines can be three. According to the positional relationship between different center lines and reference lines, the marking line of the structural column is obtained.
[0067] Specifically, when the four edge lines in the first edge line are all equal in length and parallel to each other, they can all be taken as the first sub-edge line. At this time, there is no need to obtain the second sub-edge line and the third sub-edge line, and the center lines corresponding to the edge lines in the first edge line can be directly generated. At this time, the number of center lines is two. According to the positional relationship between the center lines and the edge lines, the marking line of the structural column is obtained.
[0068] S150: When the marking line and the reference line are parallel to each other, the marking of the structural column is generated.
[0069] Referring to Figure 16 Specifically, the second positional relationship refers to the parallel relationship, collinear relationship or distance relationship between the marking line and the reference line. After the marking line is determined, the marking of the structural column is generated according to the positional relationship between the marking line and the related reference line, which can make the generated marking simple and beautiful, avoid the problem of messy marking, and improve the efficiency and accuracy of marking by automatically marking the structural column.
[0070] In one possible implementation, the marking line and the reference line parallel to each other are taken as a target marking group. If the edge line located at the outermost side in the target marking group is a target marking line, a target point of the target marking line is obtained. A perpendicular line is drawn to the reference line according to the target point, and the marking of the structural column is generated. If the edge line located at the outermost side in the target marking group is a target reference line, the target marking line closest to the target reference line is obtained. A perpendicular line is drawn to the target reference line from the target marking line, and a target point on the target reference line is obtained. A perpendicular line is drawn to the marking line according to the target point, and the marking of the structural column is generated.
[0071] Specifically, the division of the target annotation group is based on the parallel relationship between the annotation line and the reference line. When the annotation line is parallel to the reference line, it can be automatically identified and classified into the same target annotation group. If the outermost side line of the target annotation group is the annotation line, the end point of the annotation line is extracted as the target point, and the annotation guide line is generated by drawing a perpendicular line to the reference line, so as to ensure that the annotation starting point is located on the edge of the component contour. If the outermost side line is the reference line, the nearest annotation line to the reference line is obtained, the perpendicular line is projected to the reference line to form the target point, the annotation guide line is generated in reverse, and the annotation is generated through the target annotation group, so that when the component position or size changes, the annotation line can move with the side line, the target point is automatically updated, and the length of the perpendicular line is adjusted in real time. For example, when the leg of the L-shaped column expands outward, the annotation line moves outward synchronously, the outermost side line can be recalculated and a new perpendicular line annotation can be generated, so that the annotation and the component are updated in linkage.
[0072] The application further provides a structure column annotation generation method, an electronic device and corresponding embodiments.
[0073] Corresponding to the application function implementation method embodiment, the application further provides a structure column annotation generation device, an electronic device and corresponding embodiments.
[0074] Figure 2 FIG. 1 is a structural schematic diagram of a structure column annotation generation device according to an embodiment of the application.
[0075] Referring to Figure 2 A structure column annotation generation device 200 comprises:
[0076] The identification module 210 is configured to identify a reference line and a structure column to be annotated in a target drawing.
[0077] The acquisition module 220 is configured to acquire a minimum circumscribed rectangle of the structure column when the structure column is a special-shaped column.
[0078] The shape determining module 230 is configured to determine a target shape of the structural column based on the number of edges of the structural column and a target position relationship between the edges of the structural column and edges of the minimum circumscribed rectangle, the target position relationship including a collinear relationship between the edges of the structural column and the edges of the minimum circumscribed rectangle.
[0079] The marking line determining module 240 is configured to determine a marking of the structural column based on the target shape of the structural column and a preset marking line determination rule, the marking line of the structural column being non-collinear with the reference line, and the preset marking line determination rule being associated with the target shape of the structural column.
[0080] The generating module 250 is configured to generate the marking of the structural column when the marking line is parallel to the reference line.
[0081] In a possible implementation, the shape determining module 230 is further configured to determine an edge of the structural column that is collinear with the edge of the minimum circumscribed rectangle as a first edge, and determine the structural column as an L-shaped column if the number of edges of the structural column is six, adjacent edges of the structural column are perpendicular to each other, and the first edge includes four first edges that are connected to each other, as a T-shaped column if the number of edges of the structural column is eight, adjacent edges of the structural column are perpendicular to each other, and the first edge includes three first edges that are connected to each other and one first edge that is not connected to each other, as a Z-shaped column if the number of edges of the structural column is eight, adjacent edges of the structural column are perpendicular to each other, and the first edge includes two first edges that are connected to each other in two groups and the first edges in different groups are not connected to each other, as a seven-shaped column if the number of edges of the structural column is ten, adjacent edges of the structural column are perpendicular to each other, and the first edge includes two first edges that are connected to each other and two first edges that are not connected to each other, and as a cross-shaped column if the number of edges of the structural column is twelve, adjacent edges of the structural column are perpendicular to each other, and the first edge includes four first edges that are not connected to each other.
[0082] In a possible implementation, the marking line determining module 240 is further configured to determine an edge of the structural column that is collinear with the edge of the minimum circumscribed rectangle and partially overlaps with the edge of the minimum circumscribed rectangle as a second edge when the structural column is an L-shaped column, draw a perpendicular line of the second edge and extend the perpendicular line to an edge parallel to the second edge to obtain a center line corresponding to the second edge, determine an edge of the structural column that is collinear with the center line and intersects with the second edge as a third edge when there is a target reference line that is collinear with the center line, and determine edges of the structural column other than the third edge as the marking line of the structural column, and determine all edges of the structural column as the marking line of the structural column when there is no target reference line.
[0083] In a possible implementation, the annotation line determination module 240 is further configured to, when the structural column is a Z-shaped column, determine a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line, and determine side lines in the structural column that are not collinear with the side line of the minimum circumscribed rectangle as a first sub-side line, a second sub-side line, a third sub-side line, and a fourth sub-side line, where the first sub-side line is parallel to the fourth sub-side line, and the second sub-side line is parallel to the third sub-side line; determine a first side line in the structural column that is parallel to the first sub-side line and closest to the first sub-side line as a fifth sub-side line, and a first side line in the structural column that is parallel to the fourth sub-side line and closest to the fourth sub-side line as a sixth sub-side line; obtain a first region corresponding to the first sub-side line and the fifth sub-side line, a second region corresponding to the second sub-side line and the third sub-side line, and a third region corresponding to the fourth sub-side line and the sixth sub-side line, respectively, and obtain a center line of the first region, the second region, and the third region, respectively; if there is a target reference line that is collinear with the center line and intersects the first side line, determine a side line in the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; determine the side lines in the structural column other than the third side line as the annotation lines of the structural column; and if there is no target reference line, determine all the side lines in the structural column as the annotation lines of the structural column.
[0084] In a possible implementation, the annotation line determination module 240 is further configured to, when the structural column is a T-shaped column, determine a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle and partially overlaps the side line of the minimum circumscribed rectangle as a second side line; draw a perpendicular line of a first sub-side line in the second side line that is not connected to other second side lines, and extend the perpendicular line to a second side line that is parallel to the first sub-side line, to obtain a center line corresponding to the first sub-side line; draw a perpendicular line of a second sub-side line and a third sub-side line in the second side line that are not parallel to the first sub-side line, and extend the perpendicular lines to the center line, to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line and intersects the second side line, determine a side line in the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; determine the side lines in the structural column other than the third side line as the annotation lines of the structural column; and if there is no target reference line, determine all the side lines in the structural column as the annotation lines of the structural column.
[0085] In a possible implementation, the marking line determination module 240 is further configured to, when the structural column is a seven-shaped column, take a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; draw a perpendicular line for a first sub-side line in the first side line that is not connected with other first sub-side lines and extend the perpendicular line to a side line parallel to the first sub-side line and a second sub-side line to obtain a center line corresponding to the first sub-side line and a center line corresponding to the second sub-side line; draw a perpendicular line for two first side lines in the first side line that are connected with each other and extend the perpendicular line to a side line parallel to the two first side lines to obtain a target center line that intersects with one of the center line corresponding to the first sub-side line or the center line corresponding to the second sub-side line and does not intersect with the first sub-side line and the second sub-side line, and delete the other center line; if there is a target reference line that is collinear with the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the target center line and intersects with the first side line, take a side line in the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; if there is a target reference line that is parallel to the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the target center line and does not collinear, and intersects with the first side line, take a side line in the structural column that is parallel to the target reference line and does not collinear with a side line of the minimum circumscribed rectangle as the third side line; determine the side lines in the structural column except the third side line as the marking lines of the structural column; if there is no target reference line, determine all the side lines in the structural column as the marking lines of the structural column.
[0086] In a possible implementation, the marking line determination module 240 is further configured to, when the structural column is a cross-shaped column, take a side line in the structural column that is collinear with a side line of the minimum circumscribed rectangle as a first side line; draw a perpendicular line for a first sub-side line in the first side line that is equal in length and parallel to each other to obtain a center line corresponding to the first sub-side line; draw a perpendicular line for a second sub-side line and a third sub-side line in the first side line that are not equal in length and parallel to each other and extend the perpendicular line to the center line corresponding to the first sub-side line to obtain a center line corresponding to the second sub-side line and a center line corresponding to the third sub-side line; if there is a target reference line that is collinear with the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the center line corresponding to the third sub-side line and intersects with the first side line, take a side line in the structural column that is parallel to the target reference line and located on both sides of the target reference line as a third side line; if there is a target reference line that is parallel to the center line corresponding to the first sub-side line, and / or the center line corresponding to the second sub-side line, and / or the center line corresponding to the third sub-side line and does not collinear, and intersects with the first side line, take a side line in the structural column that is parallel to the target reference line and has a distance less than a preset threshold value from the target reference line as the third side line; determine the side lines in the structural column except the third side line as the marking lines of the structural column; if there is no target reference line, determine all the side lines in the structural column as the marking lines of the structural column.
[0087] In a possible implementation, the generation module 250 is further configured to take the mutually parallel marking lines and reference lines as a target marking group; if the edge line located at the outermost side in the target marking group is a target marking line, obtain a target point of the target marking line; draw a perpendicular line to the reference line according to the target point, and generate a marking of the structural column; if the edge line located at the outermost side in the target marking group is a target reference line, obtain a target marking line closest to the target reference line; draw a perpendicular line to the target reference line from the target marking line, and obtain a target point on the target reference line; draw a perpendicular line to the marking line according to the target point, and generate a marking of the structural column.
[0088] The structural column marking generation device provided in the application comprises a recognition module, an acquisition module, a shape determination module, a marking line determination module, and a generation module.
[0089] As to the device in the above-mentioned embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments relating to the method, and thus will not be described in detail here.
[0090] The application further provides an electronic device. Figure 3 The hardware structure of an embodiment of the electronic device is shown in the figure. The electronic device comprises a memory 320 and at least one processor 310. The memory 320 is electrically connected to the at least one processor 310. The memory 320 stores instructions. The at least one processor 310 invokes the instructions in the memory 320, so that the electronic device performs the structural column marking generation method according to any one of the preceding embodiments of the application.
[0091] Specifically, the processor 310 can comprise a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured as one or more integrated circuits that implement the embodiments of the application.
[0092] The memory 320 can include mass storage for data or instructions. By way of example, and not limitation, the memory 320 can include a hard disk drive (HDD), floppy disk drive, flash memory, compact disk, digital versatile disk, optical disk, tape, or other storage device or a combination of two or more of these. The memory 320 can be removable or non-removable (or fixed) as appropriate. The memory 320 can be internal or external as appropriate. In certain embodiments, the memory 320 is a non-volatile solid-state memory. In certain embodiments, the memory 320 includes read-only memory (ROM). The ROM can be a mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these, as appropriate.
[0093] In one example, the control device can also include a communication interface 330 and a bus 340. The processor 310, the memory 320, and the communication interface 330 are connected by the bus 340 and complete communication with each other.
[0094] The communication interface 330 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the application.
[0095] The bus 340 includes hardware, software, or both, that couples components of the online data traffic billing device to each other. By way of example, and not limitation, the bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or another suitable bus or interconnect, or a combination of two or more of these. Where appropriate, the bus 340 can include one or more buses. Although the application embodiments describe and illustrate a particular bus, the application contemplates any suitable bus or interconnect.
[0096] In addition, in combination with the structural column label generation method in the above-mentioned embodiments, the embodiments of the application can provide a computer readable storage medium to implement. The computer readable storage medium has an executable code stored thereon, and the executable code is executed by a processor to implement any one of the structural column label generation methods in the above-mentioned embodiments.
[0097] The present application is not limited to the particular configurations and processes described above and shown in the drawings. For the sake of brevity and clarity, detailed descriptions of well-known methods are omitted. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present application are not limited to the specific steps described and shown, and various changes, modifications and additions can be made thereto by those skilled in the art without departing from the spirit of the present application and the steps can be executed in different order.
[0098] The functional blocks shown in the above block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. The "machine-readable medium" can include any medium that can store or transfer information. Examples of the machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic medium, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranet, and the like.
[0099] It is also noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or in an order different from the embodiments, or several steps can be executed simultaneously.
[0100] The above is merely specific embodiments of the present application, and those skilled in the art can clearly understand that, for the sake of brevity and conciseness, the specific working processes of the above-described systems, modules and units can refer to the corresponding processes in the foregoing method embodiments, which will not be described here. It should be understood that the protection scope of the present application is not limited thereto, and any skilled person in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. A method for generating structural column annotations, characterized in that, The method comprises the following steps: identifying a reference line in a target drawing and a structure column to be labeled; when the structure column is a special-shaped column, obtaining a minimum circumscribed rectangle of the structure column; determining a target shape of the structure column based on the number of edges of the structure column, a target positional relationship between the edges of the structure column and the edges of the minimum circumscribed rectangle; the target positional relationship comprises a collinear relationship between the edges of the structure column and the edges of the minimum circumscribed rectangle; determining a labeling line of the structure column based on the target shape of the structure column and a preset labeling line determination rule; wherein the labeling line of the structure column is not collinear with the reference line, and the preset labeling line determination rule is associated with the target shape of the structure column; generating a label of the structure column when the labeling line is parallel to the reference line.
2. The method of claim 1, wherein, The method of determining the target shape of the structure column based on the number of edges of the structure column, the target positional relationship between the edges of the structure column and the edges of the minimum circumscribed rectangle comprises the following steps: determining an edge of the structure column that is collinear with the edge of the minimum circumscribed rectangle as a first edge; if the number of edges of the structure column is 6, the adjacent edges of the structure column are perpendicular to each other, and the first edge comprises four first edges connected to each other, the structure column is an L-shaped column; if the number of edges of the structure column is 8, the adjacent edges of the structure column are perpendicular to each other, and the first edge comprises three first edges connected to each other and one first edge not connected to each other, the structure column is a T-shaped column; if the number of edges of the structure column is 8, the adjacent edges of the structure column are perpendicular to each other, and the first edge comprises two groups of two first edges connected to each other and the first edges in different groups are not connected to each other, the structure column is a Z-shaped column; if the number of edges of the structure column is 10, the adjacent edges of the structure column are perpendicular to each other, and the first edge comprises two first edges connected to each other and two first edges not connected to each other, the structure column is a seven-shaped column; wherein the two first edges connected to each other do not contact the two first edges not connected to each other; if the number of edges of the structure column is 12, the adjacent edges of the structure column are perpendicular to each other, and the first edge comprises four first edges not connected to each other, the structure column is a cross-shaped column.
3. The method of claim 1, wherein, The method of determining the labeling line of the structure column based on the target shape of the structure column and the preset labeling line determination rule comprises the following steps: when the structure column is an L-shaped column, an edge of the structure column that is collinear with the edge of the minimum circumscribed rectangle and partially overlaps is determined as a second edge; a perpendicular line is drawn on the second edge and extended to an edge parallel to the second edge to obtain a center line corresponding to the second edge; if there is a target reference line collinear with the center line and intersecting the second edge, an edge of the structure column parallel to the target reference line and not collinear with the edge of the minimum circumscribed rectangle is determined as a third edge, and the edges of the structure column except the third edge are determined as the labeling line of the structure column. If the target reference line does not exist, all the edge lines in the structure column are determined as the marking lines of the structure column.
4. The method of claim 1, wherein, The determining the marking lines of the structure column based on the target shape of the structure column and preset marking line generation rules comprises: When the structure column is a Z-shaped column, an edge line in the structure column that is collinear with an edge line of the minimum circumscribed rectangle is determined as a first edge line, and edge lines in the structure column that are not collinear with the edge line of the minimum circumscribed rectangle are determined as a first sub-edge line, a second sub-edge line, a third sub-edge line and a fourth sub-edge line, wherein the first sub-edge line is parallel to the fourth sub-edge line, and the second sub-edge line is parallel to the third sub-edge line; a first edge line in the structure column that is parallel to the first sub-edge line and closest to the first sub-edge line is determined as a fifth sub-edge line, and a first edge line in the structure column that is parallel to the fourth sub-edge line and closest to the fourth sub-edge line is determined as a sixth sub-edge line; a first region corresponding to the first sub-edge line and the fifth sub-edge line, a second region corresponding to the second sub-edge line and the third sub-edge line, and a third region corresponding to the fourth sub-edge line and the sixth sub-edge line are obtained respectively, and center lines of the first region, the second region and the third region are obtained respectively; if a target reference line that is collinear with the center line and intersects with the first edge line exists, edge lines in the structure column that are parallel to the target reference line and located on both sides of the target reference line are determined as third edge lines; edge lines in the structure column other than the third edge lines are determined as the marking lines of the structure column; if the target reference line does not exist, all the edge lines in the structure column are determined as the marking lines of the structure column.
5. The method of claim 1, wherein, The determining the marking lines of the structure column based on the target shape of the structure column and preset marking line generation rules comprises: When the structure column is a T-shaped column, edge lines in the structure column that are collinear with edge lines of the minimum circumscribed rectangle and partially overlap are determined as second edge lines; a perpendicular line is drawn to a first sub-edge line in the second edge lines that is not connected to other second edge lines and is extended to a second edge line that is parallel to the first sub-edge line, to obtain a center line corresponding to the first sub-edge line; a perpendicular line is drawn to a second sub-edge line and a third sub-edge line in the second edge lines that are not parallel to the first sub-edge line and is extended to the center line, to obtain a center line corresponding to the second sub-edge line and a center line corresponding to the third sub-edge line; if a target reference line that is collinear with the center line and intersects with the second edge line exists, edge lines in the structure column that are parallel to the target reference line and located on both sides of the target reference line are determined as third edge lines; edge lines in the structure column other than the third edge lines are determined as the marking lines of the structure column; if the target reference line does not exist, all the edge lines in the structure column are determined as the marking lines of the structure column.
6. The method of claim 1, wherein, The determining the marking lines of the structure column based on the target shape of the structure column and preset marking line generation rules comprises: When the structure column is a seven-shaped column, edge lines in the structure column that are collinear with edge lines of the minimum circumscribed rectangle are determined as first edge lines; Draw perpendicular lines to the first sub-sideline and the second sub-sideline that are not connected to the other first sidelines, and extend them to the sidelines parallel to the first sub-sideline and the sidelines parallel to the second sub-sideline, respectively, to obtain the centerline corresponding to the first sub-sideline and the centerline corresponding to the second sub-sideline. Draw perpendicular lines to the two first edges that are connected to each other in the first edge line, and extend them to edges that are parallel to the two first edges to obtain a target center line that intersects with one of the center lines corresponding to the first sub-edge line or the center line corresponding to the second sub-edge line and does not intersect with either the first sub-edge line or the second sub-edge line, and delete the other center line. If there exists a centerline corresponding to the first sub-edge line, and / or a centerline corresponding to the second sub-edge line, and / or a target reference line that is collinear with the target centerline and intersects with the first edge line, then the edge line in the structural column that is parallel to the target reference line and located on both sides of the target reference line is taken as the third edge line. If there exists a centerline corresponding to the first sub-edge, and / or a centerline corresponding to the second sub-edge, and / or a target centerline that is parallel to but not collinear with the target centerline, and a target reference line that intersects with the first edge, then the edgeline in the structural column that is parallel to the target reference line and not collinear with the edgeline of the minimum bounding rectangle is taken as the third edgeline. The edge line of the structural column, excluding the third edge line, is defined as the label line of the structural column; If the target reference line does not exist, then all the edge lines in the structural column will be designated as the label lines of the structural column.
7. The method of claim 1, wherein, The step of determining the annotation lines of the structural column based on the target shape of the structural column and the preset annotation line generation rules includes: When the structural column is a cross-shaped column, the side line of the structural column that is collinear with the side line of the smallest bounding rectangle is taken as the first side line; Draw perpendicular lines to the first sub-sides that are of equal length and parallel to each other in the first sideline to obtain the centerline corresponding to the first sub-sideline; Draw perpendicular lines to the second and third sub-side lines of unequal length and parallel to each other in the first side line, and extend them to the center line corresponding to the first sub-side line, to obtain the center line corresponding to the second sub-side line and the center line corresponding to the third sub-side line. If there exists a target reference line that is collinear with the center line corresponding to the first sub-edge line, and / or with the center line corresponding to the second sub-edge line, and / or with the center line corresponding to the third sub-edge line, and intersects with the first edge line, then the edge line in the structural column that is parallel to the target reference line and located on both sides of the target reference line is taken as the third edge line. If there exists a centerline that is parallel to and not collinear with the centerline corresponding to the first sub-edge line, and / or the centerline corresponding to the second sub-edge line, and / or the centerline corresponding to the third sub-edge line, and a target reference line that intersects with the first edge line, then the edge line in the structural column that is parallel to the target reference line and whose distance from the target reference line is less than a preset threshold is taken as the third edge line. determining, as the marking line of the structural column, an edge line in the structural column other than the third edge line; if the target reference line does not exist, determining all edge lines in the structural column as the marking line of the structural column.
8. The method of claim 1, wherein, The generating the marking of the structural column when the marking line and the reference line are parallel to each other comprises: taking the marking line and the reference line parallel to each other as a target marking group; if the edge line located at the outermost side in the target marking group is a target marking line, obtaining a target point of the target marking line; drawing a perpendicular line to the reference line according to the target point, and generating the marking of the structural column; if the edge line located at the outermost side in the target marking group is a target reference line, obtaining a target marking line closest to the target reference line; drawing a perpendicular line to the target reference line on the target marking line, and obtaining a target point on the target reference line; drawing a perpendicular line to the marking line according to the target point, and generating the marking of the structural column.
9. A structural column annotation generation device, characterized by comprising: The generating device of the structural column marking executes the method in any one of claims 1-8, comprising: a recognition module configured to recognize a reference line in a target drawing and a structural column to be marked; an acquisition module configured to, when the structural column is a special-shaped column, acquire a minimum circumscribed rectangle of the structural column; a shape determination module configured to determine a target shape of the structural column based on a number of edge lines of the structural column, and a target positional relationship between the edge lines of the structural column and edge lines of the minimum circumscribed rectangle; the target positional relationship comprises a collinear relationship between the edge lines of the structural column and the edge lines of the minimum circumscribed rectangle; a marking line determination module configured to determine a marking of the structural column based on the target shape of the structural column and a preset marking line determination rule; the marking line of the structural column is not collinear with the reference line, and the preset marking line determination rule is associated with the target shape of the structural column; a generation module configured to generate the marking of the structural column when the marking line and the reference line are parallel to each other.
10. An electronic device, comprising: comprise: a processor; and a memory having executable code stored thereon, which, when executed by the processor, causes the processor to execute the method in any one of claims 1-8.
11. A computer readable storage medium, characterized in that, The memory having executable code stored thereon, which, when executed by the processor of the electronic device, causes the processor to execute the method in any one of claims 1-8.
Citation Information
Patent Citations
Horizontal component labeling method based on BIM platform and related equipment
CN115455519A
Three-dimensional design method and system for curved surface template of high-rise special-shaped single-column cable bent tower based on BIM (Building Information Modeling)
CN117610107A