Method, device, storage medium and terminal for generating roof panels
By obtaining the positioning line segments of wall components and beam components in the three-dimensional design software, generating plane profiles and calculating slopes, the problem of incomplete roof panel components is solved, and the accurate generation of roof panel components is achieved.
Patent Information
- Application Number
- CN202011604622.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The data information of the roof panel components in the imported structure calculation software of existing three-dimensional design software such as Revit software is incomplete, resulting in the inability to directly generate roof panel components.
By obtaining the positioning segments of the target wall member and the beam member, generating a plane profile, determining the maximum and minimum points of the height value in the point set, calculating the slope of the positioning segment, and generating the target roof panel based on the slope and plane profile.
It realizes the generation of complete roof panel components in three-dimensional design software, solves the problem of incomplete data and ensures the accurate generation of roof panel components.
Smart Images

Figure CN114692247B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of building information modeling, and in particular to a method, device, storage medium, and terminal for generating roof panels. Background Art
[0002] In the field of Building Information Modeling (BIM) technology, 3D design software, such as Revit software, generally lacks structural calculation capabilities. In related technologies, component models designed with Revit software need to be imported into structural calculation software for relevant structural calculations, such as reinforcement, seismic resistance, and compressive strength, before being imported into Revit software for restoration. However, due to the different data structure rules between 3D design software and structural calculation software, the data information of roof panel components imported into the 3D design software may be incomplete, which can easily lead to the 3D design software being unable to directly generate roof panel components. Summary of the Invention
[0003] An embodiment of the present application provides a method for generating a roof panel. When the data information of a roof panel component imported into a three-dimensional design software is incomplete, the three-dimensional design software can generate the roof panel component based on the data information of the wall components and beam components related to the target roof panel.
[0004] The present invention provides a method for producing a roof panel, including:
[0005] Obtaining the positioning line segments of the target wall component and the target beam component;
[0006] generating a plane contour according to the positioning line segment;
[0007] Determine a point set of the positioning line segments constituting the plane contour, and obtain a point with a maximum height value and a point with a minimum height value in the point set;
[0008] Calculating the slope of the positioning line segment according to the maximum height point and the minimum height point;
[0009] A target roof panel is generated according to the slope of the positioning line segment and the plane contour.
[0010] In some embodiments, generating a target roof panel according to the slope of the positioning line segment and the plane contour includes:
[0011] determining the height of the target roof panel according to the spatial coordinates of any point in the point set of the positioning line segment of the plane contour;
[0012] The target roof panel is generated according to the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
[0013] In some embodiments, further comprising:
[0014] Obtaining preset thickness information of target roof panel components;
[0015] The target roof panel is generated according to the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile.
[0016] In some embodiments, obtaining the point with the maximum height value and the point with the minimum height value in the point set includes:
[0017] Comparing the height value corresponding to each point in the point set of the positioning line segment to obtain a first comparison result;
[0018] The point with the maximum height value and the point with the minimum height value in the point set are obtained according to the first comparison result.
[0019] In some embodiments, obtaining the point with the maximum height value and the point with the minimum height value in the point set includes:
[0020] Obtaining a set of height values corresponding to each point in the contour line of the plane contour;
[0021] Comparing the height values in the height value set to obtain a second comparison result;
[0022] The point with the maximum height value and the point with the minimum height value are determined from the point set according to the second comparison result.
[0023] In some embodiments, calculating the slope of the positioning line segment according to the maximum height point and the minimum height point includes:
[0024] Determine the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0025] Obtaining a spatial direction vector according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0026] The spatial direction vector is the slope of the target roof panel.
[0027] In some embodiments, a device for generating a roof panel is further provided, the device comprising:
[0028] A first acquisition module is used to acquire the positioning line segments of the target wall component and the target beam component;
[0029] A first generating module, configured to generate a plane contour according to the positioning line segment;
[0030] A first determining module is used to determine a set of points constituting a positioning line segment of the plane contour;
[0031] A second acquisition module is used to obtain the point with the maximum height value and the point with the minimum height value in the point set;
[0032] A first calculation module is used to calculate the slope of the positioning line segment according to the maximum height point and the minimum height point;
[0033] The second generating module is configured to generate a target roof panel according to the slope of the positioning line segment and the plane contour.
[0034] In some embodiments, the second generation module includes:
[0035] A first determining submodule is configured to determine the height of the target roof panel according to the spatial coordinates of any point in the point set of the positioning line segment of the plane contour;
[0036] The first generating submodule is configured to generate the target roof panel according to the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
[0037] In some embodiments, the apparatus further comprises:
[0038] An acquisition module, used to obtain preset thickness information of a target roof panel component;
[0039] A generating module is configured to generate the target roof panel according to the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile.
[0040] In some embodiments, the second acquisition module is specifically configured to:
[0041] Comparing the height value corresponding to each point in the point set of the positioning line segment to obtain a first comparison result;
[0042] The point with the maximum height value and the point with the minimum height value in the point set are obtained according to the first comparison result.
[0043] In some embodiments, the second acquisition module is specifically configured to:
[0044] Obtaining a set of height values corresponding to each point in the contour line of the plane contour;
[0045] Comparing the height values in the height value set to obtain a second comparison result;
[0046] The point with the maximum height value and the point with the minimum height value are determined from the point set according to the second comparison result.
[0047] In some embodiments, the first computing module is specifically configured to:
[0048] Determine the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0049] Obtaining a spatial direction vector according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0050] The spatial direction vector is the slope of the target roof panel.
[0051] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is run on a computer, the computer performs the steps of the method for generating a roof panel as described in any one of the above embodiments.
[0052] An embodiment of the present application further provides a terminal comprising a processor and a memory, wherein the memory stores a computer program, and the processor calls the computer program stored in the memory to execute the steps of generating roof panels as described in any of the above embodiments.
[0053] The apparatus for generating a roof panel provided in an embodiment of the present application comprises a first acquisition module for acquiring positioning line segments of target wall components and target beam components; a first generation module for generating a plane profile based on the positioning line segments; a first determination module for determining a set of points constituting the positioning line segments of the plane profile; a second acquisition module for acquiring a point with a maximum height value and a point with a minimum height value in the point set; a first calculation module for calculating the slope of the positioning line segment based on the point with a maximum height value and the point with a minimum height value; and a second generation module for generating a target roof panel based on the slope of the positioning line segment and the plane profile. This apparatus can realize that when the data information of the roof panel component imported into the three-dimensional design software is incomplete, the three-dimensional design software can generate the roof panel component based on the data information of the wall components and beam components related to the target roof panel. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The following detailed description of the specific embodiments of the present application in conjunction with the accompanying drawings will make the technical solutions and other beneficial effects of the present application apparent.
[0055] Figure 1 A schematic flow chart of an embodiment of a method for generating roof panels provided in an embodiment of the present application.
[0056] Figure 2 The embodiment of the present application provides a schematic diagram of a roof panel generated based on Revit software.
[0057] Figure 3 This is a schematic diagram of the Revit software operation interface provided in an embodiment of the present application.
[0058] Figure 4This is a schematic diagram of another operating interface based on Revit software provided in an embodiment of the present application.
[0059] Figure 5 This is a schematic diagram of the operating interface for generating roof panels by importing basic information of wall components and basic information of beam components based on Revit software provided in an embodiment of the present application.
[0060] Figure 6 A schematic diagram of the data information operation interface for exporting roof panels based on Revit software is provided in an embodiment of the present application.
[0061] Figure 7 A schematic structural diagram of a device for generating roof panels provided in an embodiment of the present application.
[0062] Figure 8 Schematic diagram of the structure of the second generation module of the device for generating roof panels provided in an embodiment of the present application.
[0063] Figure 9 A schematic diagram of a terminal for generating roof panels provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0065] Embodiments of the present application provide a method, apparatus, storage medium, and terminal for generating a roof panel. When the data information of a roof panel component imported into 3D design software is incomplete, the 3D design software can generate the roof panel component based on the information of the wall components and beam components associated with the target roof panel.
[0066] See also Figure 1 , Figure 1 A schematic flow chart of an embodiment of a method for generating roof panels for this application is provided. The method may include the following steps:
[0067] Step 101: Obtain positioning line segments of target wall components and target beam components.
[0068] In this embodiment, the positioning line segment includes: a line segment where the components constituting the BIM building information model are projected at the current floor elevation.
[0069] In a specific implementation, data information of target wall components and target beam components of the BIM building information model can be obtained from a designated database, and the obtained data information can be parsed to obtain the positioning line segments of the target wall components and the positioning line segments of the target beam components, respectively. The designated database stores data information obtained by parsing the BIM building information model using structural calculation software.
[0070] In some embodiments, the component's location segment can be determined by obtaining the location information of the component's centerline endpoints. For example, when obtaining the location segments of a target wall component and a target beam component, the location information of the target wall component's centerline endpoints and the location information of the target beam component's centerline endpoints can be obtained from a designated database, and the location segments of the target wall component and the target beam component can be obtained based on this location information. The location information can include the planar coordinates of the projected current floor elevation.
[0071] Step 102: Generate a plane contour according to the positioning line segment.
[0072] In this embodiment, the plane contour is the contour formed by the line segments of the target wall component and the target beam component projected on the current floor elevation. Figure 2 It can be seen that, for example, a line segment 203 of the plane contour can be generated according to the positioning line segment of the beam component 201; for another example, a line segment 203 of the plane contour can be generated according to the positioning line segment of the beam component 202.
[0073] In some embodiments, reference Figure 2 , a line segment 205 of the plane outline of the eaves structure can also be generated through the positioning line segment of the eaves component 204.
[0074] Step 103: determine a point set of the positioning line segments constituting the plane contour, and obtain a point with a maximum height value and a point with a minimum height value in the point set.
[0075] Specifically, the point set includes at least: the projections of the two endpoints of the centerline of the target wall component to the current floor elevation, and the projections of the two endpoints of the centerline of the target beam component to the current floor elevation. In practical applications, the point set may also include the plane coordinates of the point between the two endpoints projected to the current floor elevation.
[0076] In one embodiment, the step of “obtaining the point with the maximum height value and the point with the minimum height value in the point set” may include the following process:
[0077] Comparing the height value corresponding to each point in the point set of the positioning line segment to obtain a first comparison result;
[0078] The point with the maximum height value and the point with the minimum height value in the point set are obtained according to the first comparison result.
[0079] The first comparison result may include: a point where the target wall component and the target beam component have larger height values.
[0080] In one embodiment, the step of "obtaining the point with the maximum height value and the point with the minimum height value in the point set" may include the following process: obtaining the height value set corresponding to each point in the contour line of the plane contour; comparing the height values in the height value set to obtain a second comparison result; and determining the point with the maximum height value and the point with the minimum height value from the point set based on the second comparison result.
[0081] The second comparison result may include: points with larger height values of the target wall component and the target beam component. In specific implementation, the point with the maximum height value and the point with the minimum height value may be determined from the point set according to the second comparison result.
[0082] Continue to refer Figure 2 Taking line segment 203 in the plane profile as an example, line segment 203 can be generated based on the positioning line segments of beam component 201 and beam component 202. To obtain the maximum and minimum height points of line segment 203, a point set for line segment 203 can be obtained, and then the height values in the corresponding height value set for each point in this point set can be compared. For example, the corresponding height value set for a point in the point set for line segment 203 includes the height value of the point corresponding to beam component 201 and the height value of the point corresponding to beam component 202. Specifically, the point with the larger height value can be selected as a further comparison object (i.e., the point located in beam component 201 is selected as the further comparison object), and then the height values of the points located in beam component 201 are compared to obtain the maximum and minimum height points in beam component 201. The maximum height point in beam component 201 is the maximum height point of line segment 203, and the minimum height point in beam component 201 is the minimum height point of line segment 203.
[0083] In some embodiments, when obtaining the point with the maximum height value and the point with the minimum height value in the point set, the spatial coordinates of the maximum height value and the spatial coordinates of the minimum height value in the point set may be acquired.
[0084] Step 104 : Calculate the slope of the positioning line segment according to the maximum height point and the minimum height point.
[0085] Specifically, the slope of each positioning line segment may be calculated according to the maximum spatial coordinate of the height value and the minimum spatial coordinate of the height value constituting each positioning line segment in the plane profile.
[0086] In this embodiment, the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value can be determined; the spatial direction vector is obtained according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value; the spatial direction vector is the slope of the target roof panel.
[0087] During specific implementation, the spatial coordinates (x1, y1, z1) of the point with the maximum height value and the spatial coordinates (x2, y2, z2) of the point with the minimum height value can be determined; the spatial direction vector (x2-x1, y2-y1, z2-z1) is obtained according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value; the spatial direction vector (x2-x1, y2-y1, z2-z1) is the slope of the target roof panel; the slope of the target roof panel includes: the inclination direction of the target roof panel.
[0088] Step 105: Generate the target roof panel according to the slope of the positioning line segment and the plane contour.
[0089] In this embodiment, the height of the target roof panel can be determined based on the spatial coordinates of any point in the point set of the positioning line segment of the plane contour; and then the target roof panel is generated based on the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
[0090] Specifically, the height of the target roof panel can be determined based on the spatial coordinates of the maximum height point and / or the minimum height point; and then the target roof panel is generated based on the slope and plane profile of the positioning line segment and the height of the target roof panel.
[0091] In specific implementation, the height of the target roof panel can be determined first according to the spatial coordinates of the second highest point in the point set of the positioning line segment of the plane contour; and then the target roof panel is generated according to the slope of the positioning line segment, the plane contour and the height of the target roof panel.
[0092] In practical applications, building information model components have a certain thickness. Therefore, in some embodiments, it is also possible to obtain the preset thickness information of the target roof panel component and then generate the target roof panel based on the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile of the target roof panel, so that the display effect of the target roof panel is more three-dimensional.
[0093] In some embodiments, the target roof panel is adjacent to the target wall member and the target beam member.
[0094] All of the above optional technical solutions can be combined in any way to form optional embodiments of the present application, and will not be described in detail here.
[0095] During specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.
[0096] As can be seen from the above, the method for generating a roof panel provided in an embodiment of the present application includes: obtaining positioning line segments of target wall components and target beam components; generating a plane profile based on the positioning line segments; determining a point set comprising the positioning line segments of the plane profile, and obtaining a point with a maximum height value and a point with a minimum height value in the point set; calculating the slope of the positioning line segment based on the point with a maximum height value and the point with a minimum height value; and generating a target roof panel based on the slope of the positioning line segment and the plane profile. This method can be used to generate a roof panel component by processing the data information of the wall components and beam components related to the target roof panel when the data information of the roof panel component imported into the 3D design software is incomplete.
[0097] For specific implementation, please refer to Figure 3 , Figure 3 Based on the Revit software operation interface diagram, an operation page for importing and exporting basic information can be provided based on the Revit software. The basic information includes: positioning segments of target wall components and target beam components, height information of target wall components and target beam components, preset thickness information of target roof panels, etc.
[0098] For detailed implementation of basic information import and export, please refer to Figure 4 . Figure 4 This is a schematic diagram of another user interface based on Revit software. Revit software includes the ability to generate roof panels based on basic wall and beam information. The functional interface includes at least a data center control, which allows for importing and exporting basic wall and beam information, as well as processing this information.
[0099] See also Figure 5 , Figure 5 It is a schematic diagram of the operation interface for generating roof panels based on the basic information of wall components and beam components imported into Revit software.
[0100] In this embodiment, the data center control can be used to trigger the generation of a first subpage on the current operation interface. This subpage displays a first control and a second control. The first control allows for importing basic information about wall components and beam components, while the second control allows for exporting data about roof panels and storing it in a specified file path. The specified file path includes a file path selected by the user.
[0101] In specific implementations, a user can create a trigger event within the data center control. For example, when a user clicks the import control, a second subpage is generated on the current operation interface. This second subpage displays a file selection control and prompts the user to select the file directory for the structural calculation software. Furthermore, to prevent misoperation, this second subpage can also display an import confirmation control. Once the user selects the file directory using the selection control, the import confirmation control can be used to select the import path. Upon detecting this import instruction, the system triggers the import instruction and generates the roof panels in response to it.
[0102] Continue reading Figure 6 , Figure 6 This is a schematic diagram of the data information operation interface for exporting roof panels based on Revit software. In specific implementation, the user can create a trigger event under the data center control. For example, when the user clicks the export control, a third sub-page can be generated on the current operation interface. The third sub-page displays a file path selection control and prompts to select the file path of the structural calculation software. Furthermore, to avoid misoperation, an export confirmation control can also be displayed on the third sub-page. When the user completes the file path selection by selecting the control, the export confirmation control can be used to select the export path and trigger the export instruction. After detecting the export instruction, the system responds to the export instruction to export the data information of the roof panel and stores it in the specified file path.
[0103] In a specific implementation, the step of "exporting the roof panel data information in response to the export instruction" may include a computer executing a relevant algorithm. The specific process includes at least: obtaining the height information and planar profile of the roof panel, segmenting the roof panel and the intersection of the wall components and beam components adjacent to the roof panel, calculating the slope of the roof panel based on the segmented wall components and beam components, and then storing the slope and height information and planar profile of the roof panel in a designated file path. The roof panel data information is exported and stored in the designated file path. The data information format may include a data format readable by structural calculation software, enabling the roof panel to be directly generated from the file directory of the structural calculation software based on Revit software.
[0104] In this embodiment, the size, shape, color, etc. of the sub-page can be pre-set by the technician. The sub-page can be created in the current page when the current page is displayed, or it can be created in the current page when a creation trigger event is detected. The sub-pages may include: the first sub-page, the second sub-page, and the third sub-page.
[0105] The creation trigger event may refer to an operation event in which a user clicks on the current page, etc. Clicking may include single-clicking, double-clicking, or long-pressing.
[0106] The current page refers to the page displayed by the Revit software at the current moment. The page can be a web page, an application page, a page of a data center control under the Revit software, or the main page of the Revit software, etc.
[0107] An embodiment of the present application further provides a device for generating roof panels, which can be integrated into a terminal, which can be a mobile terminal, a server, a portable computer, a desktop computer, or other devices.
[0108] See also Figure 7 , Figure 7 This is a first structural diagram of a roof panel generating device provided in an embodiment of the present application. The roof panel generating device 30 may include:
[0109] A first acquisition module 31 is used to acquire the positioning line segments of the target wall component and the target beam component;
[0110] A first generating module 32 is configured to generate a plane contour according to the positioning line segment;
[0111] A first determining module 33 is used to determine a set of points constituting the positioning line segments of the plane contour;
[0112] A second acquisition module 34 is used to obtain the point with the maximum height value and the point with the minimum height value in the point set;
[0113] A first calculation module 35 is used to calculate the slope of the positioning line segment according to the maximum height point and the minimum height point;
[0114] The second generating module 36 is configured to generate a target roof panel according to the slope of the positioning line segment and the plane contour.
[0115] In some embodiments, the apparatus further comprises:
[0116] An acquisition module, used to obtain preset thickness information of a target roof panel component;
[0117] A generating module is configured to generate the target roof panel according to the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile.
[0118] In some embodiments, the second acquisition module includes: a first comparison submodule, configured to compare the height value corresponding to each point in the point set of the positioning line segment to obtain a first comparison result;
[0119] The first acquisition submodule is configured to acquire a point with a maximum height value and a point with a minimum height value in the point set according to the first comparison result.
[0120] In some embodiments, the second acquisition module is specifically configured to:
[0121] Obtaining a set of height values corresponding to each point in the contour line of the plane contour;
[0122] Comparing the height values in the height value set to obtain a second comparison result;
[0123] The point with the maximum height value and the point with the minimum height value are determined from the point set according to the second comparison result.
[0124] In some embodiments, the first computing module is specifically configured to:
[0125] Determine the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0126] Obtaining a spatial direction vector according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value;
[0127] The spatial direction vector is the slope of the target roof panel.
[0128] Please refer to Figure 8 , the second generating module 36 includes:
[0129] A first determining submodule 351 is configured to determine the height of the target roof panel according to the spatial coordinates of any point in the point set of the positioning line segment of the plane contour;
[0130] The first generating submodule 352 is configured to generate the target roof panel according to the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
[0131] As can be seen from the above, the apparatus 30 for generating a roof panel provided in an embodiment of the present application comprises a first acquisition module 31 for acquiring the positioning line segments of target wall components and target beam components; a first generation module 32 for generating a plane profile based on the positioning line segments; a first determination module 33 for determining the point set of positioning line segments that constitute the plane profile; a second acquisition module 34 for acquiring the maximum height point and the minimum height point in the point set; a first calculation module 35 for calculating the slope of the positioning line segment based on the maximum height point and the minimum height point; and a second generation module 36 for generating a target roof panel based on the slope of the positioning line segment and the plane profile. This allows the 3D design software to generate the roof panel component based on the slope of the positioning line segment and the plane profile when the data information of the roof panel component imported into the 3D design software is incomplete. This allows the 3D design software to generate the roof panel component based on the data information of the wall components and beam components related to the target roof panel.
[0132] The present application also provides a terminal, which may be a smartphone, tablet computer, desktop computer, or other device.
[0133] like Figure 9 As shown, the terminal 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 9 The structure of the terminal 1200 shown in the figure does not constitute a limitation on the terminal 1200, and the terminal 1200 may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0134] RF circuit 110 is used to receive and transmit electromagnetic waves, converting them into electrical signals, thereby enabling communication with a communications network or other devices. RF circuit 110 may include various existing circuit components for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, and memory. RF circuit 110 can communicate with various networks, such as the Internet, an intranet, or a wireless network, or with other devices via a wireless network.
[0135] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the image processing method in the above-mentioned embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include a memory remotely located relative to the processor 180, and these remote memories may be connected to the terminal 1200 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.
[0136] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display or touchpad, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch-sensitive surface 131) and drive the corresponding connection device according to a pre-set program. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. Specifically, the other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.
[0137] The display unit 140 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the terminal 1200. These graphical user interfaces can be composed of graphics, text, icons, videos, or any combination thereof. The display unit 140 may include a display panel 141. Furthermore, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, the touch-sensitive surface 131 transmits the information to the processor 180 to determine the type of touch event. The processor 180 then provides a corresponding visual output on the display panel 141 based on the type of touch event. The display unit 140 is the screen in the above-mentioned embodiment.
[0138] The terminal 1200 may further include at least one sensor 150, such as a light sensor, a motion sensor, or other sensors. Other sensors that may be configured in the terminal 1200, such as a barometer, a hygrometer, a thermometer, an infrared sensor, etc., will not be described in detail here.
[0139] Audio circuit 160, speaker 161, and microphone 162 provide an audio interface between the user and terminal 1200. Audio circuit 160 converts received audio data into electrical signals and transmits them to speaker 161, which then converts them into sound signals for output. Microphone 162, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 160 and converted into audio data. The audio data is then processed by processor 180 and transmitted via RF circuit 110 to, for example, another terminal. Alternatively, the audio data may be output to memory 120 for further processing. Audio circuit 160 may also include an earphone jack to allow communication between an external headset and terminal 1200.
[0140] The terminal 1200 can help users send and receive emails, browse web pages and access streaming media through the transmission module 170 (such as a Wi-Fi module), and it provides users with wireless broadband Internet access. Figure 9 The transmission module 170 is shown, but it is understandable that it is not an essential component of the terminal 1200 and can be omitted as needed without changing the essence of the invention.
[0141] Processor 180 is the control center of terminal 1200, connecting all components of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 120 and accessing data stored in memory 120, it executes various functions of terminal 1200 and processes data, thereby providing overall monitoring of the phone. Optionally, processor 180 may include one or more processing cores. In some embodiments, processor 180 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 180.
[0142] The terminal 1200 also includes a power supply 190 (e.g., a battery) for supplying power to various components. The power supply can be logically connected to the processor 180 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 190 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0143] Although not shown, the terminal 1200 may further include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the display unit 140 of the terminal 1200 is a touch screen display. The terminal 1200 also includes a memory 120 and one or more programs, wherein the one or more programs are stored in the memory 120 and are configured to be executed by the one or more processors 180. The one or more programs include instructions for performing the following operations:
[0144] Obtain positioning line segments of target wall components and target beam components; generate a plane contour based on the positioning line segments; determine a point set of the positioning line segments constituting the plane contour, and obtain a point with a maximum height value and a point with a minimum height value in the point set; calculate a slope of the positioning line segment based on the point with a maximum height value and the point with a minimum height value; and generate a target roof panel based on the slope of the positioning line segment and the plane contour.
[0145] In some embodiments, when generating a target roof panel based on the slope of the positioning line segment and the plane contour, the processor 180 can determine the height of the target roof panel based on the spatial coordinates of any point in the point set of the positioning line segment of the plane contour; and generate the target roof panel based on the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
[0146] In some embodiments, the processor 180 may further obtain preset thickness information of a target roof panel component; and generate the target roof panel according to the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile.
[0147] In some embodiments, when obtaining the point with the maximum height value and the point with the minimum height value in the point set, the processor 180 can perform the following operations: compare the height values corresponding to each point in the point set of the positioning segment to obtain a first comparison result; and obtain the point with the maximum height value and the point with the minimum height value in the point set based on the first comparison result.
[0148] In some embodiments, when obtaining the point with the maximum height value and the point with the minimum height value in the point set, the processor 180 can perform the following operations: obtain the height value set corresponding to each point in the contour line of the plane contour; compare the height values in the height value set to obtain a second comparison result; and determine the point with the maximum height value and the point with the minimum height value from the point set based on the second comparison result.
[0149] In some embodiments, when calculating the slope of the positioning line segment based on the maximum height point and the minimum height point, the processor 180 can perform the following operations: determining the spatial coordinates of the maximum height point and the minimum height point; obtaining a spatial direction vector based on the spatial coordinates of the maximum height point and the minimum height point; the spatial direction vector is the slope of the target roof panel.
[0150] As can be seen from the above, the terminal provided in the embodiments of the present application can obtain the positioning line segments of the target wall component and the target beam component; generate a plane contour based on the positioning line segments; determine the point set of the positioning line segments that constitute the plane contour, and obtain the maximum height point and the minimum height point in the point set; calculate the slope of the positioning line segment based on the maximum height point and the minimum height point; and generate a target roof panel based on the slope of the positioning line segment and the plane contour. The embodiments of the present application also provide a storage medium, wherein the storage medium stores a computer program. When the computer program is executed on a computer, the computer executes the method for generating a roof panel described in any of the above embodiments.
[0151] It should be noted that, with respect to the method for generating roof panels described in this application, a person skilled in the art will understand that all or part of the process of the method for generating roof panels described in the embodiments of this application can be implemented by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, such as a memory of a terminal, and executed by at least one processor in the terminal. During execution, the process of performing the process may include the process of the embodiment of the method for generating roof panels. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), or the like.
[0152] For the apparatus for generating roof panels according to the embodiments of the present application, each functional module can be integrated into a single processing chip, each module can exist physically separately, or two or more modules can be integrated into a single module. The integrated modules can be implemented in the form of hardware or software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
[0153] The above describes in detail the method, device, storage medium, and terminal for generating roof panels provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is intended only to facilitate understanding of the method and core concept of the present application. Furthermore, those skilled in the art will appreciate that variations in the specific implementation methods and scope of application may occur based on the concepts of the present application. In summary, the contents of this specification should not be construed as limiting the present application.
[0154] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0155] The above is a detailed introduction to a method, device, storage medium and terminal for generating roof panels provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solutions and core ideas of the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for producing a roof panel, characterized in that: The method comprises: Obtaining the positioning line segments of the target wall component and the target beam component; generating a plane contour according to the positioning line segment; Determine a point set of the positioning line segments constituting the plane contour, and obtain a point with a maximum height value and a point with a minimum height value in the point set; Calculating the slope of the positioning line segment according to the maximum height point and the minimum height point; generating a target roof panel according to the slope of the positioning line segment and the plane contour; The obtaining of the point with the maximum height value and the point with the minimum height value in the point set includes: Comparing the height value corresponding to each point in the point set of the positioning line segment to obtain a first comparison result; The point with the maximum height value and the point with the minimum height value in the point set are obtained according to the first comparison result.
2. The method according to claim 1, wherein Generating a target roof panel according to the slope of the positioning line segment and the plane contour includes: determining the height of the target roof panel according to the spatial coordinates of any point in the point set of the positioning line segment of the plane contour; The target roof panel is generated according to the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
3. The method according to claim 2, wherein Also includes: Obtaining preset thickness information of target roof panel components; The target roof panel is generated according to the preset thickness information, the slope of the target roof panel, the height of the target roof panel, and the plane profile.
4. The method according to claim 1, wherein The obtaining of the point with the maximum height value and the point with the minimum height value in the point set includes: Obtaining a set of height values corresponding to each point in the contour line of the plane contour; Comparing the height values in the height value set to obtain a second comparison result; The point with the maximum height value and the point with the minimum height value are determined from the point set according to the second comparison result.
5. The method according to claim 1, wherein Calculating the slope of the positioning line segment according to the maximum height point and the minimum height point includes: Determine the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value; Obtaining a spatial direction vector according to the spatial coordinates of the point with the maximum height value and the spatial coordinates of the point with the minimum height value; The spatial direction vector is the slope of the target roof panel.
6. A device for producing roof panels, using the method according to any one of claims 1 to 5, characterized in that: include: A first acquisition module is used to acquire the positioning line segments of the target wall component and the target beam component; A first generating module, configured to generate a plane contour according to the positioning line segment; A first determining module is used to determine a set of points constituting a positioning line segment of the plane contour; A second acquisition module is used to obtain the point with the maximum height value and the point with the minimum height value in the point set; A first calculation module is used to calculate the slope of the positioning line segment according to the maximum height point and the minimum height point; The second generating module is configured to generate a target roof panel according to the slope of the positioning line segment and the plane contour.
7. The device for producing a roof panel according to claim 6, characterized in that: The second generation module includes: A first determining submodule is configured to determine the height of the target roof panel according to the spatial coordinates of any point in the point set of the positioning line segment of the plane contour; The first generating submodule is configured to generate the target roof panel according to the slope of the positioning line segment, the plane contour, and the height of the target roof panel.
8. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is run on a computer, the computer is enabled to execute the steps of the method for generating a roof panel according to any one of claims 1 to 5.
9. A terminal, characterized in that: The terminal includes a processor and a memory, wherein a computer program is stored in the memory, and the processor is configured to execute the steps of the method for generating a roof panel according to any one of claims 1 to 5 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Two-dimensional drawing three-dimensional reconstruction method and system for pitched roof and medium
CN110837666A