Model lightening method and device, computer device, medium and program product

By identifying and lightweighting parts of the aero-engine model, and then modifying and rendering the modified parts, the problem of low efficiency in lightweighting of the model is solved, thereby improving the efficiency of modeling and simulation and the flexibility of design.

CN120068358BActive Publication Date: 2026-04-07TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In the existing technology for modeling and simulating aero-engines, the efficiency of lightweight model processing is low, resulting in overall low efficiency.

Method used

By identifying parts in the initial and modified models, generating configuration files, identifying modified parts, and performing lightweight processing on the modified parts, the rendering engine is used for rendering, reducing the amount of repeated rendering computation.

Benefits of technology

It improves the efficiency of aero-engine modeling and simulation, reduces the amount of rendering computation, and enhances the flexibility and efficiency of design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120068358B_ABST
    Figure CN120068358B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of aero-engine modeling and simulation, and in particular to a model lightweighting method, apparatus, computer equipment, medium, and program product. The method includes: after obtaining a modified model obtained by modifying an initial model, identifying parts in the modified model to obtain its configuration file; comparing the configuration files of the initial model and the modified model to determine the modified parts based on the comparison results; performing lightweighting processing on the target model to obtain a lightweight model corresponding to the target model; and calling a rendering engine to render the configuration information of the modified parts and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model. Using the method of this application can improve the efficiency of aero-engine modeling and simulation.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of aero-engine modeling simulation, in particular to a model lightweight method, device, computer equipment, medium and program product. BACKGROUND

[0002] In industrial design, CAD software is widely used for high-precision three-dimensional model modeling. However, these three-dimensional models based on CAD usually contain a large amount of geometric data, which is difficult to load efficiently in a conventional real-time rendering engine; therefore, in the related art, it is usually necessary to perform lightweight processing on the three-dimensional model constructed based on the CAD software and convert it into other formats that can be recognized by the rendering engine, such as FBX format; when the rendering engine loads the model file in FBX format, the efficiency will be significantly improved.

[0003] In the field of aero-engine modeling simulation, on the one hand, the number of parts of the aero-engine is large, and on the other hand, the three-dimensional model of the aero-engine needs to be modified several times. However, for the FBX format file, after each modification of the three-dimensional model of the CAD, the three-dimensional model of the CAD needs to be converted into the FBX format again to obtain a new model file after lightweight processing, and then the new model file is rendered by the rendering engine; and the rendering engine also needs to re-render each part in the three-dimensional model. Therefore, in the field of aero-engine modeling simulation, the model lightweight scheme of the related art will result in low overall efficiency.

[0004] Therefore, how to improve the efficiency of aero-engine modeling simulation is a problem to be solved. SUMMARY

[0005] Therefore, it is necessary to provide a model lightweight method, device, computer equipment, medium and program product capable of improving the efficiency of aero-engine modeling simulation.

[0006] In a first aspect, the present application provides a model lightweight method, comprising:

[0007] After obtaining the modified model obtained by modifying the initial model, performing part recognition on the modified model to obtain a configuration file of the modified model, the configuration file comprising configuration information of each type of meta-part, the configuration information comprising a dependency relationship of each repeated part corresponding to the meta-part under a parent object, parameter information and a spatial position; wherein each meta-part dependent on the same parent object is not repeated;

[0008] Differentially comparing the configuration files of the initial model and the modified model respectively, and determining the meta-part modified as a modified part according to the comparison result;

[0009] performing lightweight processing on the target model to obtain a lightweight model corresponding to the target model, the target model being a part model corresponding to the modified part in the modified model;

[0010] calling a rendering engine and performing rendering on the configuration information of the modified part and the lightweight model in an initial rendering model by using the rendering engine to obtain a target rendering model corresponding to the modified model, wherein the initial rendering model is obtained by rendering the configuration file of the initial model and lightweight models corresponding to each type of meta-part in the initial model by using the rendering engine.

[0011] In one embodiment, the process of determining the duplicate part includes:

[0012] determining a similar part pair from a structure tree of the modified model, the similar part pair including two parts with the same structure parameters and / or a similarity of names exceeding a similarity threshold; the structure tree including names, structure parameters of each part, and a dependency relationship between the parts;

[0013] If it is determined that the two parts in the similar part pair both depend on the same parent object, then the two parts in the similar part pair are checked, and it is determined whether the two parts are duplicate parts according to a checking result.

[0014] In one embodiment, the checking of the two parts in the similar part pair and the determination of whether the two parts are duplicate parts according to a checking result include:

