Search

CN-121982204-A - Modeling method and system for two-dimensional and three-dimensional data pipeline

CN121982204ACN 121982204 ACN121982204 ACN 121982204ACN-121982204-A

Abstract

The invention discloses a two-dimensional data pipeline modeling method and system, which comprise the steps of obtaining pipeline path parameters and attribute parameters, obtaining terrain parameters of positions of pipelines, calculating a three-dimensional central line coordinate correction formula of the pipelines according to the pipeline path parameters, the attribute parameters and the terrain parameters, obtaining three central point coordinate values of connection at corresponding bending positions of the pipelines according to the three-dimensional central line coordinate correction formula, constructing two marking vectors according to the three connected central point coordinate values, calculating curvature and included angles of the pipelines according to the marking vectors, obtaining the three-dimensional central line coordinates of positions of local deformation in the pipelines, controlling the local deformation of the positions of the pipelines corresponding to the positions by using a three-time Bernstan function, enabling the modeled pipelines to keep similar local deformation of corresponding real pipelines, obtaining the three-dimensional central line coordinates of positions of pipeline connecting pieces, and butting different pipelines at the positions of the connecting pieces by using joint butting functions including rotation, translation and scaling functions.

Inventors

  • XU ZHAOXING
  • ZHANG LINHAO
  • ZHANG NANWEN
  • XU HONGBO
  • SONG LIFANG
  • ZHANG SHENG
  • YE XIUFEN
  • FAN QINGQING
  • Liu Dengjian
  • XU ZHIWEN
  • ZHAN YI
  • GAO MING
  • WANG YONGMING
  • WEI MING

Assignees

  • 丽水市城建测绘中心有限公司

Dates

Publication Date
20260505
Application Date
20260123

Claims (10)

  1. 1. A method of modeling a two-dimensional data pipeline, the method comprising: acquiring pipeline path parameters and attribute parameters, acquiring terrain parameters of the position of the pipeline, and calculating a three-dimensional central line coordinate correction formula of the pipeline according to the pipeline path parameters, the attribute parameters and the terrain parameters; acquiring three connected center point coordinate values of a bent position corresponding to the pipeline according to the three-dimensional center line coordinate correction formula, constructing two marking vectors according to the three connected center point coordinates, and calculating the curvature and the included angle of the pipeline according to the marking vectors; the method comprises the steps of obtaining three-dimensional center line coordinates of a position of local deformation in a pipeline, and controlling the local deformation of the corresponding position of the pipeline by using a three-time Bernstein function, so that the modeled pipeline keeps similar local deformation corresponding to a real pipeline; three-dimensional centerline coordinates of pipeline connector locations are obtained and different pipeline docks are modeled at the connector locations using a joint docking function including rotation, translation, and scaling functions.
  2. 2. The two-dimensional data pipeline modeling method according to claim 1, wherein the three-dimensional center line coordinate correction formula calculation method comprises the steps of performing gridding processing in a pipeline area in advance to obtain grid point coordinates, and constructing an elevation formula of coordinates corresponding to a horizontal plane by using bilinear interpolation: ; Wherein the method comprises the steps of Representing elevation values calculated by interpolation at arbitrary horizontal coordinates (x, y), Representing the normalized interpolation parameters in the x-axis direction, Representing the normalized interpolation parameter in the y-axis direction, 、 、 And The elevation values of the four adjacent grid points at the upper left, upper right, lower left and lower right of the horizontal coordinate (x, y) are represented, respectively.
  3. 3. The two-dimensional data pipeline modeling method according to claim 2, wherein the three-dimensional centerline coordinate correction formula calculation method comprises obtaining a coordinate value (x i ,y i ) corresponding to a pipeline center point i according to a pipeline path parameter, obtaining a pipeline deep-buried attribute value d i of the pipeline center point i (x i ,y i ), and obtaining a pipeline radius r i of the pipeline center point i (x i ,y i ), and calculating the three-dimensional centerline coordinate formula according to the following formula: ; Wherein the method comprises the steps of Representing the elevation value at (x i ,y i ) corresponding to the pipeline center point i.
  4. 4. The two-dimensional data pipeline modeling method according to claim 1, wherein the pipeline angle calculation method comprises the steps of obtaining a center point coordinate of a center position of a pipeline bending part according to a three-dimensional center line coordinate formula, simultaneously obtaining two center point coordinates of the pipeline bending part and a straight pipeline connecting end part according to the three-dimensional center line coordinate formula, and constructing two mark vectors by connecting the three center point coordinates end to end in a pipeline extending direction And Wherein Representing the coordinates of the central point of one of the connecting ends of the curved portion of the pipeline, Center point coordinates representing the center position of the curved portion of the pipeline, Representing the coordinates of the central point of the other connecting end of the bent part of the pipeline, and further according to the marking vector And And calculating the included angle of the bent part of the corresponding pipeline according to the inverse cosine function.
  5. 5. The two-dimensional data pipeline modeling method as defined in claim 4, wherein the pipeline curvature calculation method comprises the steps of 、 And And calculates the curvature of the pipeline according to the following formula: ; Wherein the method comprises the steps of Representing the line angle at the center point i of the corresponding bend, The curvature value of the corresponding curved surface of the pipeline at the center point i of the corresponding curved portion is represented.
  6. 6. The two-dimensional data pipeline modeling method according to claim 1, wherein the local deformation control method for the pipeline is characterized by obtaining grid point indexes for representing grid point positions, and respectively calculating three-order Bernstein base functions under different local coordinates according to the grid point indexes 、 And Where u, v and w represent normalized coordinates of the origin P in x, y and z-axis directions, respectively, and l, m and n represent grid indices in x, y and z-axis directions, respectively, the local deformation control of the pipeline is calculated using the following formula: ; Wherein the method comprises the steps of Control point coordinate values corresponding to the (l, m, n) grid positions.
  7. 7. The method of modeling a two-dimensional data pipeline according to claim 1, wherein the rotation, translation and scaling functions are calculated by calculating rotational alignment of the pipeline and the connector using rotation functions as follows: ; wherein R represents an orthogonal three-dimensional rotation matrix, I represents a 3×3 identity matrix, K represents a cross matrix of rotation axis vectors K, and θ represents a rotation angle; The translational alignment of the pipeline and the connector is calculated using the following translation function: ; where t represents a translation vector that translates the source plane center point to the target plane center point, c t represents the target connector plane center point coordinates, c s represents the source plane center point coordinates of the pipeline end face, and R represents the rotation matrix; the scaled docking of the pipeline and the connection is calculated using the scaling function: ; Wherein r t represents the radius of the connector pipe segment, r s represents the radius of the pipe segment at the end of the pipeline, s is a scaling factor, and the physical butt modeling of the pipeline is performed according to the rotation, translation and scaling functions described above.
  8. 8. The two-three dimensional data pipeline modeling method of claim 1, comprising constructing an implicit function of the pipeline for a precise physical description of the pipeline surface location, the implicit function of the pipeline being: ; Wherein F (q) represents a distance function value from any point x in space to the surface of the pipeline, q represents any point coordinate in three-dimensional space, t represents a pipeline central line parameterized variable, the value range is [0,1], C (t) represents a central line parameter equation for giving the pipeline central line coordinate under the corresponding parameter t, and r (t) represents a radius function of the pipeline.
  9. 9. A two-dimensional data pipeline modeling system, characterized in that the system performs a two-dimensional data pipeline modeling system according to any of the preceding claims 1-8.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which is executed by a processor to implement a two-three-dimensional data pipeline modeling method according to any of claims 1-8.

