Structural optimization method, device, equipment and medium for building virtual modeling
Through virtual modeling of large buildings, detecting contact surfaces and optimizing grid point density, the problems of resource exhaustion and low analysis efficiency in the existing technology are solved, and the efficiency of virtual modeling is improved.
Patent Information
- Application Number
- CN202410221363.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-02-28
AI Technical Summary
The existing technology cannot accurately configure the grid point density of structural components when performing virtual modeling of large buildings, resulting in exhaustion of computer resources or low analysis efficiency.
By modeling the physical building structure, the contact surfaces between virtual components are detected, the components corresponding to the contact surfaces are screened out, the structural optimization coefficient is calculated according to the optimization strategy, and the grid point density of the target components is optimized to ensure that the area near the contact surfaces is High grid density reduces system resource consumption.
It achieves high grid density near the contact surface while reducing computer resource consumption and improving the efficiency of architectural virtual modeling analysis.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtual modeling, and in particular to a structural optimization method, device, equipment and medium for building virtual modeling. Background Art
[0002] Virtual modeling of building structures is a widely used building model design method. Through virtual building models, strength analysis and force analysis of structural parts in buildings can be performed, which effectively improves work efficiency, saves resources and reduces costs. However, when using traditional technical methods to model structural parts in buildings, virtual modeling of structural parts is usually performed based on the properties of the structural parts combined with the default grid density. As the size of the building increases and the number of structural parts increases, the number of grid points obtained by virtual modeling also increases significantly. If each structural part in a large building is fully refined and virtual modeled, a high-performance computer is required and a large amount of computer system resources are consumed. Therefore, during the modeling and operation of large buildings, the computer often freezes or freezes due to exhaustion of system resources, making the process of analyzing the virtual modeling of the building unsmooth, affecting the efficiency of virtual modeling and analysis of the building. If the fineness of the building model is reduced, the grid point density of the contact area of the structural parts in the virtual model is small. If the grid point density is too small, it is impossible to accurately and reliably perform force analysis between the structural parts. Therefore, there is a problem in the existing technical method that the grid point density of the structural parts cannot be accurately configured when virtual modeling the building. Summary of the invention
[0003] The embodiments of the present invention provide a structural optimization method, device, equipment and medium for building virtual modeling, aiming to solve the problem of being unable to accurately configure the grid point density of structural parts when performing virtual modeling of buildings in the prior art methods.
[0004] In a first aspect, an embodiment of the present invention provides a structural optimization method for building virtual modeling, wherein the method comprises:
[0005] Modeling the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model;
[0006] Performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between the virtual components;
[0007] Selecting a virtual component corresponding to the contact surface from the virtual model as a target optimization component;
[0008] Acquiring a structural optimization coefficient corresponding to a component structural parameter of the target optimized component according to a preset optimization adjustment strategy;
[0009] The structure of the target optimization component corresponding to the virtual model is optimized according to the structural optimization coefficient to obtain a virtual optimization model.
[0010] In a second aspect, an embodiment of the present invention further provides a structural optimization device for building virtual modeling, the device being used to execute the structural optimization method for building virtual modeling as described in the first aspect above, the device comprising:
[0011] A virtual model building unit is used to model the building structure parameters corresponding to the physical building structure to obtain a corresponding virtual model;
[0012] A contact surface acquisition unit, used for performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between virtual components;
[0013] A virtual component screening unit, used for screening a virtual component corresponding to the contact surface from the virtual model as a target optimization component;
[0014] A structural optimization coefficient acquisition unit, used to acquire a structural optimization coefficient corresponding to a component structural parameter of the target optimization component according to a preset optimization adjustment strategy;
[0015] The structural optimization unit is used to perform structural optimization on the corresponding target optimization components in the virtual model according to the structural optimization coefficient to obtain a virtual optimization model.
[0016] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0017] Memory, used to store computer programs;
[0018] The processor is used to implement the steps of the structural optimization method of building virtual modeling described in the first aspect when executing the program stored in the memory.
[0019] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the structural optimization method for building virtual modeling as described in the first aspect above are implemented.
[0020] The embodiment of the present invention provides a structural optimization method, device, equipment and medium for building virtual modeling, the method comprising: modeling the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model; performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain the contact surface between the virtual components; screening the virtual component corresponding to the contact surface from the virtual model as the target optimization component; obtaining the structural optimization coefficient corresponding to the component structure parameter of the target optimization component according to a preset optimization adjustment strategy; performing structural optimization on the corresponding target optimization component in the virtual model according to the structural optimization coefficient to obtain the virtual optimization model. The above structural optimization method obtains the target optimization component corresponding to the contact surface and obtains the structural optimization coefficient, and performs structural optimization on the target optimization component according to the structural optimization coefficient, thereby reducing system resource consumption while ensuring that the area near the contact surface has a large mesh density. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0022] Figure 1 A method flow chart of a structural optimization method for building virtual modeling provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of an application of the structural optimization method for building virtual modeling provided by an embodiment of the present invention;
[0024] Figure 3 A schematic block diagram of a structure optimization device for building virtual modeling provided by an embodiment of the present invention;
[0025] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0028] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] See also Figure 1 As shown in the figure, the embodiment of the present invention provides a structural optimization method for building virtual modeling, which is applied in a computer device. The method is executed by an application software installed in the computer device. The computer device is a terminal device for executing the structural optimization method for building virtual modeling to perform virtual modeling on the building, such as a desktop computer, a laptop computer, a tablet computer or a mobile phone, etc. The computer device can also be a server terminal. Figure 1 As shown, the method includes steps S110 to S150.
[0031] S110: Modeling building structure parameters corresponding to the physical building structure to obtain a corresponding virtual model.
[0032] Model the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model. The physical building structure is the actual building structure that needs to be built in reality, and the virtual model is the three-dimensional virtual model corresponding to the physical building structure generated by virtual modeling. Specifically, the model file corresponding to the physical building structure can be input into the modeling software. The model file can be a model file made by Revit, or a model file made by modeling tool software such as Bentley, Tekla, ArchiCAD, etc. The model file contains the building structure parameters corresponding to the physical building structure. Each physical building structure is composed of multiple structural parts. The building structure parameters include the structural part number, structural part name, material (concrete, steel member, etc.), hardness, unit area load (N / ㎜2), geometric shape parameters (structural part's own shape, size and other related parameters), position parameters (parameter information corresponding to the position of the structural part in the physical building structure), etc.
[0033] According to the building structure parameters, virtual modeling can be performed in the modeling software to generate virtual components corresponding to the material, hardness, geometric shape parameters, position parameters and other parameter information of each structural member. The grid point density of the initially generated virtual components is equal to the pre-configured initial density, such as 1Pixel / dm 3 ; Virtual components can be used to simulate the structure of each structural member in the modeling software, and the virtual components of each structural member are combined into a virtual model corresponding to the complete physical building structure.
[0034] S120: Perform contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between virtual components.
[0035] The virtual components in the virtual model are contact-checked according to the preset detection rules to obtain the contact surfaces between the virtual components. Further, the virtual components in the virtual model can be contact-checked according to the detection rules, that is, whether there is a contact surface between adjacent virtual components is detected according to the detection rules, so as to obtain the contact surface between the virtual components.
[0036] In a specific embodiment, step S120 includes the steps of: determining a connection line between two adjacent virtual components in the virtual model according to the connection type in the detection rule; obtaining the closest distance between the corresponding two virtual components according to the connection line; and determining whether the closest distance between the two virtual components is less than a distance threshold in the detection rule to obtain a contact surface between the two virtual components whose closest distance is less than the distance threshold.
[0037] Specifically, the detection rule includes a connection type, which can be a geometric center connection, a center of gravity connection, etc. If the connection type is a geometric center connection, the geometric centers of any two virtual components are obtained and connected to obtain a connection line between the two virtual components; if the connection type is a center of gravity connection, the centers of gravity of any two virtual components are obtained and connected to obtain a connection line between the two virtual components. Figure 2 As shown, the connection type is geometric center connection, then the geometric centers of the two virtual components are determined and the connection line A is obtained.
[0038] According to the connecting line, the point on the outer surface of the virtual component through which the connecting line passes is obtained as the judgment point. Then, two virtual components through which the connecting line passes can obtain two corresponding judgment points, and the three-dimensional space distance between the two judgment points is calculated as the shortest distance between the two virtual components corresponding to the connecting line.
[0039] The detection rule includes a distance threshold, which can be used to determine whether the closest distance between two virtual components is less than the distance threshold. If so, it is determined that there is a contact surface between the two virtual components; if not, it is determined that there is no contact surface between the two virtual components. Based on the above judgment result, the contact surface between the two virtual components whose closest distance is less than the distance threshold is obtained.
[0040] S130: Filter a virtual component corresponding to the contact surface from the virtual model as a target optimization component.
[0041] The virtual component corresponding to the contact surface is selected from the virtual model as the target optimization component. Further, the virtual model is selected according to the determined contact surface, so as to obtain the virtual component corresponding to the contact surface as the target optimization component.
[0042] In a specific embodiment, step S130 includes the steps of: determining whether each virtual component in the virtual model is associated with the contact surface, and obtaining an association determination result of each virtual component; and selecting virtual components associated with each contact surface as target optimization components according to the association determination result.
[0043] Specifically, it is possible to determine whether each virtual component in the virtual model is associated with a certain contact surface, thereby obtaining the association determination result of each virtual component. The association determination result is whether the virtual component is associated with the contact surface. A virtual component can be associated with one or more contact surfaces. According to the association determination result, the virtual components associated with the contact surface are selected as the target optimization components, and two target optimization components corresponding to each contact surface can be selected.
[0044] S140. Acquire a structural optimization coefficient corresponding to a component structural parameter of the target optimized component according to a preset optimization adjustment strategy.
[0045] According to the preset optimization adjustment strategy, the structural optimization coefficient corresponding to the component structural parameters of the target optimization component is obtained. Further, the structural optimization coefficient corresponding to the component structural parameters of the target optimization component can be obtained according to the optimization adjustment strategy, wherein the optimization adjustment strategy is a pre-configured strategy for optimizing the grid point density of the target optimization component; the structural optimization coefficient includes a thickness coefficient and a density coefficient, wherein the thickness coefficient is the thickness coefficient value for optimizing the grid point density of the target optimization component with the contact surface corresponding to the target optimization component as the starting position, and the density coefficient is the specific coefficient value for optimizing the grid point density of the target optimization component.
[0046] In a specific embodiment, step S140 includes the steps of: obtaining component parameters and relative component parameters corresponding to the target optimization component from the building structure parameters as corresponding component structure parameters, the relative component parameters being component parameters of another virtual component located on the opposite side of the corresponding contact surface as the target optimization component; performing comparative calculation on the component parameters in the component structure parameters of the target optimization component and the relative component parameters to obtain corresponding parameter comparison values; optimizing and adjusting the component parameters and parameter comparison values of the target optimization component according to the optimization adjustment strategy to obtain corresponding structural optimization coefficients.
[0047] Specifically, the component parameters corresponding to the target optimized component can be obtained from the building structure parameters. The component parameters include hardness and component volume. The component volume can be calculated from the geometric shape parameters of the virtual component. Furthermore, the relative component parameters corresponding to the target optimized component can be obtained. The relative component parameters are the component parameters of another virtual component located on the opposite side of the corresponding contact surface with the target optimized component. That is, the relative component parameters of the target optimized component include the hardness and volume of another virtual component located on the opposite side of the contact surface. Then, the component parameters corresponding to the target optimized component and a contact surface and the relative component parameters are combined into the component structure parameters of the target optimized component.
[0048] Furthermore, the component parameters in the component structure of the target optimized component are compared and calculated with the relative component parameters to obtain the parameter comparison value, that is, the ratio between each numerical value in the component parameter and the corresponding numerical value in the relative component parameter is calculated, and the ratio corresponding to each numerical value is obtained as the parameter comparison value. The parameter comparison value includes the hardness ratio of the hardness in the component parameter to the hardness in the relative component parameter (calculated by dividing the two hardnesses), and the volume ratio of the volume in the component parameter to the volume in the relative component parameter (calculated by dividing the two volumes).
[0049] Furthermore, the component parameters, parameter comparison values, and corresponding contact surface area values of the target optimized component are combined, and the combined information is optimized and adjusted through the optimization adjustment strategy to obtain the structural optimization coefficient. Specifically, the optimization adjustment strategy can be expressed by formula (1):
[0050]
[0051] Among them, h s is the thickness coefficient calculated by the first formula in the optimization adjustment strategy, P0 is the basic hardness parameter preset in the formula, V0 is the basic volume parameter preset in the formula, V r is the volume ratio in the parameter comparison value, V x Optimize the component volume for the target component, P x Optimize the hardness of the component for the target, P ris the hardness ratio in the parameter comparison value, and e is the base of the natural logarithm. s The density coefficient calculated by the second formula in the optimization adjustment strategy, S is the area value of the contact surface, S0 is the basic area parameter preset in the formula (such as 1 decimeter 3 ). The structural optimization coefficient of each target optimization component relative to a contact surface can be obtained through the above optimization adjustment strategy.
[0052] S150. Structural optimization is performed on the target optimization components corresponding to the virtual model according to the structural optimization coefficients to obtain a virtual optimization model.
[0053] The target optimization component corresponding to the virtual model is structurally optimized according to the structural optimization coefficient to obtain a virtual optimization model. Further, the target optimization component corresponding to the virtual model is structurally optimized according to the structural optimization coefficient, and a set of structural optimization coefficients can be used to structurally optimize the local position of a target optimization component relative to a contact surface. If the target optimization component is associated with multiple contact surfaces, multiple local positions corresponding to the target optimization component and the multiple contact surfaces can be structurally optimized according to multiple sets of structural optimization coefficients of the target optimization component. After all the target optimization components are structurally optimized, a virtual optimization model corresponding to the virtual model can be obtained.
[0054] In a specific embodiment, step S150 includes the steps of: obtaining the optimized thickness corresponding to the contact surface of the target optimization component according to the thickness coefficient in the structural optimization coefficient of each target optimization component; determining the corresponding structural optimization area according to the optimized thickness of the target optimization component; and performing density optimization on the corresponding structural optimization area according to the density coefficient in the structural optimization coefficient of each target optimization component to obtain a corresponding virtual optimization model.
[0055] Specifically, the corresponding optimized thickness is obtained according to the thickness coefficient in the structural optimization coefficient of the target optimized component. Specifically, the vertical distance corresponding to the target optimized component is obtained based on the vertical direction perpendicular to the contact surface, and the extension direction of the depth distance is also parallel to the vertical direction of the contact surface. The thickness coefficient is multiplied by the vertical distance of the target optimized component relative to the contact surface to obtain the corresponding optimized thickness.
[0056] Furthermore, the corresponding structural optimization region is determined according to the optimized thickness of the target optimized component. Specifically, the region near the contact surface of the target optimized component is intercepted according to the optimized thickness as the structural optimization region. Figure 2 The first virtual component 10 shown in the figure has a corresponding structural optimization area 101 ; the second virtual component 20 has a corresponding structural optimization area 201 .
[0057] The density of the structural optimization area is optimized according to the density coefficient in the structural optimization coefficient of the target optimization component. Specifically, the grid point density of the structural optimization area after optimization is the product of the density coefficient and the initial density. For example, the initial density is 1Pixel / dm 3 , the density coefficient of the first virtual component 10 is 15.625, so the structural optimization area is 101 and the optimized grid point density is 15.625Pixel / dm 3 , the structure optimization area is 101, and the grid point density in the two-dimensional plane is increased by 2.5 times; the density coefficient of the second virtual component 20 is 8, so the structure optimization area is 201, and the optimized grid point density is 8Pixel / dm 3 The grid point density of the structural optimization area 201 in the two-dimensional plane is increased by 2 times.
[0058] The above-mentioned technical method for structural optimization of the local area of the target optimization component in the virtual model optimizes and improves the grid point density of the local area near the contact surface according to the component structural parameters of the target optimization component, thereby ensuring that the key parts of the structural parts can be simulated and analyzed; at the same time, since the entire building structure is virtually modeled with the initial density, excessive consumption of computer system resources can be avoided. By accurately configuring the grid point density of the structural parts, low consumption of computer system resources is achieved while ensuring that the area near the contact surface has a large grid density, which greatly improves the application effect of virtual modeling and analysis of building structures.
[0059] In the structural optimization method of building virtual modeling disclosed in the above embodiment, the method includes: modeling the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model; performing contact detection on each virtual component in the virtual model according to the preset detection rules to obtain the contact surface between the virtual components; screening the virtual component corresponding to the contact surface from the virtual model as the target optimization component; obtaining the structural optimization coefficient corresponding to the component structure parameter of the target optimization component according to the preset optimization adjustment strategy; performing structural optimization on the corresponding target optimization component in the virtual model according to the structural optimization coefficient to obtain the virtual optimization model. The above structural optimization method obtains the target optimization component corresponding to the contact surface and obtains the structural optimization coefficient, and performs structural optimization on the target optimization component according to the structural optimization coefficient, thereby reducing system resource consumption while ensuring that the area near the contact surface has a large mesh density.
[0060] The embodiment of the present invention also provides a structure optimization device for building virtual modeling, which can be configured in a computer device and is used to execute any embodiment of the structure optimization method for building virtual modeling. Figure 3 , Figure 3A schematic block diagram of a structural optimization device for building virtual modeling provided by an embodiment of the present invention.
[0061] like Figure 3 As shown, the structural optimization device 100 for building virtual modeling includes a virtual model building unit 110 , a contact surface acquisition unit 120 , a virtual component screening unit 130 , a structural optimization coefficient acquisition unit 140 and a structural optimization unit 150 .
[0062] The virtual model building unit 110 is used to model the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model.
[0063] The contact surface acquisition unit 120 is used to perform contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between virtual components.
[0064] In a specific embodiment, the contact surface acquisition unit 120 includes: a connection line determination unit, used to determine the connection line between two adjacent virtual components in the virtual model according to the connection type in the detection rule; a distance determination unit, used to obtain the closest distance between the corresponding two virtual components according to the connection line; and a distance judgment unit, used to judge whether the closest distance between the two virtual components is less than the distance threshold in the detection rule, so as to obtain the contact surface between the two virtual components whose closest distance is less than the distance threshold.
[0065] The virtual component screening unit 130 is used to screen the virtual component corresponding to the contact surface from the virtual model as a target optimization component.
[0066] In a specific embodiment, the virtual component screening unit 130 includes: an association judgment result acquisition unit, used to judge whether each virtual component in the virtual model is associated with the contact surface, and obtain the association judgment result of each virtual component; a screening unit, used to screen the virtual components associated with each contact surface as target optimization components according to the association judgment result.
[0067] The structural optimization coefficient acquisition unit 140 is used to acquire the structural optimization coefficient corresponding to the component structural parameters of the target optimization component according to a preset optimization adjustment strategy.
[0068] The structural optimization unit 150 is used to perform structural optimization on the corresponding target optimization component in the virtual model according to the structural optimization coefficient to obtain a virtual optimization model.
[0069] The structural optimization device for building virtual modeling provided in the embodiment of the present invention applies the structural optimization method for building virtual modeling to model the building structural parameters corresponding to the physical building structure to obtain the corresponding virtual model; perform contact detection on each virtual component in the virtual model according to the preset detection rules to obtain the contact surface between the virtual components; select the virtual component corresponding to the contact surface from the virtual model as the target optimization component; obtain the structural optimization coefficient corresponding to the component structural parameter of the target optimization component according to the preset optimization adjustment strategy; perform structural optimization on the corresponding target optimization component in the virtual model according to the structural optimization coefficient to obtain the virtual optimization model. The above structural optimization method obtains the target optimization component corresponding to the contact surface and obtains the structural optimization coefficient, and performs structural optimization on the target optimization component according to the structural optimization coefficient, thereby reducing system resource consumption while ensuring that the area near the contact surface has a large mesh density.
[0070] The above-mentioned structure optimization device for building virtual modeling can be implemented in the form of a computer program, which can be used in Figure 4 Runs on the computer device shown.
[0071] See also Figure 4 , Figure 4 1 is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a terminal device for executing a structural optimization method for building virtual modeling to perform virtual modeling on a building.
[0072] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0073] The storage medium 503 can store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 can execute a structural optimization method for building virtual modeling, wherein the storage medium 503 can be a volatile storage medium or a non-volatile storage medium.
[0074] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0075] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the structural optimization method of building virtual modeling.
[0076] The network interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0077] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the structural optimization method of building virtual modeling.
[0078] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.
[0079] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0080] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the structural optimization method of the above-mentioned building virtual modeling are implemented.
[0081] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0082] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0083] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0084] 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.
[0085] 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 is essentially 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 computer-readable 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 computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk.
[0086] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A structural optimization method for building virtual modeling, characterized in that: The method comprises: Modeling the building structure parameters corresponding to the physical building structure to obtain the corresponding virtual model; Performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between the virtual components; Selecting a virtual component corresponding to the contact surface from the virtual model as a target optimization component; Acquiring a structural optimization coefficient corresponding to a component structural parameter of the target optimized component according to a preset optimization adjustment strategy; Performing structural optimization on the target optimization component corresponding to the virtual model according to the structural optimization coefficient to obtain a virtual optimization model; The obtaining, according to a preset optimization adjustment strategy, a structural optimization coefficient corresponding to a component structural parameter of the target optimization component comprises: Acquire component parameters and relative component parameters corresponding to the target optimized component from the building structure parameters as corresponding component structure parameters, wherein the relative component parameters are component parameters of another virtual component located on the opposite side of the corresponding contact surface to the target optimized component; the component parameters include hardness and component volume; Comparing and calculating the component parameters in the component structure parameters of the target optimized component with the relative component parameters to obtain corresponding parameter comparison values, including: comparing each numerical value in the component parameters with the corresponding numerical value in the relative component parameters to obtain corresponding parameter comparison values; According to the optimization adjustment strategy, the component parameters and parameter comparison values of the target optimization component are optimized and adjusted to obtain the corresponding structural optimization coefficient; the structural optimization coefficient includes the thickness coefficient and the density coefficient; the optimization adjustment strategy is ;h s is the thickness coefficient calculated by the first formula in the optimization adjustment strategy, P0 is the basic hardness parameter preset in the formula, V0 is the basic volume parameter preset in the formula, V r is the volume ratio in the parameter comparison value, V x Optimize the component volume for the target component, P x Optimize the hardness of the component for the target, P r is the hardness ratio in the parameter comparison value, e is the base of the natural logarithm, ρ s The density coefficient calculated by the second formula in the optimization adjustment strategy, S is the area value of the contact surface, and S0 is the basic area parameter preset in the formula.
2. The structural optimization method of building virtual modeling according to claim 1, characterized in that: The step of performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between the virtual components includes: Determine a connection line between two adjacent virtual components in the virtual model according to the connection type in the detection rule; Acquire the shortest distance between two corresponding virtual components according to the connection line; It is determined whether the closest distance between the two virtual components is less than a distance threshold in the detection rule, so as to obtain a contact surface between the two virtual components whose closest distance is less than the distance threshold.
3. The structural optimization method of building virtual modeling according to claim 1, characterized in that: The step of selecting a virtual component corresponding to the contact surface from the virtual model as a target optimization component includes: Determining whether each virtual component in the virtual model is associated with the contact surface, and obtaining an association determination result of each virtual component; According to the association judgment result, the virtual components associated with each of the contact surfaces are selected as target optimization components.
4. The structural optimization method of building virtual modeling according to claim 1, characterized in that: The step of performing structural optimization on the target optimization component corresponding to the virtual model according to the structural optimization coefficient to obtain the virtual optimization model includes: Obtaining an optimized thickness corresponding to a contact surface of the target optimized component according to a thickness coefficient in a structural optimization coefficient of each target optimized component; Determining a corresponding structural optimization region according to the optimized thickness of the target optimized component; Density optimization is performed on the corresponding structural optimization area according to the density coefficient in the structural optimization coefficient of each target optimization component to obtain a corresponding virtual optimization model.
5. A structural optimization device for building virtual modeling, characterized in that: The device is used to execute the structural optimization method of building virtual modeling according to any one of claims 1 to 4, and the device comprises: A virtual model building unit is used to model the building structure parameters corresponding to the physical building structure to obtain a corresponding virtual model; A contact surface acquisition unit, used for performing contact detection on each virtual component in the virtual model according to a preset detection rule to obtain contact surfaces between virtual components; A virtual component screening unit, used for screening a virtual component corresponding to the contact surface from the virtual model as a target optimization component; A structural optimization coefficient acquisition unit, used to acquire a structural optimization coefficient corresponding to a component structural parameter of the target optimization component according to a preset optimization adjustment strategy; The structural optimization unit is used to perform structural optimization on the corresponding target optimization components in the virtual model according to the structural optimization coefficient to obtain a virtual optimization model.
6. The structure optimization device for building virtual modeling according to claim 5, characterized in that: The contact surface acquisition unit comprises: A connection line determination unit, configured to determine a connection line between two adjacent virtual components in the virtual model according to a connection type in the detection rule; A distance determination unit, configured to obtain the shortest distance between two corresponding virtual components according to the connection line; The distance judgment unit is used to judge whether the shortest distance between two virtual components is less than the distance threshold in the detection rule, so as to obtain the contact surface between the two virtual components whose shortest distance is less than the distance threshold.
7. The structure optimization device for building virtual modeling according to claim 5, characterized in that: The virtual component screening unit comprises: an association judgment result obtaining unit, used to judge whether each virtual component in the virtual model is associated with the contact surface, and obtain an association judgment result of each virtual component; A screening unit is used to screen virtual components associated with each of the contact surfaces as target optimization components according to the association judgment result.
8. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; The processor is used to implement the steps of the structural optimization method of building virtual modeling described in any one of claims 1 to 4 when executing the program stored in the memory.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the structural optimization method for building virtual modeling according to any one of claims 1 to 4 are implemented.
