A lightweight rendering method for multi-source heterogeneous data fusion in water conservancy digital twins

By preserving the positioning relationship between the lower edge of the gate, the intersection of the upstream water level and the intersection of the downstream water level in the three-dimensional mesh of the water conservancy digital twin, the problem of mismatch between the gate and the water level in the mesh simplification process of the sluice gate scene is solved, and accurate display of lightweight rendering is achieved.

CN123118940APending Publication Date: 2026-11-17NANJING DONGHE AUTOMATION ENG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611318234.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In the digital twin platform for water conservancy projects, the simplification of the 3D mesh of the sluice gate scene weakens the fit between the gate, the water surface and the gate opening boundary, affecting the display of the sluice gate's operating status on the rendering end.

Method used

By obtaining the lower edge line of the gate, the intersection line of the upstream water level and the intersection line of the downstream water level, the three-line positioning relationship of the gate opening is formed, and it is used as the retained geometry for mesh simplification to ensure that the key geometric relationship is retained in the lightweight mesh.

Benefits of technology

While reducing the amount of 3D mesh data, the key geometric relationships between the gate, water level, and local areas of the gate opening are maintained to ensure that the rendering end can accurately display the sluice gate's operating status.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123118940A_ABST
    Figure CN123118940A_ABST
Patent Text Reader

Abstract

This invention relates to the field of water conservancy digital twin technology, and discloses a method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins. The method includes: lightweighting a 3D mesh of a water conservancy digital twin containing a local area of ​​a sluice gate; obtaining the lower edge line of the sluice gate to represent its current position; and obtaining the upstream and downstream water level intersection lines located in the local area of ​​the sluice gate to represent the upstream and downstream water levels, respectively; combining these three lines to form a three-line positioning relationship for the sluice gate; determining the local mesh geometry intersecting with this relationship and identifying it as the retained geometry; performing mesh simplification based on the retained geometry, so that the three-line positioning relationship is retained as a geometric component of the lightweight mesh after mesh simplification; and performing mesh simplification on the remaining meshes to obtain a lightweight mesh. This invention is used for lightweight loading and rendering of 3D scenes of sluice gate digital twins.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of water conservancy digital twin technology, and more specifically, to a method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins. Background Technology

[0002] In digital twin platforms for water conservancy projects, sluice gate scenes typically require the integration of 3D models, terrain data, gate operation data, and upstream and downstream water level data, displaying their current operational status on a browser or professional rendering platform. In actual deployment, the 3D mesh is quite large, and direct loading consumes significant transmission, video memory, and computational resources. Therefore, mesh simplification is usually performed first. Conventional simplification focuses more on reducing the number of faces and loading efficiency, paying insufficient attention to the correspondence between the gate position and upstream and downstream water levels within a local area of ​​the sluice gate. When simplification is applied directly to the mesh near the sluice gate, the fit between the gate, water surface, and sluice gate boundary may be weakened. While the subsequent rendering platform can load a smaller mesh, the representation of the sluice gate's operational status in key local areas is prone to inaccuracies. Therefore, a processing method for 3D scenes in sluice gate digital twins is needed that, while reducing the mesh size, preserves the three-line positioning relationship of the sluice gate determined by the lower edge of the gate, the intersection of the upstream and downstream water levels, ensuring that the lightweight result can still support the display of the sluice gate's operational status. Summary of the Invention

[0003] This invention provides a method for fusing multi-source heterogeneous data and lightweight rendering of water conservancy digital twins, which solves the technical problems mentioned in the background art.

[0004] To achieve the above-mentioned objectives, the present invention provides the following technical solution.

[0005] A lightweight rendering method for multi-source heterogeneous data fusion of hydraulic digital twins is used to perform lightweight processing on 3D meshes of hydraulic digital twins containing local areas of sluice gates, including: Obtain the lower edge line of the gate to characterize the current gate position, and obtain the upstream water level intersection line and the downstream water level intersection line located in the local area of ​​the gate opening to characterize the upstream water level and the downstream water level, respectively. The lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level form a three-line positioning relationship for the gate opening; Based on the three-line positioning relationship of the gate hole, determine the local mesh geometry that intersects with the three-line positioning relationship of the gate hole, and determine the local mesh geometry as the retained geometry; Based on the preserved geometry, the water conservancy digital twin three-dimensional mesh is simplified, so that the three-line positioning relationship of the gate is preserved as a geometric component of the lightweight mesh after the mesh simplification. The remaining meshes other than the preserved geometry are also simplified to obtain the lightweight mesh.

