Cabinet modeling rendering method and device, equipment, storage medium and product

The grid offset calculation and deformation of the cabinet model through a computer program, which solves the problem of cumbersome and time-consuming adjustment of the cabinet model attribute parameters in the existing technology, and realizes efficient and real-time model adjustments, avoiding the introduction of human errors.

CN119579793APending Publication Date: 2025-03-07CHINA MOBILE GROUP DESIGN INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411763579.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When adjusting the cabinet model attribute parameters, the existing cabinet model is cumbersome and time-consuming, and it is easy to introduce human error, which is low efficiency and poor real-time.

Method used

By determining the initial cabinet model and calculating the grid offset based on the attribute parameters to be adjusted and the grid coordinates of the grid, the appearance and structure of the initial cabinet model are then deformed to obtain the adjusted cabinet model. The process is described by mathematical formulas, avoiding the steps of remodeling.

Benefits of technology

It realizes the efficiency and real-time adjustment of cabinet model attribute parameters, reduces artificial errors, simplifies the process, reduces time-consuming and improves design efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119579793A_ABST
    Figure CN119579793A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, and provides a cabinet modeling rendering method and device, equipment, a storage medium and a product. The method comprises the following steps: determining an initial cabinet model; obtaining attribute parameters to be adjusted; determining a grid offset based on the to-be-adjusted attribute parameters and the grid coordinates of the grid, and deforming the appearance of the initial cabinet model and the structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model; wherein the deformation process of the appearance and the structure is described through a first mathematical formula, and the first mathematical formula is determined based on the current model state, the attribute parameters and the structure change parameters of the initial cabinet model. By means of the mode, re-modeling is not needed, the adjusted cabinet model is directly calculated and generated according to the to-be-adjusted attribute parameters, the process is simple, consumed time is short, human errors can be avoided, the requirements for high efficiency and high real-time performance can be met, and designers can find problems in time and conduct adjustment and modification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a cabinet modeling and rendering method, device, equipment, storage medium and product. Background Art

[0002] In the existing digital twin 3D modeling technology of communication cabinets, when it comes to attribute editing, especially the adjustment of model attribute parameters, the solution of creating a new model is usually adopted, and the following steps are generally adopted: 1. When the geometric shape of the cabinet needs to be adjusted (such as length, width, and height, etc.), the designer needs to re-plan the spatial layout inside the cabinet according to the new parameters, and consider the impact of the new parameters on the placement of equipment in the cabinet, the direction of cables, and ventilation and heat dissipation. The relative position and arrangement of the components inside the cabinet are also redesigned; 2. Professionals use professional 3D modeling software to delete the original cabinet model, and draw the basic framework of the cabinet from scratch based on the re-planned internal structure parameters and new geometric parameters, and accurately determine the new vertex positions and line directions. 3. Set material properties for the new frame model. According to the actual purpose and use environment of the cabinet, select the appropriate material type, such as metal, plastic or composite material, and set the corresponding material parameters, such as reflectivity, roughness and transparency. 4. Remodel the internal equipment and components. According to the re-planned layout, create new equipment models one by one, including shape, size and detail features, and place them accurately in the new frame of the cabinet. 5. Redesign and arrange the cables inside the cabinet. According to the new location and connection requirements of the equipment, draw new cable paths to ensure that the length, curvature and fixing method of the cables meet the actual requirements. 6. Perform preliminary rendering and preview of the newly created cabinet model. Check the appearance effect, material performance and rationality of the internal structure of the model. If any problems are found, make adjustments and modifications.

[0003] The existing cabinet modeling and rendering methods require re-modeling when adjusting the attribute parameters of the cabinet model. The process is cumbersome, time-consuming, and dependent on professionals. It is easy to introduce human errors, and has low efficiency and poor real-time performance. Summary of the invention

[0004] The embodiments of the present application provide a cabinet modeling and rendering method, device, equipment, storage medium and product to solve the technical problems that the existing cabinet modeling and rendering method is cumbersome, time-consuming, easily introduces human errors, has low efficiency and poor real-time performance.

[0005] In a first aspect, an embodiment of the present application provides a cabinet modeling and rendering method, including: determining an initial cabinet model; obtaining attribute parameters to be adjusted; determining a grid offset based on the attribute parameters to be adjusted and the grid coordinates of the grid, and based on the grid offset, deforming the appearance of the initial cabinet model and the structure of the initial cabinet model to obtain an adjusted cabinet model; wherein the deformation process of the appearance and the structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

[0006] In one embodiment, the mesh includes a coarse-grained mesh and a fine-grained mesh, the mesh coordinates of the mesh include coarse-grained vertex coordinates of the coarse-grained mesh and fine-grained vertex coordinates of the fine-grained mesh, and the mesh offset includes coarse-grained vertex offset and fine-grained vertex offset; based on the attribute parameter to be adjusted and the mesh coordinates of the mesh, the mesh offset is determined, and based on the mesh offset, the appearance of the initial cabinet model and the structure of the initial cabinet model are deformed to obtain the adjusted cabinet model, including: based on the attribute parameter to be adjusted and the coarse-grained vertex coordinates, a coarse-grained mesh calculation is performed to obtain the coarse-grained vertex offset; based on the coarse-grained vertex offset and the coarse-grained Vertex coordinates, calculate the coarse-grained network deformation information of the coarse-grained grid through a first preset formula; based on the coarse-grained network deformation information, deform the appearance of the initial cabinet model and the structure of the initial cabinet model to obtain a coarse-grained cabinet model; based on the attribute parameters to be adjusted and the fine-grained vertex coordinates, perform fine-grained grid calculation to obtain fine-grained vertex offsets; based on the fine-grained vertex offsets and the fine-grained vertex coordinates, calculate the fine-grained grid deformation information of the fine-grained grid through a second preset formula; based on the fine-grained grid deformation information, deform the appearance of the coarse-grained cabinet model and the structure of the coarse-grained cabinet model to obtain an adjusted cabinet model.

