Method and device for generating roof panels of building models
By obtaining structural data of the building model, determining the grid group and enclosure range, and generating the upturning direction and height of the roof panel, the problem of inaccurate roof panel generation in the prior art is solved, and the adaptability of roof panels is improved and Generate accuracy.
Patent Information
- Application Number
- CN202110130476.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-01-29
AI Technical Summary
The existing building model roof panel generation method has poor adaptability to inaccurate roofs, resulting in inaccurate generation and affecting the generation operation of subsequent functions.
By obtaining structural data of the building model, determining the grid group and enclosure range, the upturn direction and upturn height of the roof panel are generated based on the structural data, thereby generating the roof panel.
The accuracy of roof panel generation and adaptability to roof panels for building models are improved, and the problem of poor adaptability of sloped roofs is solved.
Smart Images

Figure CN114818036B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of building models, and in particular to a method and device for generating a roof panel of a building model. Background Art
[0002] There are algorithms on the market that can be used to derive data from structural calculation software and then import it back into the original project. However, the algorithms they use are not very suitable for sloping roofs and are not conducive to the subsequent generation of functions of our company.
[0003] When designers design a building project, they will first conduct a pilot design to complete the rough design of the project. Figure 1 As shown, Figure 1 It is a schematic diagram of a pilot design of a building model based on the existing technology. The pilot design project only contains non-structural components such as simulated walls, simulated windows, simulated floors, etc., which can only show the general style of a project. Its attributes are only general attributes and do not have structural data or building data.
[0004] After completing the preliminary design, structural pre-configuration is required. This function is already included in our company's software BIECO. The general function is to generate structural walls, structural beams, structural floors, and structural columns according to certain rules based on the simulated walls, rooms, and simulated floors drawn in the preliminary design.
[0005] After the structure is pre-configured, it is necessary to use nationally certified structural calculation software to perform structural calculations and adjust the model according to the structural calculation results. However, the structural calculation software is not the same as the software developed by our company. The supported file formats and the formats of stored data are different.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiment of the present invention provides a method and device for generating a roof panel of a building model, so as to at least solve the technical problem that the method for generating a roof panel of a building model in the related art has poor adaptability to a sloping roof.
[0008] According to one aspect of an embodiment of the present invention, a method for generating a roof panel of a building model is provided, comprising: acquiring structural data of the building model, wherein the structural data includes data of structural walls and / or data of structural beams; determining a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid; determining an enclosure range of a roof panel to be generated according to the grid group; determining an upward turning direction and an upward turning height of the roof panel to be generated according to the structural data; and generating the roof panel according to the upward turning direction and the upward turning height, as well as the enclosure range.
[0009] Optionally, determining a grid group according to the structural data includes: sending the structural data to a structural computing device, wherein the structural computing device is used to determine a grid corresponding to each structural wall or structural beam according to the structural data to generate a grid group; and receiving the grid group output by the structural computing device.
[0010] Optionally, determining the enclosed range of the roof panel to be generated according to the grid group includes: determining the structural wall or structural beam corresponding to the same grid according to the grid group; starting from the grid of the structural wall or structural beam with the lowest height, searching the grid group for the structural wall or structural beam corresponding to the grid connected to the grid; when the searched structural walls or structural beams form a closed figure, the area enclosed by the multiple structural walls or structural beams forming the closed figure is used as the enclosed range.
[0011] Optionally, it also includes: when the searched structural walls or structural beams cannot form a closed figure, selecting a grid of a structural wall or structural beam with a higher height until the searched structural walls or structural beams form a closed figure.
[0012] Optionally, determining the upward turning direction and upward turning height of the roof panel to be generated according to the structural data includes: determining three positioning points of the roof panel to be generated according to the heights of all structural beams or structural walls, wherein the data of the structural beams include the height of the structural beams, and the data of the structural walls include the height of the structural walls; determining the upward turning direction and upward turning height of the roof panel to be generated according to the three positioning points.
[0013] Optionally, determining the three positioning points of the roof panel to be generated based on the heights of all the structural beams or structural walls includes: determining a first number of the structural beams and structural walls with the lowest heights, and a second number of the structural beams and structural walls with the highest heights; when the first number exceeds two, selecting the upper endpoints of the two structural beams and / or structural walls with the lowest heights, and the upper endpoint of a structural beam or structural wall with the highest height as the three positioning points; when the first number does not exceed two, and the second number exceeds two, selecting the upper endpoints of the two structural beams and / or structural walls with the highest heights, and the upper endpoint of a structural beam or structural wall with the lowest height as the three positioning points; when the first number does not exceed two, and the second number does not exceed two, selecting the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest point between the highest and the lowest as the three positioning points.
[0014] Optionally, determining the upward turning direction and the upward turning height of the roof panel according to the three positioning points includes: the upward turning height is the difference between the highest height and the lowest height of the structural beam and / or the structural wall; when the upper endpoints of the two lowest height structural beams and / or the structural wall and the upper endpoint of the highest height structural beam or the structural wall are used as the three positioning points, the upward turning direction is the direction from the first projection point to the upper endpoint with the highest height, wherein the first projection point is the projection point of the upper endpoint with the highest height on the line connecting the two upper endpoints with the lowest height; when the upper endpoints of the two highest height structural beams and / or the structural wall and the upper endpoint of the lowest height structural beam or the structural wall are used as the three positioning points. In the case of three positioning points, the upward flipping direction is the direction from the upper endpoint with the lowest height to the second projection point, wherein the second projection point is the projection point of the upper endpoint with the lowest height on the line connecting the two upper endpoints with the highest heights; in the case of the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest point between the highest and the lowest as the three positioning points, the upward flipping direction is the direction from the third projection point to the upper endpoint with the highest height, wherein the third projection point is the projection point of the upper endpoint with the highest height on the line connecting the upper endpoints of the lowest height and the second highest point.
[0015] According to another aspect of an embodiment of the present invention, a device for generating a roof panel of a building model is also provided, comprising: an acquisition module, used to acquire structural data of the building model, wherein the structural data includes data of structural walls and / or data of structural beams; a first determination module, used to determine a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid respectively; a second determination module, used to determine an enclosure range of a roof panel to be generated according to the grid group; a third determination module, used to determine an upward turning direction and an upward turning height of the roof panel to be generated according to the structural data; and a generation module, used to generate the roof panel according to the upward turning direction and the upward turning height, as well as the enclosure range.
[0016] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned methods for generating a roof panel of a building model when running.
[0017] According to another aspect of an embodiment of the present invention, a computer storage medium is further provided, the computer storage medium including a stored program, wherein when the program is running, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned methods for generating roof panels of a building model.
[0018] In an embodiment of the present invention, the structural data of a building model is obtained, wherein the structural data includes data of a structural wall and / or data of a structural beam; a grid group is determined according to the structural data, wherein each structural wall or structural beam corresponds to a grid; an enclosure range of a roof panel to be generated is determined according to the grid group; an upward turning direction and an upward turning height of the roof panel to be generated are determined according to the structural data; and a roof panel is generated according to the upward turning direction and the upward turning height, as well as the enclosure range. This achieves the purpose of determining a grid group according to the structural data, determining the enclosure range and the upward turning direction and the height of the roof panel to be generated, and then generating the roof panel, thereby achieving the technical effect of improving the accuracy of roof panel generation and improving the adaptability of roof panels generated to building models, thereby solving the technical problem of poor adaptability of the method of generating roof panels of building models in the related art to sloping roofs. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] 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:
[0020] Figure 1 It is a schematic diagram of a pilot design of a building model according to the prior art;
[0021] Figure 2 is a flow chart of a method for generating a roof panel of a building model according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of a grid group of a building model according to an embodiment of the present invention;
[0023] Figure 4 It is a schematic diagram of a roof panel generating device of a building model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] 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.
[0025] 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.
[0026] According to an embodiment of the present invention, a method embodiment of a method for generating a roof panel of a building model 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.
[0027] Figure 2 is a flow chart of a method for generating a roof panel of a building model according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:
[0028] Step S202, obtaining structural data of the building model, wherein the structural data includes data of structural walls and / or data of structural beams;
[0029] Step S204, determining a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid;
[0030] Step S206, determining the enclosed range of the roof panel to be generated according to the grid group;
[0031] Step S208, determining the turning-up direction and turning-up height of the roof panel to be generated according to the structural data;
[0032] Step S210, generating a roof panel according to the turning-up direction, the turning-up height, and the enclosed range.
[0033] Through the above steps, the structural data of the building model is obtained, wherein the structural data includes the data of the structural wall and / or the data of the structural beam; according to the structural data, a grid group is determined, wherein each structural wall or structural beam corresponds to a grid; according to the grid group, the enclosure range of the roof panel to be generated is determined; according to the structural data, the upward turning direction and the upward turning height of the roof panel to be generated are determined; according to the upward turning direction and the upward turning height, as well as the enclosure range, the roof panel is generated in a manner, so as to achieve the purpose of determining the grid group according to the structural data, determining the enclosure range and the upward turning direction and the height of the roof panel to be generated, and then generating the roof panel, thereby achieving the technical effect of improving the accuracy of roof panel generation and improving the adaptability of roof panels generated to building models, thereby solving the technical problem of poor adaptability of the method of generating roof panels of building models in related technologies to sloping roofs.
[0034] The above-mentioned building model may be a BIM building information model (Building Information Modeling). The structure in the BIM model may include the information of various building structures such as the low-level, wall, beam, window, door, wall surface, roof panel, etc. of the building model. In this embodiment, the roof panel is mainly generated based on the structural wall and structural beam under the floor slab, so the above-mentioned structural data includes the data of the structural wall and / or the data of the structural beam. The data of the structural wall and / or the structural beam may include the height, position, etc. of the structural wall and / or the structural beam.
[0035] The above-mentioned grid group may be a Grid group, which is obtained by performing structural calculations based on the data of the building model using a nationally certified structural calculation software, which is also a structural design software, such as Sap software, Midas gen software, etc. The calculation results of the data of the structural beams and the data of the structural walls of the building structure can be determined by the above-mentioned structural calculation software, and the grids corresponding to the data of the structural beams and the data of the structural walls can be determined according to the calculation results, and the Grid group can be determined by the grids corresponding to the data of multiple structural beams and the data of the structural walls.
[0036] For example, 1. Analyze the output results of the structural calculation software to get the Grid group of the plate. Each plate will correspond to multiple Grids. The wall and beam Grids on the same layer of the plate, each wall or beam will correspond to a Grid. A Grid can correspond to multiple components. 1. The required data can be directly obtained from the output results of the structural calculation software. A Grid refers to a section on the axis network. Figure 3 As shown, each section can be considered a Grid.
[0037] The above-mentioned determination of the enclosure range of the roof panel to be generated according to the grid group can be to obtain the wall beam under the panel according to the grid group of the panel and determine the enclosure range of the panel. Specifically, because one grid corresponds to multiple walls or beams, after obtaining the grid group, the wall beam cannot be directly retrieved through the grid. Instead, the wall beam corresponding to the same grid is found, and the components connected to it are found from the component with the lowest height until an enclosure is found. If no enclosure is found, the connected components are found with components with higher elevations, and the operation is repeated until an enclosure area is found.
[0038] The turning direction and turning height of the roof panel to be generated are determined according to the structural data, that is, the turning direction and turning height of the roof panel to be generated are determined through the data of the structural beams and structural walls. Thus, the roof panel is generated according to the turning direction and turning height, as well as the enclosed range. The purpose of determining the grid group according to the structural data, determining the enclosed range and turning direction of the roof panel to be generated and the height of the vendor, and then generating the roof panel is achieved, thereby achieving the technical effect of improving the accuracy of roof panel generation and improving the adaptability of roof panel generation to the building model, thereby solving the technical problem of poor adaptability to sloping roofs in the method of generating roof panels of building models in the related art.
[0039] Optionally, determining the grid group according to the structural data includes: sending the structural data to a structural computing device, wherein the structural computing device is used to determine the grid corresponding to each structural wall or structural beam according to the structural data to generate a grid group; and receiving the grid group output by the structural computing device.
[0040] The structural calculation device is also the structural calculation software certified by the state. The structural data of the building model is sent to the structural calculation software, and the structural calculation software generates calculation results based on the structural data, and generates a grid group based on the calculation results. The grid group is sent to the building model. That is, the grid group is sent to the software or system that creates the building model.
[0041] Optionally, determining the enclosed range of the roof panel to be generated according to the grid group includes: determining the structural wall or structural beam corresponding to the same grid according to the grid group; starting from the grid of the structural wall or structural beam with the lowest height, searching the grid group for the structural wall or structural beam corresponding to the grid connected to the grid; when the searched structural walls or structural beams form a closed figure, the area enclosed by the multiple structural walls or structural beams forming the closed figure is used as the enclosed range.
[0042] Because a Grid grid may correspond to multiple walls or beams. Therefore, after obtaining the Grid group, you cannot directly search for wall beams through the Grid. Instead, find the wall beam corresponding to the same Grid, and start from the component with the lowest height to find the components connected to it until an enclosure is found. If no enclosure can be found, use the components with higher elevations to find the connected components, and repeat the operation until an enclosure area is found.
[0043] Optionally, it also includes: when the searched structural walls or structural beams cannot form a closed figure, selecting a grid of a structural wall or structural beam with a higher height until the searched structural walls or structural beams form a closed figure.
[0044] Thus, the enclosed area of the roof panel to be generated is found according to the grid group, providing conditions for the generation of the roof panel.
[0045] Optionally, determining the upward turning direction and upward turning height of the roof panel to be generated according to the structural data includes: determining three positioning points of the roof panel to be generated according to the heights of all structural beams or structural walls, wherein the data of the structural beams include the height of the structural beams, and the data of the structural walls include the height of the structural walls; determining the upward turning direction and upward turning height of the roof panel to be generated according to the three positioning points.
[0046] The above-mentioned positioning point can be a point on the structural beam or the upper end face of the structural beam, that is, the upper end point, can be the midpoint on the edge of the upper end face, or can be the geometric center of the upper end face. According to the three positioning points, a surface can be determined, that is, the plane where the roof panel is located, so as to determine the upward turning direction and upward turning height of the roof panel to be generated.
[0047] Optionally, determining the three positioning points of the roof panel to be generated based on the heights of all the structural beams or structural walls includes: determining a first number of the structural beams and structural walls with the lowest heights, and a second number of the structural beams and structural walls with the highest heights; when the first number exceeds two, selecting the upper endpoints of the two structural beams and / or structural walls with the lowest heights, and the upper endpoint of a structural beam or structural wall with the highest height as three positioning points; when the first number does not exceed two, and the second number exceeds two, selecting the upper endpoints of the two structural beams and / or structural walls with the highest heights, and the upper endpoint of a structural beam or structural wall with the lowest height as three positioning points; when the first number does not exceed two, and the second number does not exceed two, selecting the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest point between the highest and the lowest as three positioning points.
[0048] Specifically, a method of determining a plane using three points is used.
[0049] 1. Find two lowest points among all the components, that is, the upper end points of the structural beams and / or structural walls with the lowest height, and one highest point, that is, the upper end points of the structural beams or structural walls with the highest height.
[0050] 2. Find one lowest point and two highest points among all components.
[0051] 3. Find a lowest point and a second highest point among all the components, that is, the upper end point of the structural beam or structural wall whose height is the second highest point between the highest and lowest points, and a highest point.
[0052] Find all components, group them by Z-axis value, find the smallest value, if there are two or more values in the group, choose case 1. If there is only one group with the smallest value, then find the largest group, if there are two or more values in the largest group, then choose case 2, if there is only one largest group, then only case 3 can be used.
[0053] Optionally, determining the upward turning direction and the upward turning height of the roof panel according to the three positioning points includes: the upward turning height is the difference between the highest height and the lowest height of the structural beam and / or the structural wall; when the upper endpoints of the two lowest structural beams and / or the structural wall and the upper endpoint of the highest structural beam or the structural wall are used as the three positioning points, the upward turning direction is the direction from the first projection point to the upper endpoint with the highest height, wherein the first projection point is the projection point of the upper endpoint with the highest height on the line connecting the two upper endpoints with the lowest height; when the upper endpoints of the two highest structural beams and / or the structural wall and the upper endpoint of the lowest structural beam or the structural wall are used as the three positioning points, the upward turning direction is the direction from the first projection point to the upper endpoint with the highest height, wherein the first projection point is the projection point of the upper endpoint with the highest height on the line connecting the two upper endpoints with the lowest height; In the case of three positioning points, the upward flipping direction is the direction from the upper endpoint with the lowest height to the second projection point, wherein the second projection point is the projection point of the upper endpoint with the lowest height on the line connecting the two upper endpoints with the highest heights; in the case of the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest point between the highest and the lowest as the three positioning points, the upward flipping direction is the direction from the third projection point to the upper endpoint with the highest height, wherein the third projection point is the projection point of the upper endpoint with the highest height on the line connecting the upper endpoints of the lowest height and the second highest point.
[0054] The slope is the difference between the highest and lowest heights of the structural beam and / or structural wall.
[0055] Calculation of slopeArrow in the flipping direction:
[0056] In the above case 1: project the highest point onto the line formed by the two lowest points to obtain the first projection point, and the flipping direction is the direction from the first projection point to the highest point.
[0057] In case 2, the lowest point is projected onto the line formed by the two highest points to obtain the second projection point, and the flipping direction is the direction from the lowest point to the second projection point.
[0058] In case 3, the highest point is projected onto the line formed by the lowest point and the second lowest point to obtain the third projection point, and the upward direction is the direction from the third projection point to the highest point.
[0059] It should be noted that the embodiment of the present application also provides an optional implementation, which is described in detail below.
[0060] This implementation method is to achieve the conversion between different data formats of the structural calculation software and the building model software. Before importing into the structural calculation software, the building model data needs to be converted into a data format recognized by the structural calculation software. After the structural calculation is completed, the model data will be fine-tuned in the structural calculation software according to the structural calculation results. The building model software will re-convert the calculated data into a data format that supports the software for data import. After importing back, it will be combined with the original structural model to produce a structural drawing.
[0061] The specific process is as follows:
[0062] The generation of roof panels is mainly based on the structural walls and structural beams under the floor slab. The roof panel must be the enclosed area of the structural walls and structural beams, but the enclosed area of the structural walls and structural beams does not necessarily have a structural panel.
[0063] Therefore, when importing the logic of the roof panel, it will rely on the data of the structural walls and structural beams.
[0064] The specific steps of generating roof panels in our company's projects based on the output results of the structural calculation software are divided into the following steps:
[0065] 1. Analyze the output results of the structural calculation software to obtain the grid group of the plate. Each plate will correspond to multiple grids. The wall and beam grids on the same layer of the plate, each wall or beam will correspond to a grid. One grid can correspond to multiple components.
[0066] 2. Obtain the wall beam below the slab based on the Grid group of the slab and determine the enclosure range (profile) of the slab.
[0067] 3. Calculate the flip height slope and flip direction slopeArrow.
[0068] The upturn direction slopeArrow refers to the direction of upturn, and the upturn height slope refers to the upturn height. The final generation of the roof panel is determined by these two values.
[0069] Specific logic:
[0070] 1) The required data can be directly obtained from the output results of the structural calculation software. The grid refers to a section on the axis network. Figure 3 is a schematic diagram of a grid group of a building model according to an embodiment of the present invention, Figure 3 As shown, each section can be considered a grid.
[0071] 2) Obtain the wall beam below the slab based on the Grid group of the slab and determine the enclosed range of the slab.
[0072] Because a grid may correspond to multiple walls or beams. Therefore, after obtaining a grid group, you cannot directly search for wall beams through the grid. Instead, find the wall beam corresponding to the same grid, and start from the component with the lowest height to find the components connected to it until an enclosure is found. If no enclosure can be found, use components with higher elevations to find connected components, and repeat the operation until an enclosure area is found.
[0073] 3) Calculate the upturn height slope and upturn direction slopeArrow
[0074] The method used is to determine a plane using three points.
[0075] 1. Find two lowest points and one highest point among all components.
[0076] 2. Find one lowest point and two highest points among all components.
[0077] 3. Find a lowest point, a second highest point, and a highest point among all components.
[0078] Find all components, group them by Z-axis value, find the smallest value, if there are two or more values in the group, choose case 1. If there is only one group with the smallest value, then find the largest group, if there are two or more values in the largest group, then choose case 2, if there is only one largest group, then only case 3 can be used.
[0079] The upturn height slope is the maximum z – minimum z.
[0080] Calculation of slopeArrow in the flipping direction:
[0081] Case 1 above: project the maximum point onto the line connecting the two lowest points, and project the point in the direction of the highest point.
[0082] In case 2, project the lowest point onto the line connecting the two highest points, in the direction from the lowest point to the projection point.
[0083] In case 3, the highest point is projected onto the line connecting the lowest point and the second lowest point, and the direction of the projection point is from the highest point.
[0084] The advantages of this implementation are as follows: developers do not need to design and implement functions themselves, which reduces the development time of developers and improves development efficiency.
[0085] Figure 4 is a schematic diagram of a roof panel generating device for a building model according to an embodiment of the present invention. Figure 4 According to another aspect of an embodiment of the present invention, a device for generating a roof panel of a building model is provided, comprising:
[0086] An acquisition module 402 is used to acquire structural data of a building model, wherein the structural data includes data of a structural wall and / or data of a structural beam; a first determination module 404 is used to determine a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid; a second determination module 406 is used to determine an enclosure range of a roof panel to be generated according to the grid group; a third determination module 408 is used to determine an upward turning direction and an upward turning height of the roof panel to be generated according to the structural data; a generation module 410 is used to generate a roof panel according to the upward turning direction and the upward turning height, as well as the enclosure range.
[0087] Through the above-mentioned device, the structural data of the building model is obtained, wherein the structural data includes the data of the structural wall and / or the data of the structural beam; according to the structural data, a grid group is determined, wherein each structural wall or structural beam corresponds to a grid; according to the grid group, the enclosure range of the roof panel to be generated is determined; according to the structural data, the upward turning direction and the upward turning height of the roof panel to be generated are determined; according to the upward turning direction and the upward turning height, as well as the enclosure range, the roof panel is generated in a manner, so as to achieve the purpose of determining the grid group according to the structural data, determining the enclosure range and the upward turning direction and the height of the roof panel to be generated, and then generating the roof panel, thereby achieving the technical effect of improving the accuracy of roof panel generation and improving the adaptability of roof panels generated to building models, thereby solving the technical problem of poor adaptability of the method of generating roof panels of building models in related technologies to sloping roofs.
[0088] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned methods for generating a roof panel of a building model is executed.
[0089] According to another aspect of an embodiment of the present invention, a computer storage medium is also provided, the computer storage medium including a stored program, wherein when the program is running, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned methods for generating roof panels of a building model.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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 generating a roof panel of a building model, It is characterized in that include: Acquire structural data of the building model, wherein the structural data includes data of structural walls and / or data of structural beams, the data of structural beams includes the height of the structural beams, and the data of structural walls includes the height of the structural walls; Determine a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid; Determining the enclosed range of the roof panel to be generated according to the grid group; Determine the turning-up direction and turning-up height of the roof panel to be generated according to the structural data; Generating the roof panel according to the upward turning direction, the upward turning height, and the enclosed range; Wherein, determining the upward turning direction and the upward turning height of the roof panel to be generated according to the structural data includes determining three positioning points of the roof panel to be generated according to the heights of all structural beams or structural walls: determining a first number of structural beams and structural walls having the lowest height and a second number of structural beams and structural walls having the highest height; When the first number exceeds two, the upper endpoints of the two lowest structural beams and / or structural walls and the upper endpoint of the highest structural beam or structural wall are selected as the three positioning points; When the first number is no more than two and the second number is more than two, the upper endpoints of the two highest structural beams and / or structural walls and the upper endpoint of the lowest structural beam or structural wall are selected as the three positioning points; When the first number is no more than two and the second number is no more than two, the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest height between the highest and the lowest height are selected as the three positioning points; Wherein, determining the upward turning direction and the upward turning height of the roof panel to be generated according to the structural data further includes determining the upward turning direction and the upward turning height of the roof panel to be generated according to the three positioning points: The flip-up height is the difference between the highest height and the lowest height of the structural beam and / or structural wall; In the case where the upper endpoints of the two lowest structural beams and / or structural walls and the upper endpoint of the highest structural beam or structural wall are used as the three positioning points, the upward flipping direction is the direction from the first projection point to the upper endpoint with the highest height, wherein the first projection point is the projection point of the upper endpoint with the highest height on the line connecting the two upper endpoints with the lowest height; In the case where the upper endpoints of the two highest structural beams and / or structural walls and the upper endpoint of the lowest structural beam or structural wall are used as the three positioning points, the upward turning direction is the direction from the upper endpoint with the lowest height to the second projection point, wherein the second projection point is the projection point of the upper endpoint with the lowest height on the line connecting the two upper endpoints with the highest height; When the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest height between the highest and the lowest are used as the three positioning points, the upward flipping direction is the direction from the third projection point to the upper endpoint with the highest height, wherein the third projection point is the projection point of the upper endpoint with the highest height on the line connecting the upper endpoint with the lowest height and the upper endpoint of the second highest point.
2. The method according to claim 1, It is characterized in that According to the structural data, determining a grid group includes: Sending the structural data to a structural calculation device, wherein the structural calculation device is used to determine a grid corresponding to each structural wall or structural beam according to the structural data to generate a grid group; The grid group output by the structure calculation device is received.
3. The method according to claim 1, It is characterized in that According to the grid group, determining the enclosed range of the roof panel to be generated includes: According to the grid group, determining a structural wall or a structural beam corresponding to the same grid; Starting from the grid of the structural wall or structural beam with the lowest height, searching the structural wall or structural beam corresponding to the grid connected to the grid from the grid group; In the case where the searched structural walls or structural beams form a closed figure, the area enclosed by the multiple structural walls or structural beams forming the closed figure is used as the enclosed range.
4. The method according to claim 3, It is characterized in that Also includes: When the searched structural walls or structural beams cannot form a closed shape, select a grid of a structural wall or structural beam with a higher height until the searched structural walls or structural beams form a closed shape.
5. A roof panel generating device for a building model, It is characterized in that include: An acquisition module, used for acquiring structural data of a building model, wherein the structural data includes data of a structural wall and / or data of a structural beam, the data of the structural beam includes the height of the structural beam, and the data of the structural wall includes the height of the structural wall; A first determination module is used to determine a grid group according to the structural data, wherein each structural wall or structural beam corresponds to a grid; A second determination module is used to determine the enclosed range of the roof panel to be generated according to the grid group; A third determination module is used to determine the turning direction and turning height of the roof panel to be generated according to the structural data; A generating module, used for generating the roof panel according to the upward turning direction, the upward turning height, and the enclosed range; Wherein, the third determination module includes: A positioning point determination unit: used to determine three positioning points of the roof panel to be generated according to the heights of all structural beams or structural walls: determine a first number of structural beams and structural walls with the lowest heights, and a second number of structural beams and structural walls with the highest heights; when the first number exceeds two, select the upper endpoints of the two structural beams and / or structural walls with the lowest heights, and the upper endpoint of a structural beam or structural wall with the highest height as the three positioning points; when the first number does not exceed two, and the second number exceeds two, select the upper endpoints of the two structural beams and / or structural walls with the highest heights, and the upper endpoint of a structural beam or structural wall with the lowest height as the three positioning points; when the first number does not exceed two, and the second number does not exceed two, select the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with the second highest point between the highest and the lowest as the three positioning points; An upward turning direction and upward turning height determination unit: used for determining the upward turning direction and upward turning height of the roof panel to be generated according to the three positioning points: the upward turning height is the difference between the highest height and the lowest height of the structural beam and / or structural wall; when the upper endpoints of the two lowest height structural beams and / or structural walls and the upper endpoint of the highest height structural beam or structural wall are used as the three positioning points, the upward turning direction is the direction from the first projection point to the upper endpoint with the highest height, wherein the first projection point is the projection point of the upper endpoint with the highest height on the line connecting the two upper endpoints with the lowest height; at the upper endpoints of the two highest height structural beams and / or structural walls and the upper endpoint of the lowest height structural beam or structural wall In the case where the endpoints are used as the three positioning points, the upward direction is the direction from the upper endpoint with the lowest height to the second projection point, wherein the second projection point is the projection point of the upper endpoint with the lowest height on the line connecting the two upper endpoints with the highest heights; in the case where the upper endpoint of a structural beam or structural wall with the highest height, the upper endpoint of a structural beam or structural wall with the lowest height, and the upper endpoint of a structural beam or structural wall with a height of the second highest point between the highest and the lowest are used as the three positioning points, the upward direction is the direction from the third projection point to the upper endpoint with the highest height, wherein the third projection point is the projection point of the upper endpoint with the highest height on the line connecting the upper endpoints of the lowest height and the second highest point.
6. A processor, It is characterized in that The processor is used to run a program, wherein the program, when running, executes the method for generating a roof panel of a building model as described in any one of claims 1 to 4.
7. A computer storage medium, It is characterized in that The computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute the roof panel generation method of the building model according to any one of claims 1 to 4.