[0015] performing meshing processing on the two parts in the similar part pair respectively, and determining a checking result according to a result of the meshing processing, the checking result indicating whether the number of mesh vertices corresponding to the two parts is the same or different;

[0016] If the checking result indicates that the number of mesh vertices corresponding to the two parts is the same, then the two parts are determined to be duplicate parts.

[0017] In one embodiment, the lightweight processing on the target model to obtain a lightweight model corresponding to the target model includes:

[0018] calling a meshing component to perform meshing processing on a curved surface in the target model to obtain a plurality of sub-surfaces corresponding to the curved surface;

[0019] performing lightweight processing on the plurality of sub-surfaces to obtain a spliced lightweight curved surface, the lightweight processing including at least fitting and splicing and format conversion;

[0020] The surface in the target model is replaced with the lightweight surface to obtain the lightweight model corresponding to the target model.

[0021] In one embodiment, the structure tree also includes the material, number, name, and lightweight precision of each part, and the method further includes:

[0022] Based on the structure tree of the modified model, update the configuration information of each meta-component in the configuration file;

[0023] The updated configuration information also includes material and lightweight precision.

[0024] In one embodiment, the step of using the rendering engine to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model includes:

[0025] The updated configuration information corresponding to the modified part is used as the rendering parameters, and the lightweight model corresponding to the modified part is used as the rendering object and input into the rendering engine.

[0026] The rendering engine renders the rendering object in the initial rendering model based on the rendering parameters to obtain the target rendering model corresponding to the modified model.

[0027] Secondly, this application also provides a model lightweighting device, the device comprising a part identification module, a modified part determination module, a lightweighting processing module, and a rendering module, wherein:

[0028] The component identification module is used to identify components in the modified model obtained after modifying the initial model, and obtain a configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicates.

[0029] The modified part determination module is used to compare the configuration files of the initial model and the modified model, and determine the modified original part as the modified part based on the comparison results.

[0030] The lightweight processing module is used to perform lightweight processing on the target model to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model;

[0031] The rendering module is used to call the rendering engine and use the rendering engine to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0032] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0033] After obtaining the modified model obtained by modifying the initial model, the modified model is subjected to component identification to obtain the configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicated.

[0034] The configuration files of the initial model and the modified model are compared for differences, and the modified component is determined to be the modified component based on the comparison results.

[0035] The target model is lightweighted to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model;

[0036] The rendering engine is invoked, and the rendering engine is used to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0037] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0038] After obtaining the modified model obtained by modifying the initial model, the modified model is subjected to component identification to obtain the configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicated.

[0039] The configuration files of the initial model and the modified model are compared for differences, and the modified component is determined to be the modified component based on the comparison results.

[0040] The target model is lightweighted to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model;

[0041] The rendering engine is invoked, and the rendering engine is used to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0042] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0043] After obtaining the modified model obtained by modifying the initial model, the modified model is subjected to component identification to obtain the configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicated.

[0044] The configuration files of the initial model and the modified model are compared for differences, and the modified component is determined to be the modified component based on the comparison results.

[0045] The target model is lightweighted to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model;

[0046] The rendering engine is invoked, and the rendering engine is used to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0047] The aforementioned model lightweighting method, apparatus, computer equipment, medium, and program product, after each model modification, identifies the modified model by identifying its components, thereby obtaining a configuration file containing configuration information for various types of meta-components. By comparing the configuration files of the modified model and the initial model before modification, the modified components, i.e., the modified meta-components, can be identified. Furthermore, the corresponding component models of the modified components in the modified model are lightweighted to obtain lightweight models for each modified component. Therefore, when re-rendering the model, it is unnecessary to re-render all meta-components individually; instead, the rendering engine only needs to render the lightweight models of the identified modified components within the initial rendering model corresponding to the initial model. Since the configuration file of the modified model contains the configuration information for each type of meta-component, the rendering engine can obtain the configuration information corresponding to the modified components from the configuration file as rendering parameters when rendering the lightweight models corresponding to the modified components, thus achieving accurate rendering of the lightweight models. Throughout the rendering process, since it is not necessary to render each component individually, but only the lightweight models of the modified components are rendered, the computational load during rendering is reduced, thereby improving rendering efficiency. Attached Figure Description

[0048] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0049] Figure 1 This is a flowchart illustrating a model lightweighting method in one embodiment;

[0050] Figure 2 This is a flowchart illustrating the process of determining duplicate parts in one embodiment;