[0006] Compared with the prior art, the present invention has the following substantial features and significant progress: This invention focuses on lightweight processing of the digital twin 3D mesh of a sluice gate. It maps the current gate position, upstream water level, and downstream water level to the lower edge of the gate, the intersection of the upstream water level, and the intersection of the downstream water level within a local area of ​​the gate opening. The geometry to be retained is determined by the three-line positioning relationship of the gate opening formed by these three elements. Then, mesh simplification processing is performed on the remaining mesh. In this way, while reducing the amount of 3D mesh data, the key geometric relationships between the gate, water level, and local area of ​​the gate opening remain available in the lightweight mesh. This facilitates the loading and display of the sluice gate's operating status at the rendering end and reduces the risk of misrepresentation of the local area of ​​the gate opening caused by conventional simplification processing. Attached Figure Description

[0007] Figure 1 This is a module mechanism diagram of a water conservancy digital twin multi-source heterogeneous data fusion and lightweight rendering method according to the present invention. Detailed Implementation

[0008] The following description is provided in conjunction with the accompanying drawings. It should be understood that the following embodiments are for illustrative purposes only and are not intended to limit the invention; those skilled in the art can make equivalent substitutions or combinations for the specific implementations.

[0009] This implementation method relates to the field of hydraulic digital twins, specifically for lightweighting a 3D mesh of a hydraulic digital twin containing a local area of ​​a sluice gate. The 3D mesh can be formed by combining a 3D model of the sluice gate, 3D data of adjacent river areas, and data related to the sluice gate's operational status. Alternatively, it can be directly input from a 3D mesh that has already undergone unified coordinate processing. Regardless of the original source of the 3D mesh, the processing object in this implementation method is always the 3D mesh containing the local area of ​​the sluice gate, thereby reducing the amount of mesh data while ensuring that the key geometric representations of the current gate position, upstream water level, and downstream water level in the local area of ​​the sluice gate are not lost during mesh simplification.

[0010] In this embodiment, multi-source heterogeneous data fusion is used to form a 3D digital twin mesh for water conservancy projects that participate in lightweight processing. The data involved in the fusion can include a 3D model of a sluice gate, 3D data of adjacent areas of the river channel, and data related to the sluice gate's operational status. The 3D model of the sluice gate provides the geometric basis for the gate, gate openings, and adjacent sluice gate structures; the 3D data of adjacent areas of the river channel provides the spatial environment of the upstream and downstream adjacent areas of the sluice gate; and the data related to the sluice gate's operational status provides the current gate position, upstream water level, and downstream water level. After the above data enters the same processing task, they collectively form a 3D digital twin mesh for water conservancy projects that includes local areas of the gate openings, expressed in a unified coordinate system.

[0011] When performing multi-source heterogeneous data fusion, the system converts vertices, edges, and mesh surfaces from the geometric sources into vertex arrays, edge connections, and mesh surface connections that can be read by the hydraulic digital twin 3D mesh. It also converts data related to the sluice gate's operational status into the current gate position, upstream water level, and downstream water level at the same processing time. For data from different sources that already have spatial reference information, the system completes coordinate registration based on the spatial reference information, engineering control points, or model positioning points. For data from different sources that are already expressed in the same coordinate system, the system directly uses that coordinate system. After completing coordinate registration and status correspondence, the mesh surfaces, edges, and vertices in the local area of ​​the sluice gate can participate in obtaining the subsequent three-line positioning relationship of the sluice gate and mesh simplification processing, together with the current gate position, upstream water level, and downstream water level.

[0012] In the 3D digital twin scene of a sluice gate, the local area of ​​the gate opening typically simultaneously represents the spatial relationships between the gate, the upstream water surface, the downstream water surface, and the gate opening boundary. Conventional mesh simplification often aims to reduce the number of mesh faces. However, directly performing edge folding, coplanar merging, and duplicate face deletion on mesh faces, edges, and vertices near the local area of ​​the gate opening may alter the geometric composition originally used to represent the current gate position, upstream water level, and downstream water level. To avoid the lightweight mesh reducing data volume but failing to continue representing the sluice gate's operational status, this implementation incorporates the lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level into the retained geometric determination basis before mesh simplification.

[0013] like Figure 1 As shown, the hydraulic digital twin 3D mesh 100 is used as the object to be processed. The current gate position 200, upstream water level 300, and downstream water level 400 are input into the gate three-line positioning relationship construction module 500. The gate three-line positioning relationship construction module 500 obtains the lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level, and forms the gate three-line positioning relationship. The geometry preservation module 600 determines the local mesh geometry based on the gate three-line positioning relationship and the hydraulic digital twin 3D mesh 100, and determines the local mesh geometry as the preserved geometry. The mesh simplification processing module 700 performs mesh simplification processing on the hydraulic digital twin 3D mesh 100 based on the preserved geometry, and outputs a lightweight mesh 800.

