A ue4-based digital twin model lightweight optimization method and system
By employing methods such as surface extraction and replacement, motion subordination, and dynamic/static pattern classification and merging, digital twin models are subjected to multi-dimensional lightweight processing, which solves the problems of construction difficulties and interaction delays caused by model complexity, and improves the completeness of model functions and real-time interaction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2026-03-24
Smart Images

Figure CN115809489B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of digital twinning and model lightweight, in particular to a digital twinning model lightweight optimization method and system based on UE4 (Unreal Engine 4). BACKGROUND
[0002] In the construction of digital twinning models and scenes, there are problems such as difficulty in constructing a virtual twinning world due to excessive scene content and complex models, and certain interaction delays in virtual-real interaction calculation, and even certain performance loss to the computer, thereby greatly reducing the real-time performance in the interaction feedback process, and real-time performance is one of the important indicators in the digital twinning interaction process. Because UE4 software has powerful functions and high-fidelity rendering visualization effects, it has become a main tool for building a digital twinning platform, so based on UE4 software, the digital twinning model is subjected to lightweight optimization processing, thereby avoiding the occurrence of such problems.
[0003] At present, the method for lightweight of the digital twinning model mostly adopts the way of reducing the surface processing position or deleting the internal structure, but this method cannot guarantee the thoroughness of simplification, and simply deleting the surface cannot guarantee the deletion of other redundant features of the model. The reduction work is tedious and may cause the original model to lose important structures and functions due to over-simplification, and only the integrity of the appearance is simply guaranteed. The digital twinning model is multidimensional, and the geometric feature is only a part of the model, and simply lightweight of the model geometric feature cannot guarantee the lightweight of other dimensions of the digital twinning model.
[0004] Therefore, a way is needed to perform multidimensional and all-around lightweight processing on the model, and further optimize the model, so as to guarantee that the digital twinning model does not lose the original information function after being lightweight. SUMMARY
[0005] In view of the above problems, the purpose of the present application is to provide a digital twinning model lightweight optimization method and system based on UE4, which can perform multidimensional and all-around lightweight processing and guarantee that the original information function is not lost after being lightweight.
[0006] To achieve the above purpose, the present application adopts the following technical scheme: in a first aspect, a digital twinning model lightweight optimization method based on UE4 is provided, comprising:
[0007] screening and deleting redundant parts and redundant features of the digital twinning model;
[0008] based on the motion membership relationship and the dynamic and static mode, classifying and merging each component of the digital twinning model after screening and deleting, and creating an independent entity for each component after merging, and saving it as a general model format;
[0009] merge the static mesh bodies of the digital twin model in general model format into one whole object, and manage the model tree of each component according to the motion subordination relationship between the components of the digital twin model;
[0010] perform lightweight simplification and optimization processing on different components of the digital twin model after model tree management;
[0011] perform interactive data information lightweight processing on the digital twin model after lightweight simplification and optimization processing, to obtain a final lightweight digital twin model.
[0012] Further, it further comprises:
[0013] Set the visibility of the digital twin model after lightweight simplification and optimization processing in the scene.
[0014] Further, the filtering and deleting of redundant parts and redundant features of the digital twin model comprises:
[0015] Adopting a wrapped surface extraction replacement method, taking the maximum bounding box diagonal size of the part as the filtering condition, the redundant parts of the digital twin model are filtered and deleted;
[0016] Adopting a wrapped surface extraction replacement method, taking the specific size of the related feature as the filtering condition, the redundant features of the digital twin model are filtered and deleted.
[0017] Further, the classification and merging of each component of the digital twin model after filtering and deleting based on the motion subordination relationship and dynamic and static mode, and the creation of independent entities for each component after merging, and saving in general model format, comprises:
[0018] Based on the dynamic and static mode, the components of the digital twin model after filtering and deleting of redundant features are divided into dynamic and static parts for preliminary merging;
[0019] The components of the digital twin model after preliminary merging that are connected in motion are merged again;
[0020] Perform Boolean operation on each component of the merged digital twin model to create independent entities;
[0021] Save the digital twin model after creating independent entities in general model format.
[0022] Further, the merging of the static mesh bodies of the digital twin model in general model format into one whole object, and the management of the model tree of each component according to the motion subordination relationship between the components of the digital twin model, comprises:
[0023] Importing the digital twin model in the general model format into the model data import plug-in in the UE4 software;
[0024] Creating an Actor object and merging the static mesh of the digital twin model in the general model format into an integral Actor object;
[0025] Using the added scene component as a root component, managing the model tree of each component according to the motion subordination relationship between the components of the digital twin model.
[0026] Further, the static mesh editor is used to perform lightweight simplification and optimization processing on different components of the digital twin model managed by the model tree, including:
[0027] The static mesh editor is used to perform lightweight simplification on the number of triangular facets and vertices of different components of the digital twin model managed by the model tree;
[0028] The static mesh editor is used to perform optimization processing on different components of the digital twin model after lightweight simplification, and adjust the resolution of the light map corresponding to the digital twin model.
[0029] Further, the digital twin model after lightweight simplification and optimization processing is subjected to interactive data information lightweight processing to obtain a final lightweight digital twin model, including:
[0030] Establishing a plurality of information databases of the digital twin model;
[0031] Storing the interactive data information of the digital twin model after lightweight simplification and optimization processing in the corresponding information database according to the type to obtain a final lightweight digital twin model.
[0032] In a second aspect, a UE4-based digital twin model lightweight optimization system is provided, including:
[0033] The screening and deleting module is configured to screen and delete redundant parts and redundant features of the digital twin model;
[0034] The merging module is configured to classify and merge each component of the digital twin model after screening and deleting based on the motion subordination relationship and the dynamic and static mode, create independent entities for each component after merging, and save them in the general model format;
[0035] The object creation module is configured to merge the static mesh of the digital twin model in the general model format into an integral object, and manage the model tree of each component according to the motion subordination relationship between the components of the digital twin model;
[0036] The lightweight simplification and optimization processing module is used for lightweight simplification and optimization processing on different components of the digital twin model managed by the model tree.
[0037] The information lightweight processing module is used for interactive data information lightweight processing on the digital twin model after lightweight simplification and optimization processing, so as to obtain the final lightweight digital twin model.
[0038] In a third aspect, a processing device is provided, including computer program instructions, wherein the computer program instructions are used to implement the steps corresponding to the UE4-based digital twin model lightweight optimization method when the processing device executes the computer program instructions.
[0039] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer program instructions, wherein the computer program instructions are used to implement the steps corresponding to the UE4-based digital twin model lightweight optimization method when the processor executes the computer program instructions.
[0040] The present application has the following advantages due to the above technical solutions:
[0041] 1. The present application not only performs surface reduction processing on the digital twin model, but also filters and simplifies other redundant geometric features of the digital twin model around three elements of points, lines and surfaces, and the processing of the digital twin model is not only limited to the geometric feature level, but also performs more in-depth lightweight processing on the model from other dimensions, and further optimizes the digital twin model after lightweight processing, so as to ensure the integrity of the information and function of the digital twin model.
[0042] 2. The present application is characterized in that the lightweight processing of the digital twin model is more thorough and fine, and the model is processed in all directions from different levels and dimensions, and based on the UE4 platform, the digital twin model is further simplified and optimized, so that the digital twin model occupies the minimum memory and consumes the least calculation under the condition of ensuring the integrity of its function information, thereby further improving the real-time performance in the digital twin interaction process.
[0043] In summary, the present application can be widely applied in the field of digital twin and model lightweight. BRIEF DESCRIPTION OF DRAWINGS
[0044] Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The accompanying drawings are included to provide a description of the preferred embodiments and are not meant to limit the present application. Throughout the drawings, the same reference numerals are used for the same components. In the drawings:
[0045] Figure 1is a method overall flow schematic diagram provided by an embodiment of the present application;
[0046] Figure 2 is a model covering surface extraction replacement flow schematic diagram provided by an embodiment of the present application;
[0047] Figure 3 is a lightweight model appearance effect comparison schematic diagram provided by an embodiment of the present application, wherein the diagram on the left side is a model appearance effect schematic diagram before lightweight, and the diagram on the right side is a model appearance effect schematic diagram after lightweight;
[0048] Figure 4 is a lightweight model grid patch comparison schematic diagram provided by an embodiment of the present application, wherein the diagram on the left side is a model grid patch schematic diagram before lightweight, and the diagram on the right side is a model grid patch schematic diagram after lightweight. DETAILED DESCRIPTION
[0049] Exemplary embodiments of the present application will be described herein below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be embodied in various forms without being limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the application to those skilled in the art.
[0050] It should be understood that the terms used herein are merely for the purpose of describing particular example embodiments and are by no means intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises", "comprising", "includes", "including" and "has" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order in which they are described, unless specifically indicated as such. It is also to be understood that additional or alternative steps can be employed.
[0051] Although the terms first, second, third, and the like can be used herein to describe various elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can be only used to differentiate one element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates otherwise, terms such as "first", "second" and the like, as well as other ordinal terms, are used herein in a relative sense and are not necessarily intended to refer literally to elements or items which are first, second, third or the like in a sequence or order. Accordingly, a first element, component, region, layer or section discussed below could be termed a second element, component, region, layer or section without departing from the teachings of the example embodiments.
[0052] The UE4-based digital twin model lightweight optimization method and system provided by the embodiment of the application adopts Inventor software to extract and replace the cladding surface of the digital twin model to complete preliminary model lightweight simplification, and creates entities by performing Boolean calculation on the digital twin model according to the dynamic and static classification of model components and the motion dependency relationship, thereby reducing the number of imported mesh bodies; the UE4 software built-in Datasmith plug-in is used to import the digital twin model into the UE4 scene and merge it into an integrated Actor, thereby reducing the rendering frequency in the scene; the model tree hierarchical management is performed on individual components in the digital twin model through scene components; the static mesh body editor is used to further perform lightweight optimization processing on the model under the condition of ensuring high fidelity of the model; the model component visibility setting is realized for different needs in the scene; the digital twin model information database is created, different types of data are processed according to the importance of the information data, thereby ensuring the completeness of the digital twin model information, and realizing the model optimal lightweight and the minimum memory requirement.
[0053] Embodiment 1
[0054] As shown in Figure 1 , Figure 2 The embodiment provides a UE4-based digital twin model lightweight optimization method, which comprises the following steps:
[0055] 1) The cladding surface extraction and replacement mode of Inventor software is adopted, the parts are taken as the screening reference, and the maximum frame diagonal size of the parts is taken as the screening condition to screen and delete the redundant parts of the digital twin model.
[0056] Specifically, the digital twin model refers to a virtual model constructed according to a solid model, which includes appearance information and internal data information, wherein the appearance information includes structure, size and material, etc., and the internal data information includes dynamic data during model running, equipment model running power, etc.
[0057] Specifically, the part refers to a single entity combined into an assembly.
[0058] Specifically, the purpose of taking the maximum frame diagonal size of the parts as the screening condition is to make the parts below the screening condition be screened out, and according to the needs, the screened-out parts can be selected to be retained or the non-screened-out parts can be selected to be excluded.
[0059] 2) The digital twin model after the redundant parts are screened and deleted is replaced by the covering surface extraction of the Inventor software, and the specific size of the related features is taken as the screening condition to screen and delete the redundant features of the digital twin model.
[0060] Specifically, the related features include holes, chamfers, fillets and cavities, because these four features are extremely easy to produce great light and shadow when imported into the UE4 scene for rendering, which will cause great memory occupation. Among them, the maximum diameter is taken as the screening condition for the hole, the maximum face loop is taken as the screening condition for the cavity, the maximum radius is taken as the screening condition for the fillet, and the maximum distance is taken as the screening condition for the chamfer. According to the needs, the screened-out features can be selected to be retained or the non-screened-out features can be selected to be excluded.
[0061] 3) Based on the motion membership relationship and the dynamic and static mode, the parts of the digital twin model after the redundant features are screened and deleted are classified and merged, and the Boolean operation is performed on the merged parts to create independent entities, and the digital twin model after the independent entities are created is saved as a general model format.
[0062] Specifically, because the above steps 1) and 2) only simply lightweight the features and parts, for a complex digital twin model, there will still be many entities, which will produce a corresponding number of static mesh bodies after being imported into the UE4 software, which will cause great difficulty in subsequent model management, so the entity merging operation is needed, which is specifically:
[0063] 3.1) Based on the dynamic and static mode, i.e. dynamic and static classification, the parts of the digital twin model after the redundant features are screened and deleted are classified into dynamic and static parts for preliminary merging.
[0064] 3.2) Based on the motion membership relationship, the parts of the preliminary merged digital twin model that are connected in motion are merged again.
[0065] Specifically, for example: part A is a subordinate component of part B, part A will drag part B to move when part A moves, i.e. part A and part B are connected in motion.
[0066] 3.3) The Boolean operation is performed on the parts of the merged digital twin model to create independent entities.
[0067] 3.4) The digital twin model after the independent entities are created is saved as a general model format.
[0068] 4) using UE4 software, create Actor (an object that can be placed in the scene), merge the static mesh of the digital twin model in the general model format into a whole, and manage the model tree of each component according to the motion dependency between the components of the digital twin model by adding scene components, specifically:
[0069] 4.1) Import the digital twin model in the general model format into the model data import plug-in (Datasmith plug-in) in UE4 software.
[0070] Specifically, the string tolerance can be set according to the model accuracy requirement during import. The larger the string tolerance, the lower the model accuracy of the imported model, and the smaller the memory occupation.
[0071] 4.2) Create an Actor object to merge the static mesh of the digital twin model in the general model format into a whole Actor object.
[0072] Specifically, the imported digital twin model is composed of several static meshes, which are placed in the UE4 scene. The rendering times will correspond to the number of meshes, so the Actor merging operation is needed:
[0073] Create a blueprint Actor class, place the static mesh of the digital twin model in the general model format into the Actor object according to the scene coordinates, and merge all static meshes into a whole Actor object. In this way, the model only needs to be rendered once to reduce memory occupation.
[0074] 4.3) Use the added scene component as the root component to manage the model tree of each component according to the motion dependency between the components of the digital twin model.
[0075] Specifically, during the merging process, the added scene component is used as the root component, the mesh components with motion relationship are placed in the same component directory, and corresponding hierarchical division is performed to obtain the hierarchical divided Actor object. The structure of the Actor object is clear, and the components can be controlled by controlling the components, without the need to control different components multiple times, which reduces the workload of function code writing.
[0076] 5) Use the static mesh editor to perform lightweight simplification and optimization processing on different components of the digital twin model managed by the model tree, specifically:
[0077] 5.1) Use the static mesh editor to perform lightweight simplification on different components of the digital twin model managed by the model tree, that is, simplify the number of triangular faces and vertices.
[0078] Specifically, since the Inventor software has certain limitations for lightweight processing, after being imported into the UE4 software, the digital twin model needs to be further processed, mainly reducing the corresponding amplitude of the triangle facet and the number of vertices without distorting the digital twin model.
[0079] 5.2) Using a static mesh editor, the different components of the lightweight simplified digital twin model are optimized, that is, the resolution of the corresponding light map of the digital twin model is adjusted.
[0080] Specifically, the imported digital twin model has the same map resolution for each static mesh. Some static meshes are too small, and too high a resolution will cause unnecessary memory occupation. Some static meshes are too large, and too low a resolution will cause distortion of the model. Therefore, in order to ensure the high fidelity of the digital twin model, the resolution of the corresponding light map of the digital twin model needs to be adjusted according to the size of the static mesh.
[0081] Specifically, in the static mesh editor, the number of vertices and triangle facets of the components of the digital twin model will be displayed. A digital twin model includes many static meshes. By comparison, the corresponding light map of the static mesh with more vertices and triangle facets is increased, and the rest is reduced. Because the light map resolution is uniform at the beginning, some static meshes do not need high light map resolution, and some static meshes have too low light map resolution, which will reduce the model effect.
[0082] 6) Set the visibility of the digital twin model in the scene after lightweight simplification and optimization processing.
[0083] Specifically, the digital twin model placed in the scene does not need to be displayed in the scene at all times. Therefore, for different components, the visibility of the digital twin model can be controlled at any time according to the needs.
[0084] 7) Perform interactive data information lightweight processing on the digital twin model after lightweight simplification and optimization processing to obtain the final lightweight digital twin model, specifically:
[0085] 7.1) Establish a number of information databases for the digital twin model.
[0086] 7.2) Store the interactive data information of the digital twin model after lightweight simplification and optimization processing in the corresponding information database according to the type to obtain the final lightweight digital twin model.
[0087] Specifically, the interactive data information includes running state and running parameters during work.
[0088] Specifically, in the digital twin interaction process, different data has different update frequencies, and if all data is updated in real time, it will cause great loss to the performance of the computer. Therefore, the information database is divided into static information database, periodically updated information database and real-time updated information database, different classification management and storage are carried out for data with different update frequencies, the computer memory and performance are reasonably utilized, the real-time data interaction is taken as the main calculation part, so as to ensure the real-time interaction of the digital twin system.
[0089] Specifically, for example, the first data acquisition frequency is a, the first data is put into the periodic information database, and the second data is unchanged, then the second data is put into the static information database.
[0090] As shown in Figure 3 , it is a comparison diagram of the appearance effect of the lightweight model, it can be seen that the appearance of the digital twin model before and after the lightweight of the present application has not changed greatly. As shown in Figure 4 , it is a comparison diagram of the grid surface of the lightweight model, it can be seen that although the digital twin model after the lightweight of the present application still has a high-fidelity appearance, the actual grid has been obviously reduced.
[0091] Embodiment 2
[0092] The embodiment provides a lightweight optimization system for a digital twin model based on UE4, comprising:
[0093] The screening and deleting module is used for screening and deleting redundant parts and redundant features of the digital twin model.
[0094] The merging module is used for classifying and merging each component of the digital twin model after screening and deleting based on the motion dependency relationship and the dynamic and static mode, creating independent entities for each component after merging, and saving as a general model format.
[0095] The object creating module is used for merging the static grid body of the digital twin model in the general model format into an integral object, and managing the model tree of each component according to the motion dependency relationship between each component of the digital twin model.
[0096] The lightweight simplification and optimization processing module is used for lightweight simplification and optimization processing of different components of the digital twin model after model tree management.
[0097] The information lightweight processing module is used for lightweight processing of the interaction data information of the digital twin model after lightweight simplification and optimization processing, to obtain the final lightweight digital twin model.
[0098] The system provided by the embodiment is used for executing the above-mentioned method embodiments, and the specific process and detailed content are referred to the above-mentioned embodiments, which will not be repeated here.
[0099] Embodiment 3
[0100] The embodiment provides a processing device corresponding to the UE4-based digital twin model lightweight optimization method provided in the embodiment 1. The processing device can be applied to a processing device of a client, such as a mobile phone, a notebook computer, a tablet computer, a desktop computer, etc., to execute the method of the embodiment 1.
[0101] The processing device includes a processor, a memory, a communication interface and a bus. The processor, the memory and the communication interface are connected through the bus to complete the communication among each other. The memory stores a computer program that can run on the processing device. When the processing device runs the computer program, the UE4-based digital twin model lightweight optimization method provided in the embodiment 1 is executed.
[0102] In some implementations, the memory can be a high-speed random access memory (RAM) and can also include a non-volatile memory, such as at least one disk memory.
[0103] In other implementations, the processor can be a central processing unit (CPU), a digital signal processor (DSP) or various types of general-purpose processors, which are not limited here.
[0104] In addition, the logical instructions in the above-mentioned memory can be implemented in the form of a software functional unit and sold or used as an independent product. When used, it can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiments of the present application. The above-mentioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0105] Those skilled in the art can understand that the structure of the computing device described above is only part of the structure related to the scheme of the present application, and does not constitute a limitation on the computing device to which the scheme of the present application is applied. A specific computing device can include more or fewer components, or combine certain components, or have a different arrangement of components.
[0106] Embodiment 4
[0107] This embodiment provides a computer program product corresponding to the UE4-based digital twin model lightweight optimization method provided in Embodiment 1. The computer program product can include a computer readable storage medium having computer readable program instructions loaded thereon for executing the UE4-based digital twin model lightweight optimization method described in Embodiment 1.
[0108] The computer readable storage medium can be a tangible device that maintains and stores instructions for use by an instruction execution device. The computer readable storage medium can be, for example but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof.
[0109] The computer readable storage medium provided in the above embodiments has similar implementation principles and technical effects to the above method embodiments, and will not be described here.
[0110] The present application is described with reference to flowcharts and / or block diagrams according to the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks
[0111] These computer program instructions can also be stored in a computer readable storage medium that can direct the computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a manufactured product including instruction devices that implement the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks
[0112] These computer program instructions can also be loaded into a computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable data processing devices to generate a computer implemented process, so that the instructions executed on the computer or other programmable data processing devices provide a process for implementing the functions specified in the flowchart Figure 1 flow or multiple flows and / or the functions specified in the block Figure 1 flow or multiple flows and / or the functions specified in the block
[0113] The above embodiments are only used to illustrate the present application, and the structure, connection mode and manufacturing process of each component can be changed, and any equivalent transformation and improvement based on the technical scheme of the present application should not be excluded from the protection scope of the present application.
Claims
1. A lightweight optimization method for digital twin models based on UE4, characterized in that, include: Redundant parts and features in the digital twin model are filtered and deleted; Based on motion subordination and dynamic / static patterns, the components of the digital twin model after filtering and deletion are classified and merged, and independent entities are created for each merged component and saved as a general model format. The static meshes of the digital twin model in the general model format are merged into a single object, and the model tree is managed for each component according to the motion subordination relationship between the components of the digital twin model. Lightweight simplification and optimization are performed on different components of the digital twin model after model tree management; The interactive data information of the simplified and optimized digital twin model is lightened to obtain the final lightened digital twin model. The process of filtering and deleting redundant parts and features from the digital twin model includes: The method of extracting and replacing the covering surface is adopted. The components are used as the screening criteria and the maximum diagonal size of the component's border is used as the screening condition to screen and delete redundant parts of the digital twin model. A component refers to a single entity that is assembled into an assembly. The method of extracting and replacing the covering surface is used to filter and delete redundant parts in the digital twin model. The specific size of the relevant features is used as the filtering condition to filter and delete the redundant features of the digital twin model. The relevant features include holes, chamfers, fillets and cavities. Among them, the maximum diameter of the hole is used as the filtering condition, the maximum surface loop is used as the filtering condition, the maximum radius of the fillet is used as the filtering condition, and the maximum distance of the chamfer is used as the filtering condition. The step of performing lightweight interactive data information processing on the simplified and optimized digital twin model to obtain the final lightweight digital twin model includes: Establish several information databases for the digital twin model, and divide the information databases into static information databases, periodically updated information databases, and real-time updated information databases. Different classifications, management, and storage are carried out for data with different update frequencies. The interactive data information of the simplified and optimized digital twin model is stored in the corresponding information database according to the type, resulting in the final lightweight digital twin model.
2. The lightweight optimization method for a digital twin model based on UE4 as described in claim 1, characterized in that, Also includes: Configure the visibility of the lightweight, simplified, and optimized digital twin model in the scene.
3. The lightweight optimization method for a digital twin model based on UE4 as described in claim 2, characterized in that, Based on motion subordination and dynamic / static patterns, the components of the filtered and deleted digital twin model are classified and merged, and independent entities are created for each merged component, which are then saved in a general model format, including: Based on the dynamic and static model, the components of the digital twin model after redundant features are filtered and removed are divided into dynamic and static parts and initially merged. After the initial merging of components that are related in motion, the components of the digital twin model are merged again. Boolean operations are performed on each component of the merged digital twin model to create independent entities; Save the digital twin model after creating the independent entity as a universal model format.
4. The lightweight optimization method for a digital twin model based on UE4 as described in claim 1, characterized in that, The process of merging the static meshes of a digital twin model in a common model format into a single object, and managing the model tree for each component based on the motion dependencies between the components of the digital twin model, includes: Import digital twin models in a common model format into the model data import plugin in UE4 software; Create an Actor object that merges the static meshes of a digital twin model in a common model format into a single Actor object; The system uses a scene component as the root component and manages each component as a model tree based on the motion hierarchy between the components of the digital twin model.
5. The lightweight optimization method for a digital twin model based on UE4 as described in claim 1, characterized in that, The lightweight simplification and optimization of different components of the digital twin model after model tree management includes: A static mesh editor is used to lightly simplify the row triangle faces and the number of vertices of different components of the digital twin model after model tree management; A static mesh editor was used to optimize different components of the lightweight, simplified digital twin model and adjust the corresponding lightmap resolution.
6. A lightweight optimization system for digital twin models based on UE4, characterized in that, include: The filtering and deletion module is used to filter and delete redundant parts and features in the digital twin model; The merging module is used to classify and merge the components of the digital twin model after filtering and deletion based on motion subordination and dynamic / static patterns, and to create independent entities for each merged component and save them in a general model format. The object creation module is used to merge the static meshes of a digital twin model in a common model format into a single object, and to manage the model tree of each component according to the motion hierarchy between the components of the digital twin model. The lightweight simplification and optimization module is used to perform lightweight simplification and optimization on different components of the digital twin model after model tree management; The information lightweight processing module is used to perform lightweight processing of interactive data information on the simplified and optimized digital twin model to obtain the final lightweight digital twin model. The process of filtering and deleting redundant parts and features from the digital twin model includes: The method of extracting and replacing the covering surface is adopted. The components are used as the screening criteria and the maximum diagonal size of the component's border is used as the screening condition to screen and delete redundant parts of the digital twin model. A component refers to a single entity that is assembled into an assembly. The method of extracting and replacing the covering surface is used to filter and delete redundant parts in the digital twin model. The specific size of the relevant features is used as the filtering condition to filter and delete the redundant features of the digital twin model. The relevant features include holes, chamfers, fillets and cavities. Among them, the maximum diameter of the hole is used as the filtering condition, the maximum surface loop is used as the filtering condition, the maximum radius of the fillet is used as the filtering condition, and the maximum distance of the chamfer is used as the filtering condition. The step of performing lightweight interactive data information processing on the simplified and optimized digital twin model to obtain the final lightweight digital twin model includes: Establish several information databases for the digital twin model, and divide the information databases into static information databases, periodically updated information databases, and real-time updated information databases. Different classifications, management, and storage are carried out for data with different update frequencies. The interactive data information of the simplified and optimized digital twin model is stored in the corresponding information database according to the type, resulting in the final lightweight digital twin model.
7. A processing device, characterized in that, It includes computer program instructions, wherein when executed by a processing device, the computer program instructions are used to implement the steps corresponding to the lightweight optimization method for the UE4-based digital twin model as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the lightweight optimization method for the UE4-based digital twin model as described in any one of claims 1-5.
Citation Information
Patent Citations
Application of virtual reality technology based on CAD oversized model in hydropower station simulation system
CN109858059A
Digital twinborn model lightweight method and system
CN113111201A