[0051] Figure 3 This is a schematic diagram of the process for lightweighting the target model in one embodiment;

[0052] Figure 4 A flowchart illustrating the real-time display of a dynamic 3D model for one embodiment;

[0053] Figure 5 This is a structural block diagram of a model lightweighting device in one embodiment;

[0054] Figure 6 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation

[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0056] The model lightweighting method provided in this application embodiment is executed by a computer device; the computer device may be, but is not limited to, various personal computers, laptops, smartphones, tablets and Internet of Things devices, or a server; wherein, the server may be implemented by an independent server or a server cluster composed of multiple servers.

[0057] In one exemplary embodiment, such as Figure 1 As shown, a model lightweighting method is provided, including steps 110-140, wherein:

[0058] Step 110: After obtaining the modified model obtained by modifying the initial model, perform part identification on the modified model to obtain the configuration file of the modified model.

[0059] For the embodiments of this application, the configuration file includes configuration information for various types of meta-components. The configuration information includes the dependency relationship, parameter information, and spatial location of each duplicate meta-component under the parent object it depends on; wherein, meta-components that depend on the same parent object are not duplicated.

[0060] Specifically, the initial model is a relatively detailed 3D model built using CAD (Computer-Aided Design) software, containing a large amount of geometric data. Taking an aero-engine CAD 3D model as an example, the model contains tens of thousands of standard part models, such as screws and washers; the engine rotor blades are also formed by arrays of multiple identically shaped models. Furthermore, when building the 3D model of an aero-engine, each part is given a standardized name based on relevant design requirements and specifications. The modified model is a 3D model obtained by modifying each part based on the initial model; it is also a 3D model built using CAD software.

[0061] Part identification involves recognizing identical parts under the same parent object, thereby identifying unique meta-parts within the same parent object. The identification of duplicate parts can employ parameter-based identification methods, and / or name similarity-based identification methods, or other methods capable of determining that two parts are duplicates. This application does not impose specific limitations, as long as it can identify unique meta-parts under the same parent object. The configuration file contains configuration information for each meta-part in the corresponding model. The parameter information in the configuration information includes at least dimensional parameters and assembly parameters; dependency relationships characterize the structural and spatial relationships between parts, and spatial positions characterize the assembly positions of parts within their dependent parent objects.

[0062] Step 120: Compare the configuration files of the initial model and the modified model to determine the modified parts.

[0063] In this embodiment, the initial model undergoes a pre-processing step of component identification, resulting in a corresponding configuration file. Specifically, the configuration file of the modified model is compared with that of the initial model. This involves comparing each component to determine if any new or deleted components exist in the modified model. For components without duplicates, the configuration information of the corresponding components in the two configuration files is compared to determine if any components have modified configuration information. For components with duplicates, the number of duplicate components in the two configuration files is compared, and it is determined whether the configuration files for the duplicate components have been modified. Through this comparison, modified components can be identified and marked as modified components.

[0064] Step 130: Perform lightweight processing on the target model to obtain the lightweight model corresponding to the target model. The target model is the part model corresponding to the modified part in the modified model.

[0065] In this embodiment of the application, the configuration file also includes identification identifiers for each component, wherein the identification identifier can be at least one of the component's name, number, and spatial location. By using the identification identifiers of the components, at least one matching component can be identified from the corresponding model.

[0066] Lightweighting, also known as meshing, involves dividing the model's continuous, smooth original surface into multiple small planes. These small planes are then fitted and connected or stitched together to obtain a fitted surface, which replaces the original surface. This meshing process reduces the detail of the surfaces in the model, thereby reducing the computational load required for rendering. The more small planes a surface is divided into, the higher the accuracy of the fitted surface, meaning the fitted surface more closely resembles the original surface.

[0067] The configuration file includes each component in the defined modified model, and the corresponding component model in the modified model is used as the target model for that component. Then, the target model of each component is subjected to lightweight processing, i.e., meshing is performed on the target model of each component to obtain a lightweight model corresponding to each target model; the lightweight model corresponding to the target model is also the lightweight model of the component corresponding to that target model. The lightweight processing can be implemented based on a preset meshing component or using a trained image processing model; this embodiment does not impose specific limitations on this.