[0014] In this embodiment, the current gate position represents the spatial position of the gate at the current processing moment; the upstream water level represents the current water level height on the upstream side of the gate opening; the downstream water level represents the current water level height on the downstream side of the gate opening; the lower edge line of the gate represents the geometry of the lower edge line of the gate determined by the current gate position; the upstream water level intersection line represents the geometry of the intersection line located in a local area of ​​the gate opening and used to characterize the upstream water level; and the downstream water level intersection line represents the geometry of the intersection line located in a local area of ​​the gate opening and used to characterize the downstream water level.

[0015] Furthermore, the method for obtaining the lower edge line of the gate is as follows: Before obtaining the lower edge line of the gate, the 3D mesh of the hydraulic digital twin should at least have mesh faces, edges, and vertices corresponding to the local area of ​​the gate opening, and the current gate position should be determined in a coordinate expression consistent with the 3D mesh of the hydraulic digital twin. The current gate position can be given by the gate operation data, or it can be determined based on the gate movement direction and the gate opening degree. The gate movement direction is used to indicate the direction of movement of the gate from the closed position to the open position, and the gate opening degree is used to indicate the degree of opening formed by the gate along the gate movement direction.

[0016] When determining the current gate position based on the gate movement direction and gate opening, the reference position of the gate can be determined first in the hydraulic digital twin 3D grid or the gate geometry corresponding to the hydraulic digital twin 3D grid. Then, the gate geometry is placed along the gate movement direction according to the gate opening, so that the gate geometry corresponds to the current gate position at the current processing time.

[0017] The lower edge line of the gate can be obtained from the lower edge boundary of the gate at the current gate position. For gate geometry organized with triangular or polygonal facets, the edge connection relationships at the lower edge of the gate can be read from the gate geometry, and the vertex coordinates of these edges at the current gate position can be used to form line geometry in the order of connection. For data with pre-saved lower edge geometry indexes, the corresponding edges and vertices can be read directly based on the lower edge geometry indexes, and the lower edge line of the gate can be formed using the coordinates at the current gate position.

[0018] In this embodiment, the lower edge of the gate can be denoted as... .in, Indicates the gate opening degree The lower edge line of the gate is determined. Indicates the gate opening degree.

[0019] The purpose of the lower edge line of the gate is to extract the current gate position from the overall gate geometry into a line geometry that can participate in the composition of subsequent geometric relationships. If only the current gate position is retained without obtaining the lower edge line, the mesh simplification process can only know the approximate position of the gate, and cannot determine which geometric composition representing the lower edge of the gate should be retained in the local area of ​​the gate opening.

[0020] When obtaining the lower edge line of the gate, the lower edge line of the gate should be in a coordinate system consistent with the 3D mesh of the hydraulic digital twin. This consistent coordinate system can be achieved through completed spatial registration, engineering control point positioning, or model positioning point conversion; alternatively, a unified coordinate system can be used when inputting the 3D mesh of the hydraulic digital twin.

[0021] Furthermore, the methods for obtaining the upstream and downstream water level intersection lines are as follows: Both the upstream and downstream water level intersection lines are located within the local area of ​​the gate opening. The upstream water level intersection line characterizes the geometric position of the upstream water level within the local area of ​​the gate opening, and the downstream water level intersection line characterizes the geometric position of the downstream water level within the local area of ​​the gate opening. To obtain the upstream and downstream water level intersection lines, one can first obtain the effective opening surfaces of the current gate opening on the upstream and downstream sides that are not obstructed by the gate. Then, an upstream water surface plane is established based on the upstream water level, and a downstream water surface plane is established based on the downstream water level.

[0022] The effective opening surface on the upstream side represents the surface geometry of the gate opening on the upstream side, which is not obstructed by the gate and can be used to express the intersection of the upstream water level and the local area of ​​the gate opening. The effective opening surface on the downstream side represents the surface geometry of the gate opening on the downstream side, which is not obstructed by the gate and can be used to express the intersection of the downstream water level and the local area of ​​the gate opening. The effective opening surfaces on the upstream and downstream sides can be jointly determined by the gate opening boundary, the current gate position, and the gate opening area. Essentially, it defines the local surface geometry range within the local area of ​​the gate opening to obtain the intersection line of the upstream and downstream water levels.

