Method for extracting internal points for shear wall positional relationship judgment and judgment method
By adjusting the center point of the shear wall enclosure box to the internal point within the maximum closed curve, the problem of inaccurate judgment of shear wall position relationships was solved, and more accurate judgment of position relationships, especially the judgment of coincidence relationships, was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-25
- Publication Date
- 2026-03-17
AI Technical Summary
In the existing technology, the method of determining the positional relationship of shear walls by the center point of the bounding box is inaccurate, resulting in inaccurate positional relationship determination results.
Extract the maximum closed curve of the shear wall, calculate the center point of the bounding box, and adjust the position of the center point according to the positional relationship between the center point and the maximum closed curve to obtain the internal points. Use the internal points to determine the positional relationship of the shear wall.
It improves the accuracy of determining the positional relationships of shear walls, especially the determination of overlapping relationships, and provides inspiration for determining the positional relationships of other architectural elements.
Smart Images

Figure CN116543410B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of architectural image processing technology, and in particular to a method for extracting and judging internal points for determining the positional relationship of shear walls. Background Technology
[0002] With the rapid development of urban construction and computer technology, the application of BIM (Building Information Modeling) technology is becoming increasingly widespread. Generally, it involves reading two-dimensional architectural drawings, using computer algorithms to identify geometric elements, obtaining two-dimensional data of the building objects, and outputting it to a 3D engine to produce a 3D model of the building. Since there are various types of architectural drawings, when identifying two geometric elements at the same location, it is usually necessary to determine the positional relationship between the two elements.
[0003] Because 3D modeling software cannot directly calculate area, determining the positional relationship between two elements often requires indirectly judging whether they overlap or partially overlap by using the inclusion relationship between the center point of the bounding box of one closed curve and the other closed curve. However, the result of indirectly judging the positional relationship between the closed curves of two shear walls by using the inclusion relationship between the center point of the bounding box of one closed curve and the other closed curve is often inaccurate. Summary of the Invention
[0004] (a) Technical problems to be solved
[0005] To address the aforementioned issues, this invention provides a method for extracting and determining internal points for judging the positional relationship of shear walls, thus resolving the problem that the method of determining the positional relationship of two shear walls by using the center point of the bounding box is inaccurate.
[0006] (II) Technical Solution
[0007] To address the aforementioned technical problems, this invention provides a method for extracting internal points for determining the positional relationship of shear walls, comprising:
[0008] S1. Obtain the graphic elements of the shear wall and extract the maximum closed curve of the shear wall;
[0009] S2. Obtain the bounding box based on the maximum closed curve, and obtain the center point of the bounding box;
[0010] S3. Determine the positional relationship between the center point of the bounding box and the corresponding maximum closed curve to obtain the internal points of the shear wall:
[0011] If the center point is inside the largest closed curve, then the center point of the bounding box is an interior point;
[0012] If the center point is on one side of the maximum closed curve, then the center point is moved a certain distance in the up, down, left, and right directions until it moves into the maximum closed curve in a certain direction. The point located inside the maximum closed curve after the movement is called the internal point.
[0013] If the center point is outside the maximum closed curve, then draw a straight line from the center point in a direction perpendicular to the nearest side of the maximum closed curve, and take a point at a certain position of the line within the inner segment of the maximum closed curve to obtain the inner point.
[0014] Furthermore, in step S3, the certain distance is a distance of 10 units.
[0015] Furthermore, in step S3, the "certain position" is the midpoint of the straight line within the segment of the largest closed curve.
[0016] This invention also discloses a method for determining the positional relationship of shear walls, including:
[0017] A. First, according to the method for extracting internal points for determining the positional relationship of shear walls, extract the internal points of two shear walls at the same position respectively, and obtain the maximum closed curve of the two shear walls at the same position;
[0018] B. Determine the positional relationship between the two shear walls based on the positional relationship between the internal points of the two shear walls at the same location and the maximum closed curve of another shear wall.
[0019] Furthermore, step B includes:
[0020] Determine whether an interior point of the first shear wall is within the maximum closed curve of the second shear wall, or whether an interior point of the second shear wall is within the maximum closed curve of the first shear wall. If at least one of these conditions is met, the two shear walls at the same location are considered to be closely related and are classified as overlapping. Otherwise, the two shear walls at the same location are not considered to be closely related and are classified as non-overlapping.
[0021] Furthermore, the statement that if at least one of the conditions is met, the positional relationship between two shear walls at the same location is close includes: if both conditions are met, the positional relationship between two shear walls at the same location includes: the two shear walls intersect and most of their areas overlap, and the two shear walls completely overlap; if one of the conditions is met, the two shear walls intersect and most of their areas overlap, and one shear wall completely contains the other shear wall and the two do not intersect.
[0022] Furthermore, the other condition, that the positional relationship between two shear walls at the same location is not close, includes: if neither of these conditions is met, then the positional relationship between two shear walls at the same location includes: the two shear walls intersect but the overlapping area is small, and the two shear walls do not intersect at all, and does not include either.
[0023] This invention also discloses a system for determining the positional relationship of shear walls, comprising:
[0024] At least one processor; and at least one memory communicatively connected to said processor, wherein:
[0025] The memory stores program instructions that can be executed by the processor, and the processor can execute the method for determining the positional relationship of the shear walls by calling the program instructions.
[0026] The present invention also discloses a non-transitory computer-readable storage medium storing computer instructions that cause the computer to execute the method for determining the positional relationship of shear walls.
[0027] (III) Beneficial Effects
[0028] The above-described technical solution of the present invention has the following advantages:
[0029] (1) This invention takes into account the unique shape characteristics of shear walls, and the technical problems are not easy to find. Based on the relationship between the center point of the shear wall's enclosing box and the maximum closed curve, the position of the center point is adjusted to be inside the maximum closed curve to obtain the internal point, thereby replacing the method of judging the position relationship based on the center point of the enclosing box, so as to obtain a more accurate position relationship.
[0030] (2) By using the positional relationship between the internal point and the maximum closed curve of another shear wall, the present invention can more accurately determine the positional relationship of two shear walls at the same location, especially the overlapping positional relationship;
[0031] (3) The present invention determines the positional relationship of two shear walls at the same location based on the internal points of the shear wall, which provides inspiration for determining the positional relationship of shear walls other than overlapping, and also provides inspiration for determining the positional relationship of other building elements other than shear walls, so as to make more accurate positional relationship determination. Attached Figure Description
[0032] The features and advantages of the invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the invention in any way. In the drawings:
[0033] Figure 1 This is a flowchart of a method for extracting internal points for determining the positional relationship of shear walls according to an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram illustrating the adjustment of the center point of the bounding box to an internal point according to an embodiment of the present invention;
[0035] Figure 3 This is a flowchart illustrating a method for determining the positional relationship of shear walls according to an embodiment of the present invention;
[0036] Figure 4 This is a schematic diagram showing the positional relationship of the two shear walls when both conditions are met in an embodiment of the present invention.
[0037] Figure 5 This is a schematic diagram illustrating the positional relationship of the two shear walls when one of the conditions is met, according to an embodiment of the present invention.
[0038] Figure 6 This is a schematic diagram showing the positional relationship of the two shear walls when neither of the two conditions is met in an embodiment of the present invention.
[0039] In the diagram, P: center point; Q: interior point; Q1: interior point of the first shear wall; Q2: interior point of the second shear wall. Detailed Implementation
[0040] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are for illustrative purposes only and are not intended to limit the scope of the invention.
[0041] Due to the unique shape of shear walls, which distinguish them from other graphic elements, the center point of their default bounding box may be on or outside the contour. This problem is not easy to detect, leading to inaccurate results when indirectly determining the positional relationship between two shear wall curves based on the inclusion relationship between the center point of the bounding box of one closed curve and another closed curve. Therefore, a new method is needed to determine the positional relationship of shear walls and improve the accuracy of the determination.
[0042] This invention provides a method for extracting internal points for determining the positional relationship of shear walls, such as... Figure 1 As shown, it includes the following steps:
[0043] S1. Obtain the graphic elements of the shear wall and extract the maximum closed curve of the shear wall;
[0044] The method for extracting the maximum closed curve of shear walls is the same as the method for extracting the maximum closed curve of other architectural elements.
[0045] S2. Obtain the bounding box based on the maximum closed curve, and obtain the center point P of the bounding box;
[0046] 3D modeling software such as Rhino can automatically calculate the coordinates of the two endpoints of the diagonal of the bounding box of a closed curve, calculate the midpoint of the line connecting the two endpoints of the diagonal of the bounding box, and obtain the center point P of the bounding box.
[0047] S3. Determine the positional relationship between the center point P of the bounding box and the corresponding maximum closed curve to obtain the internal point Q of the shear wall:
[0048] If the center point P is inside the largest closed curve, then the center point P of the bounding box is an interior point Q;
[0049] If the center point P is on one side of the maximum closed curve, then the center point P is moved a certain distance in the up, down, left, and right directions until it is located inside the maximum closed curve, thus obtaining the inner point Q.
[0050] If the center point P is outside the maximum closed curve, then draw a straight line from the center point P along the direction perpendicular to the nearest side of the maximum closed curve, and take a point at a certain position of the line inside the maximum closed curve to obtain the internal point Q.
[0051] like Figure 2 As shown, if the center point P of the bounding box is inside the maximum closed curve, the determination of the shear wall's position based on the center point P of the bounding box is accurate, and the center point P of the bounding box is also the internal point Q of the shear wall. If the center point P of the bounding box is on one side of the maximum closed curve, the determination of the shear wall's position based on the center point P of the bounding box may be inaccurate. It is necessary to move the center point P of the bounding box a certain distance in the up, down, left, and right directions until it moves into the maximum closed curve in a certain direction. The point located inside the maximum closed curve after the movement is the internal point Q. The certain distance is set based on experience; here, it is set to a distance of 10 units. Specifically, after moving the center point P of the bounding box upwards by 10 units, the position of the shear wall is determined. If the moved point is inside the maximum closed curve, then the moved point is the internal point Q. Otherwise, adjust the direction and continue moving, then check again, until the moved point is inside the maximum closed curve. The center point P of the bounding box moves sequentially in four directions (up, down, left, right), and it will definitely move to the inside of the maximum closed curve in one of these directions. If the center point P of the bounding box is outside the maximum closed curve, then the center point P of the bounding box cannot represent the positional relationship of the corresponding shear wall. It is necessary to draw a straight line from the center point P along the direction perpendicular to the nearest edge of the maximum closed curve, and take the point on the inner segment of the maximum closed curve of the straight line as the internal point Q. The "certain position" is also set based on experience; here, it is set to the midpoint of the inner segment of the maximum closed curve. Thus, the accurate positional relationship can be determined based on the internal point Q of the shear wall.
[0052] Another embodiment of the present invention is a method for determining the positional relationship of shear walls, such as... Figure 3 As shown,
[0053] A. According to steps S1-S3 of the method for extracting internal points for determining the positional relationship of shear walls described in the previous embodiment, extract the internal points Q1 and Q2 of two shear walls at the same position respectively, and obtain the maximum closed curve of the two shear walls at the same position.
[0054] B. Based on the positional relationship between the internal points Q of two shear walls at the same location and the maximum closed curve of another shear wall, determine the positional relationship between the two shear walls, as follows:
[0055] Determine whether the internal point Q1 of the first shear wall is within the maximum closed curve of the second shear wall, or whether the internal point Q2 of the second shear wall is within the maximum closed curve of the first shear wall. If at least one of these conditions is met, the two shear walls at the same location are closely related. Otherwise, the two shear walls at the same location are not closely related.
[0056] The internal points Q obtained from step S3 are all within the maximum closed curve of the shear wall, which better represents the shear walls in determining their positional relationships. We determine whether the internal point Q1 of the first shear wall is within the maximum closed curve of the second shear wall, or whether the internal point Q2 of the second shear wall is within the maximum closed curve of the first shear wall. If both conditions are met, then the two shear walls at the same location are closely related. Figure 4 As shown, this specifically includes: two shear walls intersecting and overlapping in most areas; two shear walls completely overlapping; if either of these conditions is met, then the two shear walls at the same location are closely related, such as... Figure 5 As shown, this specifically includes: two shear walls intersecting and overlapping in most areas; and one shear wall completely containing another shear wall without intersecting. Generally, BIM categorizes both of these situations as overlapping. If neither condition is met, the two shear walls at the same location are not closely related, and BIM categorizes them as non-overlapping. Figure 6 As shown, this specifically includes: two shear walls intersecting but with a small overlapping area, and two shear walls not intersecting at all and not overlapping, requiring further determination of their positional relationship based on internal point Q and other conditions.
[0057] Finally, it should be noted that the above methods can be converted into software program instructions, which can be implemented using a system including a processor and memory, or by computer instructions stored in a non-transitory computer-readable storage medium. The integrated unit implemented as a software functional unit can be stored in a computer-readable storage medium. This software functional unit, stored in a storage medium, includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0058] In summary, the method for extracting and determining internal points for judging the positional relationship of shear walls described above has the following beneficial effects:
[0059] (1) This invention takes into account the unique shape characteristics of shear walls, and the technical problems are not easy to find. Based on the relationship between the center point of the shear wall's enclosing box and the maximum closed curve, the position of the center point is adjusted to be inside the maximum closed curve to obtain the internal point, thereby replacing the method of judging the position relationship based on the center point of the enclosing box, so as to obtain a more accurate position relationship.
[0060] (2) By using the positional relationship between the internal point and the maximum closed curve of another shear wall, the present invention can more accurately determine the positional relationship of two shear walls at the same location, especially the overlapping positional relationship;
[0061] (3) The present invention determines the positional relationship of two shear walls at the same location based on the internal points of the shear wall, which provides inspiration for determining the positional relationship of shear walls other than overlapping, and also provides inspiration for determining the positional relationship of other building elements other than shear walls, so as to make more accurate positional relationship determination.
[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit it; although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for extracting internal points for shear wall position relationship determination, characterized in that, The method comprises the following steps: S1, obtaining the graphic element of a shear wall, and extracting the maximum closed curve of the shear wall; S2, obtaining the bounding box according to the maximum closed curve, and obtaining the center point of the bounding box; S3, judging the position relationship between the center point of the bounding box and the corresponding maximum closed curve, and obtaining the internal point of the shear wall: If the center point is inside the maximum closed curve, the center point of the bounding box is the internal point; If the center point is on the edge of the maximum closed curve, the center point is sequentially moved in the up, down, left and right directions by a set distance until it is moved to the inside of the maximum closed curve in a certain direction, and the point after the movement inside the maximum closed curve is the internal point; If the center point is outside the maximum closed curve, a straight line is drawn from the center point in a direction perpendicular to the nearest edge of the maximum closed curve, and the midpoint of the internal segment of the straight line on the maximum closed curve is obtained as the internal point.
2. The method for extracting internal points for shear wall position relationship judgment according to claim 1, wherein In step S3, the set distance is 10 units of distance.
3. A method of determining the positional relationship of shear walls, characterized by The method comprises the following steps: A, first extracting the internal points of two shear walls at the same position according to the internal point extraction method for judging the position relationship of the shear wall of any one of claims 1-2, and obtaining the maximum closed curves of the two shear walls at the same position; B, judging the position relationship of the two shear walls according to the position relationship between the internal points of the two shear walls at the same position and the maximum closed curve of another shear wall.
4. The method of claim 3, wherein The step B comprises: Judging whether the internal point of the first shear wall is inside the maximum closed curve of the second shear wall, or whether the internal point of the second shear wall is inside the maximum closed curve of the first shear wall, if at least one of them is satisfied, the position relationship of the two shear walls at the same position is close, and they are classified as coincident, otherwise, the position relationship of the two shear walls at the same position is not close, and they are classified as not coincident.
5. The method of claim 4, wherein If both are satisfied, the position relationship of the two shear walls at the same position includes: the two shear walls intersect and mostly coincide, and the two shear walls completely coincide; if one of them is satisfied, the two shear walls intersect and mostly coincide, and one shear wall completely contains the other shear wall and they do not intersect.
6. The method of claim 4, wherein If both are not satisfied, the position relationship of the two shear walls at the same position includes: the two shear walls intersect but the coincident area is not large, and the two shear walls do not intersect and do not contain.
7. A system for determining the position relationship of a shear wall, characterized by The method comprises the following steps: At least one processor; And at least one memory connected in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor calling the program instructions can execute the shear wall position relationship judgment method according to any one of claims 3-6.
8. A non-transitory computer-readable storage medium, comprising: The non-transitory computer readable storage medium stores computer instructions, and the computer instructions make the computer execute the shear wall position relationship judgment method according to any one of claims 3-6.
Citation Information
Patent Citations
Method, device and equipment for adjusting centralized annotations and readable storage medium
CN114565703A
BIM data processing method and device, electronic equipment and storage medium
CN115827687A