Architectural design drawing aided design method and device, electronic equipment and storage medium
By obtaining location information in architectural design drawings, dividing avoidance areas and dynamically identifying the shortest connections of adjacent buildings, the problem of low efficiency in measuring building spacing in the existing technology is solved, and a more efficient and intelligent forced rowing process is achieved.
Patent Information
- Application Number
- CN202310263868.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
In architectural design, the existing technology has a low degree of intelligence, which results in designers needing to manually measure whether building spacing meets spacing specifications during the forced alignment process, which is inefficient.
By obtaining the location information in the architectural design drawing, the avoidance areas are divided and marked, adjacent buildings are dynamically determined, and the shortest connections are viewed in real time, so that designers can intuitively judge whether the spacing meets the specifications when moving buildings, and improve the efficiency of forced drainage.
It improves the efficiency and intelligence of the forced arrangement of architectural design drawings, reduces the need for manual measurement and adjustment, and enhances the automation and accuracy of the design process.
Smart Images

Figure CN118673548A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural engineering design, and in particular to an auxiliary design method, electronic equipment, device and storage medium for architectural design drawings. Background Art
[0002] In the field of architectural design, forced arrangement refers to arranging the buildings in the architectural design drawings according to the highest profit intensity. It is one of the processes in real estate investment research and judgment. Its main purpose is to calculate the project cost and profit margin and find the combination of building formats that maximizes after-tax profits. Therefore, in the process of forced arrangement, the buildings in the architectural design drawings are usually moved and arranged to achieve the highest profit intensity. In the process of moving and arranging the buildings, the distance between the buildings needs to meet the spacing specifications. The so-called spacing specifications refer to controlling the shortest forward or lateral distance between buildings in order to meet the needs of fire protection, sight, sunlight, etc., and the distance cannot be too close.
[0003] At present, when forced arrangement of architectural design drawings is carried out, the intelligence level of drawing software is low, so after moving the buildings, designers need to manually measure whether the distance between each building meets the distance specifications. The intelligence level is not high and the efficiency of forced arrangement is low. Summary of the invention
[0004] In view of this, the implementation method of the present invention provides an auxiliary design method, an auxiliary design device, an electronic device and a computer-readable storage medium for a building design drawing, which can improve the efficiency of forced exhaust.
[0005] In one aspect, the present invention provides an auxiliary design method for architectural design drawings, the method comprising:
[0006] Obtaining location information of each building in the architectural design drawing;
[0007] In response to the selection instruction, taking the target building selected in the building design drawing as the building to be moved;
[0008] Based on the acquired location information, dividing an avoidance area around at least part of the buildings, wherein the at least part of the buildings include other buildings other than the target building, and the avoidance area represents an area outside each building that needs to be avoided by other buildings; and
[0009] The avoidance area is marked to provide a prompt for the area that needs to be avoided when moving the target building.
[0010] In the technical solutions of some embodiments of the present application, when there is a target building to be moved in the architectural design drawing, the avoidance areas of at least part of the buildings in the architectural design drawing are marked, so that during the process of moving the target building, the designer can intuitively judge whether the distance between the target building and other buildings meets the specifications based on the marked area. There is no need to perform manual measurement and adjustment after completing the movement of the target building. It has a high degree of intelligence and can improve the efficiency of forced arrangement of the architectural design drawing.
[0011] In some embodiments, when the movement of the target building is completed, the method further includes:
[0012] Based on the new position to which the target building is moved, the avoidance areas of each building in the building design drawing are re-divided and marked.
[0013] This allows the designer to check whether other buildings fall within the avoidance zone of the target building, further enhancing drainage efficiency.
[0014] In some embodiments, during the movement of the target building, the method further includes:
[0015] Dynamically determine adjacent buildings in the building design drawing according to the position change of the target building;
[0016] The shortest connection line between the adjacent buildings is identified.
[0017] In this way, during the movement of the target building, as the position of the target building changes, the shortest connection line between adjacent buildings can be viewed in real time to determine whether the shortest connection line between adjacent buildings meets the requirements of the specifications, further improving the intelligence and efficiency of forced drainage.
[0018] In some embodiments, determining the adjacent buildings in the building design drawing includes:
[0019] For any two buildings in the architectural design drawing, determining the bottom contours of the two buildings according to the position information of the two buildings;
[0020] In the case where the center line connecting the two bottom contours does not exceed the first length threshold, if the shortest line between the two bottom contours does not exceed the second length threshold, it is determined that the two buildings are adjacent buildings.
[0021] In this way, buildings that are far away can be excluded, thereby reducing the amount of calculation when determining the shortest line of the bottom contour.
[0022] In some embodiments, the architectural design drawing includes a coordinate axis, and when the shortest line between the two bottom contours exceeds the second length threshold but does not exceed the third length threshold, determining the adjacent buildings in the architectural design drawing includes:
[0023] If the angle between the shortest line between the two bottom contours and the coordinate axis is smaller than a preset angle, it is determined that the two buildings are adjacent buildings.
[0024] In this way, when the shortest line between two bottom contours exceeds the second length threshold, adjacent buildings can be further screened out, thereby improving the screening accuracy.
[0025] In some embodiments, when the included angle is not less than the preset angle, determining the adjacent buildings in the building design drawing includes:
[0026] If the shortest connecting line between the two bottom contours does not intersect the bottom contours of other buildings, it is determined that the two buildings are adjacent buildings.
[0027] By determining whether the shortest link intersects with the bottom contours of other buildings, buildings that do not meet the adjacent requirements can be further excluded, thereby improving the detection accuracy of adjacent buildings.
[0028] In some embodiments, determining the avoidance area of at least part of the building in the building design drawing includes:
[0029] Dividing the architectural design drawing into a plurality of grids;
[0030] Extending outward from the bottom outline of each building, the grids that meet the preset conditions are determined as the avoidance areas of the corresponding buildings.
[0031] In this way, the avoidance areas of each building in the architectural design can be represented by the grids included in these areas, which facilitates machine calculation.
[0032] In some embodiments, the avoidance area includes a sunlight avoidance area, and extending outward from the bottom outline of each building to determine the grids that meet the preset conditions as the avoidance area of the corresponding building includes:
[0033] Determine the sunshine duration of each grid based on the location information of each building in the architectural design drawing;
[0034] Extending outward from the bottom outline of each building, the grids where the sunshine duration is less than the preset duration are determined as the sunshine avoidance area of the corresponding building.
[0035] Determining the sunshine duration in grid units can reflect the difference in sunshine duration at different locations around the building, thereby making the determined sunshine avoidance area more accurate.
[0036] In some embodiments, the step of identifying the avoidance area comprises:
[0037] Marking the grids in the avoidance area and the grids in the non-avoidance area by different marking methods; and / or
[0038] When each building includes a plurality of different types of avoidance areas, the different types of avoidance areas are marked in different ways.
[0039] In this way, it is convenient for designers to distinguish the avoidance areas and non-avoidance areas of each building through marking, or to distinguish different avoidance areas, which is more intuitive.
[0040] In some embodiments, when each building includes a plurality of avoidance areas of different types, the step of identifying the avoidance areas includes:
[0041] Displays a list of avoidance zone types;
[0042] In response to the area selection instruction, determining the type of the object selected from the list;
[0043] An avoidance zone for the target type is identified.
[0044] Displaying a list of avoidance area types and marking the avoidance areas of the selected target type allows designers to select avoidance areas that need to be marked according to actual needs. The area marking method is more flexible and more applicable.
[0045] Another aspect of the present invention further provides an auxiliary design device for architectural design drawings, the device comprising:
[0046] An information acquisition module, used to acquire the location information of each building in the building design drawing;
[0047] An instruction response module, for responding to a selection instruction and taking the target building selected in the building design drawing as the building to be moved;
[0048] an area division module, configured to divide an avoidance area around at least part of the buildings based on the acquired location information, wherein the at least part of the buildings include other buildings other than the target building, and the avoidance area represents an area outside each building that needs to be avoided by other buildings; and
[0049] The identification module is used to identify the avoidance area to prompt the area that needs to be avoided when moving the target building.
[0050] Another aspect of the present invention provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.
[0051] Another aspect of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0053] Figure 1 A schematic diagram showing a flow chart of an auxiliary design method for architectural design drawings provided by an embodiment of the present application is shown;
[0054] Figure 2 A schematic diagram of a building design provided by an embodiment of the present application is shown;
[0055] Figure 3 Shows Figure 2 A local schematic diagram of the architectural design drawing after meshing;
[0056] Figure 4 A schematic diagram of a building design provided by another embodiment of the present application is shown;
[0057] Figure 5 A schematic diagram of a building design provided by another embodiment of the present application is shown;
[0058] Figure 6 A schematic diagram showing the shortest connection line between adjacent buildings provided by an embodiment of the present application is shown;
[0059] Figure 7 A schematic diagram showing the locations of a target building and other buildings provided by an embodiment of the present application is shown;
[0060] Figure 8 A schematic diagram of a target building provided by an embodiment of the present application before being moved is shown;
[0061] Fig. 9 Shows Figure 8 Schematic diagram of the target building in the process of being moved;
[0062] Fig.10 Shows Figure 8 and Fig. 9 Schematic diagram of the target building after being moved;
[0063] Fig.11 A schematic diagram of the structure of a mapping system provided by an embodiment of the present application is shown;
[0064] Fig.12 A schematic diagram showing a flow chart of a drawing system provided by an embodiment of the present application executing an auxiliary design method;
[0065] Fig.13 A schematic diagram of a module of an electronic device provided by an embodiment of the present application is shown;
[0066] Fig.14 A schematic diagram of an auxiliary design device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical scheme and advantages of the implementation method of the present invention clearer, the technical scheme in the implementation method of the present invention will be clearly and completely described below in conjunction with the drawings in the implementation method of the present invention. Obviously, the implementation method described is a part of the implementation method of the present invention, not all the implementation methods. Based on the implementation method of the present invention, all other implementation methods obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0068] See also Figure 1 , which is a flow chart of an auxiliary design method for architectural design drawings provided by an embodiment of the present application. The auxiliary design method can be applied to industrial drawing software, or electronic equipment running the industrial drawing software, or a drawing system (see Fig.11 ). Figure 1 In the present invention, the auxiliary design method may include the following steps:
[0069] Step S11, obtaining the location information of each building in the architectural design drawing.
[0070] Please refer to Figure 2 , is a schematic diagram of a building design drawing provided by an embodiment of the present application. In some embodiments, the building design drawing may include coordinate axes X-axis and Y-axis. The X-axis may be horizontal to the right, and the Y-axis may be vertically upward. The location information of the building may be coordinate information determined based on the X-axis and the Y-axis. Specifically, the location information of the building may include coordinate information of each contour edge at the bottom of the building, and the center coordinates of the area where the contour of the bottom of the building is located.
[0071] Step S12, in response to the selection instruction, taking the target building selected in the building design drawing as the building to be moved.
[0072] In this embodiment, when the designer selects a target building in the architectural design drawing by using the mouse, a selection instruction is triggered to be generated. The selected target building is the building to be moved.
[0073] The present application does not limit the method of triggering the generation of the selection instruction. For example, in some other embodiments, the building in the architectural design drawing may have a building number, and at the same time, the building number input area may be displayed to the designer in the architectural design drawing. The designer may enter the building number of the target building in the input area and then click a button such as "OK" to trigger the generation of the selection instruction.
[0074] Step S13, based on the acquired position information, divide an avoidance area around at least part of the buildings, wherein at least part of the buildings include other buildings other than the target building, and the avoidance area represents the area outside each building that needs to be avoided by other buildings.
[0075] Specifically, based on the acquired location information, the location of each building in the architectural design drawing can be determined, and then around the location of each building, the avoidance area of the corresponding building can be divided.
[0076] In some embodiments, the avoidance area can be pre-set based on the building spacing specifications formulated by the country or region. For example, based on the fire spacing specifications, the area within 5 meters around each building can be used as the avoidance area. No other buildings shall be set in the avoidance area of each building. For another example, based on the sunshine spacing specifications, the area around each building with less than 2 hours of sunshine can be used as the avoidance area.
[0077] It is understandable that, based on different spacing specifications, each building may include multiple different types of avoidance areas. For example, based on the fire protection spacing specification and the sunlight spacing specification, two types of avoidance areas may be determined for each building, and the area sizes corresponding to the two types of avoidance areas may be different.
[0078] For example, Figure 2 Take Building 9 in the example. The area bounded by the dotted line frame around Building 9 can represent the avoidance area determined based on the spacing specifications between buildings, and the area bounded by the solid line frame can represent the avoidance area determined based on the fire separation specifications. It can be seen from the avoidance area shown in Building 9 that different types of avoidance areas can have overlapping areas. Figure 2 In the example, assuming that Building 5 is the target building to be moved, when moving Building 5, Building 5 must not be moved into the avoidance area of Building 9. This is to prevent the spacing between Building 5 and Building 9 from not meeting the spacing specification.
[0079] In some embodiments, when determining the avoidance area of at least part of the building in the architectural design drawing, the following situations may be included:
[0080] 1) Determine the avoidance areas of all buildings in the architectural design. Figure 2In the case where Building 5 is selected, the avoidance areas of all buildings including Building 5 can be determined based on the current locations of the buildings.
[0081] 2) Determine the avoidance area of other buildings around the target building. Specifically, buildings whose distance from the target building does not exceed the distance threshold can be determined as other buildings around the target building, and the avoidance area of these buildings is determined. Figure 2 In the case where Building 5 is selected, assuming that the distance between Building 5 and Building 3, Building 4, Building 9, and Building 11 does not exceed the threshold, then the avoidance areas of Building 3, Building 4, Building 9, and Building 11 are determined.
[0082] 3) According to the target position to be moved to, the avoidance area of other buildings around the target position is determined. Specifically, the target position can be specified by the designer in the architectural design drawing. For example, the designer can specify a position in the design drawing as the target position by using the mouse. Based on the target position, the buildings whose distance from the target position does not exceed the threshold can be determined as other buildings around the target position, and the avoidance areas of these buildings are determined. For example Figure 2 In the example, assuming that Building 5 needs to be moved to position A, position A can be used as the target position. At the same time, assuming that the distance between Building 5 and Building 6, Building 7, Building 8, and Building 9 does not exceed the threshold, the avoidance areas of Building 6, Building 7, Building 8, and Building 9 are determined.
[0083] The above three situations can be selected according to actual needs. For example, if it is not necessary to determine the avoidance area at a faster speed, then the avoidance area of the building can be determined according to the above method 1) to obtain the global avoidance area of the building design. However, if it is necessary to determine the avoidance area at a faster speed, the avoidance area of the building can be determined according to the above method 2) or 3) to reduce the amount of data processing and obtain the local avoidance area of the building design.
[0084] The following details how to determine the avoidance area for each building.
[0085] In this embodiment, the architectural design drawing may be divided into a plurality of grids, and extending outward from the bottom outline of each building, the grids that meet the preset conditions are determined as the avoidance areas of the corresponding buildings.
[0086] Specifically, the architectural design drawing can be divided into multiple grids of a specified size (for example, a 1m*1m grid). Extending outward from the bottom outline of the building, the grids that meet the preset conditions are determined as avoidance areas. The preset conditions can be set based on building spacing specifications. For example, based on the fire spacing specification, the distance between two adjacent buildings is required to be greater than 5 meters, then the preset condition can be set to: the distance between the grid and the bottom outline is less than or equal to 5 meters. It is understandable that different preset conditions can be obtained based on different building spacing specifications.
[0087] For easier understanding, see Figure 3 ,for Figure 2 A partial schematic diagram of the architectural design drawing after grid division. Figure 3 In the example, assuming that the distance between the shadow grid around Building 5 and the bottom contour meets the preset conditions, the shadow grid can be determined as the avoidance area of Building 5.
[0088] In some embodiments, when the avoidance area is divided based on the grid, the grid can be divided into irregular and non-continuous avoidance areas according to the bottom contour shape of each building by using triangulation processing. The avoidance areas of each building can be represented by the grids included in these areas. In this way, it is convenient to perform machine calculations. Specifically, each grid can have a corresponding coordinate position in the architectural design drawing. The grids included in each area can form a grid matrix. Each grid matrix includes the coordinate positions corresponding to the grids in the corresponding area. In this way, different avoidance areas in the architectural design drawing can be represented by the grid matrix.
[0089] In some embodiments, when dividing the avoidance areas of a building, the avoidance areas may be divided into two categories: sunlight avoidance areas and non-sunlight avoidance areas. Each type of avoidance area may be divided in a corresponding manner.
[0090] The following is an explanation of the distinction between sunlight avoidance areas and non-sunlight avoidance areas.
[0091] The sunlight avoidance area can be divided into the first sunlight avoidance area and the second sunlight avoidance area. The first sunlight avoidance area refers to the area around a building that other buildings need to avoid in order to ensure that other buildings have the specified sunlight hours. For example, please refer to Figure 4 , is a schematic diagram of a building design drawing provided for another embodiment of the present application. Figure 4In the example, assuming that the sunshine duration in area 1 of Building 5 is less than 2 hours a day, then area 1 can be called the sunshine avoidance area of Building 5. When moving Building 3 as the target building, Building 3 cannot be moved to area 1 of Building 5 to avoid the sunshine duration of Building 3 not meeting the sunshine regulations (i.e., the sunshine duration of Building 3 is less than 2 hours a day). The second sunshine avoidance area refers to the area around a building that needs to be avoided by other buildings in order to ensure the minimum sunshine duration around the building. For example Figure 4 In order to ensure that the sunshine duration of Building 9 can reach at least 2 hours a day, other buildings cannot be set up in Area 2 of Building 9 to prevent the sunshine duration of Building 9 from not meeting the standards. For example, when moving Building 3 as the target building, Building 3 cannot be moved to Area 2 of Building 9 to prevent the sunshine duration around Building 9 from not meeting the sunshine standards.
[0092] The non-sunlight avoidance area refers to at least a portion of the avoidance area other than the sunlight avoidance area, such as the avoidance area required around the building to meet fire protection regulations.
[0093] The following explains how to divide sunlight avoidance areas and non-sunlight avoidance areas.
[0094] Usually, for non-sunlight avoidance areas, the corresponding avoidance areas can be determined by extending the corresponding distance from the bottom outline of the building according to the preset conditions corresponding to the specifications. However, for the sunlight avoidance area, since the sunshine duration of each grid around the building is unknown, when determining the sunlight avoidance area of the building, the sunshine duration of each grid can be determined based on the location information of each building in the architectural design drawing, and the grid with a sunshine duration less than the preset duration can be extended outward from the bottom outline of each building. The grid is determined as the sunlight avoidance area of the corresponding building. It can be understood that due to the influence of the building height, shape, etc., the sunshine duration corresponding to the grids at different positions around the building may be different. For example, the location closer to the building is usually shorter due to the influence of the building's shadow; while the location farther away from the building has a relatively long sunshine duration. The present application determines the sunshine duration in units of grids, which can reflect the difference in sunshine duration at different locations around the building, and thus make the determined sunshine avoidance area more accurate.
[0095] In this embodiment, a technique well known to those skilled in the art (such as the centerline method) can be used to detect the grids in the shadow area around the building at preset time intervals (such as every 15 minutes) during the day. The grids detected in each time period can form a shadow matrix. The shadow matrix is used to characterize the grids in the shadow area around the building during the corresponding time period. By combining the shadow matrices of multiple time periods, the shadow duration of each grid in a day can be determined. For example, assuming that grid A exists in the shadow matrices of the two time periods of 0 to 15 minutes and 15 to 30 minutes, and grid A does not exist in the shadow matrices of other time periods, then the shadow duration of grid A in a day is 30 minutes. Subtract the shadow duration of grid A from the length of a day (referring to the daytime length, i.e., 12 hours) to obtain the sunshine duration of grid A.
[0096] In some embodiments, it is considered that the sunshine time of the same grid may be affected by different buildings, such as Figure 2 For the grid at position B, the grid is located between Building 8 and Building 9. Based on the location of Building 8, the sunshine time of the grid is 8:00-10:30, 14:00-16:00. Based on the location of Building 9, the sunshine time of the grid is 9:00-11:00, 15:00-16:30. In this case, the sunshine time of multiple buildings in the grid can be intersected, and the sunshine duration of the grid can be obtained based on the sunshine time after the intersection. For example, for the grid at position B above, the sunshine time after the intersection is 9:00-10:30, 15:00-16:00, then the corresponding sunshine duration is 2 hours and 30 minutes. The sunshine duration obtained in this way is the sunshine duration under the comprehensive influence of different buildings on the same grid, and it has a higher accuracy.
[0097] In this way, based on the sunshine duration of each grid, we can extend outward from the bottom outline of the building and determine the grids that do not meet the preset sunshine duration (for example, 2 hours) as the sunshine avoidance area of the building.
[0098] In summary, the avoidance area of at least part of the building can be determined in the building design drawing.
[0099] Step S14, marking the avoidance area to prompt the area that needs to be avoided when moving the target building.
[0100] In some embodiments, after the avoidance areas of each building are divided in step S13, the avoidance areas can be marked in the building design drawing. Specifically, the grids in the avoidance area and the grids in the non-avoidance area can be marked by different marking methods. In this way, it is convenient for designers to distinguish the avoidance areas and non-avoidance areas of each building by marking methods, which is more intuitive. When each building includes multiple different types of avoidance areas, different types of avoidance areas are marked by different marking methods. In this way, it is convenient for designers to distinguish different types of avoidance areas by marking methods, which is more intuitive. Among them, if there are overlapping areas of different types of avoidance areas, then the overlapping areas can be the superposition of different marking methods.
[0101] In this embodiment, the identification method includes color rendering. That is, the grids in the avoidance area and the grids in the non-avoidance area are marked with different colors. In this way, it is convenient for designers to distinguish the avoidance area and non-avoidance area of each building by color, which is more intuitive. Or when each building includes multiple different types of avoidance areas, different types of avoidance areas can also be marked with different colors. In this way, it is convenient for designers to distinguish different types of avoidance areas based on color, which is more intuitive. Among them, if there are overlapping areas of different types of avoidance areas, then the overlapping areas can be superimposed with different colors. For example Figure 2 In the avoidance area of Building 9, there are multiple overlapping areas with different color depths. These overlapping areas are the overlapping areas corresponding to different types of avoidance areas.
[0102] It is understandable that the identification method includes but is not limited to the above-mentioned color rendering. This application does not limit the identification method. For example, the identification method can also be to add different symbols to the grids of different areas for identification. For example, a black circle is added to the grid of the avoidance area for identification, and a triangle is added to the grid of the non-avoidance area for identification.
[0103] In some embodiments, when each building includes a plurality of avoidance areas of different types, identifying the avoidance areas may further include:
[0104] Displays a list of avoidance zone types;
[0105] In response to the region selection instruction, determining the type of the target selected from the list;
[0106] Identifies the avoidance area for the target type.
[0107] For easier understanding, see Figure 5 , is a schematic diagram of a building design drawing provided for another embodiment of the present application. Figure 5In the example, two avoidance area type lists are shown above the architectural design drawing. The designer can select a type from the displayed type list. Based on the designer's selection, the avoidance area of the target type can be marked in the architectural design drawing. For example Figure 5 In the example, assuming that the designer has selected a sunlight avoidance area, only the sunlight avoidance area can be marked in the architectural design drawing. Of course, the designer can also select both types of avoidance areas shown in the figure at the same time. Based on the designer's selection, the two types of avoidance areas can be marked with different colors in the architectural design drawing. Displaying a list of avoidance area types and marking the avoidance areas of the target type allows designers to select the avoidance areas that need to be marked according to actual needs. The area marking method is more flexible and more applicable.
[0108] To sum up, in the technical solutions of some embodiments of the present application, when there is a target building to be moved in the architectural design drawing, the avoidance areas of at least part of the buildings in the architectural design drawing are marked, so that during the process of moving the target building, the designer can intuitively judge whether the distance between the target building and other buildings meets the specifications based on the marked area. There is no need to perform manual measurement and adjustment after completing the movement of the target building. It has a high degree of intelligence and can improve the efficiency of forced arrangement of the architectural design drawing.
[0109] The solution of this application is further described below.
[0110] In some embodiments, during the movement of the target building, the adjacent buildings in the building design diagram can be dynamically determined according to the position change of the target building, and the shortest connection line between the adjacent buildings can be identified. Figure 6 , is a schematic diagram of the shortest connection line between adjacent buildings provided by an embodiment of the present application. Figure 6 For example, adjacent buildings may refer to two buildings that are not separated by other buildings and whose shortest connection line meets the preset conditions. The shortest connection line between adjacent buildings may be the shortest connection line between the bottom contours of adjacent buildings. In this way, during the movement of the target building, as the position of the target building changes, the shortest connection line of the adjacent buildings can be viewed in real time to determine whether the shortest connection line between the adjacent buildings meets the regulatory requirements, thereby further improving the intelligence and efficiency of forced drainage.
[0111] In some embodiments, determining adjacent buildings in the building design drawing includes:
[0112] For any two buildings in the architectural design drawing, determine the bottom contours of the two buildings according to the location information of the two buildings;
[0113] When the center line connecting the two bottom contours does not exceed the first length threshold, if the shortest line connecting the two bottom contours does not exceed the second length threshold, the two buildings are determined to be adjacent buildings. The first length threshold is greater than the second length threshold.
[0114] Specifically, considering that in most cases, the bottom contour of a building is not a regular geometric shape, the coordinates of the center point of the bottom contour in the architectural design drawing, i.e., the center coordinates, can be obtained based on the location information of the two buildings and based on conventional technical means such as the centroid method. Subtracting the center coordinates of the two bottom contours, the center distance between the two bottom contours, i.e., the length of the center line, can be obtained. When the center line distance of the two bottom contours does not exceed the first length threshold, the contour edge coordinates of each bottom contour are respectively formed into a cross tree, and the cross tree is searched to obtain the shortest line between the two bottom contours. It should be noted that the cross tree is a technology that should be familiar to those skilled in the art, and this application will not go into details here.
[0115] In this embodiment, the first length threshold is 150 meters, and the second length threshold is 40 meters. The initial screening is performed according to the length of the center line of the two bottom contours, and the bottom contours whose distance exceeds the first length threshold are excluded. In this way, buildings that are far away can be excluded, thereby reducing the amount of calculation when determining the shortest line of the bottom contour.
[0116] In some embodiments, when the shortest line between the two bottom contours exceeds the second length threshold but does not exceed the third length threshold, determining adjacent buildings in the building design drawing includes:
[0117] If the angle between the shortest line between the two bottom contours and the coordinate axis is less than a preset angle, the two buildings are determined to be adjacent buildings. The third length threshold may be greater than the second length threshold but less than the first length threshold.
[0118] Specifically, when the angle between the shortest line and any one of the coordinate axes is less than a preset angle, it can be determined that the angle between the shortest line and the coordinate axis is less than the preset angle. Normally, if the angle between the shortest line and the coordinate axis is less than the preset angle, it can be determined that the two buildings are located in the same row or column in the architectural design drawing. Figure 4 In the example, Building 3 and Building 5 are two buildings located in the same row, and the angle between the shortest line of the two buildings and the coordinate axis should be small. For such buildings located in the same row or column, and the length of the shortest line is greater than the second length threshold but less than the third length threshold, the two buildings can be determined to be adjacent buildings. In this way, when the shortest line between the two bottom contours exceeds the second length threshold, the adjacent buildings can be further screened out to improve the screening accuracy.
[0119] In this embodiment, the third length threshold is 100 meters, and the preset angle is 3 degrees.
[0120] In some embodiments, when the included angle is not less than a preset angle, determining adjacent buildings in the building design drawing includes:
[0121] If the shortest line between two bottom contours does not intersect with the bottom contours of other buildings, the two buildings are determined to be adjacent buildings.
[0122] Specifically, when the angle between the shortest connecting line and the coordinate axis is not less than a preset angle, it can usually be indicated that the two buildings are not located in the same row or column in the architectural design drawing. Fig.10 Building 5 and Building 3. In this case, it is necessary to determine whether there are other buildings between the two buildings. Fig.10 For Building 9 and Building 4, there is Building 5 between them, so Building 9 and Building 4 can be considered as non-adjacent buildings. Therefore, when the angle between the shortest line and the coordinate axis is not less than the preset angle, by determining whether the shortest line intersects with the bottom contours of other buildings, buildings that do not meet the adjacent requirements can be further excluded, thereby improving the detection accuracy of adjacent buildings.
[0123] In summary, during the movement of the target building, the adjacent buildings in the architectural design drawing can be identified in real time and the shortest connection line between the adjacent buildings can be marked with high accuracy.
[0124] In some embodiments, when the target building is moved, the avoidance areas of each building in the building design drawing may be re-divided and marked based on the new location to which the target building is moved.
[0125] Specifically, from the above description, it can be seen that during the movement of the target building, by marking the avoidance area of other buildings, the target building can be prevented from being moved into the avoidance area of other buildings. However, this does not prevent other buildings from falling into the avoidance area of the target building. For example, see Figure 7 , which is a schematic diagram of the locations of a target building and other buildings provided in one embodiment of the present application. Figure 7 In the figure, it is assumed that the black circle A represents the target building, and the dotted box area represents the avoidance area of the target building. The black circle B represents other buildings, and the solid box area represents the avoidance area of other buildings. Figure 7It can be seen that although the target building does not fall into the avoidance area of other buildings, other buildings fall into the avoidance area of the target building. In this case, the interval between the target building and other buildings is still non-compliant. Therefore, in this application, when the target building is moved, based on the new positional relationship between the buildings, the avoidance areas of each building in the architectural design drawing are re-divided and marked, so that the designer can check whether other buildings fall into the avoidance area of the target building, further enhancing the efficiency.
[0126] In some embodiments, when re-determining and marking the avoidance areas of each building in the architectural design drawing, the avoidance areas of other buildings except the target building may be consistent with the avoidance areas determined in step S13. However, for the target building, since the position of the target building has changed, it is necessary to re-determine the avoidance area of the target building.
[0127] Specifically, if the avoidance area of the target building has been determined at the initial position before the target building is moved, then after the target building is moved to the target position, at least part of the avoidance area of the target building at the initial position can be moved to the target position. The at least part of the avoidance area can include a sunlight avoidance area. In this way, when the avoidance area of the target building is re-determined after the target building is moved, the amount of calculation can be reduced. For ease of understanding, please refer to Figure 8 , Fig. 9 and Fig.10 . Figure 8 A schematic diagram of a target building before being moved provided in one embodiment of the present application. Fig. 9 for Figure 8 Schematic diagram of the target building in the process of being moved. Fig.10 for Figure 8 and Fig. 9 Schematic diagram of the target building after being moved. Figure 8 , Fig. 9 and Fig.10 In the example, it is assumed that the shadow area is the sunlight avoidance area of the target building, and the target building needs to be moved from position A to position B. Then, in the process of moving the target building from position A to position B, the sunlight avoidance area of the target building can still be located at position A (e.g. Fig. 9 After the target building is moved to position B, the sunlight avoidance area can be moved directly from position A to position B (as shown in Fig.10 As shown in FIG. 1 ), the sunlight avoidance area of the target building at position B is obtained. In this way, when determining the sunlight avoidance area of the target building at position B, it is no longer necessary to calculate the grid sunlight duration, etc., thereby achieving the purpose of reducing the amount of calculation.
[0128] The technical solution of this application is explained below in conjunction with a specific embodiment. Fig.11, which is a structural diagram of a mapping system 100 provided in one embodiment of the present application. Figure 1 The auxiliary design method in can be applied to the mapping system 100. Fig.11 In the drawing, the mapping system 100 includes a server 11 and a client 12. The server 11 is in communication connection with the client 12. The client 12 can display the design interface of the architectural design drawing for the designer to create, modify, etc. the architectural design drawing. At the same time, the client 12 can also perform real-time data processing. For example, if the designer moves a building A in the architectural design drawing, the client 12 can calculate the new position of the building A in real time. Of course, the client 12 can also send the data information (such as location information, height information, etc.) of each building in the architectural design drawing to the server 11, and the server 11 performs specific operations based on the acquired data information and returns the operation results to the client 12.
[0129] In some embodiments, client 12 supports the following functions:
[0130] 3D modeling of buildings based on WebGL graphics technology;
[0131] Apply Flyweight Factory mode to share geometry and materials to reduce memory consumption;
[0132] Apply instanced rendering technology to reduce the number of CPU calls to graphics programming interfaces and optimize interactive performance.
[0133] In this embodiment, the client 12 and the server 11 adopt a B / S architecture (i.e., a browser / server architecture). It is understandable that the client 12 and the server 11 may also adopt other network structures, such as a C / S architecture (i.e., a client / server architecture). This application does not limit this.
[0134] See also Fig.12 , which is a flow chart of a drawing system 600 provided in one embodiment of the present application executing an auxiliary design method.
[0135] Step S1, the client performs architectural design modeling in response to the designer's operation. Specifically, the building in the architectural design can be 3D modeled.
[0136] Step S2, the client sends the location data of the building to the server. Specifically, the location data sent by the client to the server may include the coordinate position of each contour edge in the bottom contour of the building in the architectural design drawing. In this way, based on the location data sent by the client, the server can determine the position of each building in the architectural design drawing, and then model the architectural design drawing on the server side.
[0137] In some embodiments, the client may also send information such as the height and floors of the building to the server so that the server can perform corresponding calculations based on these data.
[0138] Step S3: the client selects a target building to be moved in the building design drawing in response to the user's instruction.
[0139] Step S4: The client sends the location data of the target building to the server. Fig.12 In the illustrated embodiment, the server can determine the buildings around the target building based on the location data of the target building, so as to calculate the avoidance area of other buildings around the target building.
[0140] Step S5: The server calculates the avoidance area of the surrounding buildings of the target building based on the location data of the target building. The specific calculation principle can be found in the above description of the auxiliary design method, which will not be repeated here.
[0141] Step S6, the server returns the avoidance area data. Specifically, after determining the avoidance area of each building, the server can form a grid matrix with the grids included in the avoidance area, and return the grid matrix to the client, so that the client can determine the avoidance area of each building based on the grid matrix.
[0142] Step S7, the client identifies the avoidance area. Specifically, the client may identify the avoidance area and the non-avoidance area by different colors, and identify different avoidance areas by different colors, so that the designer can distinguish each area based on color.
[0143] Step S8, the client moves the target building in response to the move instruction, and identifies the shortest connection line between adjacent buildings. Specifically, after the designer selects the target building, he can drag the target building to send the move instruction. The client moves the target building to a new position according to the drag operation of the designer. In addition, during the movement process, according to the change of the position of the target building, the shortest connection line between the target building and the adjacent buildings is dynamically identified in real time to prompt the designer.
[0144] Step S9, the client sends the new location data of the target building to the server. Specifically, after the target building is moved to the new location, the client sends the new location data of the target building to the server so that the server can recalculate the avoidance area based on the new location data of the target building.
[0145] Step S10: The server recalculates the avoidance area based on the new location data of the target building. Specifically, this process is similar to step S5 and will not be described in detail here.
[0146] Step S11, the server returns the avoidance area data to the client. Specifically, this process is similar to step S6 and will not be described here.
[0147] Step S12: The client identifies the avoidance area. Specifically, this process is similar to step S7 and will not be described in detail here.
[0148] exist Fig.12 In the embodiment shown, the shortest connection between adjacent buildings is calculated and identified by the client, so that the real-time calculation of the shortest connection can be realized, so that during the movement of the target building, the shortest connection between the target building and the surrounding buildings can be dynamically updated in real time. At the same time, since the computing resources of the server are usually sufficient, the avoidance area of the building is calculated by the server, which can realize the processing of large data volume and improve the calculation speed of the avoidance area.
[0149] See also Fig.13 , is a schematic diagram of a module of an auxiliary design device for architectural design drawings provided by an embodiment of the present application. The auxiliary design device includes:
[0150] An information acquisition module, used to acquire the location information of each building in the building design drawing;
[0151] An instruction response module, for responding to a selection instruction and taking the target building selected in the building design drawing as the building to be moved;
[0152] an area division module, configured to divide an avoidance area around at least part of the buildings based on the acquired location information, wherein the at least part of the buildings include other buildings other than the target building, and the avoidance area represents an area outside each building that needs to be avoided by other buildings; and
[0153] The identification module is used to identify the avoidance area to prompt the area that needs to be avoided when moving the target building.
[0154] See also Fig.14 , is a schematic diagram of an electronic device provided by an embodiment of the present application. The electronic device includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.
[0155] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0156] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.
[0157] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0158] One embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the above method is implemented.
[0159] Although the implementation method of the present invention has been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. An auxiliary design method for architectural design drawings, characterized in that: The method comprises: Obtaining location information of each building in the architectural design drawing; In response to the selection instruction, taking the target building selected in the building design drawing as the building to be moved; Based on the acquired location information, dividing an avoidance area around at least part of the buildings, wherein the at least part of the buildings include other buildings other than the target building, and the avoidance area represents an area outside each building that needs to be avoided by other buildings; and The avoidance area is marked to provide a prompt for the area that needs to be avoided when moving the target building.
2. The method according to claim 1, characterized in that When the movement of the target building is completed, the method further includes: Based on the new position to which the target building is moved, the avoidance areas of each building in the building design drawing are re-divided and marked.
3. The method according to claim 1, characterized in that During the movement of the target building, the method further includes: Dynamically determine adjacent buildings in the building design drawing according to the position change of the target building; The shortest connection line between the adjacent buildings is identified.
4. The method according to claim 3, characterized in that The determining of adjacent buildings in the architectural design drawing comprises: For any two buildings in the architectural design drawing, determining the bottom contours of the two buildings according to the position information of the two buildings; In the case where the center line connecting the two bottom contours does not exceed the first length threshold, if the shortest line between the two bottom contours does not exceed the second length threshold, it is determined that the two buildings are adjacent buildings.
5. The method according to claim 4, characterized in that The architectural design drawing includes a coordinate axis, and when the shortest line between the two bottom contours exceeds the second length threshold but does not exceed the third length threshold, determining adjacent buildings in the architectural design drawing includes: If the angle between the shortest line between the two bottom contours and the coordinate axis is smaller than a preset angle, it is determined that the two buildings are adjacent buildings.
6. The method according to claim 5, characterized in that When the included angle is not less than the preset angle, determining the adjacent buildings in the architectural design drawing includes: If the shortest connecting line between the two bottom contours does not intersect the bottom contours of other buildings, it is determined that the two buildings are adjacent buildings.
7. The method according to claim 1, characterized in that The step of dividing the avoidance area around at least part of the building comprises: Dividing the architectural design drawing into a plurality of grids; Extending outward from the bottom outline of each building, the grids that meet the preset conditions are determined as the avoidance areas of the corresponding buildings.
8. The method according to claim 7, characterized in that The avoidance area includes a sunlight avoidance area, which extends outward from the bottom outline of each building and determines the grids that meet the preset conditions as the avoidance area of the corresponding building, including: Determine the sunshine duration of each grid based on the location information of each building in the architectural design drawing; Extending outward from the bottom outline of each building, the grids where the sunshine duration is less than the preset duration are determined as the sunshine avoidance area of the corresponding building.
9. The method according to claim 7, characterized in that The step of marking the avoidance area includes: Marking the grids in the avoidance area and the grids in the non-avoidance area by different marking methods; and / or When each building includes a plurality of different types of avoidance areas, the different types of avoidance areas are marked in different ways.
10. The method according to claim 7, characterized in that In the case where each building includes a plurality of different types of avoidance areas, the step of identifying the avoidance areas includes: Displays a list of avoidance zone types; In response to the area selection instruction, determining the type of the object selected from the list; An avoidance zone for the target type is identified.
11. An auxiliary design device for architectural design drawings, characterized in that: The device comprises: An information acquisition module, used to acquire the location information of each building in the building design drawing; An instruction response module, for responding to a selection instruction and taking the target building selected in the building design drawing as the building to be moved; an area division module, configured to divide an avoidance area around at least part of the buildings based on the acquired location information, wherein the at least part of the buildings include other buildings other than the target building, and the avoidance area represents an area outside each building that needs to be avoided by other buildings; and The identification module is used to identify the avoidance area to prompt the area that needs to be avoided when moving the target building.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
13. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 10 is implemented.