[0023] When determining the effective opening surface on the upstream side, the system reads the gate boundary on the upstream side of the local area of ​​the gate opening and the current gate position. The portion of the gate boundary obscured by the current gate position is subtracted from the gate opening area, and the remaining surface geometry is taken as the effective opening surface on the upstream side. When determining the effective opening surface on the downstream side, the system reads the gate boundary on the downstream side of the local area of ​​the gate opening and the current gate position. The portion of the gate boundary obscured by the current gate position is subtracted from the gate opening area, and the remaining surface geometry is taken as the effective opening surface on the downstream side. If a mesh surface spans both obscured and unobscured portions, the mesh surface is split along the boundary position of the current gate position on that mesh surface, so that the split mesh surfaces belong to either the obscured or unobscured portion. The mesh surfaces belonging to the unobscured portion together form the corresponding effective opening surface on the upstream or downstream side.

[0024] When establishing the upstream water surface plane based on the upstream water level, the vertical coordinates used in the three-dimensional grid of the hydraulic digital twin can be used as a reference, and the upstream water level can be mapped to the height of the upstream water surface plane in that vertical coordinate system. Similarly, when establishing the downstream water surface plane based on the downstream water level, the same vertical coordinate system can be used as a reference, and the downstream water level can be mapped to the height of the downstream water surface plane in that vertical coordinate system. , , Representing three-dimensional coordinate components, and using In the representation of vertical coordinate components, the upstream water surface plane and the downstream water surface plane can be represented as follows: ; in, Indicates the upstream water level The determined upstream water level, Indicates the upstream water level. Represents the x-coordinate components. Represents the y-coordinate components. Represents the z-coordinate component; ; in, Indicates the downstream water level The determined downstream water level Indicates the downstream water level. Represents the x-coordinate components. Represents the y-coordinate components. This represents the z-coordinate component.

[0025] After obtaining the upstream and downstream water surface levels, the effective opening surface on the upstream side intersects with the upstream water surface level to obtain the upstream water level intersection line, and the effective opening surface on the downstream side intersects with the downstream water surface level to obtain the downstream water level intersection line. The upstream water level intersection line can be denoted as... The downstream water level intersection line can be denoted as In the expression using surface geometry for intersection, the upstream water level intersection line and the downstream water level intersection line can be represented as follows: ; in, Indicates the intersection of upstream water levels. Indicates the gate opening degree The determined effective opening surface on the upstream side, Indicates the upstream water level The determined upstream water level, Indicates the gate opening degree. Indicates the upstream water level; ; in, Indicates the intersection of downstream water levels. Indicates the gate opening degree The determined effective opening surface on the downstream side, Indicates the downstream water level The determined downstream water level Indicates the gate opening degree. This indicates the downstream water level.

[0026] The intersection of the upstream effective opening surface with the upstream water surface plane, and the intersection of the downstream effective opening surface with the downstream water surface plane, can be completed using a general three-dimensional geometric intersection method. For example, when the upstream or downstream effective opening surface consists of multiple mesh surfaces, the vertex coordinates of each mesh surface can be read one by one, and the intersection position of the mesh surface with the corresponding water surface plane can be determined. Then, the continuous intersection positions on adjacent mesh surfaces on the same side can be connected into line geometry according to the mesh surface connection relationship.

[0027] When generating the upstream water level intersection line, the system processes each grid surface that forms the effective opening surface on the upstream side and records the intersection point between the grid surface and the upstream water surface plane. Similarly, when generating the downstream water level intersection line, the system processes each grid surface that forms the effective opening surface on the downstream side and records the intersection point between the grid surface and the downstream water surface plane. Intersection points located on the same grid edge are recorded using the same coordinate system. Intersection points on adjacent grid surfaces are connected into continuous line segments according to the shared grid edges and vertex connection order. Continuous line segments on the same side form ordered polylines according to the connection relationship between adjacent grid surfaces and the order of the line segment endpoints. The ordered polylines on the upstream side constitute the upstream water level intersection line, and the ordered polylines on the downstream side constitute the downstream water level intersection line.

[0028] The purpose of obtaining the upstream and downstream water level intersection lines is to transform the upstream and downstream water levels from mere numerical values ​​into linear geometries within the local area of ​​the sluice gate that can be recognized and preserved by the hydraulic digital twin 3D mesh. The upstream and downstream water level intersection lines respectively reflect the geometric correspondence between the upstream and downstream water levels and the local area of ​​the sluice gate. If subsequent mesh simplification is performed solely based on the number of faces or visual distance, it will be difficult to guarantee that the upstream and downstream water level intersection lines will still be preserved as geometric components of the lightweight mesh. This implementation provides a direct geometric basis for determining the retained geometry by first obtaining the upstream and downstream water level intersection lines.