[0007] In one embodiment, before determining the initial cabinet model, the method further includes: determining attribute parameters of the initial cabinet model; the attribute parameters include geometric parameters and structural parameters, the geometric parameters include length, width and height, the structural parameters include the total number of U bits, the number of occupied U bits and the U bit occupancy ratio, and the U bit occupancy ratio is determined based on the total number of U bits and the number of occupied U bits; constructing the initial cabinet model based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio; wherein the initial cabinet model is described by a second mathematical formula, and the second mathematical formula is determined based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio; the cabinet model is calculated and generated based on the attribute parameters to be adjusted and the second mathematical formula, the attribute parameters to be adjusted include the geometric parameters to be adjusted and / or the structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of the length to be adjusted, the width to be adjusted and the height to be adjusted, and the structural parameters to be adjusted include at least one of the total number of U bits to be adjusted, the number of occupied U bits to be adjusted and the U bit occupancy ratio to be adjusted.

[0008] In one embodiment, it also includes: based on the attribute parameters of the initial cabinet model, constructing a data table corresponding to the attribute parameters, and storing the data table in a database; decomposing the initial cabinet model to obtain multiple component nodes; based on the multiple component nodes, constructing a tree structure corresponding to the initial cabinet model; assigning a unique identifier to each component node in the tree structure, and establishing an index based on each unique identifier; and storing the indexed tree structure in a database.

[0009] In one embodiment, it also includes: in response to a data export instruction, determining a target export format, and extracting attribute parameters and component nodes from a data table and a tree structure; generating an initial cabinet model corresponding to the target export format based on the attribute parameters and the component nodes; and performing data verification and data error processing on the initial cabinet model corresponding to the target export format based on a preset verification formula.

[0010] In one embodiment, it also includes: in response to a data import instruction, obtaining cabinet model data to be imported; parsing and converting the data format of the cabinet model data to be imported to obtain attribute parameters to be imported and a tree structure to be imported of the cabinet to be imported; storing the attribute parameters to be imported and the tree structure to be imported into a database; and performing data verification and data error processing on the attribute parameters to be imported and the tree structure to be imported based on a preset verification formula.

[0011] In a second aspect, an embodiment of the present application provides a cabinet modeling and rendering device, comprising: a determination module for determining an initial cabinet model; an acquisition module for acquiring attribute parameters to be adjusted; an adjustment module for determining a grid offset based on the attribute parameters to be adjusted and the grid coordinates of the grid, and based on the grid offset, deforming the appearance of the initial cabinet model and the structure of the initial cabinet model to obtain an adjusted cabinet model; wherein the deformation process of the appearance and the structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the above-mentioned cabinet modeling and rendering methods.

[0013] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the cabinet modeling and rendering methods described above.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned cabinet modeling and rendering methods.

[0015] The cabinet modeling and rendering method, device, equipment, storage medium and product provided in the embodiments of the present application, when it is necessary to adjust the attribute parameters of the cabinet model, firstly calculate the offset according to the attribute parameters to be adjusted and the grid coordinates of the grid to determine the grid offset, and then deform the appearance of the initial cabinet model and the structure of the initial cabinet model according to the grid offset to obtain the adjusted cabinet model. There is no need for professionals to use professional 3D modeling software to re-model, but the adjusted cabinet model is directly calculated and generated according to the attribute parameters to be adjusted. The process is simple and time-saving, and can avoid the introduction of human errors, and can meet the requirements of high efficiency and high real-time performance. At the same time, the deformation process of the appearance and structure of the cabinet model can be described by mathematical formulas, which can intuitively reflect the changes in the cabinet model, which is conducive to designers to find problems in time and make adjustments and modifications. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0017] Figure 1This is one of the flow charts of the cabinet modeling and rendering method provided in the embodiment of the present application.

[0018] Figure 2 It is a schematic diagram of the property editing system interface provided in an embodiment of the present application.

[0019] Figure 3 This is the second flow chart of the cabinet modeling and rendering method provided in the embodiment of the present application.

[0020] Figure 4 It is a schematic diagram of the tree structure provided in the embodiment of the present application.

[0021] Figure 5 It is a structural schematic diagram of the cabinet modeling and rendering device provided in an embodiment of the present application.

[0022] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] See also Figure 1 , Figure 1 This is one of the flow diagrams of the cabinet modeling and rendering method provided in the embodiment of the present application. In the embodiment of the present application, the cabinet modeling and rendering method is applied to an online 3D modeling tool, and the online 3D modeling tool includes an efficient attribute editing system and a rendering engine. The cabinet modeling and rendering method includes steps S110 to S130, and each step is as follows: S110: Determine an initial cabinet model.