Description

Modeling method and system for two-dimensional and three-dimensional data pipeline Technical Field The invention relates to the technical field of pipeline data management, in particular to a two-dimensional and three-dimensional data pipeline modeling method and system. Background At present, the traditional pipeline data comprises two-dimensional pipeline data and three-dimensional pipeline data, the traditional pipeline modeling mode is mainly realized by means of software such as BIM, and the like, however, the modeling mode is realized by requiring specific modeling parameters, but problems of data consistency and uniformity exist for three-dimensional transformation of part of two-dimensional pipelines, particularly abnormal reconstruction results of pipelines, including but not limited to pipeline angle abnormality, topography estimation abnormality, pipeline deformation abnormality, pipeline sharp turning and the like, are easy to occur in the reconstruction mode process, and the problems often need to be solved by independent matching of human resource areas, so that the cost of data modeling is high. In addition, in the traditional modeling method, if any design change exists in the pipeline, an engineer is required to manually check all relevant drawings, documents and tables for modification, so that omission is easy, and the risk is huge. Disclosure of Invention One of the purposes of the invention is to provide a two-dimensional data pipeline modeling method and a system, which provide an elevation formula based on bilinear interpolation and a three-dimensional central line coordinate correction formula for converting a two-dimensional pipeline into a three-dimensional pipeline, wherein the three-dimensional central line coordinate correction formula comprises deep-buried parameters and pipeline radiuses in a real scene, so that continuous smooth terrain estimation can be provided based on the elevation formula and the three-dimensional central line coordinate formula of the bilinear interpolation, and uneven stepped terrain which does not accord with the normal is reduced, so that the two-dimensional pipeline can adapt to various complex terrains during three-dimensional pipeline conversion modeling, and the pipeline model and the actual terrain are ensured to be matched. The invention further aims to provide a two-dimensional three-dimensional data pipeline modeling method and a two-dimensional three-dimensional data pipeline modeling system, the two-dimensional three-dimensional data pipeline modeling method and the two-dimensional data pipeline modeling system are used for accurately identifying different angle information of a multi-channel pipeline to be built by building a vector included angle formula based on a two-dimensional pipeline and a pipeline curvature calculation formula based on the pipeline curvature calculation formula, so that abnormal pipeline connection is reduced, smoothness control of a pipeline bending part is provided based on the pipeline curvature calculation formula, unnatural turning in a three-dimensional reconstruction process of the pipeline is reduced, and a three-dimensional pipeline building mode is enabled to be in accordance with natural characteristics of the pipeline. Another object of the present invention is to provide a two-dimensional data pipeline modeling method and system, which construct a smooth curve between discrete pipeline points constructed by using a cubic bernstein base function and a cubic bezier curve formula, and because the cubic bernstein base function and the cubic bezier curve formula are both second-order derivatives, the pipeline connecting line maintains continuity and smoothness in the reconstruction process, and the local continuous deformation of the pipeline can be controlled based on the cubic bernstein base function, so that a special type of pipeline can be accurately modeled in three dimensions. Another object of the present invention is to provide a two-dimensional data pipeline modeling method and system, which provides a pipeline butt joint formula including a plane normal vector rotation alignment formula of a pipe section end surface, a translation vector formula based on a joint center point, and a pipe diameter scaling factor formula, wherein the pipeline butt joint formula provides pipeline modeling with physical interpretability, so that the multi-pipeline modeling in the present invention has rationality and interpretability in a physical sense, and modeling replacement can be directly performed according to physical parameters in subsequent pipeline modeling management, without performing complicated manual inspection and adjustment work. To achieve at least one of the above objects, the present invention further provides a two-three-dimensional data pipeline modeling method, the method comprising: acquiring pipeline path parameters and attribute parameters, acquiring terrain parameters of the position of th