[0029] Furthermore, the composition of the three-line positioning relationship of the gate opening is as follows: After obtaining the intersection lines of the lower edge of the gate, the upstream water level, and the downstream water level, these three lines are used to form the three-line positioning relationship of the gate opening. This three-line positioning relationship is not a geometric relationship formed by the aforementioned three linear geometries within the same local area of ​​the gate opening and the same coordinate system. Instead, it is used in subsequent processing to indicate which local mesh geometries in the hydraulic digital twin 3D mesh are closely related to the current gate position, upstream water level, and downstream water level.

[0030] In set representation, the positioning relationship of the three lines of the gate hole can be denoted as... And can be expressed as: ; in, This indicates the three-line positioning relationship of the gate opening. Indicates the lower edge line of the gate. Indicates the intersection of upstream water levels. Indicates the intersection of downstream water levels. Indicates the gate opening degree.

[0031] The technical function of the three-line positioning relationship for gate openings lies in aggregating the geometric components corresponding to the current gate position, upstream water level, and downstream water level into a local geometric basis that can be used for grid simplification processing. The current gate position itself indicates where the gate is located, and the upstream and downstream water levels themselves indicate the water level height. However, grid simplification processing requires an object that can perform geometric determinations with the hydraulic digital twin 3D grid. The three-line positioning relationship for gate openings is precisely the intermediate object formed by mapping these three state quantities to line geometry.

[0032] In implementation, the three-line positioning relationship of the gate opening can be stored in an in-memory data structure as a set of line segments, polylines, or linear geometries. Each linear geometry can include a sequence of vertex coordinates, the connection relationship between adjacent vertices, and an identifier associated with the local region of the gate opening.

[0033] Furthermore, the method of determining the geometry is retained as follows: When determining the retained geometry based on the three-line positioning relationship of the gate, the local mesh geometry intersecting with the three-line positioning relationship is first determined in the 3D mesh of the hydraulic digital twin. The local mesh geometry can include the mesh faces, edges, and vertices that intersect with the three-line positioning relationship. Since the three-line positioning relationship of the gate consists of the lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level, the local mesh geometry intersecting with the three-line positioning relationship corresponds to the part of the 3D mesh of the hydraulic digital twin that expresses the geometric relationship between the current gate position, upstream water level, and downstream water level in the local region of the gate.

[0034] In one implementation, all grid faces currently to be simplified in the hydraulic digital twin 3D mesh can be taken as the set of sluice gate grid faces to be simplified, and it can be determined one by one whether the current grid face intersects with the three-line positioning relationship of the sluice gate. The set of grid faces intersecting with the three-line positioning relationship of the sluice gate can be represented as: ; in, This represents the set of mesh surfaces that intersect with the three-line positioning relationship of the gate opening. Indicates the current mesh face. This represents the set of sluice gate mesh surfaces to be simplified. This indicates the three-line positioning relationship of the gate opening. This represents the empty set. This expression comes from a set-based description of the process of determining the local mesh geometry. In practice, it can be implemented using conventional methods such as intersecting mesh faces one by one, accelerating intersection by spatial indexing, or reading the index of a saved mesh face.

[0035] The intersection of the gate's three-line positioning relationship with the current grid surface can fall on existing edges or vertices of the current grid surface, or it can fall inside the current grid surface. If the intersection falls inside the current grid surface, the system adds this intersection as a new vertex to the connection relationship of the current grid surface, and splits the current grid surface according to the line segment direction of the gate's lower edge line, the upstream water level intersection line, or the downstream water level intersection line within the current grid surface. The split grid surface retains the original outer boundary position of the current grid surface and includes edges and vertices that coincide with the gate's lower edge line, the upstream water level intersection line, or the downstream water level intersection line, so that the gate's three-line positioning relationship can become an actual geometric component in the lightweight mesh.

[0036] After determining the set of mesh surfaces intersecting with the three-line positioning relationship of the gate, the system processes the position of line segments along the lower edge of the gate, the upstream water level intersection line, and the downstream water level intersection line within the corresponding mesh surfaces. For line segments that pass through the interior of the mesh surface, the intersection point between the line segment and the mesh surface boundary is written into the vertex connection relationship of that mesh surface, and edges and vertices coinciding with the lower edge of the gate, the upstream water level intersection line, or the downstream water level intersection line are formed within the mesh surface along this line segment. This processing employs a mesh surface splitting method commonly used in 3D mesh processing, dividing the original mesh surface into sub-mesh surfaces that retain their original outer boundaries and contain the aforementioned coinciding edges and vertices. Subsequently, the edges and vertices coinciding with the lower edge of the gate, the upstream water level intersection line, or the downstream water level intersection line, as well as the necessary sub-mesh surfaces used to maintain the connection relationships of these edges and vertices, are determined as the preserved geometry.

