Lightweight modeling method for digital twin model
By segmenting and simplifying the calling unit of the digital twin model, combining perspective and rendering accuracy adjustment, the problem of large data processing volume of the digital twin model is solved, the scene operation frame rate is improved and the significant characteristics of the physical entity is retained.
Patent Information
- Application Number
- CN202410959508.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The large data processing volume of the digital twin model leads to low frame rates in the scene, and the existing lightweight methods cannot effectively simplify complex models and retain significant features.
By segmenting the modeling surface based on observable perspectives based on physical entities, the calling unit is constructed and simplified, the rendering accuracy and call accuracy are adjusted, and the calling unit is adjusted in real time in response to the movement of the target object, ensuring the observation experience.
Reduces model data processing and memory usage, improves scene running frame rate, while retaining significant geometric features and connection integrity of physical entities.
Smart Images

Figure CN118918289A_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] The concept of digital twins originated with the Apollo program in 1969 and has continued to evolve. After nearly half a century of development, the concept of digital twins has emerged and has become one of the top ten strategic technology trends, attracting global attention. With the advancement of next-generation information technologies such as big data, artificial intelligence, and 5G, the meaning of digital twins has gradually expanded. By building digital twin models, not only can the state of physical entities be reflected in real time, but they can also be used to monitor, diagnose, predict, and optimize decisions based on real-time sensor data, historical data, physical models, multidisciplinary knowledge, and analytical algorithms. Currently, digital twin technology has evolved beyond theoretical research and, due to its universal applicability, has been applied in various fields such as aerospace, product lifecycle management, construction engineering, and medical analysis. Digital twin models often involve extremely large amounts of data and complex organizational structures. These data and structures pose significant challenges to computer performance and cannot meet the accuracy and efficiency requirements of the virtual-physical linkage required by digital twins. Lightweight operations on digital twin models often use relatively simple models to replace the original models. However, how to simplify complex digital twin models without losing the significant original features of the models has become a major problem that needs to be solved urgently in the application of digital twins in recent years.
[0003] Chinese patent publication number: CN117876560A discloses a lightweight construction method for three-dimensional models of digital twin systems. 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 model to be built is divided into different levels; among adjacent classified models, the lowest level of the near-view model is higher than the highest level of the far-view model. Then, different lightweight methods are selected according to different levels to construct the geometric model and render it.
[0004] It can be seen that the lightweight construction method of the three-dimensional model of the digital twin system provided by this 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 objectives, 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 the 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 for each call unit based on the cutting points, and simplifying the single call unit by folding the points to form a corresponding lightweight call unit; wherein the lightweight call unit retains the connection constraints and connection relationships with 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 positional 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, a newly added target calling unit corresponding to the observable physical entity within the target sight range is called.
[0013] Furthermore, the step S2 includes:
[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 includes:
[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 for each calling unit based on the positional relationship of the plurality of cutting points of each calling unit;
[0022] Step S33: folding point simplification is performed 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 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 includes:
[0028] Step S41, obtaining a target observation angle of the target object;
[0029] Step S42: determining a target calling unit according to the relative positional 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 the observable physical entity within the primary 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 step S5, the rendering accuracy is determined according to a preset relative position relationship-rendering accuracy comparison table.
[0039] Furthermore, the step S6 includes:
[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 new 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 simplifying the single call unit by folding points to form a 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 a 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 connection constraints for each call unit based on the positional relationship of its cut points. This ensures the integrity of the connection points between each call unit and prevents the inability to connect lightweight call units to form a complete model surface after folding point simplification. This folding point simplification reduces data volume and memory usage, reducing the amount of subsequent data processing.
[0050] Furthermore, the present invention determines the optimal folding point and 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 running frame rate.
[0052] Furthermore, 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.
[0053] Furthermore, the present invention determines the newly added target calling unit and 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 an 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 an embodiment of the present invention;
[0060] Figure 7 Schematic diagram of the process of step S6 in an 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 merely used to explain the present invention and are not intended 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 scope of protection 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 accompanying drawings. This is only 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] Furthermore, it should be noted that, in the description of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0065] For explanation, the physical entity mentioned in the present invention refers to the exhibition hall building or the facilities, exhibits and other user-visible entities in the exhibition hall. The digital twin model refers to the virtual entity corresponding to the physical entity constructed based on digital twin technology. The application scenario of the present invention is the user visiting the exhibition hall, wherein the observable perspective is the observable perspective range 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 existing technology.
[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 the 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 scope of protection 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 physical entities 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, in actual application scenarios, this part can be left unprocessed and only the modeling surfaces can 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, 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 here.
[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 and 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 function that determines the variable when taking the minimum value;
[0083] By operating P through the centroid p0 of its k-neighborhood 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 eigenvalue satisfies λ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 relatively 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 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 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 of the modeling surface (with the same preset size of spacing) 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). The specific cutting point position can be selected so that the overall curvature of each cutting line is minimized, 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 for each call unit based on the cutting points, and simplifying the single call unit by folding the points to form a corresponding lightweight call unit; wherein the lightweight call unit retains the connection constraints and connection relationships with adjacent call units;
[0091] See also Figure 3 , which is a flow chart of step S3 of an embodiment of the present invention; specifically, step S3 includes:
[0092] Step S31, determining a number of cutting points for 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 for each calling unit based on the positional relationship of the 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 constraint conditions 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 point simplification is performed 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 scope of protection of the present invention and will not be described in detail here.
[0097] The present invention constructs connection constraints for each call unit based on the positional relationship of its cut points, ensuring the integrity of the connection points between them and preventing the inability to connect lightweight call units to form a complete model surface after folding point simplification. This folding point simplification reduces data volume and memory usage, reducing the amount of subsequent data processing.
[0098] In a specific embodiment, see Figure 4 , which is a flow chart 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 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 the 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 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 will not be 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 positional relationship between the target observation angle and the physical entity;
[0108] Specifically, in step S4, the call 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 various objects.
[0113] Please continue reading Figure 5 , which is a flow chart 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 positional 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 data processing amount and improve the scene operation frame rate.
[0118] In a specific embodiment, see Figure 6 , which is a flow chart 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 practical applications, objects within the primary viewing angle are typically observed closely. By identifying only observable physical entities within the primary viewing angle and invoking only those invocation units, data processing can be reduced. The primary viewing angle is typically set to a 20° to 35° observation range, defined by the center of both eyes.
[0121] Step S422: Determine the corresponding digital twin model based on 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 will be determined as an observable physical entity.
[0122] Step S423, determining the relative position relationship based on the center position of the target observation angle (the current position of the center of the target object's eyes) 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 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 based on the relative position relationship, the first time each sight line vector 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 the call unit only once among the sight line vectors. 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, which can reduce the subsequent data processing volume, achieve lightweight modeling by reducing the amount of modeling data, and improve 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 scope of protection of the present invention and will not be described in detail here.
[0128] In implementation, the preset rendering method includes mapping, parameter adjustment, etc.
[0129] In a specific embodiment, specifically, in 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. 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, a newly added target calling unit corresponding to the observable physical entity within the target sight range is called.
[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, 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 new target calling unit according to the sight line moving direction and moving speed;
[0136] In implementation, if the movement speed is greater than a preset minimum movement 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 movement 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 re-determine 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 model rendering speed according to actual conditions, or set it according to the average moving speed of visiting users in historical data.
[0142] In implementation, if the movement speed is greater than the preset movement speed threshold, indicating that the user is moving relatively fast and the observation accuracy requirement for observable physical entities within the target line of sight is not high, the call accuracy can be set to the first preset call accuracy, which can improve the scene running frame rate; if the movement speed is not greater than the preset movement speed threshold, indicating that the user is moving relatively slow and the observation accuracy requirement for observable physical entities within the target line of sight is relatively high, 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 perspective of the physical entity to determine a number of call units. Processing only the modeling surface can reduce the model data processing volume. By simplifying the single call unit by folding points 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 perspective 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 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 calling unit can be adjusted in real time to ensure the observation experience of the target object.
[0146] Thus far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection 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; 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 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.
3. The lightweight modeling method of the digital twin model according to claim 2 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.
4. The lightweight modeling method of the digital twin model according to claim 3 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.
5. The lightweight modeling method of the digital twin model according to claim 4 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.
6. The lightweight modeling method of the digital twin model according to claim 5 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.
7. The lightweight modeling method of the digital twin model according to claim 1 is 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.
8. The lightweight modeling method of the digital twin model according to claim 7 is characterized in that: In the step S5, the rendering accuracy is determined according to a preset relative position relationship-rendering accuracy comparison table.
9. The lightweight modeling method of the digital twin model according to claim 8, 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.
10. The lightweight modeling method of digital twin model according to claim 3, 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
Three-dimensional tree model real-time simplification method based on viewpoint mutual information
CN111462318A
Three-dimensional CAD grid model simplifying method and system based on visibility judgment
CN112017294A
Digital twinning-oriented scene lightweight method
CN113888716A
Multi-resolution digital elevation model three-dimensional visualization method and device
CN115496871A
Cited By
Lightweight high-precision numerical control machine tool digital twin modeling method and system
CN122174471A