[0025] See also Figure 2 and Figure 3 , Figure 2 is a schematic diagram of the property editing system interface provided in the embodiment of the present application, Figure 3 This is the second flow chart of the cabinet modeling and rendering method provided in the embodiment of the present application.

[0026] Specifically, through Figure 2 Use the property editing system interface to create or load the initial cabinet model and edit the property parameters. Figure 2As shown, the user can edit various attribute parameters of the initial cabinet model through the attribute editing system interface, including size parameters, equipment configuration, etc. The edited attribute parameters can be sent to the rendering engine in real time. The rendering engine enhances the scene management mechanism and designs a more efficient data structure to organize and manage the cabinet model and its related elements.

[0027] The attribute parameters include geometric parameters and structural parameters. The geometric parameters include length, width and height. The structural parameters include the total number of U bits, the number of occupied U bits and the U bit occupancy ratio. The U bit occupancy ratio is determined based on the total number of U bits and the number of occupied U bits.

[0028] Alternatively, if Figure 3 As shown in FIG. 1 , the attribute editing system introduces an intelligent auxiliary editing function. When the user enters part of the attribute parameters, the attribute editing system can automatically recommend a reasonable combination of attribute parameter values ​​or provide relevant attribute editing suggestions, such as giving suggestions on U position occupancy based on actual conditions.

[0029] Furthermore, after receiving the attribute parameters, the rendering engine first performs coarse-grained grid calculation to determine the approximate shape and structural changes of the cabinet model, and generates an initial coarse-grained cabinet model after the coarse-grained grid calculation to prepare for further refinement.

[0030] Furthermore, the rendering engine can perform fine-grained grid calculations based on the initial coarse-grained cabinet model to present finer details of the initial cabinet model and generate an initial cabinet model that ultimately contains all the details. The initial cabinet model accurately presents all the appearance details and internal structure of the cabinet.

[0031] Optionally, a reasonable data structure is designed to store the attribute parameters and three-dimensional model data of the initial cabinet model to facilitate rapid retrieval and call; at the same time, it supports data import and export to facilitate the exchange and sharing of cabinet model data with other systems.

[0032] Preferably, the rendering engine is a real-time 3D rendering engine: ThreeJS is selected as the underlying 3D rendering engine. ThreeJS is a powerful and widely used open source library. In order to better meet specific needs and performance requirements, this embodiment deeply optimizes and encapsulates ThreeJS to form a twfusion framework. The twfusion framework has at least the following advantages: (1) Using advanced rendering algorithms, the cabinet 3D model can be quickly generated, accurately presenting its appearance details and internal structure.

[0033] (2) Hierarchical scene organization: In order to better manage the cabinet model and its internal equipment, cables and other complex elements, a multi-level scene tree structure is constructed in the twfusion framework, with the cabinet as the root node and its internal components as child nodes. Each child node can contain more detailed child nodes. This hierarchical structure facilitates the rapid location and operation of specific elements, and improves the speed of scene traversal and rendering updates.

[0034] (3) Supports real-time interactive browsing at multiple angles and zoom ratios. Users can freely rotate, zoom, and translate the 3D model to view all parts of the cabinet model from all angles.

[0035] It should be noted that the online 3D modeling tool of this embodiment adopts a mechanism of real-time synchronization of attribute parameter editing and rendering. Establishing an efficient data synchronization mechanism can ensure that the results of attribute editing can be transmitted to the rendering engine in real time, thereby realizing instant updating of the 3D model. At the same time, the online 3D modeling tool optimizes the data processing flow, allowing the user to cache the attribute parameters that have been recently edited. When the user performs continuous and rapid editing, part of the data can be directly obtained from the cache for optimization processing, thereby reducing repeated calculations and data preparation time.

[0036] S120: Obtain the attribute parameters to be adjusted.

[0037] When the property parameters of the current initial cabinet model need to be adjusted, the user can edit various property parameters of the initial cabinet model through the property editing system interface to generate property parameters to be adjusted; the property parameters to be adjusted can be transmitted to the rendering engine in real time.

[0038] S130: determining a grid offset based on the attribute parameter to be adjusted and the grid coordinates of the grid, and deforming the appearance and structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model.

[0039] The deformation process of the appearance and structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

[0040] Specifically, after the rendering engine receives the attribute parameters to be adjusted, it can perform an offset calculation based on the attribute parameters to be adjusted and the grid coordinates of the grid to obtain the grid offset, and based on the grid offset, deform the appearance and structure of the initial cabinet model to obtain the adjusted cabinet model.

[0041] In this embodiment, the cabinet model (ie, the three-dimensional model of the cabinet) can be expressed as a complex function ,in, represents the spatial coordinates, Represents time.

[0042] The appearance and structural deformation process of the initial cabinet model can be described by a first mathematical formula, and the expression of the first mathematical formula is as follows: ; in, represents the rate of change of the initial cabinet model over time; It is a function that depends on the current model state M, attribute parameter A and structure change parameter S of the initial cabinet model.

[0043] The cabinet modeling and rendering method provided in the embodiment of the present application, when it is necessary to adjust the attribute parameters of the cabinet model, firstly calculate the offset according to the attribute parameters to be adjusted and the grid coordinates of the grid to determine the grid offset, and then deform the appearance of the initial cabinet model and the structure of the initial cabinet model according to the grid offset to obtain the adjusted cabinet model. There is no need for professionals to use professional 3D modeling software to re-model, but the adjusted cabinet model is directly calculated and generated according to the attribute parameters to be adjusted. The process is simple and time-saving, and can avoid the introduction of human errors, and can meet the requirements of high efficiency and high real-time performance. At the same time, the deformation process of the appearance and structure of the cabinet model can be described by mathematical formulas, which can intuitively reflect the changes in the cabinet model, which is conducive to designers to find problems in time and make adjustments and modifications.

