Three-dimensional construction method, device and equipment of cold source pipe network, medium and product
By generating standardized components with low polygon count and combining them with the Blinn-Phong lighting model, the problems of excessive polygon count and inaccurate visual effects in existing 3D pipe models are solved, achieving efficient rendering and high-fidelity 3D visualization of cold source pipe networks.
Patent Information
- Application Number
- CN202511579516.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-02-24
AI Technical Summary
Existing 3D visualization technologies for cold source pipelines often use polygonal prisms or complex curves to generate 3D pipeline models, resulting in an excessive number of facets and high rendering pressure. On the other hand, reducing the number of facets can lead to inaccurate representation of the pipeline appearance, affecting the visual effect, and the modeling efficiency of pipeline joints is low and the simulation level is insufficient.
Using standardized components with low polygon count, a 3D pipe model with arbitrary spatial orientation and pipe diameter is generated through predefined pipe diameter parameters and coordinate transformation algorithms. Combined with the Blinn-Phong lighting model, layered rendering processing of ambient light, diffuse reflection and specular reflection is performed to generate a highly realistic metallic light and shadow effect.
Significantly reduces the face size of 3D pipeline models, maintains the geometric integrity of pipeline appearance and the accuracy of spatial layout, improves rendering efficiency and visual accuracy, meets the immersive observation needs of data center operation and maintenance scenarios, and enhances the 3D visualization and dynamic monitoring capabilities of cold source pipeline networks.
Smart Images