[0037] The basis for preserving the geometry is the intersection relationship between the three-line positioning relationship of the gate and the hydraulic digital twin 3D mesh. This approach avoids transforming the scope of the preserved geometry into a scope dependent on subjective evaluation or rendering performance indicators, allowing the preserved geometry to directly serve the preservation of the geometric composition of the three-line positioning relationship of the gate in the lightweight mesh.

[0038] The retained geometry determination module 600 can receive the gate three-line positioning relationship output by the gate three-line positioning relationship construction module 500, and read the local mesh geometry data in the hydraulic digital twin three-dimensional mesh 100. The retained geometry determination module 600 obtains the local mesh geometry that intersects with the gate three-line positioning relationship through geometric intersection, and then determines the local mesh geometry as the retained geometry.

[0039] Preserving geometry is used to transform the three-line positioning relationship of the gate into geometric components that can be identified and maintained through mesh simplification. The three-line positioning relationship of the gate is line geometry, and the three-dimensional mesh of the hydraulic digital twin consists of mesh faces, edges, and vertices. The correspondence between these components needs to be established through intersection determination. Preserving geometry is precisely the result of this correspondence; after mesh simplification, as long as the lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level in the preserved geometry still exist as geometric components of the lightweight mesh, the lightweight mesh can continue to support the display of the current gate position, upstream water level, and downstream water level.

[0040] Furthermore, the execution method of grid simplification processing is as follows: When performing mesh simplification on the 3D mesh of the hydraulic digital twin based on the retained geometry, the 3D mesh is divided into the retained geometry and the remaining meshes. The mesh simplification process uses different methods for the two parts: for the retained geometry, mesh simplification that would change the three-line positioning relationship of the gate is not performed; for the remaining meshes, mesh simplification is performed to reduce the data volume of the lightweight mesh.

[0041] The goal is to preserve the gate's three-line positioning relationship as a geometric component of the lightweight mesh after mesh simplification. Specifically, this includes ensuring that the gate's lower edge line, upstream water level intersection line, and downstream water level intersection line located in the preserved geometry are not deleted, merged, or moved during mesh simplification. "Not deleting" means not removing edges or vertices that constitute the gate's lower edge line, upstream water level intersection line, and downstream water level intersection line from the lightweight mesh; "not merging" means not merging these edges or vertices into other edges or vertices that would cause the gate's lower edge line, upstream water level intersection line, and downstream water level intersection line to lose their respective geometric positions; and "not moving" means not moving these edges or vertices to positions that alter the gate's three-line positioning relationship.

[0042] For the remaining meshes outside the retained geometry, edge folding, coplanar merging, and duplicate face deletion can be performed. Edge folding is used to shrink edges in the remaining meshes that do not directly intersect with the gate's three-line positioning relationship according to the regular mesh simplification rules, in order to reduce the number of edges and vertices; coplanar merging is used to merge adjacent mesh faces in the same geometric plane in the remaining meshes, in order to reduce the number of mesh faces; duplicate face deletion is used to delete overlapping or duplicate recorded mesh faces in the remaining meshes, in order to reduce redundant data. Candidate edges, candidate vertices, and candidate mesh faces all come from the remaining meshes outside the retained geometry, and do not include edges, vertices, and necessary sub-mesh faces formed by splitting mesh faces to maintain the gate's three-line positioning relationship.

[0043] The mesh simplification module 700 can read the retained geometry output by the retained geometry determination module 600 and the remaining meshes in the hydraulic digital twin 3D mesh 100. Before performing edge folding, coplanar merging, and duplicate face deletion, the mesh simplification module 700 sets a locking flag for the retained geometry, ensuring that candidate edges, candidate vertices, and candidate mesh faces participating in the mesh simplification process do not include objects that would change the three-line positioning relationship of the gate openings in the retained geometry. Thus, the execution order of the mesh simplification process remains the same as the regular mesh simplification process, but the candidate range is limited by the retained geometry.

[0044] During data output, the lightweight mesh includes the remaining meshes after mesh simplification, and also retains the gate's three-line positioning relationship as a geometric component. The lightweight mesh can continue to be used for subsequent loading and rendering. Since the lower edge line of the gate, the upstream water level intersection line, and the downstream water level intersection line still exist as geometric components in the lightweight mesh, the rendering end can continue to express the spatial relationship between the current gate position, the upstream and downstream water levels, and the local area of ​​the gate based on these geometric components after loading the lightweight mesh.

[0045] The mesh simplification process in this embodiment is not required to be limited to a specific command in a particular 3D software or file format. Mesh simplification is acceptable as long as it satisfies the following processing relationship: mesh simplification that would alter the gate hole tri-line positioning relationship is not performed on the retained geometry, and mesh simplification is performed on the remaining meshes other than the retained geometry.