[0068] Step 140: Call the rendering engine and use the rendering engine to render the configuration information of the modified parts and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0069] In this embodiment, the rendering engine requires two parameters: a rendering object and rendering parameters. During the rendering of the modified model to obtain the corresponding target rendering model, the rendering object for the rendering engine is the lightweight model corresponding to each modified part, and the rendering parameters are the configuration information corresponding to each modified part or the configuration information corresponding to duplicate parts of that part. The rendering parameters are the configuration information of the modified part extracted from the configuration file corresponding to the modified model. Furthermore, since the modified model is based on the initial model, during the rendering process, the rendering engine only needs to render the rendering object based on the rendering parameters in the initial rendering model corresponding to the initial model to obtain the corresponding target rendering model.

[0070] In the aforementioned model lightweighting method, after each modification to the model, component identification is performed on the modified model to obtain a configuration file containing configuration information for various types of meta-components. By comparing the configuration files of the modified model and the initial model before modification, the modified components, i.e., the modified meta-components, can be identified. Furthermore, the component models corresponding to the modified components in the modified model are lightweighted to obtain lightweight models for each modified component. Therefore, when re-rendering the model, it is unnecessary to re-render all meta-components individually. Instead, the rendering engine only needs to render the lightweight models of the identified modified components within the initial rendering model corresponding to the initial model. Since the configuration file of the modified model contains configuration information for various types of meta-components, the rendering engine can obtain the configuration information corresponding to the modified components from the configuration file as rendering parameters when rendering the lightweight models corresponding to the modified components, thus achieving accurate rendering of the lightweight models. Throughout the rendering process, since it is not necessary to render each meta-component individually, but only the lightweight models of the modified components are rendered, the computational load in rendering is reduced, thereby improving rendering efficiency.

[0071] In one embodiment, the present application first describes the complete lightweighting and rendering process of a model; taking the initial model as an example, the process of lightweighting a 3D model built based on CAD software can specifically include the process of part identification and the process of model lightweighting.

[0072] The specific process for part identification is as follows:

[0073] 1) Traverse the nodes of each component in the initial model from the structure tree, and filter out standard part models and models with similar names by node name.

[0074] 2) Determine whether similar models are under the same parent object in the assembly relationship (dependency relationship).

[0075] 3) Use a surface subdivision algorithm with lower accuracy to mesh the surfaces of similar parts, and record the number of mesh vertices generated for each part model;

[0076] 4) If two part models both meet the requirements of the above three steps, then these two parts are determined to be duplicate parts and will be registered in the XML file; the XML file is the configuration file of the initial model; each part in the XML file is grouped to obtain each meta part; the configuration information (spatial location information, equipment structure information, number of mesh vertices) of each part is recorded and stored in the XML file.

[0077] Furthermore, the specific process for model lightweighting is as follows:

[0078] Based on the configuration file (XML file) obtained from the part identification process, the part models corresponding to each meta-part in the initial model are meshed using a preset lightweight algorithm (mesh processing algorithm) (included in the XML). The part models corresponding to the meta-parts in the initial model are meshed to obtain a lightweight model. Each lightweight model is further saved as a GLTF mesh file, and the name, number, spatial location, material, lightweight precision and other information of the meta-part are recorded in the configuration file (XML file).

[0079] Parametric surface subdivision divides the surface of each component in the 3D model into many small planes, and the number of small planes can be controlled by precision parameters. The multiple planes obtained from the subdivision of each component are combined into a polygon mesh, and redundant vertices are removed and overlapping vertices are welded. The mesh is converted into GLTF format, including writing data such as vertex, normal, and texture coordinates into a JSON file.

[0080] For recurring parts, only one GLTF mesh file will be generated, meaning there is a one-to-one correspondence between the GLTF mesh file and the original part. The configuration information for each original part in the configuration file (XML file) will include the name, number, quantity, and location of each recurring part corresponding to that original part. Lightweight models of each original part in the initial model are stored in the database to build an initial model library; that is, the initial model library contains lightweight models corresponding to each original part in the initial model.

[0081] Furthermore, a material library is constructed, which can be a PBR (Physically Based Rendering) material library. This library contains hundreds of materials and textures commonly used in the aerospace industry. Material rendering is a technique that simulates real-world materials, enabling more realistic rendering effects. This invention aims to present realistic material rendering effects in real-time rendering.

[0082] Furthermore, the rendering engine, based on the initial model's configuration file, renders the lightweight models corresponding to each component in the initial model library. It also matches the corresponding material from the material library for each lightweight model, thus completing the rendering of the initial model and obtaining the initial rendered model. Specifically, the rendering engine loads all the lightweight GLTF models in the initial model library, adjusts the coordinate information of each component according to the component number and spatial location information in the XML file, and assembles the complete initial model. The next step is to read the material information of each component in the XML and match it with the PBR material library to achieve a realistic rendering effect.