Figure CN121564192A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of simulation technology, and in particular to a method, apparatus, equipment, medium and product for three-dimensional construction of cold source pipe networks. Background Technology
[0002] In data centers, chilled water piping is a critical infrastructure used to transfer refrigerant (water or other cooling liquids), and its main function is to achieve heat exchange through the circulation of cooling water and chilled water. 3D visualization technology for chilled water piping can solve the problem that traditional 2D drawings or static models cannot fully represent the complex spatial layout, dynamic operating status, and multi-system coupling relationships of piping. Its importance lies in its ability to intuitively display the spatial orientation of the chilled water piping network, the distribution of valves and equipment, flow and pressure changes, and potential fault points through digital modeling and dynamic simulation. This optimizes the rationality of the piping design, enhances the overall understanding of the system by maintenance personnel, assists in quickly locating faults, simulating emergency plans, and optimizing energy efficiency management. Simultaneously, it provides accurate data support for future expansion and upgrades, ultimately reducing maintenance costs, shortening fault response time, and ensuring the efficient and stable operation of the data center cooling system.
[0003] Existing 3D visualization technologies for cold source pipelines mainly include BIM (Building Information Modeling)-based refined modeling, 3D GIS (Geographic Information System) spatial analysis, real-time data-driven digital twins, and dynamic rendering using lightweight WebGL engines.
[0004] However, existing 3D visualization technologies for cold source pipelines often use polygonal prisms or complex curves to generate 3D pipeline models, resulting in an excessive number of facets and high rendering pressure. On the other hand, reducing the number of facets can lead to inaccurate representation of the cylindrical appearance of the pipeline, affecting the visual effect. Pipeline joint modeling is either too simple or requires a large number of customized molds to match the diameter change requirements of different pipe sections, resulting in low modeling efficiency and insufficient simulation, which is not conducive to the 3D visualization and dynamic monitoring of cold source pipeline networks in data centers. Summary of the Invention
[0005] The purpose of this invention is to provide a three-dimensional construction method for cold source pipe networks, which can optimize the rendering of low-polygon pipe models, improve the accuracy of pipe appearance representation, and thus enhance the three-dimensional visualization and dynamic monitoring capabilities of cold source pipe networks.
[0006] To achieve the above objectives, embodiments of the present invention provide a three-dimensional construction method for a cold source pipeline network, comprising: Based on predefined pipe diameter parameters and coordinate transformation algorithms, the constructed low-face-count standardized components are transformed to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter. Calculate the normals of all vertices of the 3D pipe model; Based on the vertex normals and the preset Blinn-Phong lighting model, the 3D pipeline model is subjected to layered rendering processing of ambient light, diffuse reflection, and specular reflection to obtain the rendered 3D pipeline model.
[0007] As an improvement to the above scheme, the step of transforming the constructed low-face-count standardized components according to predefined pipe diameter parameters and coordinate transformation algorithms to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter includes: Standardized straight pipe components are constructed using octagonal prisms, and standardized joint sleeve components are constructed using a combination of icosahedral hemispheres and octagonal prisms to obtain the basic components; A coordinate transformation algorithm is established to perform an affine transformation on the basic components according to the actual pipeline space coordinates, generating the assembly parameters of the general components. Based on a predefined standardized pipe diameter parameter library and the combined parameters of the general components, a scaling factor is used to dynamically adapt to pipes of different diameters, generating a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter.
[0008] As an improvement to the above scheme, the calculation of all vertex normals of the three-dimensional pipeline model includes: The normal to each facet of the three-dimensional pipe model is calculated using the vector cross product. The vertex normal of each vertex of the 3D pipeline model is calculated using linear interpolation of the normals of the neighboring facets.
[0009] As an improvement to the above scheme, the step of performing layered rendering processing on the 3D pipeline model based on the vertex normals and a preset Blinn-Phong lighting model, including ambient light, diffuse reflection, and specular reflection, to obtain a rendered 3D pipeline model, includes: The vertex normals are normalized. Based on the normalized vertex normals and the preset Blinn-Phong lighting model, ambient light, diffuse light, and specular light are calculated respectively. The total illumination is obtained by superimposing the ambient light, the diffuse light, and the specular light. Based on the total illumination, the RGB color space is converted to the sRGB color space to complete the shading of the vertices of the 3D pipeline model, and color gradient interpolation is performed on the pixels within the triangular facets to obtain the rendered 3D pipeline model.
[0010] As an improvement to the above solution, the method further includes: The near-field water flow effect of the three-dimensional pipe model is generated by driving the texture flow animation based on the UV coordinate offset algorithm and combining it with the noise texture sampling method. A cyclically movable 3D arrow object is generated based on the end positions of the pipe segments in the 3D pipe model; wherein, the 3D arrow object is used to represent the water flow direction and water flow velocity of the 3D pipe model; A viewing distance-based hierarchical display strategy is adopted, with different display effects applied to the texture flow animation and the 3D arrow object; Based on the preset mapping rules between the functional type, operating status and standard color code of the three-dimensional pipeline model, different three-dimensional pipeline models are visually distinguished.
[0011] As an improvement to the above scheme, the step of generating the near-field water flow effect of the 3D pipe model by driving texture flow animation according to the UV coordinate offset algorithm and combining it with the noise texture sampling method includes: Set the UV coordinate mapping relationship for each texture of the 3D pipeline model; Define water flow direction marker parameters, calculate the cumulative time value for each frame, calculate the offset of the original UV coordinates of the texture over time based on the cumulative time value and the water flow direction marker parameters, and adjust the original UV coordinates of the texture based on the offset to form a texture flow animation. Load a multi-layer noise texture, and calculate and render the color of the multi-layer noise texture; wherein the multi-layer noise texture includes a large-scale flow layer, a medium-scale turbulence layer, and a small-scale droplet layer; The near-field water flow effect of the three-dimensional pipe model is obtained based on the texture flow animation and the multi-layer noise texture.
[0012] As an improvement to the above solution, the adoption of a viewing distance-based hierarchical display strategy, which uses different display effects for the texture animation and the 3D arrow object, includes: Based on the preset viewing distance threshold, different levels of viewing distance modes are obtained; Different display effects are applied to the texture flow animation and the 3D arrow object under different viewing distance modes; wherein, the display effects include whether to display the texture flow animation and the 3D arrow object, as well as the texture flow effect when displaying the texture flow animation and the arrow scaling effect when displaying the 3D arrow object.
[0013] As an improvement to the above solution, the method further includes: Based on graph theory, a node-edge relationship model of the three-dimensional pipeline model is constructed, and the three-dimensional pipeline model is abstracted into a node-edge undirected graph data structure. The start and stop status data of the equipment are associated with the node-edge undirected graph data structure to establish the binding relationship between the pipe segment inlet and outlet directions of the three-dimensional pipeline model and the equipment operation logic. A dynamic directed graph transformation algorithm is used to deduce the direction of water flow across the entire network by traversing the start-stop status data of the devices.
[0014] This invention also provides a three-dimensional construction device for a cold source pipeline network, comprising: The 3D model generation module is used to transform the constructed low-face-count standardized components according to predefined pipe diameter parameters and coordinate transformation algorithms to generate 3D pipe models with arbitrary spatial orientation and arbitrary pipe diameter. The vertex normal calculation module is used to calculate the normals of all vertices of the three-dimensional pipe model. The 3D model rendering model is used to perform layered rendering processing of ambient light, diffuse reflection, and specular reflection on the 3D pipeline model based on the vertex normals and the preset Blinn-Phong lighting model, so as to obtain the rendered 3D pipeline model.
[0015] This invention also provides a three-dimensional construction device for a cold source pipeline network, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the three-dimensional construction method for the cold source pipeline network as described in any of the above embodiments.
[0016] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the three-dimensional construction method of the cold source pipeline network as described in any of the above embodiments.
[0017] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the three-dimensional construction method of the cold source pipeline network as described in any of the above embodiments.
[0018] Compared with existing technologies, the 3D construction method, apparatus, equipment, medium, and product for cold source pipe networks disclosed in this invention significantly reduces the face count of the 3D pipe model while maintaining the geometric integrity and spatial layout accuracy of the pipe appearance. This is achieved by constructing standardized components with low face count and transforming these components according to predefined pipe diameter parameters and coordinate transformation algorithms. This results in 3D pipe models with arbitrary spatial orientation and diameter, significantly improving rendering efficiency and real-time interactive performance for large-scale pipe network scenes. Through vertex normal calculation and Blinn-Phong multi-channel layered rendering technology, highly realistic cylindrical metallic lighting effects are achieved on the low-face count 3D pipe model, effectively balancing rendering performance and visual accuracy. This meets the immersive observation needs of data center operation and maintenance scenarios and improves the 3D visualization and dynamic monitoring capabilities of cold source pipe networks. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating a three-dimensional construction method for a cold source pipeline network provided in an embodiment of the present invention; Figure 2 This is a structural schematic diagram of the straight pipe component in an embodiment of the present invention; Figure 3 This is a structural schematic diagram of the connector sleeve component in an embodiment of the present invention; Figure 4 This is a structural schematic diagram of a general-purpose component in an embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of the three-dimensional pipeline model in an embodiment of the present invention; Figure 6 This is a schematic diagram of the rendering effect of the straight pipe component in an embodiment of the present invention; Figure 7 This is a rendering diagram of the connector sleeve component in an embodiment of the present invention; Figure 8 This is a schematic diagram of the rendering effect of the three-dimensional pipeline model in an embodiment of the present invention; Figure 9 This is a flowchart illustrating a preferred three-dimensional construction method for a cold source pipeline network provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of the near-field water flow effect in an embodiment of the present invention; Figure 11 This is a schematic diagram illustrating the effect of visual partitioning in an embodiment of the present invention; Figure 12 This is a flowchart of pipeline topology analysis in an embodiment of the present invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] In the description of this application, it should be understood that the terms "center", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0022] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0023] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0024] See Figure 1 This is a flowchart illustrating a three-dimensional construction method for a cold source pipeline network provided in an embodiment of the present invention. The embodiment of the present invention provides a three-dimensional construction method for a cold source pipeline network, the method comprising steps S11 to S13: S11. Based on the predefined pipe diameter parameters and coordinate transformation algorithm, the constructed low-face-count standardized components are transformed to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter. S12. Calculate the normals of all vertices of the three-dimensional pipe model; S13. Based on the vertex normals and the preset Blinn-Phong lighting model, perform layered rendering processing on the three-dimensional pipeline model for ambient light, diffuse reflection, and specular reflection to obtain the rendered three-dimensional pipeline model.
[0025] In this embodiment of the invention, the three-dimensional pipeline construction system based on simulated components first constructs standardized components with low face count. The standardized components include straight pipe components and joint sleeve components. Through the predefined pipe diameter parameter library and coordinate affine transformation algorithm, pipelines with arbitrary spatial orientation and arbitrary pipe diameter are dynamically generated. The joint explicit and implicit logic is automatically controlled according to the intersection of adjacent pipe segments to obtain a three-dimensional pipeline model.
[0026] The goal of this step is to create straight pipe geometry and connector geometry using simplified basic components. This results in fewer facets in the model, reducing rendering pressure and ensuring system rendering efficiency while maintaining accurate visual representation of the pipe's shape.
[0027] Furthermore, for low-face-count 3D pipeline models, vertex normals are calculated using algorithms such as neighboring face normal interpolation weighting. Combined with the Blinn-Phong multi-channel lighting model, ambient light, diffuse reflection, and semi-vector specular highlights are rendered in layers for low-face-count 3D pipeline models. The normalized normal vector properties are used to smooth the cylinder-like prism model.
[0028] This step involves smoothing the normals of each vertex of the general-purpose straight pipe and connector sleeve components before rendering. This significantly improves the lighting effect and eliminates sharp edges while retaining the advantage of a low polygon count, resulting in a smooth, cylindrical lighting effect. This ensures the accuracy of the cylindrical appearance of the cold source pipe network and helps guarantee the visual effect.
[0029] By employing the technical means of this invention, standardized components with low facet counts are constructed, and these components are transformed according to predefined pipe diameter parameters and coordinate transformation algorithms to generate 3D pipe models with arbitrary spatial orientations and pipe diameters. This significantly reduces the facet count of the 3D pipe model while maintaining the geometric integrity and spatial layout accuracy of the pipe appearance, thus significantly improving the rendering efficiency and real-time interactive performance of large-scale pipe network scenes. Through vertex normal calculation and Blinn-Phong multi-channel layered rendering technology, highly realistic cylindrical metallic lighting effects are achieved on the low-facet 3D pipe model, effectively balancing rendering performance and visual accuracy. This meets the immersive observation needs of data center operation and maintenance scenarios and improves the 3D visualization and dynamic monitoring capabilities of cold source pipe networks.
[0030] As a preferred embodiment, the present invention further implements the above embodiments. Step S11, namely, transforming the constructed low-face-count standardized component according to predefined pipe diameter parameters and coordinate transformation algorithm to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter, includes steps S111 to S113: S111. Standardized straight pipe components are constructed using octagonal prisms, and standardized joint sleeve components are constructed using a combination of icosahedral hemispheres and octagonal prisms to obtain the basic components. S112. Establish a coordinate transformation algorithm to perform affine transformation on the basic components according to the actual pipeline space coordinates, and generate the assembly parameters of the general components. S113. Based on the predefined standardized pipe diameter parameter library and the combined parameters of the general components, a scaling factor is used to dynamically adapt to pipes of different diameters, generating a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter.
[0031] In this embodiment of the invention, the low-face-count standardized component includes a straight tube component constructed from an octagonal prism and a connector sleeve component made from an icosahedral hemisphere.
[0032] See Figure 2 This is a structural schematic diagram of a straight tube component in an embodiment of the present invention. This embodiment uses an octagonal prism geometry to construct the straight tube component in a general-purpose component, resulting in a smaller number of faces while maintaining an appearance close to a cylinder after subsequent rendering. Specifically, the octagonal prism component has 8 lateral faces + 2 end faces = 10 polygonal faces, and each octagonal prism straight tube has 8 (top ring) + 8 (bottom ring) = 16 vertices. The coordinates of the bottom octagonal vertex are:
[0033]
[0034] Where r is the pipe diameter radius and z-axis is the pipe extension direction.
[0035] When generating straight pipe segments, the axis from the starting point P1 (x1,y1,z1) to the ending point P2 (x2,y2,z2) is taken as the central axis of the two octagonal bases of the octagonal prism, and P1 is taken as the origin (0,0,0) of the octagonal prism.
[0036] Table 1 compares the geometric complexity of traditional cylinders and the octagonal prisms used in the embodiments of this invention, as shown in the following: Table 1
[0037] See Figure 3 This is a structural schematic diagram of the connector sleeve component in an embodiment of the present invention. The embodiment of the present invention combines an icosahedral hemisphere and an octagonal prism to construct a standard connector sleeve geometry. In the geometric construction of the general-purpose pipe component, the joint sleeve part is constructed using an icosahedral hemisphere and an octagonal prism. This design reduces the rendering burden caused by traditional complex joint molds. Specifically, the standard icosahedron is cut into a hemisphere, retaining 10 triangular faces, resulting in 12 vertices for the hemisphere. The icosahedron is generated using the vertex coordinate formula: vertex coordinates = (±1,0,0), (0,±1,0), (0,0,±1) combined with the golden ratio.
[0038] See Figure 4 This is a structural schematic diagram of a general component in an embodiment of the present invention. In this embodiment of the present invention, a coordinate transformation algorithm is established to perform affine transformation on the basic components according to the actual pipeline space coordinates to generate parameters of the general component assembly.
[0039] To facilitate the simulation of arbitrary pipe segments using a universal component, the universal component consists of three sub-components: one straight pipe and two connector sleeves. The universal component is geometrically constructed according to Unity's left-handed coordinate system. The positive z-axis of the universal component is used as the positive direction of pipe length growth; that is, the default direction vector of the universal component is V0(0,0,1). The default pipe diameter is set to Diameter = 0.1 meters, and the length to Length = 1 meter. When drawing a pipe segment with a starting coordinate of P1(x1,y1,z1) and an ending coordinate of P2(x2,y2,z2), an instance based on the universal component needs to be generated. Then, the Transform property of the root object and the three sub-component objects needs to be set. The setting process is as follows: Set the root object coordinates P = P1(x1,y1,z1), and calculate the Euler angles e of the root object. ,in This represents the rotation angle around the X-axis. Indicates the rotation angle around the Y-axis. This represents the rotation angle about the Z-axis. The specific calculation process for Euler angles includes: Pipe segment general component instance direction vector V P =P2-P1, normalized unit vector Indicates the direction of the pipe. , , These are its components in the XYZ directions, respectively. The calculation formula is:
[0040] in This represents the length of the vector, which is also the length of the pipe. The calculation method is as follows:
[0041] Calculate the axis of rotation , , , These are its components in the XYZ directions, respectively. for The calculation method for A is as follows:
[0042] Calculate the rotation angle Constructing quaternions :
[0043] Quaternion to Euler angle e Conversion:
[0044]
[0045]
[0046] Among them, the one with two parameters The arctangent function is used to calculate the angle of a point in a two-dimensional coordinate system. Angles ranging from π to π, and distinguishing quadrants.
[0047] Set the local coordinates of the straight pipe component relative to the root object to (0, 0, 0), set the local Euler angle of the straight pipe component relative to the root object to (0, 0, 0), and set the local scaling value of the straight pipe component relative to the root object to (diameter, pipe length). ).
[0048] Set the local coordinates of the starting connector sleeve component relative to the root object to (0, 0, 0), set the local Euler angle of the starting connector sleeve component relative to the root object to (0, 0, 0), and set the local scaling value of the starting connector sleeve component relative to the root object to (diameter, diameter, diameter).
[0049] Set the local coordinates of the endpoint connector sleeve component relative to the root object to (0, 0, pipe length). Set the local Euler angle (0, 180, 0) of the endpoint connector sleeve component relative to the root object, and set the local scaling value of the endpoint connector sleeve component relative to the root object to (diameter, diameter, diameter).
[0050] See Figure 5 This is a schematic diagram of the structure of the three-dimensional pipeline model in an embodiment of the present invention. Figure 5 (a) is a view of a right-angle elbow where two pipes are connected. Figure 5 (b) is a view of a T-junction with three pipes connected together. Figure 5 (c) is a cross-shaped pipe view with 4 pipes connected together. In this embodiment of the invention, a multi-port pipe of arbitrary diameter is generated by dynamically adapting to pipes of different diameters through a predefined standardized pipe diameter parameter library and scaling factor.
[0051] Pipe diameter specification management: Standardized management is implemented based on commonly used pipe diameters for data center chilled water supply. By defining standard pipe diameter enumerations, the dimensions of the pipe models are ensured to conform to the specifications of real-world pipe networks during rendering, rather than being arbitrary. Users can freely select different pipe diameters for drawing using the editor, and the system automatically adjusts the geometric dimensions of the pipe models accordingly. Defined pipe diameters are 100mm, 150mm, 200mm, 250mm, 300mm, 350mm, 400mm, 450mm, 500mm, 550mm, 600mm, 650mm, 700mm, 750mm, and 800mm, covering a range from 100mm to 800mm, with 50mm intervals, conforming to GB / T 8163-2018 standard.
[0052] Wherein, the scaling factor is the ratio coefficient between the standard component pipe diameter and the target pipe diameter, and is the linear scaling ratio of each coordinate axis: D is the target pipe diameter. This is the default pipe diameter for standard components. Three-dimensional scaling can be applied to straight pipes and fittings using a scaling factor.
[0053] In a specific application example, a predefined pipe diameter library is provided: The unit is meters. When the user selects D=0.2m, the processing procedure is as follows: Calculate the scaling factor S=0.2 / 0.1=2; magnify the straight pipe's X / Y axes by a factor of 2; maintain the actual length on the Z axis. The joint sleeve is magnified by a factor of 2 in each direction; and the obscured joint sleeve portion is automatically hidden when generating the pipe segment. Through parametric scaling and coordinate transformation, precise adaptation of standard components to pipes of any diameter is achieved while maintaining the integrity of the model structure.
[0054] Treatment of multi-segment connection: By providing multiple pipe points and the diameters of each pipe segment, various interconnected pipes can be generated based on the previous steps. When pipe segments connect, the system determines whether there are intersections between the starting and ending points of one segment and other segments, controlling whether a joint sleeve is generated; if there are no intersections, the joint sleeve is not displayed. This method generates fewer faces, but the appearance of the pipes and joints is rather rigid, and it is not yet possible to intuitively perceive smooth pipes and smooth bends. Rendering optimization will be performed in subsequent steps.
[0055] Table 2 compares the rendering performance of traditional cylinders and the octagonal prisms used in this invention embodiment in terms of rendering performance in scenes with millions of pipelines: Table 2
[0056] By employing the technical means of this invention, a coordinate affine transformation process based on quaternion transformation is designed. The Euler angle of the root object rotation is calculated through the endpoint vector of the pipe segment. Combined with the straight pipe scaling factor and the displacement parameter of the joint sleeve in the local coordinate system, the instantiation and dynamic generation of standardized components under arbitrary spatial orientation and pipe diameter specifications can be realized. Pipe joint modeling does not require a large number of customized molds to match the diameter change requirements of different pipe segments. The modeling efficiency is high and the simulation degree is good.
[0057] As a preferred embodiment, the present invention is further implemented based on any of the above embodiments. Step S12, namely, calculating the vertex normals of all 3D pipe models, includes steps S121 to S122: S121. Calculate the normal to each facet of the three-dimensional pipe model using vector cross product; S122. Based on the normals of the adjacent facets, calculate the vertex normal of each vertex of the three-dimensional pipe model using the linear interpolation method.
[0058] In this embodiment of the invention, by traversing the coordinates of the three vertices of each triangular facet of the three-dimensional pipeline model, the perpendicular direction vector of the facet is calculated by the vector cross product as the face normal.
[0059] For each facet, the normal to that facet is calculated using the cross product. Assume the three vertices A of the j-th facet are... j (x1,y1,z1), B j (x2,y2,z2), C j If the plane is composed of (x3, y3, z3), then the normal of each facet is:
[0060] For example, select vertices A(0,0,0), B(1,0,0), and C(0,1,0), calculate the cross product of vector AB(1,0,0) and vector AC(0,1,0), and obtain the surface normal (0,0,1).
[0061] Furthermore, for each vertex of the octagonal prism, the normal vectors of all associated faces are retrieved, and the vertex normal is calculated by linear interpolation of the normals of neighboring faces.
[0062] For each vertex of an octagonal prism, its normal is calculated by linear interpolation of the normals of its neighboring faces. The specific calculation formula is as follows:
[0063] in, It is the normal to vertex i; It is the number of faces connected to that vertex; It is the normal of the j-th face connected to vertex i.
[0064] For the weights of the normal interpolation, the average weight method is used for weight allocation, and the vertex normal is the average of the normals of all adjacent faces: Neighboring faces refer to the 1-ring neighborhood centered on a vertex, that is, directly connected faces.
[0065] For example, if a vertex connects to three faces with normals of (0.2,0,0.8), (0.1,0.1,0.8), and (0.3,-0.1,0.9), then the normal of the vertex is (0.2,0.0,0.83).
[0066] In a preferred embodiment, step S13, namely, performing layered rendering processing of ambient light, diffuse reflection, and specular reflection on the 3D pipeline model based on the vertex normals and the preset Blinn-Phong lighting model to obtain the rendered 3D pipeline model, includes steps S131 to S134: S131. Normalize the vertex normals; S132. Calculate ambient light, diffuse light, and specular light based on the normalized vertex normals and the preset Blinn-Phong lighting model. S133. The ambient light, the diffuse light, and the specular light are superimposed to obtain the total illumination; S134. Based on the total illumination, convert the RGB color space to the sRGB color space, complete the coloring of the vertices of the three-dimensional pipeline model, and perform color gradient interpolation on the pixels within the triangular facets to obtain the rendered three-dimensional pipeline model.
[0067] In this embodiment of the invention, the X / Y / Z components of each vertex normal are divided by the vector length for normalization. After normal interpolation, all normals need to be normalized to ensure unit length normal vectors. This is because linear interpolation can lead to inconsistent normal lengths, while lighting calculations in rendering typically rely on unit-length normals. The normalization operation is as follows:
[0068] For example, the original normal (2,0,2) becomes (0.707,0,0.707) after processing.
[0069] Furthermore, by employing vertex normal weighted interpolation and multi-light source layered rendering techniques, while preserving the low-face-count geometry, the lighting response characteristics of the normalized normal vectors are utilized to achieve smooth, cylinder-like rendering of the octagonal prism pipe model. See also... Figures 6 to 7 , Figure 6 This is a schematic diagram of the rendering effect of the straight pipe component in an embodiment of the present invention. Figure 7This is a rendering diagram of the connector sleeve component in an embodiment of the present invention. Figure 8 This is a schematic diagram of the rendering effect of the three-dimensional pipeline model in an embodiment of the present invention. Figure 8 From left to right, the images show the rendering effects of a 2-way bend after normal smoothing, a 3-way T-shaped pipe after normal smoothing, and a 4-way cross-shaped pipe after normal smoothing.
[0070] In this embodiment of the invention, a three-dimensional lighting scene is created, comprising ambient light, parallel light (main light source), and auxiliary point light sources. Ambient light provides basic illumination, parallel light simulates main light sources such as sunlight, and point light sources supplement local area illumination. For each vertex of a general component, the following steps are performed: extracting vertex coordinates, smoothed and normalized normal vectors, and vertex material base color; multiplying the ambient light intensity, for example, 0.2 intensity white light, by the material base color #404040 to obtain the basic lighting component.
[0071] For each light source, a light source direction vector is calculated. Specifically, parallel light uses a preset direction, and point light sources have their direction calculated and normalized using the difference between the vertex coordinates and the light source position. The vertex normal vector is multiplied by the light source direction vector, and the result is set to the maximum value of 0 to obtain the diffuse intensity factor. The inverse square distance attenuation formula is applied to the point light source to calculate the effective illumination intensity. The light source color, intensity, attenuation factor, diffuse intensity factor, and material base color are multiplied and added to the total illumination.
[0072] The Blinn-Phong lighting model is used during rendering, determining light intensity based on smoothed normals to achieve a more natural surface lighting effect. When calculating specular reflections, the Blinn-Phong lighting model uses a viewpoint-normal half-vector approach, resulting in less computation and smoother, more natural specular effects. The Blinn-Phong lighting model combines ambient light, diffuse light, and specular highlights to describe the lighting behavior of an object under a light source. The complete expression of the Blinn-Phong lighting model is:
[0073] in, This represents the total light intensity. This is the ambient light reflectance coefficient. This represents the ambient light intensity, which can range from 0.1 to 0.3, but 0.2 is recommended. The diffuse reflection intensity coefficient can be taken as 0.8. The intensity of the light source. This is the surface normal vector. Let be the direction vector of the light source. This prevents light from being projected from the back of the surface, which could result in a negative value. This is the high light reflectance intensity coefficient. A half-vector is defined as the direction of the line of sight. and the direction of the light source The normalized mean. . Avoid letting light shine from the back of the surface, as it does not contribute to the highlights. The highlight index determines the sharpness of a highlight; a large value indicates concentrated highlights, while a small value indicates diffused highlights. In specific pipeline components, metal pipes exhibit sharp highlights with a highlight index n = 32~64; plastic joints exhibit soft highlights with a highlight index n = 8~16. In practical applications, the highlight index n can be mapped based on material roughness.
[0074] Specifically, when using the Blinn-Phong lighting model, the difference vector between the camera position and vertex coordinates is normalized to obtain the view direction. The light source direction is added to the view direction and then normalized to obtain a half-vector. The vertex normal is multiplied by the half-vector, raised to the power of the result, and then multiplied by the specular intensity coefficient. The light source color, specular intensity, and material specular reflection parameters are multiplied and then summed to the total illumination.
[0075] After obtaining the total illumination, color space conversion and output are performed, limiting the final color values to the range of 0-1 to avoid overexposure. Tone mapping is applied to the HDR scene, converting it to the sRGB color space. The calculated RGB values are written to the frame buffer, completing the vertex shading stage. In the fragment shader: pixels within triangle faces are interpolated to obtain smooth normal vectors and color gradients. Distance-based fog attenuation is added to enhance scene depth perception. Finally, the output colors are written to the screen pixels, completing the rendering operation.
[0076] Using the technical means of this invention, through vertex-by-vertex calculation and layered smooth rendering, each edge of the octagonal prism forms a smooth lighting gradient. The originally sharp edges present a diffuse reflection effect similar to that of a cylinder after normal smoothing. When the camera moves, the highlight areas slide naturally along the prism surface. Combined with the ambient occlusion map, a metallic texture that is close to that of a real pipe is finally achieved on a low-polygon model.
[0077] As a preferred embodiment, the present invention is further implemented based on any of the above embodiments, see [link to previous embodiments]. Figure 9 This is a flowchart illustrating a preferred three-dimensional construction method for a cold source pipeline network provided in an embodiment of the present invention. The method further includes steps S14 to S17: S14. Drive the texture flow animation according to the UV coordinate offset algorithm, and combine it with the noise texture sampling method to generate the near-field water flow effect of the three-dimensional pipe model. S15. Generate a cyclically movable 3D arrow object based on the end positions of the pipe segments in the 3D pipe model; wherein, the 3D arrow object is used to represent the water flow direction and water flow velocity of the 3D pipe model; S16. A viewing distance-based hierarchical display strategy is adopted, and different display effects are applied to the texture flow animation and the 3D arrow object; S17. Based on the preset mapping rules between the functional type, operating status and standard color code of the three-dimensional pipeline model, visually distinguish different three-dimensional pipeline models.
[0078] In this embodiment of the invention, to adapt to close-range observation of water flow direction, a straight pipe UV movement animation of a general component sub-component is used for visualization. For long-range observation of water flow direction, a 3D arrow and its cyclical movement from the start to the end of the pipe segment are used for visualization. Specifically, a UV coordinate offset algorithm is used to drive a multi-layer noise-mixed texture flow animation, combined with a cyclically moving 3D arrow object, to construct a near-field and far-field hierarchical display strategy. Based on the water pipe function type, operating status, and standard color code mapping rules, rapid visual differentiation of different business pipelines is achieved, adapting to the dynamic perception requirements of flow direction in multi-scale observation scenarios.
[0079] In a preferred embodiment, step S14, namely, generating the near-field water flow effect of the 3D pipe model by driving the texture flow animation according to the UV coordinate offset algorithm and combining it with the noise texture sampling method, includes steps S141 to S144: S141. Set the UV coordinate mapping relationship for each texture of the three-dimensional pipeline model; S142. Define water flow direction marker parameters, calculate the cumulative time value for each frame, calculate the offset of the original UV coordinates of the texture over time based on the cumulative time value and the water flow direction marker parameters, and adjust the original UV coordinates of the texture based on the offset to form a texture flow animation. S143. Load a multi-layer noise texture and calculate and render the color of the multi-layer noise texture; wherein, the multi-layer noise texture includes a large-scale flow layer, a medium-scale turbulence layer and a small-scale droplet layer; S144. Based on the texture flow animation and the multi-layer noise texture, the near-field water flow effect of the three-dimensional pipe model is obtained.
[0080] In this embodiment of the invention, a texture flow animation is first driven by a UV coordinate offset algorithm, and then combined with noise texture sampling to generate a dynamic effect of straight pipe water flow. The specific process is as follows: (1) Parameter initialization: Set the UV mapping relationship of the 3D pipe model. Set the basic flow velocity vector and time variable t, load multiple layers of noise texture, and define the blending parameters: main texture transparency and noise weight coefficient. The side of the straight pipe component can be unfolded into a rectangle. The direction from the start point to the end point of the pipe segment is the direction of uv.y from -1 to 1, and the vertical direction is the direction of uv.x from -1 to 1. When uv.y moves in one direction over time, its sampled texture will also change over time, which can create a visual animation effect.
[0081] (2) Define the water flow direction marker parameter DIR, calculate the cumulative time value T for each frame, and obtain the texture coordinate offset over time. Given the original texture coordinates The y-coordinate of the UV direction is adjusted by time in either the positive direction (Dir=1) or the negative direction (Dir=-1). When Dir=0, there is no flow. The larger the value of |Dir|, the faster the flow speed. The formula for calculating the texture coordinate tep is:
[0082] in, _Dir is the time, tep is the direction value, and tep is the sampling coordinate for the given original texture.
[0083] For example, with a flow rate coefficient of 0.5, a displacement of 50% of the texture length is generated per second.
[0084] (3) Calculate three colors c1, c2 and c3 by mixing three layers of noise, and obtain the vertex color c by mixing the three layers of colors according to the weight.
[0085] For large-scale flow layers, the noise texture layer number is: 512x512 grayscale Perlin noise, UV offset speed 0.5 / s, black and white noise texture sampling is used to obtain color c1, and the intensity of the color is adjusted according to the direction value.
[0086]
[0087] in, To obtain the texture color after offset. This is the intensity scaling factor, used to adjust the effect on color. Color is a color value used for overlay in the calculation.
[0088] For the mesoscale turbulent layer, the noise map has 1024x1024 layers. The Voronoi noise sampling frequency is 2.0, and the velocity is 0.3 / s. The mesoscale noise map is sampled twice, once for the original UV and once for an offset UV_offset / 2. The vortex effect is generated by the difference operation.
[0089] For the small-scale droplet layer, the noise texture layer number is 256x256 white noise, with a high-frequency oscillation coefficient of 5Hz and a velocity of 1.2 / s. A high-frequency oscillating UV offset is generated based on a trigonometric function of the time variable t, for example, ΔUV_small = (sin(t5),cos(t3)) * 0.01. Output color:
[0090] Mix the three colors by weight:
[0091] (4) Adjust the blending ratio based on the distance from the vertex to the camera, and apply the Fresnel effect to the synthesized color to enhance edge brightness: ;
[0092] (5) Assign values to the diffuse color and transparency of the straight shader: , To maintain the same color between the connector sleeve and the straight pipe, assign the same material to the connector sleeve of the general component, set the texture to pure white, and set the Dir movement direction to 0.
[0093] See Figure 10 This is a schematic diagram of the near-field water flow effect in an embodiment of the present invention. As can be seen, the main blue color flows continuously along the length of the pipe, with dynamic diffusion of turbulent regions superimposed on the surface, and white droplet particles flashing at high frequency. Modular operations of UV coordinates ensure infinite looping, rendering consumption is controlled through layered weights, and time difference coefficients prevent animations from being synchronized across layers. Synchronous movement of macroscopic flow direction and microscopic details is achieved through a three-layer nested UV offset consisting of "basic displacement + intermediate perturbation + high-frequency oscillation."
[0094] In a preferred embodiment, step S16, namely the adoption of a viewing distance-based hierarchical display strategy, involves using different display effects for the texture animation and the 3D arrow object, including steps S161 and S162: S161. Based on the preset viewing distance threshold, different levels of viewing distance modes are obtained; S162. Under different viewing distance modes, different display effects are applied to the texture flow animation and the 3D arrow object; wherein, the display effect includes whether to display the texture flow animation and the 3D arrow object, as well as the texture flow effect when displaying the texture flow animation and the arrow scaling effect when displaying the 3D arrow object.
[0095] In this embodiment of the invention, a line-of-sight tiered display strategy is adopted, generating a cyclically movable 3D arrow object based on the endpoint position of the pipe segment. First, the line-of-sight tiered display strategy is initialized, setting two levels of line-of-sight thresholds, for example, a near-distance threshold of 5 meters and a far-distance threshold of 20 meters. Distance refers to the straight-line distance from the camera's focus to the current pipe segment. A dynamic monitoring mechanism is established to acquire this distance value in real time.
[0096] The activation logic is set as follows: Near-field mode (<5 meters): 3D arrows are turned off, UV map flow effect 8x MSAA anti-aliasing + particle droplets are enabled; Mid-field mode (5-20 meters): Arrow scaling factor = 0.5, UV animation frequency is reduced to 0.7x, and UV map and scaled-down 3D arrows are displayed simultaneously; Far-field mode (>20 meters): UV map is turned off, arrow scaling factor = 1.2, and only scaled-up 3D arrows are displayed.
[0097] This invention uses a method that changes the X and Z coordinates of a 3D arrow object over time to indicate the direction and velocity of water flow. Specifically, this is achieved by monitoring the Dir variable of the material of the straight pipe segment. When Dir=1, a 3D arrow object is generated at a position Y=Y+0.1m vertically above the starting point of the pipe segment, with the arrow pointing towards the ending point of the pipe segment. When Dir=-1, a 3D arrow object is generated at a position Y=Y+0.1m vertically above the ending point of the pipe segment, with the arrow pointing towards the starting point of the pipe segment. The specific parameters of the 3D arrow are as follows: in terms of geometry, the arrow length is twice the pipe diameter, and the head angle is 60°; in terms of movement speed, when the flow rate coefficient is 1.0, the cycle period T is 8 seconds / pipe segment length.
[0098] Based on the starting point of the pipe section The destination is The direction vector is the one mentioned in step 1 above. The length of the pipe moved within time T The distance.
[0099] When the material's UV direction Dir=1, the formula for calculating the change of the 3D arrow object's position coordinates over time is:
[0100] When the material's UV direction Dir=-1, the formula for calculating the change of the 3D arrow object's position coordinates over time is:
[0101] When the material's UV direction Dir=0, delete the 3D arrow object and do not display the water flow direction indicator.
[0102] The motion trajectory is calculated, and the position is periodically updated to control the cyclical movement along the path. The geometric centerline of the pipeline is extracted, i.e., the straight path from the starting point P1 to the ending point P2, and the path is parameterized as a time function: t∈[0,1] corresponds to the complete movement from the starting point to the ending point. The parameter t is updated each frame according to the time increment Δt.
[0103] Calculate the current 3D arrow position: When Dir=-1, the calculation is reversed. And take the modulus to ensure the continuity of the cycle.
[0104] As can be seen, this step dynamically switches the water flow direction indicator format according to the distance between the camera and the pipe, and achieves a global visualization effect of the arrow moving cyclically along the pipe path through spatial coordinate transformation and time-driven mechanism.
[0105] Further, in step S17, see Figure 11 This is a schematic diagram illustrating the visual partitioning effect in this embodiment of the invention. It establishes a mapping rule between water pipe function types and standard color codes, enabling rapid visual differentiation of operation and maintenance scenarios. Each pipe segment in the data center pipe network system can be categorized according to the different business units it serves: chilled water supply pipe, chilled water return pipe, cooling water supply pipe, cooling water return pipe, cold storage tank release pipe, and cold storage tank charging pipe. Different color systems are typically used for differentiation in on-site operation and maintenance work. This helps operators quickly identify different types of water flow in a three-dimensional scene, improving monitoring and management efficiency. Before installing the data center chilled water supply network system pipes, pipe color management is performed according to the on-site chilled water supply operation and maintenance management system. For example, blue (#0056FF) is used to identify chilled water supply, orange (#FF5400) to identify chilled water return, green (#00FF95) to identify cooling water supply, white (#FFFFFF) to identify cooling water return, orange (#FF5400) to identify cold storage water discharge, blue (#0056FF) to identify cold storage water injection, and gray (#60666B) to identify other types of water flow. A visual illustration in the color chart clearly indicates the type of water pipe and standard water temperature represented by each color.
[0106] When different service types are assigned to different pipe sections, the material... The variables will be assigned values based on the color corresponding to the business type. This makes the water flow indicators in the 3D pipeline model more identifiable for operational support.
[0107] As an example, the standard color codes are shown in Table 3: Table 3
[0108] Furthermore, the system monitors the operational status; if an abnormal status is encountered, the color code will be: Blocking warning: #FF0000 (red flashing, frequency 2Hz); Low temperature warning: #00FFFF (cyan gradient, ΔT<-5℃); Overpressure warning: #FF00FF (magenta pulse, P>1.2P_max).
[0109] In a specific application example, in a data center website optimization project, the performance improvement effect of applying the technology proposed in this paper is shown in Table 4: Table 4
[0110] By employing the technical means of this invention, a dynamic flow direction visualization mechanism based on line-of-sight hierarchy is used. This mechanism integrates multi-layer noise map flow animation driven by UV offset with 3D arrow cyclic movement logic. Combined with water pipe function color code mapping rules, it achieves seamless switching from near-field microscopic water flow details to far-field global flow direction identification, enhancing the intuitiveness of flow direction perception under multi-scale observation, and supporting maintenance personnel to quickly distinguish business types such as chilled water and cooling water.
[0111] As a preferred embodiment, the present invention is further implemented based on any of the above embodiments, and the method further includes the following steps: Based on graph theory, a node-edge relationship model of the three-dimensional pipeline model is constructed, and the three-dimensional pipeline model is abstracted into a node-edge undirected graph data structure. The start and stop status data of the equipment are associated with the node-edge undirected graph data structure to establish the binding relationship between the pipe segment inlet and outlet directions of the three-dimensional pipeline model and the equipment operation logic. A dynamic directed graph transformation algorithm is used to deduce the direction of water flow across the entire network by traversing the start-stop status data of the devices.
[0112] In this embodiment of the invention, the physical pipe network is abstracted into a node-edge undirected graph model based on graph theory. By collecting equipment status and valve opening and closing data in real time, combined with chiller outlet locking, water pump flow direction constraints and valve opening threshold rules, the water flow direction is dynamically derived and the undirected graph is converted into a directed graph topology, thereby realizing the automated configuration of the global flow direction of the cold source system and the identification of abnormal blockages.
[0113] See Figure 12This is a flowchart of the pipeline topology analysis in this embodiment of the invention. It abstracts the physical pipeline network into a node-edge undirected graph model, receives real-time status data from chillers, pumps, and valves, and dynamically derives the water flow direction through flow direction constraint rules and equipment start / stop logic, thus automating the conversion from an undirected graph to a directed graph. The visual editor allows for the visualization and drawing of all pipe segments in the entire data center pipeline system via mouse operation, and automatically sets the water flow direction based on the cooling mode, greatly reducing the workload of manual settings.
[0114] First, a node-edge relationship model for the pipeline network is constructed based on graph theory, abstracting the physical pipelines into an undirected graph data structure. A visual editor allows users to visualize and draw the start and end points of all pipe segments in the entire data center pipeline network system using mouse operations. Chillers, pumps, valves, and pipe connection points are abstracted as graph nodes (V), assigned unique IDs and spatial coordinates. Pipe segments are abstracted as undirected edges (E), recording the IDs of the two connected nodes and pipe attributes such as pipe diameter and type. Using an undirected graph to record the relationships between pipe points and the edges between them can be represented as:
[0115] in, These are the endpoints of all pipe segments (including the start and end points). It refers to the connection relationship of pipelines, indicating the connection between different pipe sections.
[0116] Next, the start / stop status data of equipment such as chillers, water pumps, and valves are associated to establish a binding relationship between the inlet / outlet direction of the pipe section and the operating logic of the equipment. Equipment types are associated with nodes; for example, the chiller node is bound to its start / stop status, and the valve node is bound to its opening value. Real-time data such as chiller start / stop, water pump speed, and valve opening are obtained through the IoT interface. Events such as pipe breakage alarms and abnormal valve closures are monitored, and faulty edges / nodes are marked. Based on the connection status of the water pipe section with equipment such as cooling towers, chillers, plate heat exchangers, cold storage tanks, cooling pumps, chilled water pumps, and cold release pumps, the direction Dir of the relevant edge e is automatically set according to the on / off status of each device and the opening status of valves in the middle of the pipe section, indicating whether the connection point is inlet / outlet or closed.
[0117] Finally, a dynamic directed graph transformation algorithm is employed to automatically deduce the overall water flow direction by traversing device states and valve opening / closing conditions. The automatic calculation of water flow direction is essentially an undirected graph. Directed graph The transformation requires adding a direction (i.e., the direction of fluid flow) to each edge. The formula can be written as:
[0118] in, It is a connection node and The edge.
[0119] The direction of the edge is determined by the on / off status of the equipment and the valves. Automatic setting can be achieved through the following steps: Traverse all equipment: Check the on / off status of equipment (such as cooling towers, chillers, plate heat exchangers, cold storage tanks, cooling pumps, chilled water pumps, and release pumps). Traverse all valves: Check the valve opening / closing status. Determine flow direction: Set the flow direction of the pipe section based on the status of the equipment and valves. Update edge direction: Automatically set the edge direction based on the flow direction (as determined by...). arrive Or the opposite).
[0120] The rules for deriving the flow direction are as follows: If the chiller is in operation, its outlet node (based on the chiller's design flow direction) is forcibly designated as the water flow starting point, and the direction of the adjacent side is set as outflow; when the chiller is shut down, the direction of the adjacent side is marked as bidirectional pending.
[0121] When the water pump is running, the flow from the inlet to the outlet is locked as unidirectional, and reverse flow is prohibited; when the water pump stops, the flow on adjacent sides returns to bidirectional pending.
[0122] Valve opening > 90%: Allows bidirectional flow (no forced direction); Valve opening < 10%: Marked as blocked, associated edges deleted; Valve partially open: Flow direction dynamically calculated based on pressure sensor data.
[0123] Using the technical means of this invention, a topology analysis system based on undirected graph dynamic transformation and equipment state drive can, through chiller outlet locking, water pump flow direction constraint and valve opening threshold rules, deduce the water flow direction of the pipeline network in real time and construct a directed graph topology. It can automatically identify the operating mode of the cold source system, dynamically adapt the flow direction configuration, and improve the response efficiency of abnormal blockage detection and emergency plan simulation.
[0124] This invention relies on a dynamic directed graph transformation algorithm and multi-layer noise nested offset logic. Driven by real-time data on equipment start-up and shutdown status and valve opening, and combined with infinite loop water flow animation generation technology, it achieves high-precision dynamic simulation and synchronous visualization update of the water flow direction in the cold source pipeline network. This ensures the consistency between operation and maintenance monitoring data and the three-dimensional scene, reduces the complexity of manual intervention, and improves the accuracy of fault location.
[0125] This invention also provides a three-dimensional construction device for a cold source pipeline network, the device comprising: The 3D model generation module is used to transform the constructed low-face-count standardized components according to predefined pipe diameter parameters and coordinate transformation algorithms to generate 3D pipe models with arbitrary spatial orientation and arbitrary pipe diameter. The vertex normal calculation module is used to calculate the normals of all vertices of the three-dimensional pipe model. The 3D model rendering model is used to perform layered rendering processing of ambient light, diffuse reflection, and specular reflection on the 3D pipeline model based on the vertex normals and the preset Blinn-Phong lighting model, so as to obtain the rendered 3D pipeline model.
[0126] Preferably, the device further includes: The water flow effect generation module is used to drive texture flow animation based on UV coordinate offset algorithm and combine it with noise texture sampling method to generate near-field water flow effect of the three-dimensional pipe model. An arrow object generation module is used to generate a cyclically movable 3D arrow object based on the end positions of the pipe segments of the 3D pipe model; wherein, the 3D arrow object is used to represent the water flow direction and water flow velocity of the 3D pipe model; The viewing distance hierarchical display module is used to employ a viewing distance hierarchical display strategy to apply different display effects to the texture flow animation and the 3D arrow object; The visual differentiation processing module is used to visually differentiate different three-dimensional pipeline models according to the preset mapping rules between the functional type, operating status and standard color code of the three-dimensional pipeline model.
[0127] It should be noted that the three-dimensional construction device for a cold source pipeline network provided in this embodiment of the invention is used to execute all the process steps of the three-dimensional construction method for a cold source pipeline network in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.
[0128] This invention also provides a three-dimensional construction device for a cold source pipeline network, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the three-dimensional construction method for the cold source pipeline network as described in any of the above embodiments.
[0129] This invention also provides a computer-readable storage medium, which includes a stored computer program, wherein the computer program, when running, controls the device where the computer-readable storage medium is located to execute the three-dimensional construction method of the cold source pipeline network as described in any of the above embodiments.
[0130] This invention also provides a computer program product, which includes a computer program or computer instructions. When the computer program or computer instructions are executed by a processor, they implement the three-dimensional construction method of the cold source pipeline network as described in any of the above embodiments.
[0131] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0132] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for constructing a three-dimensional cold source pipeline network, characterized in that, include: Based on predefined pipe diameter parameters and coordinate transformation algorithms, the constructed low-face-count standardized components are transformed to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter. Calculate the normals of all vertices of the 3D pipe model; Based on the vertex normals and the preset Blinn-Phong lighting model, the 3D pipeline model is subjected to layered rendering processing of ambient light, diffuse reflection, and specular reflection to obtain the rendered 3D pipeline model.
2. The three-dimensional construction method of the cold source pipeline network as described in claim 1, characterized in that, The process of transforming the constructed low-face-count standardized components according to predefined pipe diameter parameters and coordinate transformation algorithms to generate a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter includes: Standardized straight pipe components are constructed using octagonal prisms, and standardized joint sleeve components are constructed using a combination of icosahedral hemispheres and octagonal prisms to obtain the basic components; A coordinate transformation algorithm is established to perform an affine transformation on the basic components according to the actual pipeline space coordinates, generating the assembly parameters of the general components. Based on a predefined standardized pipe diameter parameter library and the combined parameters of the general components, a scaling factor is used to dynamically adapt to pipes of different diameters, generating a three-dimensional pipe model with arbitrary spatial orientation and arbitrary pipe diameter.
3. The three-dimensional construction method for cold source piping network as described in claim 1, characterized in that, The calculation of all vertex normals of the 3D pipeline model includes: The normal to each facet of the three-dimensional pipe model is calculated using the vector cross product. The vertex normal of each vertex of the 3D pipeline model is calculated using linear interpolation of the normals of the neighboring facets.
4. The three-dimensional construction method of the cold source pipeline network as described in claim 3, characterized in that, The process involves performing layered rendering of the 3D pipeline model based on the vertex normals and a preset Blinn-Phong lighting model, including ambient light, diffuse reflection, and specular reflection, to obtain the rendered 3D pipeline model. The vertex normals are normalized. Based on the normalized vertex normals and the preset Blinn-Phong lighting model, ambient light, diffuse light, and specular light are calculated respectively. The total illumination is obtained by superimposing the ambient light, the diffuse light, and the specular light. Based on the total illumination, the RGB color space is converted to the sRGB color space to complete the shading of the vertices of the 3D pipeline model, and color gradient interpolation is performed on the pixels within the triangular facets to obtain the rendered 3D pipeline model.
5. The three-dimensional construction method for a cold source pipeline network as described in any one of claims 1 to 4, characterized in that, The method further includes: The near-field water flow effect of the three-dimensional pipe model is generated by driving the texture flow animation based on the UV coordinate offset algorithm and combining it with the noise texture sampling method. A cyclically movable 3D arrow object is generated based on the end positions of the pipe segments in the 3D pipe model; wherein, the 3D arrow object is used to represent the water flow direction and water flow velocity of the 3D pipe model; A viewing distance-based hierarchical display strategy is adopted, with different display effects applied to the texture flow animation and the 3D arrow object; Based on the preset mapping rules between the functional type, operating status and standard color code of the three-dimensional pipeline model, different three-dimensional pipeline models are visually distinguished.
6. The three-dimensional construction method for cold source piping network as described in claim 5, characterized in that, The process of generating the near-field water flow effect of the 3D pipe model by driving texture flow animation based on UV coordinate offset algorithm and combining it with noise texture sampling method includes: Set the UV coordinate mapping relationship for each texture of the 3D pipeline model; Define water flow direction marker parameters, calculate the cumulative time value for each frame, calculate the offset of the original UV coordinates of the texture over time based on the cumulative time value and the water flow direction marker parameters, and adjust the original UV coordinates of the texture based on the offset to form a texture flow animation. Load a multi-layer noise texture, and calculate and render the color of the multi-layer noise texture; wherein the multi-layer noise texture includes a large-scale flow layer, a medium-scale turbulence layer, and a small-scale droplet layer; The near-field water flow effect of the three-dimensional pipe model is obtained based on the texture flow animation and the multi-layer noise texture.
7. The three-dimensional construction method for cold source pipe network as described in claim 5, characterized in that, The adoption of a viewing distance-based hierarchical display strategy involves using different display effects for the texture animation and the 3D arrow object, including: Based on the preset viewing distance threshold, different levels of viewing distance modes are obtained; Different display effects are applied to the texture flow animation and the 3D arrow object under different viewing distance modes; wherein, the display effects include whether to display the texture flow animation and the 3D arrow object, as well as the texture flow effect when displaying the texture flow animation and the arrow scaling effect when displaying the 3D arrow object.
8. The three-dimensional construction method of the cold source pipeline network as described in claim 5, characterized in that, The method further includes: Based on graph theory, a node-edge relationship model of the three-dimensional pipeline model is constructed, and the three-dimensional pipeline model is abstracted into a node-edge undirected graph data structure. The start and stop status data of the equipment are associated with the node-edge undirected graph data structure to establish the binding relationship between the pipe segment inlet and outlet directions of the three-dimensional pipeline model and the equipment operation logic. A dynamic directed graph transformation algorithm is used to deduce the direction of water flow across the entire network by traversing the start-stop status data of the devices.
9. A three-dimensional construction device for a cold source pipeline network, characterized in that, include: The 3D model generation module is used to transform the constructed low-face-count standardized components according to predefined pipe diameter parameters and coordinate transformation algorithms to generate 3D pipe models with arbitrary spatial orientation and arbitrary pipe diameter. The vertex normal calculation module is used to calculate the normals of all vertices of the three-dimensional pipe model. The 3D model rendering model is used to perform layered rendering processing of ambient light, diffuse reflection, and specular reflection on the 3D pipeline model based on the vertex normals and the preset Blinn-Phong lighting model, so as to obtain the rendered 3D pipeline model.
10. A three-dimensional construction device for a cold source pipeline network, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor, when executing the computer program, implements the three-dimensional construction method of the cold source piping network as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device containing the computer-readable storage medium to perform the three-dimensional construction method of the cold source piping network as described in any one of claims 1 to 8.
12. A computer program product, characterized in that, The computer program product includes a computer program or computer instructions, which, when executed by a processor, implement the three-dimensional construction method of the cold source pipeline network as described in any one of claims 1 to 8.