[0046] Furthermore, the spatial partitioning, grid versioning, and next-moment reconstruction methods are as follows: Before performing mesh simplification on the 3D mesh of the hydraulic digital twin, the 3D mesh can be divided into blocks based on spatial location. Spatial block division is used to divide the 3D mesh of the hydraulic digital twin into multiple spatial blocks, allowing mesh simplification to be performed separately in spatial blocks related to the local area of ​​the gate and other spatial blocks. The basis for spatial block division can be the spatial location of the mesh surface in a unified coordinate system, the spatial bounding range, or the loading requirements of the rendering end. Spatial block division provides a spatial organization method for mesh simplification.

[0047] For the same spatial block, multiple mesh versions, ranging from fine to coarse, can be generated. When generating each mesh version, the retained geometry is first determined based on the lower edge line of the gate, the intersection of the upstream water level, and the intersection of the downstream water level at the same processing time, and the three-line positioning relationship of the gate opening is preserved as a geometric component in that mesh version. Then, the remaining meshes, excluding the retained geometry, are simplified to different degrees to form mesh versions ranging from fine to coarse. These multiple mesh versions, from fine to coarse, can be used by the rendering end to select the appropriate mesh version based on the current screen projection scale.

[0048] In the next moment, the intersection lines of the lower gate edge, upstream water level, and downstream water level can be re-acquired, and the three-line positioning relationship of the gate opening can be reconstructed from these re-acquired lines. The reconstruction process in the next moment is consistent with the acquisition and composition process of the current processing moment, still based on the geometric composition of the current gate position, upstream water level, and downstream water level in the next moment. After reconstructing the three-line positioning relationship of the gate opening, the sets of grid surfaces intersecting the three-line positioning relationship of the gate opening before and after reconstruction are determined, and the sets of grid surfaces before and after reconstruction are compared.

[0049] When comparing the mesh facet sets before and after reconstruction, the hydraulic digital twin 3D mesh before mesh simplification is used as a unified benchmark. The three-line positioning relationships of the gates before and after reconstruction are determined within this unified benchmark, and the comparison includes the index, number, or spatial block affiliation of the mesh faces within the mesh facet sets. Lightweight meshes formed by edge folding, coplanar merging, and duplicate facet deletion do not change this comparison benchmark; therefore, comparisons between consecutive time points are not affected by the renumbering of mesh faces in the output lightweight mesh. When the set of mesh faces intersecting with the three-line positioning relationships of the gates in a spatial block changes, the retained geometry corresponding to that spatial block changes accordingly, and mesh simplification is only re-executed for that spatial block. This process allows the lightweight mesh at consecutive time points to be updated with changes in the current gate position, upstream water level, and downstream water level, while avoiding repeated mesh simplification for spatial blocks where the mesh facet set has not changed.

[0050] The next step, reconstructing the three-line positioning relationship of the gate openings and comparing the mesh surface set, still revolves around the three-line positioning relationship of the gate openings, preserving geometry, and mesh simplification. This process is used to ensure that the lightweight mesh maintains a consistent geometric composition in a continuously running 3D hydraulic digital twin scene, as the current gate position, upstream water level, and downstream water level are updated.

[0051] As an optional implementation, when the gate opening is small, the current gate position is closer to the bottom of the gate orifice, and the lower edge of the gate is located at a lower position in the local area of ​​the gate orifice. The system still determines the current gate position according to the gate movement direction and gate opening, and obtains the lower edge of the gate from the current gate position. The upstream water level intersection line and the downstream water level intersection line are obtained from the upstream water level, the downstream water level, the effective opening surface on the upstream side, and the effective opening surface on the downstream side, respectively. Since the lower edge of the gate, the upstream water level intersection line, and the downstream water level intersection line are all located in the local area of ​​the gate orifice, the reserved geometry determination module 600 can determine the corresponding local mesh geometry according to the three-line positioning relationship of the gate orifice, and determine the local mesh geometry as the reserved geometry.

[0052] As an optional implementation, when the gate opening is large, the current gate position moves upward relative to the bottom of the gate opening, and the position of the lower edge line of the gate changes with the current gate position. The system re-obtains the lower edge line of the gate based on the current gate position, and obtains the intersection lines of the upstream and downstream water levels respectively based on the upstream and downstream water levels. The three-line positioning relationship of the gate opening is updated as the position of the lower edge line of the gate changes, and the retained geometry is also re-determined based on the updated three-line positioning relationship of the gate opening. The mesh simplification process does not delete, merge, or move the lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level located in the retained geometry, and performs mesh simplification processing on the remaining meshes outside the retained geometry.