[0044] In some embodiments, the mesh includes a coarse-grained mesh and a fine-grained mesh, the mesh coordinates of the mesh include coarse-grained vertex coordinates of the coarse-grained mesh and fine-grained vertex coordinates of the fine-grained mesh, and the mesh offset includes coarse-grained vertex offset and fine-grained vertex offset; based on the attribute parameter to be adjusted and the mesh coordinates of the mesh, the mesh offset is determined, and based on the mesh offset, the appearance of the initial cabinet model and the structure of the initial cabinet model are deformed to obtain the adjusted cabinet model, including: based on the attribute parameter to be adjusted and the coarse-grained vertex coordinates, a coarse-grained mesh calculation is performed to obtain the coarse-grained vertex offset; based on the coarse-grained vertex offset and the coarse-grained Vertex coordinates, calculate the coarse-grained network deformation information of the coarse-grained grid through a first preset formula; based on the coarse-grained network deformation information, deform the appearance of the initial cabinet model and the structure of the initial cabinet model to obtain a coarse-grained cabinet model; based on the attribute parameters to be adjusted and the fine-grained vertex coordinates, perform fine-grained grid calculation to obtain fine-grained vertex offsets; based on the fine-grained vertex offsets and the fine-grained vertex coordinates, calculate the fine-grained grid deformation information of the fine-grained grid through a second preset formula; based on the fine-grained grid deformation information, deform the appearance of the coarse-grained cabinet model and the structure of the coarse-grained cabinet model to obtain an adjusted cabinet model.

[0045] In order to quickly generate the adjusted cabinet model, this embodiment introduces an optimization strategy based on a multi-level grid: the cabinet model is processed by dividing grids of different levels, namely coarse-grained grids and fine-grained grids. The coarse-grained grids are used to quickly determine the approximate shape changes of the cabinet model, and the fine-grained grids are used to generate the details of the cabinet model.

[0046] In this embodiment, the attribute parameters to be adjusted include geometric parameters to be adjusted and / or structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of a length to be adjusted, a width to be adjusted and a height to be adjusted, and the structural parameters to be adjusted include at least one of a total number of U positions to be adjusted, a number of occupied U positions to be adjusted and a U position occupancy ratio to be adjusted.

[0047] Among them, U-bit is the most commonly used basic unit in the data center industry for calibrating the physical space of communication cabinets for storing equipment. It is also the basic unit for calibrating the physical size of equipment such as servers, storage devices, switches, etc. 1 U-bit is 44.45 mm (1.75 inches) high and 19 inches wide.

[0048] like Figure 3 As shown, after obtaining the attribute parameters to be adjusted, coarse-grained mesh calculation can be performed first: based on the attribute parameters to be adjusted and the coarse-grained vertex coordinates, coarse-grained mesh calculation is performed to obtain the coarse-grained vertex offset; based on the coarse-grained vertex offset and the coarse-grained vertex coordinates, the coarse-grained network deformation information of the coarse-grained mesh is calculated through a first preset formula.

[0049] Specifically, assume that the coarse-grained vertex coordinates of the coarse-grained grid are , the fine-grained vertex coordinates of the fine-grained mesh are .

[0050] For the coarse-grained network deformation information, it can be calculated by the first preset formula, which is as follows: ; in, Represents the deformation of a coarse-grained network; It is a coarse-grained vertex offset calculated based on the attribute editing results (i.e. the attribute parameters to be adjusted) and the structural changes.

[0051] Furthermore, based on the coarse-grained network deformation information, the appearance of the initial cabinet model and the structure of the initial cabinet model are deformed to obtain a coarse-grained cabinet model.

[0052] For ease of understanding, take the length of the cabinet as the attribute parameter to be adjusted here: Assume the initial length of the initial cabinet model is \(L_0\), and the length to be adjusted is \(L_1\). Then the change in the length of the initial cabinet model is \(\Delta L = L_1 - L_0\). For the vertices located in the length direction of the initial cabinet model in the coarse - grained grid, the offset in the \(x\) - axis direction is calculated related to the length change. The vertices are evenly distributed in the length direction of the initial cabinet model, and the relative position ratio of the vertex corresponding to the vertex index \(i\) in the length direction is \(p_i(0 < p_i < 1)\). Then the offset of this vertex in the \(x\) - axis direction \(= p_i\times\Delta L\). For example, if a vertex is located at the 1 / 3 position in the cabinet length direction and the length increases by 0.6 meters (i.e., \(\Delta L = 0.6\)), then the offset of this vertex in the \(x\) - axis direction is \(0.6\times\frac{1}{3}=0.2\) meters.

[0053] Similarly, for the modification of the width direction of the initial cabinet model, assume the initial width of the initial cabinet model is \(W_0\), and the width to be adjusted is \(W_1\). Then the change in the width of the initial cabinet model is \(\Delta W = W_1 - W_0\). For the vertices located in the width direction, if the relative position ratio in the width direction is \(q_i(0 < q_i < 1)\), then the offset in the \(y\) - axis direction \(= q_i\times\Delta W\).