[0083] The above describes the process of lightweighting and re-rendering an initial model built using CAD software to obtain an initial rendered model. The following sections elaborate on the steps involved in re-rendering a modified model derived from the initial rendered model.

[0084] In one embodiment, such as Figure 2 As shown, the process of determining the duplicate parts in step 110 may specifically include steps 111 and 112, wherein...

[0085] Step 111: Identify similar part pairs from the modified model's structure tree. A similar part pair includes two parts with the same structural parameters and / or whose names have a similarity exceeding a similarity threshold. The structure tree includes the name of each part, its structural parameters, and the dependencies between each part.

[0086] Step 112: If it is determined that both parts in a similar part pair depend on the same parent object, then check the two parts in the similar part pair and determine whether the two parts are duplicate parts based on the check results.

[0087] A structure tree is a file representing the spatial and / or assembly relationships between parts when constructing the corresponding 3D model file; that is, it represents the dependencies between parts. Furthermore, each part in the structure tree is identified by its name, and each part is also associated with detailed structural parameters. Specifically, the structure tree of the modified model is traversed. For each part, if there are dependent sub-objects, the names and structural parameters of each sub-object are obtained and compared. Two parts with the same structural parameters are identified as a similar part pair, and two parts whose name similarity exceeds a set similarity threshold are also identified as similar part pairs. The similarity threshold is not specifically limited in this embodiment, but it cannot be lower than 80%.

[0088] Furthermore, during the construction of the 3D model, each standard part can be labeled. Standard parts are components manufactured and used according to national, industry, or enterprise standards, and they have uniform specifications, dimensions, materials, and performance requirements. If two standard parts with the same label are identified under the same parent object, these two standard parts with the same label are considered as a pair of similar parts.

[0089] Furthermore, although identifying standard parts by marking them, comparing part names for similarity, and comparing structural parameters can largely determine that the two parts in each similar part pair are duplicates, this application also provides a step for verifying similar part pairs to further ensure the accuracy of the duplicate part identification results. Specifically, the verification step may include:

[0090] For two parts in a similar part pair, perform meshing processing on each part, and determine the verification result based on the meshing processing result. The verification result indicates whether the number of mesh vertices corresponding to the two parts is the same or different. If the verification result indicates that the number of mesh vertices corresponding to the two parts is the same, then the two parts are determined to be duplicate parts.

[0091] Specifically, for each pair of similar parts: a preset meshing algorithm is used to mesh the two parts, resulting in multiple small mesh planes after meshing each part, and the number of mesh vertices obtained after processing each part is calculated; the number of mesh vertices of each of the two parts is used as the verification result of the similar part pair. If the two parts are duplicate parts, the number of mesh vertices corresponding to the two parts is the same; if the number of mesh vertices corresponding to the two parts is different, the two parts are non-duplicate parts.

[0092] In one example, a model has a structure A with six dependent parts: A1(1), A2(1), A2(2), A3, A1(2), and A1(3). All six parts depend on the same parent structure, A. During part identification, A1(1) and A1(2) are identified as a pair of similar parts, as are A1(1) and A1(3), A1(2) and A1(3), and A2(1) and A2(2). Ultimately, A1, A2, and A3 are identified as three types of meta-parts, A1 is a single meta-part, and A1(1), A1(2), and A1(3) are duplicates of the meta-part A1.

[0093] In one embodiment, reference Figure 3 In step 130, the target model is lightweighted, which may specifically include steps 131-133, wherein:

[0094] Step 131: Call the meshing component to mesh the surfaces in the target model to obtain multiple sub-planes corresponding to the surfaces;

[0095] Step 132: Perform lightweight processing on multiple sub-planes to obtain a spliced ​​lightweight surface. The lightweight processing includes at least fitting and splicing as well as format conversion.

[0096] Step 133: Replace the surfaces in the target model with lightweight surfaces to obtain the lightweight model corresponding to the target model.

[0097] The meshing component performs meshing on each target model. The meshing process involves dividing the model's continuous, smooth original surface into multiple small planes, then fitting and connecting or stitching these small planes to obtain a fitted surface (lightweight surface), which replaces the original surface. This meshing process reduces the detail of the surfaces in the model, thereby reducing the computational load required for rendering.