[0053] As an optional implementation, when there is a difference between the upstream and downstream water levels, the intersection lines of the upstream and downstream water levels are located at positions corresponding to the upstream and downstream water levels, respectively. The system establishes an upstream water surface plane based on the upstream water level and a downstream water surface plane based on the downstream water level, and obtains the intersection lines of the upstream and downstream water levels respectively. Since the intersection lines of the upstream and downstream water levels respectively enter the three-line positioning relationship of the gate, the retained geometry is the local mesh geometry that simultaneously covers the intersection of the lower edge of the gate, the intersection lines of the upstream and downstream water levels, and the three-dimensional mesh of the hydraulic digital twin.

[0054] As an optional implementation, during continuous operation, the current gate position, upstream water level, and downstream water level change over time. At the next moment, the system re-acquires the intersection line of the gate's lower edge, upstream water level, and downstream water level, and reconstructs the three-line positioning relationship of the gate opening from these re-acquired lines. The system determines the set of mesh surfaces intersecting the three-line positioning relationship of the gate opening before and after reconstruction, compares the mesh surface sets before and after reconstruction, and only re-performs mesh simplification processing on spatial blocks where the mesh surface sets have changed.

[0055] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A method for multi-source heterogeneous data fusion and lightweight rendering of hydraulic digital twins, used for lightweight processing of 3D meshes of hydraulic digital twins containing local areas of sluice gates, characterized in that, include: Obtain the lower edge line of the gate to characterize the current gate position, and obtain the upstream water level intersection line and the downstream water level intersection line located in the local area of ​​the gate opening to characterize the upstream water level and the downstream water level, respectively. The lower edge line of the gate, the intersection line of the upstream water level, and the intersection line of the downstream water level form a three-line positioning relationship for the gate opening; Based on the three-line positioning relationship of the gate hole, determine the local mesh geometry that intersects with the three-line positioning relationship of the gate hole, and determine the local mesh geometry as the retained geometry; Based on the preserved geometry, the water conservancy digital twin three-dimensional mesh is simplified, so that the three-line positioning relationship of the gate is preserved as a geometric component of the lightweight mesh after the mesh simplification. The remaining meshes other than the preserved geometry are also simplified to obtain the lightweight mesh.

2. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, Obtaining the lower edge line of the gate includes: The current gate position is determined based on the gate's movement direction and gate opening, and the lower edge of the gate is obtained from the current gate position.

3. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, Obtaining the upstream water level intersection line and the downstream water level intersection line includes: Obtain the effective opening surfaces of the upstream and downstream sides of the gate that are not obstructed by the gate. Establish an upstream water surface plane based on the upstream water level and a downstream water surface plane based on the downstream water level. Make the effective opening surface of the upstream side intersect with the upstream water surface plane to obtain the upstream water level intersection line, and make the effective opening surface of the downstream side intersect with the downstream water surface plane to obtain the downstream water level intersection line.

4. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, Determining the preserved geometry includes: Determine the set of mesh surfaces that intersect with the three-line positioning relationship of the gate opening, and mark the edges and vertices of the mesh surface set that intersect with the lower edge line of the gate, the upstream water level intersection line, or the downstream water level intersection line as the reserved geometry.

5. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, The following are included in the process of preserving the three-line positioning relationship of the gate hole as a geometric component of the lightweight mesh after the mesh simplification process: The grid simplification process does not delete, merge, or move the lower edge of the gate, the upstream water level intersection line, and the downstream water level intersection line located in the preserved geometry.

6. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, Performing the mesh simplification process on the remaining meshes other than the preserved geometry includes: For the remaining meshes other than the reserved geometry, perform edge folding, coplanar merging, and duplicate face removal.

7. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 1, characterized in that, Before performing the mesh simplification process on the water conservancy digital twin three-dimensional mesh, the water conservancy digital twin three-dimensional mesh is divided into blocks according to spatial location.

8. The method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 7, characterized in that, Multiple mesh versions, ranging from fine to coarse, are generated for the same spatial block, and the mesh simplification process is performed on each mesh version so that the three-line positioning relationship of the gate hole is preserved as a geometric component in each mesh version.

9. A method for multi-source heterogeneous data fusion and lightweight rendering of water conservancy digital twins according to claim 8, characterized in that, In the next moment, the lower edge line of the gate, the intersection line of the upstream water level and the intersection line of the downstream water level are obtained again, and the three-line positioning relationship of the gate opening is reconstructed from the obtained lower edge line of the gate, the intersection line of the upstream water level and the intersection line of the downstream water level; Determine the sets of mesh surfaces that intersect with the three-line positioning relationship of the gate hole before and after reconstruction, compare the sets of mesh surfaces before and after reconstruction, and re-perform the mesh simplification process only on the spatial blocks where the set of mesh surfaces has changed.