[0054] Similarly, for the modification of the height direction of the initial cabinet model, assume the initial height of the initial cabinet model is \(H_0\), and the height to be adjusted is \(H_1\). The height change is \(\Delta H = H_1 - H_0\). If the relative position ratio of the vertex in the height direction is \(r_i(0 < r_i < 1)\), then the offset in the \(z\) - axis direction \(= r_i\times\Delta H\). For example, if a vertex is located at the 1 / 4 position in the cabinet height and the height increases by 0.8 meters, the offset of this vertex in the \(z\) - axis direction is 0.2 meters.

[0055] For each attribute parameter to be adjusted, it can be adjusted according to the deformation information of the coarse - grained network. Thereby, the appearance and structure of the initial cabinet model are deformed to obtain a coarse - grained cabinet model.

[0056] Furthermore, based on the attribute parameter to be adjusted and the fine - grained vertex coordinates, fine - grained grid calculation is performed to obtain the fine - grained vertex offset; based on the fine - grained vertex offset and the fine - grained vertex coordinates, through a second preset formula, the fine - grained grid deformation information of the fine - grained grid is calculated.

[0057] Specifically, the fine - grained vertex coordinates of the fine - grained grid are , for the fine - grained grid deformation information, it can be calculated through the second preset formula. The second preset formula is as follows: ; in, Represents the deformation of the fine-grained grid; It is a fine-grained vertex offset calculated based on the attribute editing results (i.e. the attribute parameters to be adjusted) and the structural changes.

[0058] Furthermore, based on the fine-grained grid deformation information, the appearance of the coarse-grained cabinet model and the structure of the coarse-grained cabinet model are deformed to obtain an adjusted cabinet model.

[0059] Similarly, for each attribute parameter to be adjusted, it can be adjusted according to the deformation information of the fine-grained grid, so as to deform the appearance and structure of the coarse-grained cabinet model and obtain the adjusted cabinet model (i.e. Figure 3 The fine-grained cabinet model in ).

[0060] In this embodiment, when the attribute parameters are edited and the structure is changed, the positions of the mesh vertices are updated by calculating the vertex offsets in real time, thereby realizing the dynamic change of the three-dimensional model of the cabinet.

[0061] For example, in response to changes in the size and shape of the initial cabinet model: when the height of the initial cabinet model needs to be increased from H1 to H2, the rendering engine can calculate the vertex offsets of the coarse-grained mesh and the fine-grained mesh in sequence according to the editing results of the attribute parameters, and adjust the coarse-grained mesh to determine the approximate shape change of the initial cabinet model, and then present the surface details of the initial cabinet model through the fine-grained mesh, thereby generating and displaying the changed cabinet three-dimensional model in real time.

[0062] For example, dynamic adjustment of the internal structure of the initial cabinet model: when the equipment layout inside the initial cabinet model changes, such as adding new equipment or changing the position and direction of the equipment, the offset of the mesh vertices is recalculated according to the structural change parameters; for the involved mesh areas, the vertex positions are updated to accurately present the changes in the internal structure while ensuring a smooth transition with the unchanged areas.

[0063] In some embodiments, before determining the initial cabinet model, it also includes: determining the attribute parameters of the initial cabinet model; the attribute parameters include geometric parameters and structural parameters, the geometric parameters include length, width and height, the structural parameters include the total number of U bits, the number of occupied U bits and the U bit occupancy ratio, and the U bit occupancy ratio is determined based on the total number of U bits and the number of occupied U bits; constructing the initial cabinet model based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio; wherein the initial cabinet model is described by a second mathematical formula, and the second mathematical formula is determined based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio; the cabinet model is calculated and generated based on the attribute parameters to be adjusted and the second mathematical formula, the attribute parameters to be adjusted include the geometric parameters to be adjusted and / or the structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of the length to be adjusted, the width to be adjusted and the height to be adjusted, and the structural parameters to be adjusted include at least one of the total number of U bits to be adjusted, the number of occupied U bits to be adjusted and the U bit occupancy ratio to be adjusted.

[0064] This embodiment uses parametric modeling technology to parameterize the structure and attributes of the communication cabinet model. By adjusting the attribute parameter values, the shape and characteristics of the communication cabinet model can be quickly changed. The inheritance and derivation relationship of the parametric model is used to achieve rapid customization and expansion of different types of communication cabinet models.

[0065] Specifically, the structure and properties of the initial cabinet model are parameterized: Assume that the shape of the initial cabinet model is composed of length ,width ,high The internal structure (i.e., the U position situation) is determined by the total number of U positions. 、Number of occupied U positions and U-position occupancy ratio The initial cabinet model can be expressed by the following second mathematical formula: ; in, represents the initial cabinet model; It is a complex function that describes the cabinet shape, U position and occupancy.

[0066] U-position occupancy ratio It can be calculated by the following formula: .

[0067] By adjusting the values ​​of the various attribute parameters in the second mathematical formula, the rendering engine can quickly change the shape, U position and occupancy of the initial cabinet model.

[0068] Specifically, the attribute parameter to be adjusted is used as the adjustment value of each attribute parameter in the second mathematical formula, and the rendering engine can calculate and generate the cabinet model according to the attribute parameter to be adjusted and the second mathematical formula.