[0098] Specifically, the meshing component is used to mesh each target model (the part model corresponding to the modified part in the modified model) to obtain a lightweight model for each target model. Each lightweight model is then saved as a GLTF mesh file, and the name, number, spatial location, material, and lightweight precision of the corresponding meta-part are recorded / updated in the configuration file (XML file). The configuration information for the meta-part in the configuration file (XML file) includes the name, number, quantity, and location of each duplicate part corresponding to that meta-part. The meshing component is built based on a preset meshing algorithm and can be called via an API (Application Programming Interface).

[0099] Furthermore, the structure tree also includes the material, number, name, and lightweight precision of each part; and when lightweighting the target model, the configuration information of each meta-part in the configuration file is updated based on the modified model's structure tree; the updated configuration information also includes the material and lightweight precision. The more small planes a surface is divided into, the higher the accuracy of the fitted surface, meaning the fitted surface is closer to the original surface. The lightweight precision of the meshed components can be set by user input.

[0100] Furthermore, the verification step for similar part pairs in step 110 can also be implemented by calling the meshing component; that is, calling the meshing component to perform meshing processing on the two parts in each similar part pair, and determining the number of mesh vertices for each part based on the multiple small mesh planes obtained after meshing processing. However, it should be noted that the lightweight precision set for the meshing component in step 110 is less than the lightweight precision set for the meshing component in step 130; since the two parts in a similar part pair are more likely to be duplicate parts, even if a lower lightweight precision meshing processing is used, a relatively accurate verification result can still be obtained, thereby further reducing the amount of computation required to determine duplicate parts and improving the efficiency of part recognition.

[0101] In one embodiment, step 140 may specifically include: using the updated configuration information corresponding to the modified part as rendering parameters, and inputting the lightweight model corresponding to the modified part as a rendering object into the rendering engine; the rendering engine renders the rendering object in the initial rendering model based on the rendering parameters to obtain the target rendering model corresponding to the modified model.

[0102] Specifically, in the process of rendering the modified model to obtain the corresponding target rendering model, the rendering engine's rendering object is the lightweight model corresponding to each modified part, and the rendering parameters are the configuration information corresponding to each modified part or the configuration information corresponding to duplicate parts of that part. The rendering parameters are the configuration information of the modified part extracted from the configuration file corresponding to the modified model. Furthermore, since the modified model is based on the initial model, during the rendering process, it is only necessary to use the rendering engine to render the rendering object based on the rendering parameters in the initial rendering model corresponding to the initial model to obtain the corresponding target rendering model.

[0103] For the lightweight models obtained by modifying the modified parts of the model, the lightweight model of each modified part is updated to the initial model library of the initial model, so as to provide a reference for each subsequent modification of the model.

[0104] Furthermore, the rendering engine loads the lightweight models (GLTF mesh files) corresponding to each modified part from the initial model library. Based on the meta-part numbers and spatial location information of the modified parts in the configuration file of the modified model, it adjusts the coordinate information of the parts to assemble a complete modified model. Further, it reads the material information of the meta-parts corresponding to each modified part from the configuration file, matches it with the PBR material library, and renders the corresponding material texture for each modified part, thereby achieving a realistic rendering effect.

[0105] The model lightweighting method provided in this application can be applied to models that require multiple modifications, iterations, and renderings in actual production. In actual production, the information of 3D models built using CAD software is constantly adjusted and updated. Traditional solutions involve lightweighting the modified 3D model again and re-importing it into the rendering engine, resulting in slow update speeds. The lightweighting method in this application compares the configuration file of the modified model with the configuration file of the initial model. For any element-level part, if it remains unchanged, the lightweighting step is skipped. If any element-level part is found to be a modified part, lightweighting (meshing) is performed only on the part model of the modified part. Simultaneously, an update command is sent to the rendering engine, loading the updated lightweight models and configuration information corresponding to each modified part. This allows for the adjustment of existing part parameters / positions within the initial rendering model corresponding to the initial model, thus completing the rendering process of re-rendering the modified model.

[0106] In summary, the lightweight model method proposed in this application establishes an initial model library containing lightweight models of each component and a configuration file containing configuration information for each component. After each modification, when a modified model is obtained, the previous model is used as the initial model, and the modified model is used as the modified model. The configuration files of the initial and modified models are compared to identify the modified components. Therefore, only the component models of the modified model undergo one-time lightweighting, and changes are automatically detected. When rendering the model, only the parts corresponding to the modified components need to be rendered. This method significantly improves design flexibility and efficiency, reduces resource consumption, optimizes user experience, and provides an innovative solution for the interaction and visualization of complex industrial models.

