Method, device and processor for determining wall type
By obtaining the set of wall coordinate points in the building-assisted design software, we can determine whether there is a collinear wall, and solve the problem of low efficiency in the judgment of wall types in the existing technology, realize automatic judgment and accuracy, and improve the software's Execution efficiency and user experience.
Patent Information
- Application Number
- CN202011626686.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The existing building-assisted design software is inefficient when judging wall types and lacks a unified interface, which leads to developers need to manually implement functions, which increases working hours and is unable to automatically judge wall types, reducing user experience.
By obtaining the set of coordinate points of the wall, we can determine whether there is a collinear wall, determine the wall type, and provide a method and device to determine the wall type. We can use the processor to execute a computer program to automatically determine the wall type and improve efficiency and accuracy.
It realizes accurate and automatic judgment of wall types, improves the execution efficiency and user experience of building-assisted design software, reduces the working time of developers, and ensures the accuracy of judgment.
Smart Images

Figure CN114692255B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of building auxiliary design, and in particular to a method, device and processor for determining a wall type. Background Art
[0002] In the field of architectural auxiliary design, software can be used to design building models. In the current development and design of architectural auxiliary design software, there are problems such as loopholes in architectural auxiliary design software and low execution efficiency. For example, in the building-stone curtain wall function in the architectural auxiliary design software, it is necessary to perform linked list processing on the selected simulated curtain wall to facilitate the subsequent generation of details. However, the existing architectural auxiliary design software does not provide a unified interface for developers. Every time the function needs to be used, developers need to think, design, and implement it by themselves, which increases the working time of developers and reduces development efficiency.
[0003] In addition, when using existing architectural design software to design buildings, it is usually determined by manual recognition whether the wall is an interior wall or an exterior wall, and the wall type cannot be automatically determined, thereby reducing the user experience of using the architectural design software.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method, device and processor for determining a wall type, so as to at least solve the technical problem of low efficiency in determining a wall type in building-aided design.
[0006] According to one aspect of an embodiment of the present invention, a method for determining a wall type is provided, comprising: obtaining a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area; determining whether there is a second wall in the second wall set that is colinear with the first wall based on the first coordinate point set and the second coordinate point set, and obtaining a judgment result; and determining the wall type of the first wall based on the judgment result.
[0007] Furthermore, the method for determining the wall type also includes: obtaining the first starting point coordinates and the first end point coordinates of the first wall, wherein the first coordinate point set includes the first starting point coordinates and the first end point coordinates; obtaining the second starting point coordinates and the second end point coordinates of the second wall in the second wall set, wherein the second coordinate point set includes the second starting point coordinates and the second end point coordinates; obtaining a point set set between the first wall and the second wall according to the first starting point coordinates, the first end point coordinates, the second starting point coordinates and the second end point coordinates, wherein the point set set includes a point set where the first wall and the second wall overlap; determining whether the first wall and the second wall are collinear according to the point set set to obtain a judgment result.
[0008] Furthermore, the method for determining the wall type also includes: determining a first position relationship between the first starting point coordinates and the second wall to obtain a first point set; determining a second position relationship between the first end point coordinates and the second wall to obtain a second point set; determining a third position relationship between the second starting point coordinates and the first wall to obtain a third point set; determining a fourth position relationship between the second end point coordinates and the first wall to obtain a fourth point set; and obtaining a point set set based on the first point set, the second point set, the third point set and the fourth point set.
[0009] Furthermore, the method for determining the wall type also includes: determining that the first starting point coordinates are located in the second wall according to any one of the following methods: the first starting point coordinates coincide with the second starting point coordinates; the first starting point coordinates are located between the second starting point coordinates and the second end point coordinates; the first starting point coordinates coincide with the second end point coordinates.
[0010] Furthermore, the method for determining the wall type also includes: determining that the first end point coordinate is located in the second wall according to any one of the following methods: the first end point coordinate coincides with the second starting point coordinate; the first end point coordinate is located between the second starting point coordinate and the second end point coordinate; the first end point coordinate coincides with the second end point coordinate.
[0011] Furthermore, the method for determining the wall type also includes: detecting whether the second starting point coordinates are located between the first starting point coordinates and the first end point coordinates; and obtaining a third point set when the second starting point coordinates are located between the first starting point coordinates and the first end point coordinates.
[0012] Furthermore, the method for determining the wall type also includes: detecting whether the second end point coordinates are located between the first starting point coordinates and the first end point coordinates; and obtaining a fourth point set when the second end point coordinates are located between the first starting point coordinates and the first end point coordinates.
[0013] Furthermore, the method for determining the wall type further includes: when the number of point sets included in the point set set is a preset number, determining that there is a target wall in the second wall set that is colinear with the first wall.
[0014] Furthermore, the method for determining the wall type further includes: when it is determined that there is a target wall in the second wall set that is colinear with the first wall, determining the first wall to be an inner wall.
[0015] Furthermore, the method for determining the wall type further includes: when the number of point sets included in the point set set is less than a preset number, determining that there is no target wall in the second wall set that is colinear with the first wall.
[0016] Furthermore, the method for determining the wall type further includes: when it is determined that there is no target wall in the second wall set that is colinear with the first wall, determining that the first wall is an exterior wall.
[0017] Furthermore, the method for determining the wall type further includes: after determining the wall type of the first wall according to the judgment result, marking the first wall according to the wall type of the first wall, and displaying the marked first wall.
[0018] Furthermore, the method for determining the wall type also includes: after determining the wall type of the first wall according to the judgment result, determining a wall model corresponding to the wall type of the first wall; and generating a building model according to the first wall model.
[0019] According to another aspect of an embodiment of the present invention, a device for determining a wall type is also provided, including: an acquisition module, used to acquire a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area; a first determination module, used to determine whether there is a second wall in the second wall set that is colinear with the first wall based on the first coordinate point set and the second coordinate point set, and obtain a judgment result; and a second determination module, used to determine the wall type of the first wall based on the judgment result.
[0020] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining the wall type when running.
[0021] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program is configured to execute the above-mentioned method for determining the wall type when running.
[0022] In an embodiment of the present invention, a method of determining a wall type based on whether two walls are collinear is adopted. After obtaining a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area, it is determined whether there is a second wall collinear with the first wall in the second wall set based on the first coordinate point set and the second coordinate point set, a judgment result is obtained, and the wall type of the first wall is determined based on the judgment result.
[0023] In the above process, the user only needs to input the coordinate point set corresponding to the two walls into the building-aided design software, and the building-aided design software can determine whether the two walls are collinear, and then determine the wall types of the two walls. This process does not require developers to redevelop the building-aided design software, thereby improving the execution efficiency of the building-aided design software. In addition, the solution provided by the present application can automatically determine the wall type without manual judgment, which not only improves the efficiency of wall type judgment, but also ensures the accuracy of wall type judgment.
[0024] It can be seen that the solution provided in the present application achieves the purpose of accurately determining the wall type, thereby achieving the technical effect of improving the accuracy of wall type judgment, and further solving the technical problem of low efficiency in judging wall types in building auxiliary design. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0026] Figure 1 is a flow chart of a method for determining a wall type according to an embodiment of the present invention;
[0027] Figure 2 is a schematic diagram of an optional shear wall generation interface according to an embodiment of the present invention;
[0028] Figure 3 is a schematic diagram of an optional shear wall according to an embodiment of the present invention;
[0029] Figure 4 is a schematic diagram of an optional wall model according to an embodiment of the present invention;
[0030] Figure 5 is a schematic diagram of an optional wall model according to an embodiment of the present invention;
[0031] Figure 6 is an optional flow chart for determining whether a first wall and a second wall are collinear according to an embodiment of the present invention;
[0032] Figure 7 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0033] Figure 8 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0034] Fig. 9 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0035] Fig.10 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0036] Fig.11 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0037] Fig.12 is a schematic diagram of an optional collinearity of line segments according to an embodiment of the present invention;
[0038] Fig.13 is a schematic diagram of a device for determining a wall type according to an embodiment of the present invention. DETAILED DESCRIPTION
[0039] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0041] Example 1
[0042] According to an embodiment of the present invention, an embodiment of a method for determining a wall type is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0043] Figure 1 is a flow chart of a method for determining a wall type according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0044] Step S102, obtaining a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area.
[0045] Optionally, in the building auxiliary design software, firstly, based on the simulated wall drawn in the pilot design, the shear wall (i.e., the load-bearing wall) is automatically calculated and generated. For example, the user clicks on "shear wall structure" to generate the following Figure 2 In the shear wall generation interface shown in the figure, after the user clicks the "Generate" button, the following Figure 3The shear wall shown in Figure 3 In the figure, all arrows represent shear walls ( Figure 3 In addition, Figure 4 A schematic diagram of an optional wall model is shown. The wall model can be divided into multiple rooms according to the wall positioning lines. For example, Figure 4 Room A and Room B in the Figure 4 In the figure, the first wall may be the wall corresponding to the white dotted line. The present application determines the type of the first wall by judging whether the first wall is collinear with the walls constituting room A (or room B), wherein room A or room B is the above-mentioned second wall set.
[0046] Step S104: determining whether there is a second wall in the second wall set that is collinear with the first wall according to the first coordinate point set and the second coordinate point set, and obtaining a determination result.
[0047] Optionally, the first coordinate point set includes the starting point coordinates and the ending point coordinates of the first wall. Therefore, it is possible to determine whether there is a wall in the second wall set that is collinear with the first wall by detecting whether the starting point coordinates and / or the ending point coordinates in the first coordinate point set are located in the wall of the second wall set. Figure 4 In the example, it is possible to detect whether the starting point coordinates and the ending point coordinates of the first wall (the wall corresponding to the white dotted line) all fall into a wall of room A (or room B). If the starting point coordinates and the ending point coordinates of the first wall all fall into a wall of room A (or room B), it is determined that the first wall is collinear with the wall in room A (or room B).
[0048] Step S106: determine the wall type of the first wall according to the judgment result.
[0049] Optionally, the wall type includes an exterior wall and an interior wall. If there is a second wall in the second wall set that is collinear with the first wall, the first wall is determined to be an interior wall; otherwise, the first wall is determined to be an exterior wall. After determining the wall type of the first wall, the wall types of all walls included in the wall model may be determined, and different wall types may be identified. For example, Figure 5 In the wall model shown, the interior and exterior walls are identified.
[0050] Based on the scheme defined in the above steps S102 to S106, it can be known that in an embodiment of the present invention, a method of determining the wall type based on whether the two walls are collinear is adopted. After obtaining a first coordinate point set of the first wall and a second coordinate point set of the second wall set constituting a preset area, it is determined whether there is a second wall collinear with the first wall in the second wall set based on the first coordinate point set and the second coordinate point set, a judgment result is obtained, and the wall type of the first wall is determined based on the judgment result.
[0051] It is easy to notice that in the above process, the user only needs to input the coordinate point set corresponding to the two walls into the building-aided design software, and the building-aided design software can determine whether the two walls are collinear, and then determine the wall types of the two walls. This process does not require developers to redevelop the building-aided design software, which improves the execution efficiency of the building-aided design software. In addition, the solution provided by the present application can automatically determine the wall type without manual judgment, which not only improves the efficiency of wall type judgment, but also ensures the accuracy of wall type judgment.
[0052] It can be seen that the solution provided in the present application achieves the purpose of accurately determining the wall type, thereby achieving the technical effect of improving the accuracy of wall type judgment, and further solving the technical problem of low efficiency in judging wall types in building auxiliary design.
[0053] In an optional embodiment, after obtaining a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area, it is possible to determine whether there is a second wall in the second wall set that is collinear with the first wall based on the first coordinate point set and the second coordinate point set, and obtain a judgment result. Specifically, first obtain the first starting point coordinate and the first end point coordinate of the first wall, and obtain the second starting point coordinate and the second end point coordinate of the second wall in the second wall set, and then obtain the point set set between the first wall and the second wall based on the first starting point coordinate, the first end point coordinate, the second starting point coordinate and the second end point coordinate, and finally determine whether the first wall and the second wall are collinear based on the point set set, and obtain a judgment result. Among them, the first coordinate point set includes the first starting point coordinate and the first end point coordinate, the second coordinate point set includes the second starting point coordinate and the second end point coordinate, and the point set set includes the point set where the first wall and the second wall overlap.
[0054] Optional, Figure 6 An optional flow chart for determining whether the first wall and the second wall are collinear is shown. Figure 6 It can be seen that in the present application, the overlapping point set is obtained by comparing the starting point coordinates and the ending point coordinates of the first wall and the second wall, and finally whether the first wall and the second wall are collinear is determined according to the number of point sets contained in the point set. Among them, the point set includes four point sets, specifically, the first position relationship between the first starting point coordinate and the second wall is determined to obtain the first point set; the second position relationship between the first ending point coordinate and the second wall is determined to obtain the second point set; the third position relationship between the second starting point coordinate and the first wall is determined to obtain the third point set; the fourth position relationship between the second ending point coordinate and the first wall is determined to obtain the fourth point set; the point set is obtained according to the first point set, the second point set, the third point set and the fourth point set.
[0055] It should be noted that, in the process of comparing the first starting point coordinates and the first end point coordinates of the first wall with the second starting point coordinates and the second end point coordinates of the second wall, the first starting point coordinates and the first end point coordinates of the first wall and the second starting point coordinates and the second end point coordinates of the second wall are first sorted to ensure that the starting point is in front and the end point is in the back.
[0056] In an optional embodiment, the first point set is obtained by determining the first position relationship between the first starting point coordinates and the second wall, that is, determining that the first starting point coordinates are located in the second wall according to any one of the following methods: the first starting point coordinates coincide with the second starting point coordinates; the first starting point coordinates are located between the second starting point coordinates and the second end point coordinates; the first starting point coordinates coincide with the second end point coordinates.
[0057] For example, in Figure 6 In , when the first starting point coordinates coincide with the second starting point coordinates of the second wall, the first starting point coordinates are stored in the point set. Figure 7 In the schematic diagram of the line segments being collinear, line1Sp is the first starting point coordinate, line1Ep is the first end point coordinate, line2Sp is the second starting point coordinate, line2Ep is the second end point coordinate, the first starting point coordinate coincides with the second starting point coordinate of the second wall, and the first end point coordinate is between the second starting point coordinate and the second end point coordinate, then Figure 7 The thick black arrow in represents the overlapping portion of the first wall and the second wall.
[0058] exist Figure 6 In , if the first starting point coordinates do not coincide with the second starting point coordinates of the second wall, then continue to determine whether the first starting point coordinates are between the second starting point coordinates and the second end point coordinates, that is, determine whether the first starting point coordinates are within the second wall. If the first starting point coordinates are between the second starting point coordinates and the second end point coordinates, then store the first starting point coordinates in the point set. For example, in Fig. 9 In the schematic diagram of the line segments being collinear, the first starting point coordinate is between the second starting point coordinate and the second end point coordinate, and the first end point coordinate coincides with the second end point coordinate. Fig. 9 The thick black arrow in the figure indicates the overlapped part of the first wall and the second wall. Fig.10 In the schematic diagram of the line segments being collinear, the first starting point coordinate is between the second starting point coordinate and the second end point coordinate, and the first end point coordinate is between the second starting point coordinate and the second end point coordinate, Fig.10 The thick black arrow in represents the overlapping portion of the first wall and the second wall.
[0059] exist Figure 6In the process, if the first starting point coordinate is not between the second starting point coordinate and the second end point coordinate, it is further determined whether the first starting point coordinate coincides with the second end point coordinate. If they coincide, the first starting point coordinate is stored in the point set. If the first starting point coordinate coincides with the second end point coordinate, the overlapping part of the first wall and the second wall is a point. For example, Figure 8 In the schematic diagram of the collinear line segments shown, the overlapping portion of the first wall and the second wall is a black dot.
[0060] It should be noted that the coordinates of the first starting point in the above three situations must be an end point of the overlapping portion of the first wall and the second wall.
[0061] In an optional embodiment, the second point set is obtained by determining the second positional relationship between the first terminal coordinates and the second wall, that is, determining that the first terminal coordinates are located in the second wall according to any one of the following methods: the first terminal coordinates coincide with the second starting point coordinates; the first terminal coordinates are located between the second starting point coordinates and the second terminal coordinates, that is, determining whether the first terminal coordinates are located in the second wall; the first terminal coordinates coincide with the second terminal coordinates.
[0062] It should be noted that the first end point coordinate in the above three situations must be an end point of the overlapped portion of the first wall and the second wall. If any of the above situations is met, the first end point coordinate is stored in the point set.
[0063] In an optional embodiment, the third point set is obtained by determining the third positional relationship between the second starting point coordinates and the first wall, that is, detecting whether the second starting point coordinates are located between the first starting point coordinates and the first end point coordinates. When the second starting point coordinates are located between the first starting point coordinates and the first end point coordinates, that is, the second starting point coordinates are located in the second wall, the third point set is obtained. Figure 6 In , if the second starting point coordinate is between the first starting point coordinate and the second end point coordinate, that is, the second starting point coordinate is located inside the first wall, the second starting point coordinate is stored in the point set. Fig.11 In the schematic diagram of the collinear line segments shown, the thick black arrow indicates the overlapping portion of the first wall and the second wall.
[0064] Further, such as Figure 6 As shown, if the second starting point coordinate is not between the first starting point coordinate and the second end point coordinate, then continue to determine the fourth positional relationship between the second end point coordinate and the first wall to obtain a fourth point set, that is, detect whether the second end point coordinate is between the first starting point coordinate and the first end point coordinate. If the second end point coordinate is between the first starting point coordinate and the first end point coordinate, the fourth point set is obtained. Figure 6In , if the coordinates of the second end point are between the coordinates of the first starting point and the coordinates of the second end point, that is, the coordinates of the second end point are located inside the first wall, the coordinates of the second end point are stored in the point set. Fig.12 In the schematic diagram of the collinear line segments shown, the thick black arrow indicates the overlapping portion of the first wall and the second wall.
[0065] Further, after obtaining the point set set, the point set set is returned, and whether the first wall and the second wall are collinear is determined according to the point set set to obtain a judgment result. Wherein, when the number of point sets included in the point set set is a preset number, it is determined that there is a target wall in the second wall set that is collinear with the first wall. When it is determined that there is a target wall in the second wall set that is collinear with the first wall, the first wall is determined to be an inner wall.
[0066] Optionally, the above-mentioned preset number can be four, that is, the point set includes four point sets, namely the first starting point coordinates, the second starting point coordinates, the first end point coordinates, and the second end point coordinates. In this scenario, the first starting point coordinates coincide with the second starting point coordinates, and the first end point coordinates coincide with the second end point coordinates. Then the overlapping part of the first wall and the second wall is the first wall itself.
[0067] Optionally, when the number of point sets included in the point set set is less than a preset number, it is determined that there is no target wall in the second wall set that is collinear with the first wall. When it is determined that there is no target wall in the second wall set that is collinear with the first wall, it is determined that the first wall is an exterior wall. For example, when the point set set is empty, it means that there is no overlap between the first wall and the second wall, and the first wall is an exterior wall.
[0068] In an optional embodiment, after determining the wall type of the first wall according to the judgment result, the first wall is marked according to the wall type of the first wall, and the marked first wall is displayed. Optionally, different wall types can be marked with different colors, for example, all exterior walls in the wall model are marked in red, and all interior walls in the wall model are marked in green.
[0069] Further, after determining the wall type of the first wall according to the judgment result, the wall model corresponding to the wall type of the first wall can also be determined, and the building model is generated according to the first wall model. Optionally, the external wall and internal wall selection function generates a non-load-bearing wall in the middle of the shear wall.
[0070] It can be seen from the above content that through the solution provided by this application, the wall type can be automatically determined without manual judgment, which not only improves the efficiency of wall type judgment, but also ensures the accuracy of wall type judgment.
[0071] Example 2
[0072] According to an embodiment of the present invention, an embodiment of a device for determining a wall type is also provided, wherein: Fig.13 is a schematic diagram of a device for determining a wall type according to an embodiment of the present invention. Fig.13 As shown, the device includes: an acquisition module 1301 , a first determination module 1303 and a second determination module 1305 .
[0073] Among them, the acquisition module 1301 is used to obtain a first coordinate point set of the first wall and a second coordinate point set of the second wall set constituting a preset area; the first determination module 1303 is used to determine whether there is a second wall in the second wall set that is collinear with the first wall based on the first coordinate point set and the second coordinate point set, and obtain a judgment result; the second determination module 1305 is used to determine the wall type of the first wall based on the judgment result.
[0074] It should be noted that the above-mentioned acquisition module 1301, first determination module 1303 and second determination module 1305 correspond to steps S102 to S106 in the above-mentioned embodiment 1, and the examples and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiment 1.
[0075] Optionally, the first determination module includes: a first acquisition module, a second acquisition module, a first processing module and a third determination module. The first acquisition module is used to acquire the first starting point coordinates and the first end point coordinates of the first wall, wherein the first coordinate point set includes the first starting point coordinates and the first end point coordinates; the second acquisition module is used to acquire the second starting point coordinates and the second end point coordinates of the second wall in the second wall set, wherein the second coordinate point set includes the second starting point coordinates and the second end point coordinates; the first processing module is used to obtain a point set set between the first wall and the second wall according to the first starting point coordinates, the first end point coordinates, the second starting point coordinates and the second end point coordinates, wherein the point set set includes a point set where the first wall and the second wall overlap; the third determination module is used to determine whether the first wall and the second wall are collinear according to the point set set to obtain a judgment result.
[0076] Optionally, the processing module includes: a fourth determination module, a fifth determination module, a sixth determination module, a seventh determination module and a second processing module. Among them, the fourth determination module is used to determine the first position relationship between the first starting point coordinates and the second wall to obtain a first point set; the fifth determination module is used to determine the second position relationship between the first end point coordinates and the second wall to obtain a second point set; the sixth determination module is used to determine the third position relationship between the second starting point coordinates and the first wall to obtain a third point set; the seventh determination module is used to determine the fourth position relationship between the second end point coordinates and the first wall to obtain a fourth point set; the second processing module is used to obtain a point set set according to the first point set, the second point set, the third point set and the fourth point set.
[0077] Optionally, the fourth determination module includes: a fourth sub-determination module, used to determine that the first starting point coordinates are located in the second wall according to any one of the following methods: the first starting point coordinates coincide with the second starting point coordinates; the first starting point coordinates are located between the second starting point coordinates and the second end point coordinates; the first starting point coordinates coincide with the second end point coordinates.
[0078] Optionally, the fifth determination module includes: a fifth sub-determination module, used to determine that the first terminal coordinate is located in the second wall according to any one of the following methods: the first terminal coordinate coincides with the second starting point coordinate; the first terminal coordinate is located between the second starting point coordinate and the second terminal coordinate; the first terminal coordinate coincides with the second terminal coordinate.
[0079] Optionally, the sixth determination module includes: a first detection module and a third processing module. The first detection module is used to detect whether the second starting point coordinates are between the first starting point coordinates and the first end point coordinates; the third processing module is used to obtain a third point set when the second starting point coordinates are between the first starting point coordinates and the first end point coordinates.
[0080] Optionally, the seventh determination module includes: a second detection module and a fourth processing module. The second detection module is used to detect whether the second end point coordinates are between the first starting point coordinates and the first end point coordinates; the fourth processing module is used to obtain a fourth point set when the second end point coordinates are between the first starting point coordinates and the first end point coordinates.
[0081] Optionally, the third determination module includes: an eighth determination module, used to determine that there is a target wall in the second wall set that is colinear with the first wall when the number of point sets included in the point set set is a preset number.
[0082] Optionally, the second determination module includes: a ninth determination module, configured to determine that the first wall is an inner wall when it is determined that there is a target wall in the second wall set that is colinear with the first wall.
[0083] Optionally, the third determination module includes: a tenth determination module, used to determine that there is no target wall in the second wall set that is colinear with the first wall when the number of point sets included in the point set set is less than a preset number.
[0084] Optionally, the second determination module includes: an eleventh determination module, configured to determine that the first wall is an exterior wall when it is determined that there is no target wall in the second wall set that is colinear with the first wall.
[0085] Optionally, the wall type determination device further includes: an identification module, which is used to identify the first wall according to the wall type of the first wall after determining the wall type of the first wall according to the judgment result, and display the identified first wall.
[0086] Optionally, the wall type determination device further includes: a twelfth determination module and a generation module. The twelfth determination module is used to determine the wall type corresponding to the wall type of the first wall after determining the wall type of the first wall according to the judgment result; the generation module is used to generate a building model according to the first wall model.
[0087] Example 3
[0088] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the method for determining the wall type in the above-mentioned embodiment 1 when running.
[0089] Example 4
[0090] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program is configured to execute the method for determining the wall type in the above-mentioned embodiment 1 when running.
[0091] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0092] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0094] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0095] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0096] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0097] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for determining a wall type, characterized in that: include: Acquire a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area; Determine whether there is a second wall in the second wall set that is collinear with the first wall according to the first coordinate point set and the second coordinate point set, and obtain a determination result; determining the wall type of the first wall according to the judgment result; Wherein, determining whether there is a second wall in the second wall set that is collinear with the first wall according to the first coordinate point set and the second coordinate point set to obtain a judgment result includes: Acquire first starting point coordinates and first end point coordinates of the first wall, wherein the first coordinate point set includes the first starting point coordinates and the first end point coordinates; Acquire second starting point coordinates and second ending point coordinates of a second wall in the second wall set, wherein the second coordinate point set includes the second starting point coordinates and the second ending point coordinates; Obtaining a point set between the first wall and the second wall according to the first starting point coordinates, the first ending point coordinates, the second starting point coordinates, and the second ending point coordinates, wherein the point set includes a point set where the first wall and the second wall overlap; Determine whether the first wall and the second wall are collinear according to the point set to obtain the judgment result; The step of obtaining a point set between the first wall and the second wall according to the first starting point coordinates, the first ending point coordinates, the second starting point coordinates, and the second ending point coordinates includes: Determine a first positional relationship between the first starting point coordinates and the second wall to obtain a first point set; Determine a second positional relationship between the first end point coordinates and the second wall to obtain a second point set; Determine a third positional relationship between the second starting point coordinates and the first wall to obtain a third point set; Determine a fourth positional relationship between the second end point coordinates and the first wall to obtain a fourth point set; The point set set is obtained according to the first point set, the second point set, the third point set and the fourth point set.
2. The method according to claim 1, characterized in that The determining a first positional relationship between the first starting point coordinates and the second wall to obtain a first point set includes: Determine that the first starting point coordinates are located in the second wall in any of the following ways: The first starting point coordinates coincide with the second starting point coordinates; The first starting point coordinates are between the second starting point coordinates and the second end point coordinates; The first starting point coordinates coincide with the second end point coordinates.
3. The method according to claim 1, characterized in that The determining a second positional relationship between the first end point coordinates and the second wall to obtain a second point set includes: Determine that the first end point coordinates are located in the second wall in any of the following ways: The first end point coordinates coincide with the second start point coordinates; The first end point coordinates are located between the second start point coordinates and the second end point coordinates; The first end point coordinates coincide with the second end point coordinates.
4. The method according to claim 1, characterized in that: The determining a third positional relationship between the second starting point coordinates and the first wall to obtain a third point set includes: Detecting whether the second starting point coordinates are between the first starting point coordinates and the first end point coordinates; In the case where the second starting point coordinates are between the first starting point coordinates and the first end point coordinates, the third point set is obtained.
5. The method according to claim 1, characterized in that The determining a fourth positional relationship between the second end point coordinates and the first wall to obtain a fourth point set includes: Detecting whether the second end point coordinates are between the first starting point coordinates and the first end point coordinates; In the case where the second end point coordinates are between the first starting point coordinates and the first end point coordinates, the fourth point set is obtained.
6. The method according to claim 1, characterized in that The determining, based on the point set, whether the first wall and the second wall are collinear to obtain the judgment result includes: When the number of point sets included in the point set set is a preset number, it is determined that there is a target wall in the second wall set that is colinear with the first wall.
7. The method according to claim 6, characterized in that The determining the wall type of the first wall according to the judgment result includes: When it is determined that there is a target wall in the second wall set that is colinear with the first wall, the first wall is determined to be an inner wall.
8. The method according to claim 1, characterized in that The determining, based on the point set, whether the first wall and the second wall are collinear to obtain the judgment result includes: When the number of point sets included in the point set set is less than a preset number, it is determined that there is no target wall in the second wall set that is colinear with the first wall.
9. The method according to claim 8, characterized in that The determining the wall type of the first wall according to the judgment result includes: When it is determined that there is no target wall in the second wall set that is colinear with the first wall, the first wall is determined to be an external wall.
10. The method according to claim 1, characterized in that After determining the wall type of the first wall according to the judgment result, the method further includes: The first wall is identified according to the wall type of the first wall, and the identified first wall is displayed.
11. The method according to claim 1, characterized in that: After determining the wall type of the first wall according to the judgment result, the method further includes: Determine a wall model corresponding to the wall type of the first wall; A building model is generated according to the first wall model.
12. A device for determining a wall type, characterized in that: include: An acquisition module, used to acquire a first coordinate point set of a first wall and a second coordinate point set of a second wall set constituting a preset area; A first determination module, configured to determine whether there is a second wall in the second wall set that is collinear with the first wall according to the first coordinate point set and the second coordinate point set, and obtain a determination result; A second determination module, configured to determine the wall type of the first wall according to the determination result; Wherein, the first determining module includes: A first acquisition module, configured to acquire first starting point coordinates and first end point coordinates of the first wall, wherein the first coordinate point set includes the first starting point coordinates and the first end point coordinates; A second acquisition module, configured to acquire second starting point coordinates and second end point coordinates of a second wall in the second wall set, wherein the second coordinate point set includes the second starting point coordinates and the second end point coordinates; A first processing module, configured to obtain a point set between the first wall and the second wall according to the first starting point coordinates, the first ending point coordinates, the second starting point coordinates, and the second ending point coordinates, wherein the point set includes a point set where the first wall and the second wall overlap; A third determination module, configured to determine whether the first wall and the second wall are collinear according to the point set, to obtain the determination result; Wherein, the first processing module includes: a fourth determining module, configured to determine a first positional relationship between the first starting point coordinates and the second wall to obtain a first point set; a fifth determining module, configured to determine a second positional relationship between the first end point coordinates and the second wall to obtain a second point set; a sixth determining module, configured to determine a third positional relationship between the second starting point coordinates and the first wall to obtain a third point set; a seventh determination module, configured to determine a fourth positional relationship between the second end point coordinates and the first wall to obtain a fourth point set; The second processing module is used to obtain the point set set according to the first point set, the second point set, the third point set and the fourth point set.
13. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the method for determining the wall type described in any one of claims 1 to 11 when running.
14. A processor, characterized in that: The processor is used to run a program, wherein the program is configured to execute the method for determining the wall type described in any one of claims 1 to 11 when running.