[0069] Among them, the attribute parameters to be adjusted include geometric parameters to be adjusted and / or structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of the length to be adjusted, the width to be adjusted and the height to be adjusted, and the structural parameters to be adjusted include at least one of the total number of U positions to be adjusted, the number of occupied U positions to be adjusted and the occupancy ratio of U positions to be adjusted.

[0070] For example, when the height of the initial cabinet model needs to be increased from 2 meters to 2.2 meters, or the number of occupied U positions needs to be increased from 5 to 8, the system can quickly calculate and generate the adjusted cabinet model based on the second mathematical formula, reflecting the changes in shape and U position conditions in real time.

[0071] The following is a specific example to further illustrate the application of parametric modeling technology in communication cabinet design: Assume that the attribute parameter of the initial cabinet model is length Meters, width ,high Meters, total number of U positions 、Number of occupied U positions ; When the design requirement changes to adjust the cabinet model's height H to 2.2 meters and add 5 occupied U positions, you only need to modify the corresponding parameters in the property editing system interface to rice, , the system can quickly generate the adjusted cabinet model, clearly showing the changes in shape and U position.

[0072] In some embodiments, it also includes: based on the attribute parameters of the initial cabinet model, constructing a data table corresponding to the attribute parameters, and storing the data table in a database; decomposing the initial cabinet model to obtain multiple component nodes; based on the multiple component nodes, constructing a tree structure corresponding to the initial cabinet model; assigning a unique identifier to each component node in the tree structure, and establishing an index based on each unique identifier; and storing the indexed tree structure in a database.

[0073] In practical applications, the attribute data and model data of the initial cabinet model and the adjusted cabinet model can be organized and stored separately. This embodiment takes the storage of the initial cabinet model as an example, and the storage principle and process of the adjusted cabinet model can refer to the initial cabinet model.

[0074] The attribute parameters of the initial cabinet model may be stored in a table format in a relational database.

[0075] Assuming that the attribute parameters of the initial cabinet model include size (length, width, height), height from the ground, total number of U positions, etc., a data table corresponding to the attribute parameters can be created, as shown in Table 1.

[0076] Table 1

[0077] As shown in Table 1, there are two initial cabinet models, and the cabinet numbers are 001 and 002 respectively. Then, various attribute parameters of the two initial cabinet models can be stored through Table 1, and Table 1 is stored in the database.

[0078] For the three-dimensional model data, that is, the initial cabinet model, a hierarchical storage method based on a tree structure is adopted: the initial cabinet model is decomposed into multiple components, each component is represented by a node, and multiple component nodes can be obtained; based on the relationship between each component node, a tree structure corresponding to the initial cabinet model is constructed.

[0079] See also Figure 4 , Figure 4 It is a schematic diagram of the tree structure provided in the embodiment of the present application.

[0080] Assuming that the initial cabinet model consists of components such as cabinet body C, cabinet door D, and internal U-position rack U, its corresponding tree structure is as follows: Figure 4 shown.

[0081] For example, when a new initial cabinet model is built, its attribute data (such as length of 0.6 meters, width of 0.6 meters, height of 2 meters, height from the ground of 0.2 meters, and total number of U positions of 42) is stored in a data table, and a tree structure is constructed for the components of its three-dimensional model for storage.

[0082] For example, if you need to view the property parameters of a specific cabinet model (such as model number 005), you can quickly query and obtain relevant information through the database. If you need to call its 3D model data, you can quickly locate and load the required component data based on the index of the tree structure.

[0083] It can be understood that in order to achieve fast retrieval and call, a unique identifier ID is assigned to each component node in the tree structure, and an index is created based on each unique identifier ID, and the indexed tree structure is stored in the database.

[0084] In some embodiments, it also includes: responding to a data export instruction, determining a target export format, and extracting attribute parameters and component nodes from a data table and a tree structure; generating an initial cabinet model corresponding to the target export format based on the attribute parameters and component nodes; and performing data verification and data error processing on the initial cabinet model corresponding to the target export format based on a preset verification formula.

[0085] The online 3D modeling tool supports the import and export of multiple data formats to facilitate data exchange and sharing with other systems.

[0086] Specifically, when exporting data, the attribute parameters and component nodes of the initial cabinet model may be extracted from the database and the tree structure, and generated according to the target export format.

[0087] For example, to export to JSON format, corresponding JSON objects and arrays can be constructed to represent the properties and 3D model structure of the cabinet model.

[0088] In order to ensure the consistency and integrity of the cabinet model data, data verification and error handling are required during the export process.

[0089] Specifically, based on a preset verification formula, data verification and data error processing are performed on the exported initial cabinet model.

[0090] Assume that the exported data is recorded as , then the preset verification formula can be expressed as: in, It is the preset verification formula.

[0091] In some embodiments, it also includes: in response to a data import instruction, obtaining cabinet model data to be imported; parsing and converting the data format of the cabinet model data to be imported to obtain attribute parameters to be imported and a tree structure to be imported of the cabinet to be imported; storing the attribute parameters to be imported and the tree structure to be imported into a database; and performing data verification and data error processing on the attribute parameters to be imported and the tree structure to be imported based on a preset verification formula.

[0092] Specifically, when importing data, the data format of the cabinet model data to be imported is analyzed and converted to obtain the attribute parameters to be imported and the tree structure to be imported of the cabinet to be imported, and store them in the database.