[0107] like Figure 4As shown, after a 3D model containing CAD data enters the system, it first undergoes lightweight processing to convert it into mesh information. The models of each component in the CAD data are then saved as GLTF format mesh files, thus constructing a GLTF network model library (initial model library). Simultaneously, the assembly information of each component is saved as an XML configuration file. Next, the 3D visualization program loads the required lightweight models (GLTF network files) of the components from the initial model library based on the assembly information provided in the configuration file and assembles them into a complete model. When the CAD data changes, the system can check for model differences, lightweight the modified parts, and reload them, achieving rapid updates for 3D rendering. After model loading and assembly, the PBR material library is called to set the rendering of the 3D model to present realistic rendering effects. Users can navigate the scene and change the viewpoint through the human-computer interaction module, supporting large-screen displays and head-mounted XR device displays. Through GLTF format and lightweight model library management, efficient loading and real-time rendering of complex CAD models (CAD data) are achieved, significantly improving system performance. At the same time, it automatically detects and updates only changed parts, reducing unnecessary calculations and improving update speed and efficiency.

[0108] At the application level, this application supports rapid iterative design and modification in complex mechanical design fields such as aero-engines, reducing development cycles. The method described in this application significantly improves the practicality and efficiency of complex industrial models in virtual reality, enabling the automated and complete presentation of the latest structural design results to designers, providing strong technical support for design and engineering applications.

[0109] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0110] Based on the same inventive concept, this application also provides a model lightweighting device for implementing the model lightweighting method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more model lightweighting device embodiments provided below can be found in the limitations of the model lightweighting method described above, and will not be repeated here.

[0111] In one exemplary embodiment, such as Figure 5 As shown, a model lightweighting device is provided, which includes a part identification module 501, a modified part determination module 502, a lightweighting processing module 503, and a rendering module 504, wherein:

[0112] The part identification module 501 is used to identify parts in the modified model after obtaining the modified model obtained by modifying the initial model, and obtain the configuration file of the modified model. The configuration file includes the configuration information of each type of meta part. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate part corresponding to the meta part under the parent object it depends on; wherein, meta parts that depend on the same parent object are not duplicated.

[0113] The modified part determination module 502 is used to compare the differences between the configuration files of the initial model and the modified model, and determine the modified original parts as modified parts based on the comparison results.

[0114] The lightweight processing module 503 is used to perform lightweight processing on the target model to obtain the lightweight model corresponding to the target model. The target model is the part model corresponding to the modified part in the modified model.

[0115] Rendering module 504 is used to call the rendering engine and use the rendering engine to render the configuration information of the modified parts and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model. The initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

[0116] In one embodiment, the part identification module 501 is specifically used for:

[0117] Identify similar part pairs from the modified model's structure tree. A similar part pair includes two parts with the same structural parameters and / or names whose similarity exceeds a similarity threshold. The structure tree includes the name of each part, its structural parameters, and the dependencies between the parts.

[0118] If it is determined that both parts in a similar parts pair depend on the same parent object, then the two parts in the similar parts pair are checked, and the results of the check are used to determine whether the two parts are duplicate parts.

[0119] In one embodiment, the part identification module 501 is specifically used for:

[0120] For two parts in a similar part pair, perform meshing processing on each part, and determine the verification result based on the meshing processing result. The verification result indicates whether the number of mesh vertices corresponding to the two parts is the same or different.

[0121] If the verification results indicate that the number of mesh vertices corresponding to the two parts is the same, then the two parts are determined to be duplicate parts.

[0122] In one embodiment, the lightweight processing module 503 is specifically used for:

[0123] The meshing component is invoked to mesh the surfaces in the target model, resulting in multiple sub-planes corresponding to the surfaces.

[0124] Multiple sub-planes are subjected to lightweight processing to obtain a spliced ​​lightweight surface. The lightweight processing includes at least fitting and splicing as well as format conversion.

[0125] Replace the surfaces in the target model with lightweight surfaces to obtain the lightweight model corresponding to the target model.

[0126] In one embodiment, the structure tree also includes the material, number, name, and lightweight precision of each part. The device also includes an update module, which is specifically used for:

[0127] Based on the modified model's structure tree, update the configuration information of each element in the configuration file;

[0128] The updated configuration information also includes materials and lightweight precision.

