A lightweight modeling method for digital twin models
By cutting and folding points of the modeling surface of the digital twin model, a lightweight calling unit is formed, and the accuracy is adjusted according to the target observation angle, the problem of low operating frame rate in the scene caused by the large data processing volume of the digital twin model is solved, and efficient data processing and observation experience is achieved.
Patent Information
- Application Number
- CN202410959508.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing digital twin models have large data processing volume, resulting in low frame rate of scene operation, which makes it difficult to meet the accuracy and efficiency requirements of virtual and real linkage.
The modeling surface of the digital twin model is cut through the observable perspective of physical entities, several calling units are determined, and the folding points of a single calling unit is simplified to form a lightweight calling unit, preserving the connection constraints and connection relationships. Adjust the call accuracy and rendering accuracy according to the target observation angle, and adjust the call unit in real time in response to the movement of the target object.
It reduces the model data processing volume and memory usage, improves the scene running frame rate, ensures the observation experience of the target object, and retains the significant geometric characteristics of the physical entity.
Smart Images

Figure CN118918289B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of digital twin technology, and in particular to a lightweight modeling method for a digital twin model. Background Art
[0002] Digital twin originated from the Apollo program in 1969 and has been developing continuously since then. After nearly half a century of development, the concept of digital twin has emerged and has become one of the top ten strategic technology trends, attracting worldwide attention. With the development of new generation information technologies such as big data, artificial intelligence, and 5G, the connotation of digital twin has gradually been enriched. By establishing a digital twin model, not only can the state of physical entities be reflected in real time, but also physical entities can be monitored, diagnosed, predicted, and decision-making optimized based on real-time perception data, historical accumulation data, physical models, multidisciplinary knowledge, and analytical algorithms. At present, digital twin technology has long been not only a theoretical study, but also applied to various fields due to its universal applicability, such as aerospace, product full-cycle management, construction engineering, and medical analysis. Digital twin models often have extremely large amounts of data and complex organizational structure relationships. The existence of these data and structures will bring huge challenges to computer performance and cannot meet the accuracy and efficiency requirements of virtual-real linkage in digital twins. Lightweight operations on digital twin models often use relatively simple models to replace the original models. However, how to simplify the complex digital twin models without losing the significant original features of the models has become a major problem that needs to be urgently solved in the application of digital twins in recent years.
[0003] Chinese Patent Publication No.: CN117876560A discloses a lightweight construction method for a three-dimensional model of a digital twin system. First, the models to be built need to be classified and graded. The models to be built are classified according to the distance of the landscape displayed by the models, and each type of models to be built is divided into different levels; among adjacent classified models, the lowest level of the near-field model is higher than the highest level of the far-field model, and then different lightweight methods are selected according to different levels to construct the geometric model and render.
[0004] It can be seen that the lightweight construction method of the three-dimensional model of the digital twin system provided by the invention has the following problems: the model to be built is classified and graded according to the distance of the display landscape, and then the model is constructed and rendered. The data processing volume of the model is relatively large, which will make the scene running frame rate low. Summary of the invention
[0005] To this end, the present invention provides a lightweight modeling method for a digital twin model to overcome the problems in the prior art of large model data processing volume and low scene running frame rate.
[0006] To achieve the above object, the present invention provides a lightweight modeling method for a digital twin model, comprising:
[0007] Step S1, obtaining a corresponding digital twin model based on a physical entity;
[0008] Step S2, determining the modeling surfaces of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity, and cutting each modeling surface of the digital twin model to determine a number of calling units;
[0009] Step S3, constructing connection constraints of each call unit based on the cutting points, and simplifying the single call unit by folding points to form a corresponding lightweight call unit; wherein the lightweight call unit retains the connection constraints and connection relationship with the adjacent call units;
[0010] Step S4, obtaining a target observation angle of the target object and determining a corresponding target calling unit; wherein the calling accuracy is determined based on the relative position relationship between the target observation angle and the physical entity;
[0011] Step S5, rendering the target calling unit according to a preset rendering method; wherein the rendering accuracy is determined based on the relative position relationship between the target observation angle and the physical entity;
[0012] Step S6, in response to the movement of the target object, calling the newly added target calling unit corresponding to the observable physical entity within the target visual range.
[0013] Furthermore, the step S2 comprises:
[0014] Step S21, determining the modeling surface of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity;
[0015] Step S22, determining the cutting size of each modeling surface according to the surface curvature of each modeling surface;
[0016] Wherein, if the surface curvature is less than a preset curvature threshold, cutting is performed using a first preset size;
[0017] If the surface curvature is not less than a preset curvature threshold, cutting is performed using a second preset size;
[0018] Step S23, determining a number of calling units according to the cutting size.
[0019] Furthermore, the step S3 comprises:
[0020] Step S31, determining a number of cutting points of each calling unit according to the cutting results of each calling unit of the modeling surface;
[0021] Step S32, constructing connection constraints of each calling unit based on the positional relationship of a plurality of cutting points of each calling unit;
[0022] Step S33, folding points are simplified on a single calling unit to form a corresponding lightweight calling unit.
[0023] Furthermore, the step S33 includes:
[0024] Step S331, obtaining a triangular mesh model of a single calling unit;
[0025] Step S332, determining the optimal folding point and the corresponding folding cost of each triangle mesh edge of a single calling unit according to a preset method;
[0026] Step S333, folding the triangular mesh edges corresponding to the optimal folding points whose folding costs are less than a preset folding cost threshold, to form a lightweight calling unit corresponding to a single calling unit.
[0027] Furthermore, the step S4 comprises:
[0028] Step S41, obtaining a target observation angle of the target object;
[0029] Step S42, determining a target calling unit according to the relative position relationship between the target observation angle and the physical entity.
[0030] Furthermore, the step S42 includes:
[0031] Step S421, determining a corresponding main viewing angle range according to the target observation viewing angle;
[0032] Step S422, determining a corresponding digital twin model according to observable physical entities within the main viewing angle;
[0033] Step S423, determining the relative position relationship according to the center position of the target observation angle and the geometric center position of the single observable physical entity;
[0034] Step S424: determining a target calling unit of a single observable physical entity according to the relative position relationship.
[0035] Furthermore, in step S4, the calling accuracy is determined by:
[0036] If the relative position relationship is the first preset position relationship, determining the calling accuracy to be the first preset calling accuracy;
[0037] If the relative position relationship is the second preset position relationship, the calling accuracy is determined to be the second preset calling accuracy.
[0038] Furthermore, in the step S5, the rendering accuracy is determined according to a preset relative position relationship-rendering accuracy comparison table.
[0039] Furthermore, the step S6 comprises:
[0040] Step S61, in response to the movement of the target object, determining the sight line movement direction of the target object and the movement speed of the target object;
[0041] Step S62, determining a newly added target calling unit according to the sight line moving direction and moving speed;
[0042] Step S63, adjusting the calling accuracy of the newly added target calling unit according to the comparison result between the moving speed and the preset moving speed threshold;
[0043] If the moving speed is greater than a preset moving speed threshold, the calling accuracy of the newly added target calling unit is set to the first preset calling accuracy;
[0044] If the moving speed is not greater than the preset moving speed threshold, setting the calling accuracy of the newly added target calling unit to the second preset calling accuracy;
[0045] Step S64, rendering the newly added target calling unit according to a preset rendering method, and calling the rendered newly added target calling unit.
[0046] Furthermore, the preset method is a quadratic error measurement method.
[0047] Compared with the prior art, the beneficial effect of the present invention is that the present invention determines several call units by segmenting the modeling surface of the digital twin model corresponding to the observable perspective of the physical entity, and only processing the modeling surface can reduce the model data processing volume. By folding the single call unit to simplify the corresponding lightweight call unit, since the call accuracy of the lightweight call unit is low, the model data processing volume and memory usage can be reduced. According to the target observation perspective of the target object, the corresponding target call unit is determined, and the target call unit is rendered according to the preset rendering method. The call accuracy and rendering accuracy can be adjusted according to the position of the target observation perspective, further reducing the data processing volume and improving the scene operation frame rate. In addition, in response to the movement of the target object, the newly added target call unit corresponding to the observable physical entity within the target line of sight is called, and the call unit can be adjusted in real time to ensure the observation experience of the target object.
[0048] Furthermore, the present invention determines the cutting size according to the surface curvature of each modeling surface, which can ensure the integrity of the significant geometric features of the physical entity.
[0049] Furthermore, the present invention constructs the connection constraint conditions of each calling unit according to the positional relationship of the cutting points of each calling unit, which can ensure the integrity of the connection parts of each calling unit and avoid the lightweight calling units after folding point simplification cannot be connected to form a complete modeling surface of the model. By simplifying the folding points, the amount of data and memory usage can be reduced, and the amount of subsequent data processing can be reduced.
[0050] Furthermore, the present invention determines the optimal folding point and the corresponding folding cost of each triangular mesh edge of a single calling unit through a preset method, and folds it according to the folding cost to form a lightweight calling unit, which can retain the detailed features of the calling unit to ensure that the appearance of the calling unit is not significantly changed.
[0051] Furthermore, the present invention determines the target calling unit according to the relative position relationship between the target observation angle and the physical entity, which can reduce the amount of data processing and improve the scene operation frame rate.
[0052] Furthermore, the present invention can reduce the amount of subsequent data processing by determining the main viewing angle range and only processing observable physical entities within the main viewing angle range.
[0053] Furthermore, the present invention determines the newly added target calling unit and the calling accuracy according to the line of sight moving direction and moving speed of the target object, which can further reduce the data processing amount and improve the scene running frame rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flow chart of the lightweight modeling method of the digital twin model of the present invention;
[0055] Figure 2 Schematic diagram of the process of step S2 of the embodiment of the present invention;
[0056] Figure 3 Schematic diagram of the process of step S3 of the embodiment of the present invention;
[0057] Figure 4 Schematic diagram of the process of step S33 of the embodiment of the present invention;
[0058] Figure 5 Schematic diagram of the process of step S4 of the embodiment of the present invention;
[0059] Figure 6 Schematic diagram of the process of step S42 of the embodiment of the present invention;
[0060] Figure 7 Schematic diagram of the process of step S6 in the embodiment of the present invention. DETAILED DESCRIPTION
[0061] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0062] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0063] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0064] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0065] For explanation, the physical entity mentioned in the present invention refers to the exhibition hall building or the facilities and exhibits in the exhibition hall that are visible to users. The digital twin model refers to the virtual entity corresponding to the physical entity built based on the digital twin technology. The application scenario of the present invention is the user visiting the exhibition hall, wherein the observable viewing angle is the range of viewing angles that can be observed determined by the user's eyes when the user browses the scene. The calling and rendering described in the present invention can be implemented using any model calling and rendering tools in the prior art.
[0066] See also Figure 1 As shown, it is a flow chart of the lightweight modeling method of the digital twin model of the present invention;
[0067] An embodiment of the present invention provides a lightweight modeling method for a digital twin model, comprising:
[0068] Step S1, obtaining a corresponding digital twin model based on a physical entity;
[0069] It should be noted that those skilled in the art know that any method in the prior art that can construct a digital twin model falls within the protection scope of the present invention and will not be described in detail here.
[0070] Step S2, determining the modeling surfaces of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity, and cutting each modeling surface of the digital twin model to determine a number of calling units;
[0071] In implementation, the observable perspective based on the physical entity can divide the various surfaces of the digital twin model into modeling surfaces and non-modeling surfaces. The modeling surfaces are visible surfaces in each observable perspective, and the non-modeling surfaces are invisible surfaces in each observable perspective. Since the non-modeling surfaces are invisible, these parts can be left unprocessed in actual application scenarios, and only the modeling surfaces need to be processed, which can reduce the amount of data processing.
[0072] See also Figure 2 As shown, it is a schematic diagram of the process of step S2 of an embodiment of the present invention;
[0073] Specifically, the step S2 includes:
[0074] Step S21, determining the modeling surface of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity;
[0075] Step S22, determining the cutting size of each modeling surface according to the surface curvature of each modeling surface;
[0076] Wherein, if the surface curvature is less than a preset curvature threshold, cutting is performed using a first preset size;
[0077] If the surface curvature is not less than a preset curvature threshold, cutting is performed using a second preset size;
[0078] In practice, those skilled in the art know that any method in the prior art that can calculate the surface curvature falls within the protection scope of the present invention and will not be described in detail herein.
[0079] This embodiment provides a method for calculating the surface curvature of a modeling surface:
[0080] Normal vector estimation is performed based on the local surface fitting method. For each scan point p in the modeling surface, the k nearest neighboring points are searched. The plane normal vector fitted by the k nearest points is the normal vector of the current scan point. The local plane P of these points is calculated, which is expressed as:
[0081]
[0082] in, is the normal vector of plane P, d is the distance from P to the origin of the coordinate system, and argmin() is the preset function for determining the variable when taking the minimum value;
[0083] By operating P through the centroid p0 of its k-neighboring points, and the normal vector satisfy Then the covariance matrix Perform eigenvalue decomposition to obtain the eigenvalues of M. The eigenvector corresponding to the minimum eigenvalue of M is the normal vector of P.
[0084] If the eigenvalues satisfy λ0≤λ1≤λ2, then the surface curvature of P is Among them, the smaller σ is, the flatter P is.
[0085] In implementation, if the surface curvature is less than the preset curvature threshold, it means that the corresponding modeling surface is relatively flat, and there may be more parts that can be simplified during subsequent simplification. In this case, the cutting size can be set to be relatively large, that is, the first preset size is used for cutting, and the significant geometric features of each modeling surface will not be cut, while reducing the amount of data processing; if the surface curvature is not less than the preset curvature threshold, it means that the corresponding modeling surface has a large fluctuation. If the first preset size is continued to be used for cutting, the significant geometric features of each modeling surface may be simplified during subsequent simplification, so the second preset size is used for cutting.
[0086] In actual application scenarios, the first preset size is larger than the second preset size. The actual implementation personnel can set the first preset size and the second preset size based on the expert system according to the actual situation. Preferably, the preset curvature threshold is set to 1-10m. -1 When the first preset size is generally set to 1 / 15 to 1 / 10 of the smallest size of any of the physical entity's geometric length, width and height, the second preset size is generally set to 1.5 to 2 times the first preset size.
[0087] Step S23, determining a number of calling units according to the cutting size.
[0088] Specifically, each cutting surface is determined as a corresponding calling unit. Preferably, when the modeling surface is cut using the first preset size / the second preset size, a plurality of cutting lines (with the same preset size of spacing) of the modeling surface can be determined using the first preset size / the second preset size to cut the modeling surface into a plurality of calling units (cutting the modeling surface into a cube formed by the first preset size / the second preset size), and the position of the specific cutting point can be selected so that the overall curvature of each cutting line is the smallest, which can reduce the computational complexity of the connection constraint conditions of each calling unit.
[0089] The present invention determines the cutting size according to the surface curvature of each modeling surface, and can ensure the integrity of the significant geometric features of the physical entity.
[0090] Step S3, constructing connection constraints of each call unit based on the cutting points, and simplifying the single call unit by folding points to form a corresponding lightweight call unit; wherein the lightweight call unit retains the connection constraints and connection relationship with the adjacent call units;
[0091] See also Figure 3 As shown, it is a schematic diagram of the process of step S3 of an embodiment of the present invention; specifically, step S3 includes:
[0092] Step S31, determining a number of cutting points of each calling unit according to the cutting results of each calling unit of the modeling surface; the number of cutting points can be set according to the surface curvature of the cutting edge, and the greater the curvature, the more cutting points are set.
[0093] Step S32, constructing connection constraints of each calling unit based on the positional relationship of a plurality of cutting points of each calling unit;
[0094] In implementation, each calling unit has several cutting points, each cutting point has corresponding position information, and the connection constraints corresponding to each calling unit are established according to the positional relationship of each cutting point, and adjacent calling units have at least two common cutting points. Therefore, there are corresponding connection constraints and connection relationships between each adjacent calling unit. During the simplification process, the connection constraints and connection relationships with adjacent calling units are retained, which can ensure that each calling unit can be completely spliced together through the connection constraints and connection relationships without affecting the user's viewing.
[0095] Step S33, folding points are simplified on a single calling unit to form a corresponding lightweight calling unit.
[0096] It should be noted that those skilled in the art know that any method in the prior art that can simplify folding points falls within the protection scope of the present invention and will not be described in detail here.
[0097] The present invention constructs the connection constraint conditions of each calling unit according to the positional relationship of the cutting points of each calling unit, which can ensure the integrity of the connection parts of each calling unit and avoid the lightweight calling units after folding point simplification cannot be connected to form a complete modeling surface of the model. By simplifying the folding points, the amount of data and memory usage can be reduced, and the amount of subsequent data processing can be reduced.
[0098] In a specific embodiment, see Figure 4 As shown, it is a schematic diagram of the process of step S33 of an embodiment of the present invention. Specifically, step S33 includes:
[0099] Step S331, obtaining a triangular mesh model of a single calling unit;
[0100] Step S332, determining the optimal folding point and the corresponding folding cost of each triangle mesh edge of a single calling unit according to a preset method;
[0101] Specifically, the preset method may be a quadratic error measurement method.
[0102] In implementation, the optimal folding point is the point where the folding cost of each triangle mesh edge of a single calling unit is the smallest.
[0103] Step S333, folding the triangular mesh edges corresponding to the optimal folding points whose folding costs are less than a preset folding cost threshold, to form a lightweight calling unit corresponding to a single calling unit.
[0104] Specifically, by folding the triangular mesh edges corresponding to the optimal folding point whose folding cost is less than a preset folding cost threshold, redundant data in the calling unit can be removed to generate a low-resolution calling unit, i.e., a lightweight calling unit, to replace the original calling unit, which can reduce the amount of data processing and improve the scene running frame rate.
[0105] In actual application scenarios, actual implementers can set a preset folding cost threshold according to actual conditions. The smaller the value of the preset folding cost threshold, the higher the requirement for the folding cost of the optimal folding point. Preferably, the value range of the preset folding cost threshold can be 0.001-0.05.
[0106] The present invention determines the optimal folding point and the corresponding folding cost of each triangular mesh edge of a single calling unit through a preset method, and folds it according to the folding cost to form a lightweight calling unit, which can retain the detailed features of the calling unit to ensure that the appearance of the calling unit is not significantly changed.
[0107] Step S4, obtaining a target observation angle of the target object and determining a corresponding target calling unit; wherein the calling accuracy is determined based on the relative position relationship between the target observation angle and the physical entity;
[0108] Specifically, in step S4, the calling accuracy is determined by:
[0109] If the relative position relationship is the first preset position relationship, determining the calling accuracy to be the first preset calling accuracy;
[0110] If the relative position relationship is the second preset position relationship, the calling accuracy is determined to be the second preset calling accuracy.
[0111] In implementation, the straight-line distance corresponding to the first preset position relationship is greater than the straight-line distance corresponding to the second preset position relationship, the first preset calling accuracy is less than the second preset calling accuracy, the calling unit corresponding to the first preset calling accuracy is a lightweight calling unit, and the calling unit corresponding to the second preset calling accuracy is a calling unit before simplification.
[0112] If the straight-line distance between the target observation angle and the physical entity is greater than the preset distance threshold, it is determined that the first preset position relationship is met. At this time, the distance between the target object and the physical entity is relatively far, and the observation accuracy requirement for the physical entity is not high, so the call accuracy is determined to be the first preset call accuracy. If the straight-line distance between the target observation angle and the physical entity is not greater than the preset distance threshold, it is determined that the second preset position relationship is met. At this time, the distance between the target object and the physical entity is relatively close, and the observation accuracy requirement for the physical entity is relatively high. The detailed features of the physical entity may be observed, so the call accuracy is determined to be the second preset call accuracy. In implementation, the preset distance threshold is usually set to 2m to 5m based on the visual accuracy of people looking at each object.
[0113] Please continue reading Figure 5 As shown, it is a schematic diagram of the process of step S4 of an embodiment of the present invention; specifically, step S4 includes:
[0114] Step S41, obtaining a target observation angle of the target object;
[0115] In practice, the target observation angle of the target object can usually be achieved through technologies such as eye tracking and face recognition, or determined through basic user information in historical data.
[0116] Step S42, determining a target calling unit according to the relative position relationship between the target observation angle and the physical entity.
[0117] The present invention determines the target calling unit according to the relative position relationship between the target observation angle and the physical entity, which can reduce the amount of data processing and improve the scene operation frame rate.
[0118] In a specific embodiment, see Figure 6 As shown, it is a schematic diagram of the process of step S42 of an embodiment of the present invention; specifically, step S42 includes:
[0119] Step S421, determining a corresponding main viewing angle range according to the target observation viewing angle;
[0120] In actual application scenarios, objects within the main viewing angle are generally observed more carefully. Only observable physical entities within the main viewing angle can be determined and the calling unit can be called to reduce the amount of data processing. The main viewing angle range is usually set to an observation range of 20° to 35° determined by the center of both eyes.
[0121] Step S422, determining the corresponding digital twin model according to the observable physical entity within the main viewing angle; as long as a part of the physical entity falls within the main viewing angle, the corresponding physical entity is determined to be an observable physical entity.
[0122] Step S423, determining the relative position relationship based on the center position of the target observation angle of view (the current position of the center of the eyes of the target object) and the geometric center position of the single observable physical entity; the relative position relationship is represented by a vector, wherein the distance between the geometric center position of the single observable physical entity and the center position of the target observation angle of view is set as the vector distance, and the vector direction is from the current position of the target object to the geometric center position of the single observable physical entity.
[0123] Step S424: determining a target calling unit of a single observable physical entity according to the relative position relationship.
[0124] In implementation, by determining the sight line vector from the center position of the target observation angle to the observable physical entity according to the relative position relationship, each sight line vector that first reaches each call unit corresponding to a single observable physical entity is determined as the target call unit of the single observable physical entity. It can be understood that the sight line vector starts from the center position of the target observation angle and ends at each position on each call unit corresponding to the single observable physical entity. The target call unit is the call unit corresponding to the sight line vector that intersects with the call unit only once in each sight line vector. The intersection here only means that the end point of the sight line vector is located on the corresponding call unit.
[0125] The present invention determines the main viewing angle range and only processes observable physical entities within the main viewing angle range, thereby reducing the amount of subsequent data processing, achieving lightweight modeling by reducing the amount of modeling data, and improving the modeling speed.
[0126] Step S5, rendering the target calling unit according to a preset rendering method; wherein the rendering accuracy is determined based on the relative position relationship between the target observation angle and the physical entity;
[0127] It should be noted that those skilled in the art know that any method capable of rendering a model in the prior art falls within the protection scope of the present invention and will not be described in detail herein.
[0128] In implementation, the preset rendering method includes mapping, parameter adjustment, etc.
[0129] In a specific embodiment, specifically, in the step S5, the rendering accuracy is determined according to a preset relative position relationship-rendering accuracy comparison table.
[0130] In actual application scenarios, actual implementers can set a preset relative position relationship-rendering accuracy comparison table based on the expert system according to actual conditions. Generally, the relative position relationship is graded according to the straight-line distance between the target observation angle and the physical entity. For example, the relative position relationship is divided into four levels: 0, 1, 2, and 3. The straight-line distance increases successively, and the rendering accuracy decreases successively. Level 0 corresponds to the highest rendering accuracy, which can be achieved through mapping, and the image resolution used is the highest; level 1 corresponds to the second highest rendering accuracy, which can be achieved through mapping, but the image resolution used is lower than that of level 0; level 2 corresponds to the third highest rendering accuracy, which can be achieved through a combination of mapping and parameter adjustment, and the image resolution used is lower than that of level 1, and parameters such as basic color and reflectivity can be adjusted; level 3 corresponds to the lowest rendering accuracy, which can be achieved through parameter adjustment.
[0131] Step S6, in response to the movement of the target object, calling the newly added target calling unit corresponding to the observable physical entity within the target visual range.
[0132] In a specific embodiment, see Figure 7 As shown, it is a schematic diagram of the process of step S6 of an embodiment of the present invention;
[0133] Specifically, the step S6 includes:
[0134] Step S61, in response to the movement of the target object, determining the sight line movement direction of the target object and the movement speed of the target object;
[0135] Step S62, determining a newly added target calling unit according to the sight line moving direction and moving speed;
[0136] In implementation, if the moving speed is greater than the preset minimum moving speed threshold, it is determined that the angle of the main viewing angle range is increased according to the direction of sight movement, the increased angle is along the direction of sight movement, and the increased angle value is positively correlated with the moving speed, and the calling unit is re-determined according to the above step S42, and a new target calling unit is determined based on the called unit;
[0137] If the moving speed is less than or equal to the preset minimum moving speed threshold, the target observation angle updated according to each monitoring time point is determined to redetermine the calling unit according to the above step S42, and determine a new target calling unit based on the called unit.
[0138] Step S63, adjusting the calling accuracy of the newly added target calling unit according to the comparison result between the moving speed and the preset moving speed threshold;
[0139] If the moving speed is greater than a preset moving speed threshold, the calling accuracy of the newly added target calling unit is set to the first preset calling accuracy;
[0140] If the moving speed is not greater than the preset moving speed threshold, setting the calling accuracy of the newly added target calling unit to the second preset calling accuracy;
[0141] Specifically, the actual implementer may set a preset moving speed threshold based on the expert system and the model rendering speed according to the actual situation, or set it according to the average moving speed of visiting users in historical data.
[0142] In implementation, if the moving speed is greater than the preset moving speed threshold, it indicates that the user moves relatively fast and the observation accuracy requirement for observable physical entities within the target visual range is not high, and the call accuracy can be set to the first preset call accuracy, which can improve the scene running frame rate; if the moving speed is not greater than the preset moving speed threshold, it indicates that the user moves relatively slowly and the observation accuracy requirement for observable physical entities within the target visual range is relatively high, and the call accuracy can be set to the second preset call accuracy, which can improve the user experience;
[0143] Step S64, rendering the newly added target calling unit according to a preset rendering method, and calling the rendered newly added target calling unit.
[0144] The present invention determines the newly added target calling unit and the calling accuracy according to the sight line moving direction and moving speed of the target object, which can further reduce the data processing amount and improve the scene running frame rate.
[0145] The present invention divides the modeling surface of the digital twin model corresponding to the observable viewing angle of the physical entity to determine a number of call units. Only processing the modeling surface can reduce the model data processing volume. By folding the points of a single call unit to simplify it to form a corresponding lightweight call unit, since the calling accuracy of the lightweight call unit is low, the model data processing volume and memory usage can be reduced. According to the target observation viewing angle of the target object, the corresponding target call unit is determined, and the target call unit is rendered according to a preset rendering method. The calling accuracy and rendering accuracy can be adjusted according to the position of the target observation viewing angle, further reducing the data processing volume and improving the scene operation frame rate. In addition, in response to the movement of the target object, the newly added target call unit corresponding to the observable physical entity within the target line of sight is called, and the call unit can be adjusted in real time to ensure the observation experience of the target object.
[0146] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A lightweight modeling method for a digital twin model, characterized in that: include: Step S1, obtaining a corresponding digital twin model based on a physical entity; Step S2, determining the modeling surfaces of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity, and cutting each modeling surface of the digital twin model to determine a number of calling units; The step S2 comprises: Step S21, determining the modeling surface of the digital twin model corresponding to each observable perspective based on the observable perspective of the physical entity; Step S22, determining the cutting size of each modeling surface according to the surface curvature of each modeling surface; Wherein, if the surface curvature is less than a preset curvature threshold, cutting is performed using a first preset size; If the surface curvature is not less than a preset curvature threshold, cutting is performed using a second preset size; Step S23, determining a number of calling units according to the cutting size; Step S3, constructing connection constraints of each call unit based on the cutting points, and simplifying the single call unit by folding points to form a corresponding lightweight call unit; wherein the lightweight call unit retains the connection constraints and connection relationship with the adjacent call units; Step S4, obtaining a target observation angle of the target object and determining a corresponding target calling unit; wherein the calling accuracy is determined based on the relative position relationship between the target observation angle and the physical entity; Step S5, rendering the target calling unit according to a preset rendering method; wherein the rendering accuracy is determined based on the relative position relationship between the target observation angle and the physical entity; Step S6, in response to the movement of the target object, calling the newly added target calling unit corresponding to the observable physical entity within the target visual range.
2. The lightweight modeling method of the digital twin model according to claim 1 is characterized in that: The step S3 comprises: Step S31, determining a number of cutting points of each calling unit according to the cutting results of each calling unit of the modeling surface; Step S32, constructing connection constraints of each calling unit based on the positional relationship of a plurality of cutting points of each calling unit; Step S33, folding points are simplified on a single calling unit to form a corresponding lightweight calling unit.
3. The lightweight modeling method of the digital twin model according to claim 2 is characterized in that: The step S33 comprises: Step S331, obtaining a triangular mesh model of a single calling unit; Step S332, determining the optimal folding point and the corresponding folding cost of each triangle mesh edge of a single calling unit according to a preset method; Step S333, folding the triangular mesh edges corresponding to the optimal folding points whose folding costs are less than a preset folding cost threshold, to form a lightweight calling unit corresponding to a single calling unit.
4. The lightweight modeling method of the digital twin model according to claim 3 is characterized in that: The step S4 comprises: Step S41, obtaining a target observation angle of the target object; Step S42, determining a target calling unit according to the relative position relationship between the target observation angle and the physical entity.
5. The lightweight modeling method of the digital twin model according to claim 4 is characterized in that: The step S42 comprises: Step S421, determining a corresponding main viewing angle range according to the target observation viewing angle; Step S422, determining a corresponding digital twin model according to observable physical entities within the main viewing angle; Step S423, determining the relative position relationship according to the center position of the target observation angle and the geometric center position of the single observable physical entity; Step S424: determining a target calling unit of a single observable physical entity according to the relative position relationship.
6. The lightweight modeling method of the digital twin model according to claim 1, characterized in that: In step S4, the calling accuracy is determined by: If the relative position relationship is the first preset position relationship, determining the calling accuracy to be the first preset calling accuracy; If the relative position relationship is the second preset position relationship, the calling accuracy is determined to be the second preset calling accuracy.
7. The lightweight modeling method of the digital twin model according to claim 6 is characterized in that: In the step S5, the rendering accuracy is determined according to a preset relative position relationship-rendering accuracy comparison table.
8. The lightweight modeling method of the digital twin model according to claim 7 is characterized in that: The step S6 comprises: Step S61, in response to the movement of the target object, determining the sight line movement direction of the target object and the movement speed of the target object; Step S62, determining a newly added target calling unit according to the sight line moving direction and moving speed; Step S63, adjusting the calling accuracy of the newly added target calling unit according to the comparison result between the moving speed and the preset moving speed threshold; If the moving speed is greater than a preset moving speed threshold, the calling accuracy of the newly added target calling unit is set to the first preset calling accuracy; If the moving speed is not greater than the preset moving speed threshold, setting the calling accuracy of the newly added target calling unit to the second preset calling accuracy; Step S64, rendering the newly added target calling unit according to a preset rendering method, and calling the rendered newly added target calling unit.
9. The lightweight modeling method of the digital twin model according to claim 3 is characterized in that: The preset method is a quadratic error measurement method.
Citation Information
Patent Citations
Lightweight construction method for three-dimensional model of digital twin system
CN117876560A