[0093] For example, taking the cabinet model data to be imported in XML format as an example, if you need to import the cabinet model data to be imported described in XML format from other systems, you can extract the relevant information and store it in the database and tree structure by parsing the XML tags and attributes; similarly, if you need to export the cabinet model data in this system to another system, you can choose JSON format for export and perform data verification and validation in the receiving system.

[0094] Similarly, data verification and error handling are required during the import process.

[0095] Assume that the imported data is recorded as , then the preset verification formula can be expressed as: in, It is a preset verification formula, that is, the process of data import and data export can be expressed by the same formula.

[0096] The cabinet modeling and rendering method provided in the embodiment of the present application has at least the following advantages compared with the prior art: (1) Greatly improves the design quality: accurate attribute editing and intuitive three-dimensional display help designers to find potential design problems and improve the design quality of the cabinet; (2) Reduces costs: reduces the cost waste caused by design errors and repeated modifications, while improving the efficiency of production and maintenance and reducing overall costs; (3) is conducive to the rapid introduction of new design solutions and products, so that products can be brought to market faster, meet customer needs, and enhance market competitiveness.

[0097] The present application also provides a cabinet modeling and rendering device. Figure 5 , Figure 5 5 is a schematic diagram of the structure of a cabinet modeling and rendering device provided in an embodiment of the present application. In the embodiment of the present application, the cabinet modeling and rendering device includes a determination module 510, an acquisition module 520 and an adjustment module 530.

[0098] The determination module 510 is used to determine an initial cabinet model.

[0099] The acquisition module 520 is used to acquire the attribute parameters to be adjusted.

[0100] The adjustment module 530 is used to determine a grid offset based on the attribute parameter to be adjusted and the grid coordinates of the grid, and deform the appearance and structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model.

[0101] The deformation process of the appearance and structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

[0102] In some embodiments, the mesh includes a coarse-grained mesh and a fine-grained mesh, the mesh coordinates of the mesh include coarse-grained vertex coordinates of the coarse-grained mesh and fine-grained vertex coordinates of the fine-grained mesh, and the mesh offset includes a coarse-grained vertex offset and a fine-grained vertex offset.

[0103] The adjustment module 530 is used to perform coarse-grained mesh calculation based on the attribute parameters to be adjusted and the coarse-grained vertex coordinates to obtain the coarse-grained vertex offset; calculate the coarse-grained network deformation information of the coarse-grained mesh based on the coarse-grained vertex offset and the coarse-grained vertex coordinates through a first preset formula; deform the appearance of the initial cabinet model and the structure of the initial cabinet model based on the coarse-grained network deformation information to obtain the coarse-grained cabinet model; perform fine-grained mesh calculation based on the attribute parameters to be adjusted and the fine-grained vertex coordinates to obtain the fine-grained vertex offset; calculate the fine-grained mesh deformation information of the fine-grained mesh based on the fine-grained vertex offset and the fine-grained vertex coordinates through a second preset formula; deform the appearance of the coarse-grained cabinet model and the structure of the coarse-grained cabinet model based on the fine-grained mesh deformation information to obtain the adjusted cabinet model.

[0104] In some embodiments, the determination module 510 is used to determine the attribute parameters of the initial cabinet model; the attribute parameters include geometric parameters and structural parameters, the geometric parameters include length, width and height, the structural parameters include the total number of U bits, the number of occupied U bits and the U bit occupancy ratio, and the U bit occupancy ratio is determined based on the total number of U bits and the number of occupied U bits; based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio, the initial cabinet model is constructed; wherein the initial cabinet model is described by a second mathematical formula, and the second mathematical formula is determined based on the length, width, height, the total number of U bits, the number of occupied U bits and the U bit occupancy ratio; the cabinet model is calculated and generated based on the attribute parameters to be adjusted and the second mathematical formula, the attribute parameters to be adjusted include the geometric parameters to be adjusted and / or the structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of the length to be adjusted, the width to be adjusted and the height to be adjusted, and the structural parameters to be adjusted include at least one of the total number of U bits to be adjusted, the number of occupied U bits to be adjusted and the U bit occupancy ratio to be adjusted.

[0105] In some embodiments, the cabinet modeling and rendering device also includes a storage module.

[0106] A storage module is used to construct a data table corresponding to the attribute parameters based on the attribute parameters of the initial cabinet model, and store the data table in a database; decompose the initial cabinet model to obtain multiple component nodes; construct a tree structure corresponding to the initial cabinet model based on the multiple component nodes; assign a unique identifier to each component node in the tree structure, and establish an index based on each unique identifier; and store the indexed tree structure in a database.

[0107] In some embodiments, the cabinet modeling and rendering device further includes a data export module.

[0108] The data export module is used to respond to the data export instruction, determine the target export format, and extract attribute parameters and component nodes from the data table and the tree structure; based on the attribute parameters and the component nodes, generate an initial cabinet model corresponding to the target export format; based on a preset verification formula, perform data verification and data error processing on the initial cabinet model corresponding to the target export format.

[0109] In some embodiments, the cabinet modeling and rendering device also includes a data import module.

[0110] The data import module is used to respond to the data import instruction to obtain the cabinet model data to be imported; parse and convert the data format of the cabinet model data to be imported to obtain the attribute parameters to be imported and the tree structure to be imported of the cabinet to be imported; store the attribute parameters to be imported and the tree structure to be imported into the database; and perform data verification and data error processing on the attribute parameters to be imported and the tree structure to be imported based on the preset verification formula.