[0129] In one embodiment, the rendering module 504 is specifically used for:

[0130] The updated configuration information corresponding to the modified part is used as the rendering parameters, and the lightweight model corresponding to the modified part is used as the rendering object and input into the rendering engine.

[0131] The rendering engine renders the rendering object in the initial rendering model based on the rendering parameters, and obtains the target rendering model corresponding to the modified model.

[0132] Each module in the aforementioned lightweight device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.

[0133] In one exemplary embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a model lightweighting method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.

[0134] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.

[0135] In one exemplary embodiment, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps as described in the above-described model lightweighting method embodiment.

[0136] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps as described in the above embodiment of the model lightweighting method.

[0137] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps as described in the above embodiment of the model lightweighting method.

[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0139] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0140] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0141] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for lightweighting a model, characterized in that, The method includes: After obtaining the modified model obtained by modifying the initial model, the modified model is subjected to component identification to obtain the configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicated. The configuration files of the initial model and the modified model are compared for differences, and the modified component is determined to be the modified component based on the comparison results. The target model is lightweighted to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model; The rendering engine is invoked, and the rendering engine is used to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

2. The method according to claim 1, characterized in that, The process of identifying repeating parts includes: Similar part pairs are determined from the structure tree of the modified model. The similar part pairs include two parts with the same structural parameters and / or names whose similarity exceeds a similarity threshold. The structure tree includes the name of each part, its structural parameters, and the dependencies between the parts. If it is determined that both parts in the similar parts pair depend on the same parent object, then the two parts in the similar parts pair are checked, and it is determined whether the two parts are duplicate parts based on the check results.

3. The method according to claim 2, characterized in that, The two parts in the pair of similar parts are checked, and the two parts are determined as duplicate parts based on the check results, including: The two parts in the similar part pair are respectively meshed, and the verification result is determined based on the meshing result. The verification result indicates whether the number of mesh vertices corresponding to the two parts is the same or different. If the verification result indicates that the number of mesh vertices corresponding to the two parts is the same, then the two parts are determined to be duplicate parts.

4. The method according to claim 2, characterized in that, The step of lightweighting the target model to obtain the lightweight model corresponding to the target model includes: The meshing component is invoked to perform meshing on the surfaces in the target model, resulting in multiple sub-planes corresponding to the surfaces; The multiple sub-planes are subjected to lightweight processing to obtain a spliced ​​lightweight surface. The lightweight processing includes at least fitting and splicing as well as format conversion. The surface in the target model is replaced with the lightweight surface to obtain the lightweight model corresponding to the target model.

5. The method according to any one of claims 2-4, characterized in that, The structure tree also includes the material, number, name, and lightweight precision of each part, and the method further includes: Based on the structure tree of the modified model, update the configuration information of each meta-component in the configuration file; The updated configuration information also includes material and lightweight precision.

6. The method according to claim 5, characterized in that, The step of using the rendering engine to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model includes: The updated configuration information corresponding to the modified part is used as the rendering parameters, and the lightweight model corresponding to the modified part is used as the rendering object and input into the rendering engine. The rendering engine renders the rendering object in the initial rendering model based on the rendering parameters to obtain the target rendering model corresponding to the modified model.

7. A model lightweighting method apparatus, characterized in that, The device includes a part identification module, a modified part determination module, a lightweight processing module, and a rendering module, wherein: After obtaining the modified model obtained by modifying the initial model, the modified model is subjected to component identification to obtain the configuration file of the modified model. The configuration file includes configuration information of various types of meta-components. The configuration information includes the dependency relationship, parameter information and spatial position of each duplicate component corresponding to the meta-component under the parent object it depends on; wherein, the meta-components that depend on the same parent object are not duplicated. The modified part determination module is used to compare the configuration files of the initial model and the modified model, and determine the modified original part as the modified part based on the comparison results. The lightweight processing module is used to perform lightweight processing on the target model to obtain a lightweight model corresponding to the target model, wherein the target model is the part model corresponding to the modified part in the modified model; The rendering module is used to call the rendering engine and use the rendering engine to render the configuration information of the modified part and the lightweight model in the initial rendering model to obtain the target rendering model corresponding to the modified model; wherein, the initial rendering model is obtained by the rendering engine rendering the configuration file of the initial model and the lightweight models corresponding to each type of meta-part in the initial model.

8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Model processing method and device, computer equipment, storage medium and program product

    CN117786866A

  • Lightening method, device and equipment for CAD model and medium

    CN118133369A