[0111] The present application also provides an electronic device, Figure 6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the cabinet modeling rendering method.

[0112] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0113] An embodiment of the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the cabinet modeling and rendering method provided by the above methods is implemented.

[0114] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the cabinet modeling and rendering methods provided by the above methods.

[0115] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0116] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cabinet modeling and rendering method, characterized in that: include: Determine the initial cabinet model; Get the attribute parameters to be adjusted; Determining a grid offset based on the attribute parameter to be adjusted and the grid coordinates of the grid, and deforming the appearance of the initial cabinet model and the structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model; The deformation process of the appearance and the structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

2. The cabinet modeling and rendering method according to claim 1, characterized in that: The grid includes a coarse-grained grid and a fine-grained grid, the grid coordinates of the grid include coarse-grained vertex coordinates of the coarse-grained grid and fine-grained vertex coordinates of the fine-grained grid, and the grid offset includes a coarse-grained vertex offset and a fine-grained vertex offset; The step of determining a grid offset based on the attribute parameter to be adjusted and the grid coordinates of the grid, and deforming the appearance of the initial cabinet model and the structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model includes: Based on the attribute parameter to be adjusted and the coarse-grained vertex coordinates, a coarse-grained mesh calculation is performed to obtain the coarse-grained vertex offset; Based on the coarse-grained vertex offset and the coarse-grained vertex coordinates, the coarse-grained network deformation information of the coarse-grained mesh is calculated by a first preset formula; Based on the coarse-grained network deformation information, deforming the appearance of the initial cabinet model and the structure of the initial cabinet model to obtain a coarse-grained cabinet model; Based on the attribute parameter to be adjusted and the fine-grained vertex coordinates, fine-grained grid calculation is performed to obtain the fine-grained vertex offset; Based on the fine-grained vertex offset and the fine-grained vertex coordinates, fine-grained mesh deformation information of the fine-grained mesh is calculated by a second preset formula; Based on the fine-grained grid deformation information, the appearance of the coarse-grained cabinet model and the structure of the coarse-grained cabinet model are deformed to obtain the adjusted cabinet model.

3. The cabinet modeling and rendering method according to claim 1, characterized in that: Before determining the initial cabinet model, the method further includes: Determine attribute parameters of the initial cabinet model; the attribute parameters include geometric parameters and structural parameters, the geometric parameters include length, width and height, the structural parameters include the total number of U positions, the number of occupied U positions and the U position occupancy ratio, the U position occupancy ratio is determined based on the total number of U positions and the number of occupied U positions; constructing the initial cabinet model based on the length, the width, the height, the total number of U positions, the number of occupied U positions, and the U position occupancy ratio; The initial cabinet model is described by a second mathematical formula, and the second mathematical formula is determined based on the length, the width, the height, the total number of U positions, the number of occupied U positions, and the U position occupancy ratio; The cabinet model is generated based on the attribute parameters to be adjusted and the second mathematical formula, the attribute parameters to be adjusted include geometric parameters to be adjusted and / or structural parameters to be adjusted, the geometric parameters to be adjusted include at least one of a length to be adjusted, a width to be adjusted and a height to be adjusted, and the structural parameters to be adjusted include at least one of a total number of U positions to be adjusted, a number of occupied U positions to be adjusted and a U position occupancy ratio to be adjusted.

4. The cabinet modeling and rendering method according to claim 1, characterized in that: Also includes: Based on the attribute parameters of the initial cabinet model, construct a data table corresponding to the attribute parameters, and store the data table in a database; Decomposing the initial cabinet model to obtain multiple component nodes; Based on the plurality of component nodes, construct a tree structure corresponding to the initial cabinet model; Assigning a unique identifier to each of the component nodes in the tree structure, and establishing an index based on each of the unique identifiers; The indexed tree structure is stored in the database.

5. The cabinet modeling and rendering method according to claim 4, characterized in that: Also includes: In response to a data export instruction, determining a target export format, and extracting the attribute parameters and the component nodes from the data table and the tree structure; Based on the attribute parameters and the component nodes, generating an initial cabinet model corresponding to the target export format; Based on a preset verification formula, data verification and data error processing are performed on the initial cabinet model corresponding to the target export format.

6. The cabinet modeling and rendering method according to claim 4, characterized in that: Also includes: In response to the data import instruction, obtaining the cabinet model data to be imported; Parsing and converting the data format of the cabinet model data to be imported to obtain attribute parameters to be imported and a tree structure to be imported of the cabinet to be imported; Storing the attribute parameters to be imported and the tree structure to be imported into the database; Based on a preset verification formula, data verification and data error processing are performed on the attribute parameters to be imported and the tree structure to be imported.

7. A cabinet modeling and rendering device, characterized in that: include: A determination module, used for determining an initial cabinet model; An acquisition module is used to obtain the attribute parameters to be adjusted; An adjustment module, configured to determine a grid offset based on the attribute parameter to be adjusted and the grid coordinates of the grid, and deform the appearance of the initial cabinet model and the structure of the initial cabinet model based on the grid offset to obtain an adjusted cabinet model; The deformation process of the appearance and the structure is described by a first mathematical formula, and the first mathematical formula is determined based on the current model state, attribute parameters and structural change parameters of the initial cabinet model.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the cabinet modeling and rendering method according to any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cabinet modeling and rendering method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the cabinet modeling and rendering method according to any one of claims 1 to 6 is implemented.