Parametric modeling and efficient display method of pipe network model based on volume object

Through parameterized modeling and creation of three-dimensional spatial indexes and paging indexes, the problem of inaccurate description of pipeline networks in the existing technology is solved, and more efficient data processing and display conversion is achieved.

CN113658310BActive Publication Date: 2025-04-25INTERSTELLAR SPACE (TIANJIN) TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010396223.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-12
Publication Date
2025-04-25
Estimated Expiration
2040-05-12

AI Technical Summary

Technical Problem

The prior art has failed to effectively describe the actual construction of the pipeline network in a body-object manner, resulting in the description being inaccurate and realistic.

Method used

Parameterized modeling is performed based on geometric position information, attribute information and correlation information of pipe points and pipelines, a three-dimensional model is generated, and three-dimensional spatial indexes and paging indexes are created to improve data sharing, reading efficiency and spatial body query speed.

Benefits of technology

It realizes a more accurate description of the actual construction of the pipeline network, reduces the amount of data, improves the reading efficiency, and supports the rapid conversion of pipelines in the scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113658310B_ABST
    Figure CN113658310B_ABST
Patent Text Reader

Abstract

The present invention is a parametric modeling and efficient display method for a pipe network model based on a body object, and relates to the field of three-dimensional model construction. The method is characterized in that the method comprises the following steps: constructing and storing pipe network geometric body objects; creating a three-dimensional spatial index and spatial body query; creating a three-dimensional paging index; and two- and three-dimensional integrated hierarchical display based on a display control script. The advantages of the present invention are: it can realize the use of body objects to describe the actual construction of the pipe network, which is more accurate and in line with reality; parametric modeling is performed based on the geometric position information, attribute information and associated information of pipe points and pipelines, and the geometric body objects are generated into three-dimensional models and shared, thereby reducing the amount of data and improving reading efficiency; creating three-dimensional spatial indexes for pipe points and pipelines to improve the speed of spatial body query.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional model construction, and in particular to a method of using a body object to describe the actual construction situation of a pipeline network, which is more accurate and in line with reality; performing parametric modeling according to the geometric position information, attribute information and associated information of pipe points and pipelines, generating a three-dimensional model from the geometric body object and sharing the model, reducing the amount of data and improving reading efficiency; creating a three-dimensional spatial index for the pipe points and pipelines, and improving the speed of spatial body query; creating a two-level paging index for the pipelines, the first level using a three-dimensional paging index, and the second level using a two-dimensional paging index merging the main pipelines, supporting the rapid conversion of the two-dimensional and three-dimensional display of the pipelines in the scene; supporting the display control script to set the display situation of the scene pipe points and pipelines, and realizing the two-dimensional display, three-dimensional display and non-display of the pipe points and pipelines at specific heights and distances, as well as the setting of various display states. Parametric modeling and efficient display method of a pipeline network model based on body objects Background Art

[0002] Parametric modeling is a computer-aided design method that gradually became dominant in the late 1980s and is an important process of parametric design. In the parametric modeling environment, parts are composed of features. Features can be composed of positive space or negative space. Positive space features refer to real blocks (for example, protruding bosses), and negative space features refer to cut-off or subtracted parts.

[0003] Parametric modeling technology is increasingly being used in auxiliary architectural design. Although it has been developed for a short time, its development speed is amazing. Currently, all kinds of buildings under construction or completed are more or less assisted by parametric software. Among various commonly used parametric auxiliary design software, the parametric design platform composed of Rhinoceros and Grasshopper is currently the most popular and widely used design platform, which is mainly due to the powerful modeling ability of Rhinoceros modeling software and the unique visual programming modeling method of Grasshopper. At present, the level of relevant technologies in China is relatively backward, and many large projects require the participation of relevant foreign teams to be successfully completed.

[0004] At present, there is no method that can use volume objects to describe the actual construction of the pipeline network, which is more accurate and in line with reality; parametric modeling is performed based on the geometric location information, attribute information and related information of the pipe points and pipelines, and the geometric objects are generated into three-dimensional models and shared, which reduces the amount of data and improves the reading efficiency; three-dimensional spatial indexes are created for the pipe points and pipelines to improve the speed of spatial body query; when creating three-dimensional paged indexes for the pipe points, the three-dimensional paged index codes are calculated by clustering to improve the efficiency of reading the paged index during rendering; two-level paged indexes are created for the pipelines, the first level uses three-dimensional paged indexes, and the second level uses two-dimensional paged indexes that merge the main pipelines, which supports the rapid conversion of pipelines in the scene between two-dimensional and three-dimensional displays; the display control script is supported to set the display of the scene pipe points and pipelines, and realizes the two-dimensional display, three-dimensional display and non-display of pipe points and pipelines at specific heights and distances, as well as the setting of various display states. Parametric modeling and efficient display method of pipeline network model based on volume objects. Summary of the invention

[0005] The embodiment of the present invention provides a parametric modeling and efficient display method for a pipe network model based on a body object. The method of the present invention can realize the description of the actual construction situation of the pipe network in the form of body objects, which is more accurate and in line with reality; parametric modeling is performed according to the geometric position information, attribute information and associated information of pipe points and pipelines, and a three-dimensional model is generated from the geometric body object and shared, thereby reducing the amount of data and improving the reading efficiency; a three-dimensional spatial index is created for the pipe points and pipelines to improve the speed of spatial body query; a clustering method is used to calculate the three-dimensional paging index code when creating a three-dimensional paging index for the pipe points, thereby improving the efficiency of reading the paging index during rendering; a two-level paging index is created for the pipeline, the first level uses a three-dimensional paging index, and the second level uses a two-dimensional paging index that merges the main pipeline, thereby supporting the rapid conversion of the pipeline between two-dimensional and three-dimensional display in the scene; the display control script is supported to set the display situation of the pipe points and pipelines in the scene, thereby realizing the two-dimensional display, three-dimensional display and non-display of the pipe points and pipelines at a specific height and distance, as well as the setting of various display states.

[0006] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the method comprises the following steps:

[0007] Construct and store pipe network geometry objects: Create a pipe network dataset, determine and construct basic component geometry objects based on the connectivity information of pipe points and the diameter information of pipelines, read the attribute information of pipe points and pipelines to construct pipe point geometry objects and pipeline geometry objects and store them in pipe point feature classes and pipeline feature classes, and store the inner and outer wall textures in the texture library;

[0008] Create 3D spatial index and spatial body query: Determine the 3D spatial index grid value Lsp of the pipe point according to the range of all pipe point geometric objects in the pipe point feature class.

[0009]

[0010] Wherein, GJ is all the tube diameter values ​​of the cylinder geometry object set and the cube geometry object set stored in the tube point geometry, min is the minimum value, max is the maximum value, and Np is the total number of the cylinder geometry object set and the cube geometry object set stored in all the tube point geometry;

[0011] According to the spatial reference information, the starting point (CsX, CspY, CspZ) of the pipe point three-dimensional spatial index and the pipe point three-dimensional spatial index grid value Lsp are determined to calculate the pipe point three-dimensional spatial index grid code (BspX, BspY, BspZ).

[0012]

[0013] Among them, Xp, Yp, Zp are the geometric coordinates of the center point of the tube point geometry, CspX, CspY, CspZ are the coordinates of the grid starting point, and Lsp is the grid value;

[0014] Each pipe point geometry has one and only one three-dimensional spatial index grid code, and the spatial index grid code information and geometric position information of the pipe point geometry are stored;

[0015] Determine the pipeline 3D spatial index grid value Lsl based on the range of all pipeline geometry objects in the pipeline feature class.

[0016] Lsl=(avg(LengthX)+avg(LengthY)+avg(LengthZ))×2

[0017] Among them, LengthX, LengthY, LengthZ are the lengths of the pipeline geometry in the X, Y, and Z directions, and avg is the average value;

[0018] Determine the starting point (CslX, CslY, CslZ) of the pipeline 3D spatial index and the pipeline 3D spatial index grid value Lsl according to the spatial reference information and calculate the pipeline 3D spatial index grid encoding set {BslX, BslY, BslZ};

[0019] Each pipeline geometry has one or more three-dimensional space index grid code sets, and stores the three-dimensional space index grid code set information and outsourcing range geometric position information of the pipeline geometry;

[0020] Draw the query geometry to determine the 3D spatial relationship type, obtain the 3D spatial index grid of the query geometry, construct a query statement to filter geometry objects according to the 3D spatial index grid set and the 3D spatial relationship type of the query geometry, and perform 3D spatial relationship judgment on the filtered geometry objects;

[0021] Create a 3D paging index: Calculate the 3D paging index grid code of the pipe point according to the center point position clustering of the pipe point geometry objects in the pipe point feature class; Calculate and store the first-level paging index grid code of the pipeline according to the range and spatial reference information of all pipeline geometry objects in the pipeline feature class; Merge the trunk pipelines, and calculate the paging index grid code of the merged 2D pipeline geometry objects for multiple pipeline geometries on the trunk pipelines with the same pipe diameter information;

[0022] 2D and 3D integrated hierarchical display based on display control script: Create a display control script and set 2D and 3D integrated hierarchical display parameters, schedule 2D pipe point geometry objects and 2D pipeline geometry objects, and display or hide the scheduled 2D pipe point geometry objects and 2D pipeline geometry objects according to the display control script; schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to the display control script.

[0023] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the construction and storage of the pipe network geometric object comprises the following steps:

[0024] Create pipe network dataset: create pipe network dataset;

[0025] Constructing basic component geometry objects: According to the geometric position of the component center point, the geometric position and size of the associated components are combined to construct the basic component geometry objects;

[0026] Construct and store pipe point geometry objects: determine the category of pipe point basic component geometry objects according to the connectivity information of the pipe point, construct pipe point basic component geometry objects according to the geometric position of the pipe point, the diameter information and elevation information of the associated pipeline, and the elevation information of the associated pipe point, read the pipe point's accessory information, feature information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipe point geometry objects and store them in the pipe point feature class;

[0027] Construct and store pipeline geometry objects: determine the category of pipeline basic component geometry objects based on the pipeline diameter information, construct pipeline basic component geometry objects based on the geometric positions of the pipeline start point and end point, read the pipeline flow direction information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipeline geometry objects and store them in the pipeline feature class;

[0028] Store texture library: Store the inner and outer wall textures of pipe point geometry objects and pipeline geometry objects in the texture library.

[0029] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the spatial volume query comprises the following steps:

[0030] Get the 3D spatial index grid of the query geometry: draw the query geometry to determine the 3D spatial relationship type, determine the set of pipe point 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipe point 3D spatial index, and the grid size, and determine the set of pipeline 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipeline 3D spatial index, and the grid size;

[0031] Filter geometric objects: Build a query statement based on the pipe point 3D spatial index grid set and 3D spatial relationship type of the query geometry to query the pipe point feature class, and preliminarily filter out the pipe point geometric objects; build a query statement based on the pipeline 3D spatial index grid set and 3D spatial relationship type of the query geometry to query the pipeline feature class, and preliminarily filter out the pipeline geometric objects;

[0032] Three-dimensional spatial relationship judgment: perform three-dimensional spatial relationship judgment on the screened pipe point geometry objects and the query geometry, and add the set of pipe point geometry objects that are judged to be yes to the query result set; perform three-dimensional spatial relationship judgment on the screened pipeline geometry objects and the query geometry, and add the pipeline geometry objects that are judged to be yes to the query result set.

[0033] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the creation of a three-dimensional paging index comprises the following steps:

[0034] Create a 3D paging index for pipe points: cluster and calculate the 3D paging index grid code for pipe points based on the center point positions of pipe point geometry objects in the pipe point feature class;

[0035] Create a pipeline first-level paging index: determine the pipeline first-level paging index grid value Lrl according to the range of all pipeline geometry objects in the pipeline feature class.

[0036]

[0037] Among them, X, Y, Z are the geometric position coordinates of the center point of the pipeline geometric body, Nl is the number of pipeline geometric bodies,

[0038] Determine the starting point (CrlX, CrlY, CrlZ) of the pipeline first-level paging index according to the spatial reference, and calculate the pipeline first-level paging index grid code Brl1 with the pipeline first-level paging index grid value Lrl;

[0039]

[0040] Among them, Xl, Yl, Zl are the geometric position coordinates of the center point of the pipeline geometry, CrlX, CrlY, CrlZ are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value;

[0041] Each pipeline geometry has only one first-level paging index grid code, and stores the first-level paging index grid code information, geometric position information and attribute information of the pipeline geometry;

[0042] Create pipeline secondary paging index: merge the main pipelines, and generate a new 2D pipeline geometry object from multiple pipeline geometry objects on the main pipeline with the same diameter information. The merged 2D pipeline geometry object is used for paging index calculation and fast rendering, and is not stored in the pipeline feature class. According to the starting point (CrlX, CrlY) of the pipeline primary paging index and the pipeline primary paging index grid value Lrl, calculate the paging index grid code Brl2 of the merged 2D pipeline geometry object;

[0043]

[0044] Among them, Xq, Yq are the position coordinates of the center point of the merged two-dimensional pipeline geometric object, CrlX, CrlY are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value;

[0045] The secondary paging index grid encoding information of the pipeline geometry and the merged two-dimensional pipeline geometry position information are stored.

[0046] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the creation of a three-dimensional paging index of pipe points comprises the following steps:

[0047] Clustering: First, randomly select N pipe point geometry objects as the initial seed cluster centers; then calculate the distance between the center point position of each pipe point geometry object and each seed cluster center, match each pipe point geometry object with its nearest cluster center to form a cluster, and recalculate each cluster center after clustering according to the existing pipe point geometry objects in the cluster until the conditions are met; where N represents a value, and the range of N is 1-50;

[0048] Calculate the 3D paging index grid code of the pipe point geometry: After clustering, calculate the 3D paging index grid code of the pipe point geometry, and determine the pipeline paging index grid value Lrp based on the clustering.

[0049]

[0050] Among them, Distance is the distance between the cluster centers of each cluster, N is the cluster value,

[0051] Determine the starting point (CrpX, CrpY, CrpZ) of the pipe point three-dimensional paging index according to the spatial reference, and calculate the pipe point three-dimensional paging index grid code Brp with the pipeline paging index grid value Lrp;

[0052]

[0053] Among them, Xc, Yc, Zc are the geometric position coordinates of the cluster center of the cluster to which the pipe point geometry belongs, CrpX, CrpY, CrpZ are the grid starting point positions, and Lrp is the grid value;

[0054] Each pipe point geometry has one and only one three-dimensional page index grid code, and the three-dimensional page index grid code information, geometric position information and attribute information of the pipe point geometry are stored.

[0055] The present invention provides a parametric modeling and efficient display method for a pipe network model based on a volume object, wherein the two-dimensional and three-dimensional integrated hierarchical display based on a display control script comprises the following steps:

[0056] Script editing: Create a display control script, in which 2D pipe point geometry objects, 2D pipeline geometry objects, 3D pipe point geometry objects, and 3D pipeline geometry objects are displayed in an integrated hierarchical manner, and set 2D and 3D integrated hierarchical display parameters;

[0057] 2D geometric object display: schedule 2D pipe point geometric objects and 2D pipeline geometric objects, and display or hide the scheduled 2D pipe point geometric objects and 2D pipeline geometric objects according to the display control script;

[0058] 3D model display: schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to display control scripts.

[0059] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the two-dimensional geometric object display comprises the following steps:

[0060] 2D geometric object scheduling: obtain the 3D paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, generate the pipe point geometry object set, the pipeline geometry object set, and the merged 2D pipeline geometry object set, and construct the 2D pipe point geometry object, the 2D pipeline geometry object of the trunk network, and the 2D pipeline geometry object of the branch network;

[0061] Filter and display according to control parameters: Display the two-dimensional pipeline geometric objects of the trunk network and hide the two-dimensional pipeline geometric objects of the branch network at specified distances and heights according to the display control script; display and hide the two-dimensional pipe point geometric objects with accessory information and feature information in specific pipe points at specified distances and heights according to the display control script requirements.

[0062] The present invention provides a parametric modeling and efficient display method of a pipe network model based on a volume object, wherein the three-dimensional model display comprises the following steps:

[0063] Geometry object scheduling: obtain the three-dimensional paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, and generate the pipe point geometry object set and the pipeline geometry object set;

[0064] Constructing a 3D model according to geometric object parameters: extracting basic component geometric objects from the pipe point geometric object set and the pipeline geometric object set, triangulating the cylindrical geometric object, cube geometric object and manhole cover geometric object to construct cylindrical 3D model, cube 3D model and manhole cover 3D model, performing affine transformation on the connected body geometric object to construct a cylindrical 3D model set and a cube 3D model set with different matrix changes, performing affine transformation on the well chamber geometric object to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes, performing affine transformation on the pipe arrangement geometric object to construct a cylindrical 3D model set with different matrix changes, performing affine transformation on the pipe point geometric object set and the pipeline geometric object set to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes;

[0065] Filter the display according to the control parameters: Display and hide the 3D pipe point model at the specified distance and height according to the display control script, and display and hide the 3D pipeline model at the specified distance and height according to the display control script.

[0066] The present invention provides a parametric modeling and efficient display method for a pipe network model based on body objects, wherein: the pipe network geometry object includes: a pipe point geometry object and a pipeline geometry object; the pipe point geometry object is composed of a connected body geometry object or a well chamber geometry object; the connected body geometry object is composed of a cylindrical geometry object and a cube geometry object according to actual pipe network detection data; the well chamber geometry object is composed of a cylindrical geometry object, a cube geometry object, and a manhole cover geometry object according to actual pipe network detection data; the pipeline geometry object is composed of a cylindrical geometry object, a cube geometry object, and a pipe arrangement geometry object. Composition; the pipe arrangement geometry object is composed of a plurality of cylindrical geometry objects according to the actual pipe network detection data; the pipe network data set includes: spatial reference information, pipe point feature class, pipeline feature class, texture library, wherein the pipe point feature class is used to store pipe point geometry objects, wherein the pipeline feature class is used to store pipeline geometry objects; the basic component geometry objects include: cylindrical geometry objects, cube geometry objects, manhole cover geometry objects, connected body geometry objects, well chamber geometry objects and pipe arrangement geometry objects; the pipeline three-dimensional spatial index grid coding set {BslX, BslY, BslZ} covers the pipeline geometry outsourcing range The three-dimensional space grid is used to construct a cube geometric object, and the cube geometric object and the pipeline geometric object are judged to have a three-dimensional spatial intersection relationship. When it is judged to be intersecting, the cube geometric object is recorded; when it is judged to be non-intersecting, the next cube geometric object is constructed and judged until the three-dimensional space grid covered by the last pipeline geometric outsourcing range, and the grid code of the three-dimensional space grid where the cube geometric object is judged to be intersecting is stored in the pipeline three-dimensional space index grid code set {BslX, BslY, BslZ}; the query geometry includes a two-dimensional geometric object or a three-dimensional geometric object; the existing pipe point geometry in the cluster The termination conditions for object recalculation are: determining that the pipe point geometry object is no longer reallocated to different clusters; determining that the cluster center no longer changes position; determining that one of the three conditions is met: the sum of squared errors of the distance from the pipe point geometry object to the cluster center of the cluster to which it belongs is locally minimum; the pipeline geometry includes a first-level paging index grid code or the pipeline geometry includes a first-level paging index grid code and a second-level paging index grid code; the two-dimensional and three-dimensional integrated hierarchical display parameters include: the basis for the two-dimensional and three-dimensional integrated hierarchical display settings, the display status of pipe points and pipelines at specified heights and distances, the symbolization of two-dimensional geometric objects of pipe points and pipelines, and the symbolization of three-dimensional models.

[0067] It can be seen from this that:

[0068] The method for parametric modeling and efficient display of a pipe network model based on a volume object in an embodiment of the present invention can: realize the description of the actual construction of the pipe network in the form of a volume object, which is more accurate and in line with reality; perform parametric modeling according to the geometric position information, attribute information and associated information of pipe points and pipelines, generate a three-dimensional model from the geometric object and share it, reduce the amount of data and improve reading efficiency; create a three-dimensional spatial index for pipe points and pipelines, and improve the speed of spatial body query; when creating a three-dimensional paging index for pipe points, a clustering method is used to calculate the three-dimensional paging index code, and the efficiency of reading the paging index during rendering is improved; create a two-level paging index for the pipeline, the first level uses a three-dimensional paging index, and the second level uses a two-dimensional paging index that merges the main pipeline, supporting the rapid conversion of the pipeline in the scene between the two-dimensional and three-dimensional display; support the display control script to set the display status of the scene pipe points and pipelines, and realize the two-dimensional display, three-dimensional display and non-display of pipe points and pipelines at specific heights and distances, as well as the setting of various display states. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A schematic diagram of the overall process of a volume-based pipe network model parameter modeling and efficient display method provided by an embodiment of the present invention;

[0070] Figure 2 A flow chart of the steps of constructing and storing pipe network geometric body objects in the pipe network model parametric modeling and efficient display method based on body objects provided by an embodiment of the present invention;

[0071] Figure 3 A schematic flow chart of a spatial volume query step in a volume object-based pipe network model parameter modeling and efficient display method provided in an embodiment of the present invention;

[0072] Figure 4 A schematic flow chart of the step of creating a three-dimensional paging index in the parametric modeling and efficient display method of a pipe network model based on a volume object provided by an embodiment of the present invention;

[0073] Figure 5 A schematic flow chart of the step of creating a three-dimensional paging index of pipe points in the parametric modeling and efficient display method of a pipe network model based on a volume object provided by an embodiment of the present invention;

[0074] Figure 6 A schematic flow chart of the steps of two- and three-dimensional integrated hierarchical display based on a display control script in a method for parametric modeling and efficient display of a pipe network model based on a volume object provided by an embodiment of the present invention;

[0075] Figure 7 A schematic flow chart of a two-dimensional geometric object display step in a volume object-based pipe network model parametric modeling and efficient display method provided in an embodiment of the present invention;

[0076] Figure 8 A schematic flow chart of a three-dimensional model display step in a volume-object-based pipe network model parametric modeling and efficient display method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0077] In order to enable those skilled in the art to better understand the present invention, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. The exemplary embodiments and descriptions of the present invention are used to explain the present invention but are not intended to limit the present invention.

[0078] Embodiment 1:

[0079] Figure 1 It provides a parametric modeling and efficient display method for pipe network models based on volume objects, such as Figure 1 As shown, the method includes the following steps: constructing and storing pipe network geometry objects: creating a pipe network dataset, determining and constructing basic component geometry objects according to the connectivity information of the pipe points and the pipe diameter information of the pipelines, reading the attribute information of the pipe points and pipelines to construct pipe point geometry objects and pipeline geometry objects and store them in the pipe point feature class and pipeline feature class, and storing the inner and outer wall textures in the texture library;

[0080] Create 3D spatial index and spatial body query: Determine the 3D spatial index grid value Lsp of the pipe point according to the range of all pipe point geometric objects in the pipe point feature class.

[0081]

[0082] Wherein, GJ is all the tube diameter values ​​of the cylinder geometry object set and the cube geometry object set stored in the tube point geometry, min is the minimum value, max is the maximum value, and Np is the total number of the cylinder geometry object set and the cube geometry object set stored in all the tube point geometry;

[0083] According to the spatial reference information, the starting point (CsX, CspY, CspZ) of the pipe point three-dimensional spatial index and the pipe point three-dimensional spatial index grid value Lsp are determined to calculate the pipe point three-dimensional spatial index grid code (BspX, BspY, BspZ).

[0084]

[0085] Among them, Xp, Yp, Zp are the geometric coordinates of the center point of the tube point geometry, CspX, CspY, CspZ are the coordinates of the grid starting point, and Lsp is the grid value;

[0086] Each pipe point geometry has one and only one three-dimensional spatial index grid code, and the spatial index grid code information and geometric position information of the pipe point geometry are stored;

[0087] Determine the pipeline 3D spatial index grid value Lsl based on the range of all pipeline geometry objects in the pipeline feature class.

[0088] Lsl=(avg(LengthX)+avg(LengthY)+avg(LengthZ))×2

[0089] Among them, LengthX, LengthY, LengthZ are the lengths of the pipeline geometry in the X, Y, and Z directions, and avg is the average value;

[0090] Determine the starting point (CslX, CslY, CslZ) of the pipeline 3D spatial index and the pipeline 3D spatial index grid value Lsl according to the spatial reference information and calculate the pipeline 3D spatial index grid encoding set {BslX, BslY, BslZ};

[0091] Each pipeline geometry has one or more three-dimensional space index grid code sets, and stores the three-dimensional space index grid code set information and outsourcing range geometric position information of the pipeline geometry;

[0092] Draw the query geometry to determine the 3D spatial relationship type, obtain the 3D spatial index grid of the query geometry, construct a query statement to filter geometry objects according to the 3D spatial index grid set and the 3D spatial relationship type of the query geometry, and perform 3D spatial relationship judgment on the filtered geometry objects;

[0093] Create a 3D paging index: Calculate the 3D paging index grid code of the pipe point according to the center point position clustering of the pipe point geometry objects in the pipe point feature class; Calculate and store the first-level paging index grid code of the pipeline according to the range and spatial reference information of all pipeline geometry objects in the pipeline feature class; Merge the trunk pipelines, and calculate the paging index grid code of the merged 2D pipeline geometry objects for multiple pipeline geometries on the trunk pipelines with the same pipe diameter information;

[0094] 2D and 3D integrated hierarchical display based on display control script: Create a display control script and set 2D and 3D integrated hierarchical display parameters, schedule 2D pipe point geometry objects and 2D pipeline geometry objects, and display or hide the scheduled 2D pipe point geometry objects and 2D pipeline geometry objects according to the display control script; schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to the display control script.

[0095] like Figure 2 As shown, the parametric modeling and efficient display method of the pipe network model based on the body object, the construction and storage of the pipe network geometric body object includes the following steps:

[0096] Create pipe network dataset: create pipe network dataset;

[0097] Constructing basic component geometry objects: According to the geometric position of the component center point, the geometric position and size of the associated components are combined to construct the basic component geometry objects;

[0098] Construct and store pipe point geometry objects: determine the category of pipe point basic component geometry objects according to the connectivity information of the pipe point, construct pipe point basic component geometry objects according to the geometric position of the pipe point, the diameter information and elevation information of the associated pipeline, and the elevation information of the associated pipe point, read the pipe point's accessory information, feature information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipe point geometry objects and store them in the pipe point feature class;

[0099] Construct and store pipeline geometry objects: determine the category of pipeline basic component geometry objects based on the pipeline diameter information, construct pipeline basic component geometry objects based on the geometric positions of the pipeline start point and end point, read the pipeline flow direction information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipeline geometry objects and store them in the pipeline feature class;

[0100] Store texture library: Store the inner and outer wall textures of pipe point geometry objects and pipeline geometry objects in the texture library.

[0101] like Figure 3 As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the spatial volume query includes the following steps:

[0102] Get the 3D spatial index grid of the query geometry: draw the query geometry to determine the 3D spatial relationship type, determine the set of pipe point 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipe point 3D spatial index, and the grid size, and determine the set of pipeline 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipeline 3D spatial index, and the grid size;

[0103] Filter geometric objects: Build a query statement based on the pipe point 3D spatial index grid set and 3D spatial relationship type of the query geometry to query the pipe point feature class, and preliminarily filter out the pipe point geometric objects; build a query statement based on the pipeline 3D spatial index grid set and 3D spatial relationship type of the query geometry to query the pipeline feature class, and preliminarily filter out the pipeline geometric objects;

[0104] Three-dimensional spatial relationship judgment: perform three-dimensional spatial relationship judgment on the screened pipe point geometry objects and the query geometry, and add the set of pipe point geometry objects that are judged to be yes to the query result set; perform three-dimensional spatial relationship judgment on the screened pipeline geometry objects and the query geometry, and add the pipeline geometry objects that are judged to be yes to the query result set.

[0105] like Figure 4 As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the creation of the three-dimensional paging index includes the following steps:

[0106] Create a 3D paging index for pipe points: cluster and calculate the 3D paging index grid code for pipe points based on the center point positions of pipe point geometry objects in the pipe point feature class;

[0107] Create a pipeline first-level paging index: determine the pipeline first-level paging index grid value Lrl according to the range of all pipeline geometry objects in the pipeline feature class.

[0108]

[0109] Among them, X, Y, Z are the geometric position coordinates of the center point of the pipeline geometric body, and N is the number of pipeline geometric bodies.

[0110] Determine the starting point (CrlX, CrlY, CrlZ) of the pipeline first-level paging index according to the spatial reference, and calculate the pipeline first-level paging index grid code Brl1 with the pipeline first-level paging index grid value Lrl;

[0111]

[0112] Among them, X, Y, Z are the geometric position coordinates of the center point of the pipeline geometry, CrlX, CrlY, CrlZ are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value;

[0113] Each pipeline geometry has only one first-level paging index grid code, and stores the first-level paging index grid code information, geometric position information and attribute information of the pipeline geometry;

[0114] Create pipeline secondary paging index: merge the main pipelines, and generate a new 2D pipeline geometry object from multiple pipeline geometry objects on the main pipeline with the same diameter information. The merged 2D pipeline geometry object is used for paging index calculation and fast rendering, and is not stored in the pipeline feature class. According to the starting point (CrlX, CrlY) of the pipeline primary paging index and the pipeline primary paging index grid value Lrl, calculate the paging index grid code Brl2 of the merged 2D pipeline geometry object;

[0115]

[0116] Among them, Xq, Yq are the position coordinates of the center point of the merged two-dimensional pipeline geometric object, CrlX, CrlY are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value;

[0117] The secondary paging index grid encoding information of the pipeline geometry and the merged two-dimensional pipeline geometry position information are stored.

[0118] like Figure 5 As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the creation of the three-dimensional paging index of the pipe point includes the following steps:

[0119] Clustering: First, randomly select N pipe point geometry objects as the initial seed cluster centers; then calculate the distance between the center point position of each pipe point geometry object and each seed cluster center, match each pipe point geometry object with its nearest cluster center to form a cluster, and recalculate each cluster center after clustering according to the existing pipe point geometry objects in the cluster until the conditions are met; where N represents a value, and the range of N is 1-50;

[0120] Calculate the 3D paging index grid code of the pipe point geometry: After clustering, calculate the 3D paging index grid code of the pipe point geometry, and determine the pipeline paging index grid value Lrp based on the clustering.

[0121]

[0122] Among them, Distance is the distance between the cluster centers of each cluster, N is the cluster value,

[0123] Determine the starting point (CrpX, CrpY, CrpZ) of the pipe point three-dimensional paging index according to the spatial reference, and calculate the pipe point three-dimensional paging index grid code Brp with the pipeline paging index grid value Lrp;

[0124]

[0125] Among them, Xc, Yc, Zc are the geometric position coordinates of the cluster center of the cluster to which the pipe point geometry belongs, CrpX, CrpY, CrpZ are the grid starting point positions, and Lrp is the grid value;

[0126] Each pipe point geometry has one and only one three-dimensional page index grid code, and the three-dimensional page index grid code information, geometric position information and attribute information of the pipe point geometry are stored.

[0127] like Figure 6As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the two-dimensional and three-dimensional integrated hierarchical display based on the display control script includes the following steps:

[0128] Script editing: Create a display control script, in which 2D pipe point geometry objects, 2D pipeline geometry objects, 3D pipe point geometry objects, and 3D pipeline geometry objects are displayed in an integrated hierarchical manner, and set 2D and 3D integrated hierarchical display parameters;

[0129] 2D geometric object display: schedule 2D pipe point geometric objects and 2D pipeline geometric objects, and display or hide the scheduled 2D pipe point geometric objects and 2D pipeline geometric objects according to the display control script;

[0130] 3D model display: schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to display control scripts.

[0131] like Figure 7 As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the two-dimensional geometric object display includes the following steps:

[0132] 2D geometric object scheduling: obtain the 3D paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, generate the pipe point geometry object set, the pipeline geometry object set, and the merged 2D pipeline geometry object set, and construct the 2D pipe point geometry object, the 2D pipeline geometry object of the trunk network, and the 2D pipeline geometry object of the branch network;

[0133] Filter and display according to control parameters: Display the two-dimensional pipeline geometric objects of the trunk network and hide the two-dimensional pipeline geometric objects of the branch network at specified distances and heights according to the display control script; display and hide the two-dimensional pipe point geometric objects with accessory information and feature information in specific pipe points at specified distances and heights according to the display control script requirements.

[0134] like Figure 8 As shown, the parametric modeling and efficient display method of the pipe network model based on the volume object, the three-dimensional model display includes the following steps:

[0135] Geometry object scheduling: obtain the three-dimensional paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, and generate the pipe point geometry object set and the pipeline geometry object set;

[0136] Constructing a 3D model according to geometric object parameters: extracting basic component geometric objects from the pipe point geometric object set and the pipeline geometric object set, triangulating the cylindrical geometric object, cube geometric object and manhole cover geometric object to construct cylindrical 3D model, cube 3D model and manhole cover 3D model, performing affine transformation on the connected body geometric object to construct a cylindrical 3D model set and a cube 3D model set with different matrix changes, performing affine transformation on the well chamber geometric object to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes, performing affine transformation on the pipe arrangement geometric object to construct a cylindrical 3D model set with different matrix changes, performing affine transformation on the pipe point geometric object set and the pipeline geometric object set to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes;

[0137] Filter the display according to the control parameters: Display and hide the 3D pipe point model at the specified distance and height according to the display control script, and display and hide the 3D pipeline model at the specified distance and height according to the display control script.

[0138] In the specific implementation case: the pipe network geometry object includes: pipe point geometry object and pipeline geometry object; the pipe point geometry object is composed of a connected body geometry object or a well chamber geometry object; the connected body geometry object is composed of a cylindrical geometry object and a cube geometry object according to the actual pipe network detection data; the well chamber geometry object is composed of a cylindrical geometry object, a cube geometry object, and a manhole cover geometry object according to the actual pipe network detection data; the pipeline geometry object is composed of a cylindrical geometry object, a cube geometry object, and a pipe arrangement geometry object; the pipe arrangement geometry object is composed of a cylindrical geometry object, a cube geometry object, and a pipe arrangement geometry object according to the actual pipe network detection data. The network detection data is composed of a plurality of cylindrical geometric objects; the pipeline network data set includes: spatial reference information, pipe point feature class, pipeline feature class, texture library, wherein the pipe point feature class is used to store pipe point geometric objects, wherein the pipeline feature class is used to store pipeline geometric objects; the basic component geometric objects include: cylindrical geometric objects, cube geometric objects, manhole cover geometric objects, connected body geometric objects, well chamber geometric objects and pipe row geometric objects; the pipeline three-dimensional space index grid coding set {BslX, BslY, BslZ} performs cube geometry on the three-dimensional space grid covered by the pipeline geometric outsourcing range. The cube geometric object and the pipeline geometric object are constructed, and the three-dimensional space intersection relationship is judged. If it is judged to be intersecting, the cube geometric object is recorded; if it is judged to be non-intersecting, the next cube geometric object is constructed and judged until the three-dimensional space grid covered by the last pipeline geometric outsourcing range, and the grid code of the three-dimensional space grid where the cube geometric object is judged to be intersecting is stored in the pipeline three-dimensional space index grid code set {BslX, BslY, BslZ}; the query geometry includes a two-dimensional geometric object or a three-dimensional geometric object; the existing pipe point geometric objects in the cluster are re- The calculation termination conditions are: determining that the pipe point geometry object is no longer reallocated to different clusters; determining that the cluster center no longer changes position; determining that one of the three conditions is met: the sum of squared errors of the distance from the pipe point geometry object to the cluster center of the cluster to which it belongs is locally minimum; the pipeline geometry includes a first-level paging index grid code or the pipeline geometry includes a first-level paging index grid code and a second-level paging index grid code; the two-dimensional and three-dimensional integrated hierarchical display parameters include: the basis for the two-dimensional and three-dimensional integrated hierarchical display settings, the display status of pipe points and pipelines at specified heights and distances, the symbolization of two-dimensional geometry objects of pipe points and pipelines, and the symbolization of three-dimensional models.

[0139] It can be seen that the parametric modeling and efficient display method of the pipe network model based on body objects in the embodiment of the present invention can realize the description of the actual construction situation of the pipe network in the form of body objects, which is more accurate and in line with reality; parametric modeling is performed according to the geometric position information, attribute information and related information of the pipe points and pipelines, and the geometric body objects are generated into three-dimensional models and shared, thereby reducing the amount of data and improving the reading efficiency; three-dimensional spatial indexes are created for the pipe points and pipelines to improve the speed of spatial body query; when creating three-dimensional paging indexes for the pipe points, the three-dimensional paging index codes are calculated in a clustering manner to improve the efficiency of reading the paging index during rendering; two-level paging indexes are created for the pipelines, the first level uses three-dimensional paging indexes, and the second level uses two-dimensional paging indexes that merge the main pipelines, supporting the rapid conversion of the pipelines in the scene between two-dimensional and three-dimensional displays; the display control script is supported to set the display conditions of the scene pipe points and pipelines, realizing the two-dimensional display, three-dimensional display and non-display of the pipe points and pipelines at specific heights and distances, as well as the setting of various display states.

[0140] The following is an example of a specific implementation:

[0141] The parametric modeling and efficient display method of the pipe network model can be used to perform body-object-based parametric modeling and efficient display on communication pipe network data, power pipe network data, water supply pipe network data, drainage pipe network data, gas pipe network data, thermal pipe network data, and industrial pipe network data.

[0142] In the specific embodiment, the power pipeline network is taken as an example.

[0143] First, construct and store the pipe network geometry objects. Collect the power pipe network detection data of a certain area, create a power pipe network dataset, construct the basic component geometry objects, construct the power pipe point geometry objects and store them in the power pipe point feature class, construct the power pipeline geometry objects and store them in the power pipeline feature class, and store the inner and outer wall textures in the texture library.

[0144] Secondly, create a 3D spatial index and spatial body query. Calculate and store the 3D spatial index grid code of the power pipe point; calculate and store the 3D spatial index grid code set of the power pipeline; draw the query geometry to determine the 3D spatial relationship type, construct a query statement to filter the geometry objects, and judge the 3D spatial relationship of the filtered geometry objects.

[0145] Next, create a three-dimensional paging index, calculate the three-dimensional paging index grid code of the power pipe point, calculate and store the first-level paging index grid code of the power pipeline, and calculate and store the paging index grid code of the merged two-dimensional power pipeline geometric object.

[0146] Finally, based on the display control script, the 2D and 3D integrated hierarchical display is created. The display control script is created and the 2D and 3D integrated hierarchical display parameters are set to schedule, display, and hide the 2D pipe point geometry objects and 2D pipeline geometry objects; the 3D pipe point geometry objects and 3D pipeline geometry objects are scheduled to build a 3D model for display and hiding.

[0147] In a specific embodiment, the steps of constructing and storing the pipe network geometry object may be specifically as follows:

[0148] 1) Create a pipeline network dataset: store the spatial reference information of the power pipeline network data collected in the field, and create power pipe point feature classes, power pipeline feature classes, and texture libraries.

[0149] 2) Construct geometric objects of basic components of pipe points: determine and construct cylindrical geometric objects and cube geometric objects according to the pipe diameter information of the associated pipeline of the power pipe point, determine and construct the manhole cover geometric object according to the manhole cover information of the power pipe point, combine the cylindrical geometric objects and cube geometric objects into a connected geometric object according to the connectivity information, center point geometric position, elevation information of the power pipe point and the geometric position and elevation information of the power pipe point at the other end of the associated pipeline, and combine the cylindrical geometric objects, cube geometric objects and manhole cover geometric objects into a well chamber geometric object according to the cable well information.

[0150] 3) Construct geometric objects of pipeline basic components: Determine and construct cylindrical geometric objects and cube geometric objects based on the pipe diameter information and geometric position information of the power pipeline, and combine the cylindrical geometric objects into pipe geometry objects based on the cable pipe information.

[0151] 4) Construct and store pipe point geometry objects: Based on the constructed connected body geometry object or well chamber geometry object of the power pipe point, read the accessory information, feature information, inner and outer wall texture information, inner and outer wall color information of the power pipe point to construct the pipe point geometry object and store it in the pipe point feature class.

[0152] 5) Construct and store pipeline geometry objects: Based on the constructed power pipeline column geometry object, cube geometry object, and pipe geometry object, read the pipeline flow direction information, pipeline category information, inner and outer wall texture information, and inner and outer wall color information to construct the pipeline geometry object and store it in the pipeline feature class.

[0153] 6) Storing the texture library: storing the inner and outer wall textures of the pipe point geometry object and the pipeline geometry object in the texture library.

[0154] In a specific embodiment, the steps of creating a three-dimensional spatial index and spatial volume query may be:

[0155] 1) Create a three-dimensional spatial index of the pipe point: determine the three-dimensional spatial index grid value Lsp of the pipe point according to the range of all the geometric objects of the power pipe point in the power pipe point feature class.

[0156]

[0157] Wherein, GJ is all the pipe diameter values ​​of the cylinder geometry object set and the cube geometry object set stored in the power pipe point geometry, min is the minimum value, max is the maximum value, and Np is the total number of the cylinder geometry object set and the cube geometry object set stored in all the power pipe point geometries;

[0158] According to the spatial reference information, the starting point (CsX, CspY, CspZ) of the three-dimensional spatial index of the power control point and the grid value Lsp of the three-dimensional spatial index of the power control point are determined to calculate the grid code (BspX, BspY, BspZ) of the three-dimensional spatial index of the power control point.

[0159]

[0160] Among them, Xp, Yp, Zp are the geometric coordinates of the center point of the power pipe point geometry, CspX, CspY, CspZ are the coordinates of the grid starting point, and Lsp is the grid value;

[0161] Each power management point geometry has one and only one three-dimensional spatial index grid code, and the spatial index grid code information and geometric position information of the power management point geometry are stored.

[0162] 2) Create pipeline 3D spatial index: Determine the pipeline 3D spatial index grid value Lsl according to the range of all power pipeline geometric objects in the power pipeline feature class.

[0163] Lsl=(avg(LengthX)+avg(LengthY)+avg(LengthZ))×2

[0164] Among them, LengthX, LengthY, LengthZ are the lengths of the pipeline geometry in the X, Y, and Z directions, and avg is the average value;

[0165] A cube geometric object is constructed for the three-dimensional space grid covered by the outer scope of the power pipeline geometry, and the cube geometric object and the power pipeline geometry object are judged for the three-dimensional spatial intersection relationship. When it is judged to be intersecting, the cube geometric object is recorded; when it is judged to be non-intersecting, the next cube geometric object is constructed and judged until the last three-dimensional space grid covered by the outer scope of the pipeline geometry, and the starting point (CslX, CslY, CslZ) of the pipeline three-dimensional space index and the pipeline three-dimensional space index grid value Lsl are determined according to the spatial reference information, and the grid code of the three-dimensional space grid where the cube geometric object is judged to be intersecting is calculated and stored in the pipeline three-dimensional space index grid code set {BslX, BslY, BslZ};

[0166] Each power pipeline geometry has one or more three-dimensional space index grid code sets, and stores the three-dimensional space index grid code set information and outsourcing range geometric position information of the pipeline geometry.

[0167] 3) Draw the query geometry: Draw the query geometry according to the actual production needs. It can be a two-dimensional geometric object or a three-dimensional geometric object, and determine the three-dimensional spatial relationship type.

[0168] 4) Obtain the three-dimensional spatial index grid of the query geometry: determine the set of three-dimensional spatial index grids of the power points covered by the query geometry according to the outer scope of the query geometry, the starting point position of the three-dimensional spatial index of the power points, and the grid size.

[0169] 5) Obtain the pipeline 3D spatial index grid of the query geometry: determine the power pipeline 3D spatial index grid set covered by the query geometry according to the outer scope of the query geometry, the starting point position of the power pipeline 3D spatial index, and the grid size.

[0170] 6) Filtering pipe point geometry objects: Constructing a query statement based on the pipe point three-dimensional spatial index grid set and three-dimensional spatial relationship type of the query geometry to query the pipe point feature class, and preliminarily filtering out the power pipe point geometry objects.

[0171] 7) Filter pipeline geometry objects: Construct a query statement based on the pipeline 3D spatial index grid set and 3D spatial relationship type of the query geometry to query the pipeline feature class, and preliminarily filter out the power pipeline geometry objects.

[0172] 8) Three-dimensional spatial relationship judgment: perform three-dimensional spatial relationship judgment on the screened power pipe point geometry objects and the query geometry, and add the power pipe point geometry objects that are judged to be yes to the query result set; perform three-dimensional spatial relationship judgment on the screened power pipeline geometry objects and the query geometry, and add the power pipeline geometry objects that are judged to be yes to the query result set.

[0173] In a specific embodiment, the steps of creating a three-dimensional paging index may be:

[0174] 1) Clustering of control point geometry objects: Open the power control point feature class, and randomly select N control point geometry objects as the initial seed cluster centers; then calculate the distance between the center point position of each power control point geometry object and each seed cluster center, match each power control point geometry object with its nearest cluster center to form a cluster, and recalculate each cluster center after clustering according to the existing power control point geometry objects in the cluster until one of the three conditions is met; where N represents a numerical value, and the range of N is 1-50. The three conditions are to determine that the control point geometry object is no longer reallocated to different clusters, to determine that the cluster center no longer changes position, and to determine that the sum of squared errors of the distance from the control point geometry object to the cluster center of the cluster to which it belongs is locally minimum.

[0175] 2) Create a three-dimensional paging index for the pipe point: After clustering, calculate the three-dimensional paging index grid code for the power pipe point geometry, and determine the pipeline paging index grid value Lrp based on the clustering.

[0176]

[0177] Among them, Distance is the distance between the cluster centers of each cluster, N is the cluster value,

[0178] Determine the starting point (CrpX, CrpY, CrpZ) of the pipe point three-dimensional paging index according to the spatial reference, and calculate the pipe point three-dimensional paging index grid code Brp with the pipeline paging index grid value Lrp;

[0179]

[0180] Among them, Xc, Yc, and Zc are the geometric position coordinates of the cluster center of the cluster to which the power pipe point geometry belongs, CrpX, CrpY, and CrpZ are the grid starting point positions, and Lrp is the grid value;

[0181] Each power management point geometry has one and only one three-dimensional page index grid code, and the three-dimensional page index grid code information, geometric position information and attribute information of the power management point geometry are stored.

[0182] 3) Create a pipeline first-level paging index: Open the power pipeline feature class, and determine the pipeline first-level paging index grid value Lrl according to the range of all power pipeline geometric objects.

[0183]

[0184] Among them, Xl, Yl, Zl are the geometric position coordinates of the center point of the power pipeline geometric body, Nl is the number of power pipeline geometric bodies,

[0185] Determine the starting point (CrlX, CrlY, CrlZ) of the pipeline first-level paging index according to the spatial reference, and calculate the pipeline first-level paging index grid code Brl1 with the pipeline first-level paging index grid value Lrl;

[0186]

[0187] Among them, Xl, Yl, Zl are the geometric position coordinates of the center point of the power pipeline geometry, CrlX, CrlY, CrlZ are the starting point positions of the first-level paging index of the pipeline, and Lrl is the grid value of the first-level paging index of the pipeline;

[0188] Each power pipeline geometry has one and only one first-level paging index grid code, and the first-level paging index grid code information, geometric position information and attribute information of the power pipeline geometry are stored.

[0189] 4) Trunk pipeline merging processing: Combined with the road information of the power pipeline network in the actual production process, multiple power pipeline geometry objects on the trunk power pipeline with the same pipe diameter information are used to generate a new two-dimensional power pipeline geometry object. The merged two-dimensional power pipeline geometry object is used for paging index calculation and fast rendering, and is not stored in the pipeline feature class.

[0190] 5) Create a pipeline secondary paging index: According to the starting point (CrlX, CrlY) of the pipeline primary paging index and the pipeline primary paging index grid value Lrl, calculate the paging index grid code Brl2 of the merged two-dimensional power pipeline geometric object;

[0191]

[0192] Among them, Xq, Yq are the position coordinates of the center point of the merged two-dimensional power pipeline geometric object, CrlX, CrlY are the starting point positions of the pipeline first-level paging index, and Lrl is the grid value of the pipeline first-level paging index;

[0193] The secondary page index grid encoding information of the power pipeline geometry and the merged two-dimensional pipeline geometry position information are stored.

[0194] In a specific embodiment, the steps of the two-dimensional and three-dimensional integrated hierarchical display based on the display control script can be specifically as follows:

[0195] 1) Script editing: Create a display control script and set the 2D and 3D integrated hierarchical display parameters, where the 2D and 3D integrated hierarchical display parameters include the basis for the 2D and 3D integrated hierarchical display settings, the display status of pipe points and pipelines at specified heights and distances, the symbolization of 2D geometric objects of pipe points and pipelines, and the symbolization of 3D models.

[0196] 2) Scheduling of two-dimensional geometric objects: Obtain the three-dimensional paging index of power pipe points, the first-level paging index of power pipelines, and the second-level paging index of power pipelines, generate a set of power pipe point geometry objects, a set of power pipeline geometry objects, and a merged set of two-dimensional power pipeline geometry objects, and construct two-dimensional pipe point geometry objects, two-dimensional pipeline geometry objects of the trunk network, and two-dimensional pipeline geometry objects of the branch network.

[0197] 3) Filtered display of two-dimensional geometric objects: According to the display control script, the display of the two-dimensional pipeline geometric objects of the trunk network and the hiding of the two-dimensional pipeline geometric objects of the branch network at the specified distance and height are realized. According to the requirements of the display control script, the display and hiding of the two-dimensional pipe point geometric objects with accessory information and feature information in specific pipe points at the specified distance and height are realized.

[0198] 4) 3D geometric object scheduling: obtain the 3D paging index of the power management point, the first-level paging index of the power pipeline, and the second-level paging index of the power pipeline, and generate the power management point geometric object set and the power pipeline geometric object set.

[0199] 5) Construct a three-dimensional model based on geometric object parameters: extract basic component geometric objects from the pipe point geometric object set and the pipeline geometric object set, triangulate the cylindrical geometric objects, cube geometric objects and manhole cover geometric objects to construct cylindrical three-dimensional models, cube three-dimensional models and manhole cover three-dimensional models, perform affine transformation on the connected body geometric objects to construct a cylindrical three-dimensional model set and a cube three-dimensional model set with different matrix changes, perform affine transformation on the well chamber geometric objects to construct a cylindrical three-dimensional model set, cube three-dimensional model set and manhole cover three-dimensional model set with different matrix changes, perform affine transformation on the pipe geometry objects to construct a cylindrical three-dimensional model set with different matrix changes, perform affine transformation on the pipe arrangement geometric objects to construct a cylindrical three-dimensional model set with different matrix changes, perform affine transformation on the pipe point geometric object set and the pipeline geometric object set to construct a cylindrical three-dimensional model set, cube three-dimensional model set and manhole cover three-dimensional model set with different matrix changes.

[0200] 6) 3D model filtering display: Display and hide the 3D pipe point model at the specified distance and height according to the display control script, and display and hide the 3D pipeline model at the specified distance and height according to the display control script.

[0201] Although the embodiments of the present invention have been described by way of example, those skilled in the art will appreciate that there are many modifications and variations of the present invention without departing from the spirit of the present invention. It is intended that the appended claims include these modifications and variations without departing from the spirit of the present invention.

Claims

1. A parametric modeling and efficient display method of a pipe network model based on a volume object, characterized in that: The method comprises the following steps: Construct and store pipe network geometry objects: Create a pipe network dataset, determine and construct basic component geometry objects based on the connectivity information of pipe points and the diameter information of pipelines, read the attribute information of pipe points and pipelines to construct pipe point geometry objects and pipeline geometry objects and store them in pipe point feature classes and pipeline feature classes, and store the inner and outer wall textures in the texture library; Create 3D spatial index and spatial body query: Determine the 3D spatial index grid value Lsp of the pipe point according to the range of all pipe point geometric objects in the pipe point feature class. Wherein, GJ is all the tube diameter values ​​of the cylinder geometry object set and the cube geometry object set stored in the tube point geometry, min is the minimum value, max is the maximum value, and Np is the total number of the cylinder geometry object set and the cube geometry object set stored in all the tube point geometry; According to the spatial reference information, the starting point (CsX, CspY, CspZ) of the pipe point three-dimensional spatial index and the pipe point three-dimensional spatial index grid value Lsp are determined to calculate the pipe point three-dimensional spatial index grid code (BspX, BspY, BspZ). Among them, Xp, Yp, Zp are the geometric coordinates of the center point of the tube point geometry, CspX, CspY, CspZ are the coordinates of the grid starting point, and Lsp is the grid value; Each pipe point geometry has one and only one three-dimensional spatial index grid code, and the spatial index grid code information and geometric position information of the pipe point geometry are stored; Determine the pipeline 3D spatial index grid value Lsl based on the range of all pipeline geometry objects in the pipeline feature class. Lsl=(avg(LengthX)+avg(LengthY)+avg(LengthZ))×2 Among them, LengthX, LengthY, LengthZ are the lengths of the pipeline geometry in the X, Y, and Z directions, and avg is the average value; Determine the starting point (CslX, CslY, CslZ) of the pipeline 3D spatial index and the pipeline 3D spatial index grid value Lsl according to the spatial reference information and calculate the pipeline 3D spatial index grid encoding set {BslX, BslY, BslZ}; Each pipeline geometry has one or more three-dimensional space index grid code sets, and stores the three-dimensional space index grid code set information and outsourcing range geometric position information of the pipeline geometry; Draw the query geometry to determine the 3D spatial relationship type, obtain the 3D spatial index grid of the query geometry, construct a query statement to filter geometry objects according to the 3D spatial index grid set and the 3D spatial relationship type of the query geometry, and perform 3D spatial relationship judgment on the filtered geometry objects; Create a 3D paging index: Calculate the 3D paging index grid code of the pipe point according to the center point position clustering of the pipe point geometry objects in the pipe point feature class; Calculate and store the first-level paging index grid code of the pipeline according to the range and spatial reference information of all pipeline geometry objects in the pipeline feature class; Merge the trunk pipelines, and calculate the paging index grid code of the merged 2D pipeline geometry objects for multiple pipeline geometries on the trunk pipelines with the same pipe diameter information; 2D and 3D integrated hierarchical display based on display control script: Create a display control script and set 2D and 3D integrated hierarchical display parameters, schedule 2D pipe point geometry objects and 2D pipeline geometry objects, and display or hide the scheduled 2D pipe point geometry objects and 2D pipeline geometry objects according to the display control script; schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to the display control script.

2. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 1, characterized in that: The construction and storage of the pipe network geometry object comprises the following steps: Create pipe network dataset: create pipe network dataset; Constructing basic component geometry objects: According to the geometric position of the component center point, the geometric position and size of the associated components are combined to construct the basic component geometry objects; Construct and store pipe point geometry objects: determine the category of pipe point basic component geometry objects according to the connectivity information of the pipe point, construct pipe point basic component geometry objects according to the geometric position of the pipe point, the diameter information and elevation information of the associated pipeline, and the elevation information of the associated pipe point, read the pipe point's accessory information, feature information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipe point geometry objects and store them in the pipe point feature class; Construct and store pipeline geometry objects: determine the category of pipeline basic component geometry objects based on the pipeline diameter information, construct pipeline basic component geometry objects based on the geometric positions of the pipeline start point and end point, read the pipeline flow direction information, pipeline category information, inner and outer wall texture information, inner and outer wall color information to construct pipeline geometry objects and store them in the pipeline feature class; Storing texture library: storing the inner and outer wall textures of the pipe point geometry objects and pipeline geometry objects in the texture library.

3. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 1, characterized in that: The spatial volume query comprises the following steps: Get the 3D spatial index grid of the query geometry: draw the query geometry to determine the 3D spatial relationship type, determine the set of pipe point 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipe point 3D spatial index, and the grid size, and determine the set of pipeline 3D spatial index grids covered by the query geometry according to the outer scope of the query geometry, the starting point position of the pipeline 3D spatial index, and the grid size; Filtering geometric objects: Constructing a query statement based on the three-dimensional spatial index grid set and three-dimensional spatial relationship type of the query geometry to query the pipe point feature class, and preliminarily filtering out pipe point geometric objects; According to the pipeline 3D spatial index grid set and 3D spatial relationship type of the query geometry, a query statement is constructed to query the pipeline feature class, and the pipeline geometry objects are preliminarily screened out; 3D spatial relationship judgment: the 3D spatial relationship judgment is performed on the selected pipe point geometry objects and the query geometry, and the set of pipe point geometry objects judged to be yes is added to the query result set; The three-dimensional spatial relationship between the screened pipeline geometry objects and the query geometry is judged, and the pipeline geometry objects judged to be correct are added to the query result set.

4. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 1, characterized in that: The creation of a three-dimensional paging index comprises the following steps: Create a 3D paging index for pipe points: cluster and calculate the 3D paging index grid code for pipe points based on the center point positions of pipe point geometry objects in the pipe point feature class; Create a pipeline first-level paging index: determine the pipeline first-level paging index grid value Lrl according to the range of all pipeline geometry objects in the pipeline feature class. Among them, Xl, Yl, Zl are the geometric position coordinates of the center point of the pipeline geometric body, Nl is the number of pipeline geometric bodies, Determine the starting point (CrlX, CrlY, CrlZ) of the pipeline first-level paging index according to the spatial reference, and calculate the pipeline first-level paging index grid code Brl1 with the pipeline first-level paging index grid value Lrl; Among them, Xl, Yl, Zl are the geometric position coordinates of the center point of the pipeline geometry, CrlX, CrlY, CrlZ are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value; Each pipeline geometry has only one first-level paging index grid code, and stores the first-level paging index grid code information, geometric position information and attribute information of the pipeline geometry; Create pipeline secondary paging index: merge the main pipelines, and generate a new 2D pipeline geometry object from multiple pipeline geometry objects on the main pipeline with the same pipe diameter information; the merged 2D pipeline geometry object is used for paging index calculation and fast rendering, and is not stored in the pipeline feature class; calculate the paging index grid code Brl2 of the merged 2D pipeline geometry object according to the starting point (CrlX, CrlY) of the pipeline primary paging index and the pipeline primary paging index grid value Lrl; Among them, Xq, Yq are the position coordinates of the center point of the merged two-dimensional pipeline geometric object, CrlX, CrlY are the starting point positions of the pipeline first-level paging index, and Lrl is the pipeline first-level paging index grid value; The secondary paging index grid encoding information of the pipeline geometry and the merged two-dimensional pipeline geometry position information are stored.

5. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 4 is characterized in that: The step of creating a three-dimensional paging index of a pipe point includes the following steps: Clustering: First, randomly select N pipe point geometry objects as the initial seed cluster centers; then calculate the distance between the center point position of each pipe point geometry object and each seed cluster center, match each pipe point geometry object with its nearest cluster center to form a cluster, and recalculate each cluster center after clustering according to the existing pipe point geometry objects in the cluster until the conditions are met; where N represents a value, and the range of N is 1-50; Calculate the 3D paging index grid code of the pipe point geometry: After clustering, calculate the 3D paging index grid code of the pipe point geometry, and determine the pipeline paging index grid value Lrp based on the clustering. Among them, Distance is the distance between the cluster centers of each cluster, N is the cluster value, Determine the starting point (CrpX, CrpY, CrpZ) of the pipe point three-dimensional paging index according to the spatial reference, and calculate the pipe point three-dimensional paging index grid code Brp with the pipeline paging index grid value Lrp; Among them, Xc, Yc, Zc are the geometric position coordinates of the cluster center of the cluster to which the pipe point geometry belongs, CrpX, CrpY, CrpZ are the grid starting point positions, and Lrp is the grid value; Each pipe point geometry has one and only one three-dimensional page index grid code, and the three-dimensional page index grid code information, geometric position information and attribute information of the pipe point geometry are stored.

6. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 1, characterized in that: The two-dimensional and three-dimensional integrated hierarchical display based on the display control script includes the following steps: Script editing: Create a display control script, in which 2D pipe point geometry objects, 2D pipeline geometry objects, 3D pipe point geometry objects, and 3D pipeline geometry objects are displayed in an integrated hierarchical manner, and set 2D and 3D integrated hierarchical display parameters; 2D geometric object display: schedule 2D pipe point geometric objects and 2D pipeline geometric objects, and display or hide the scheduled 2D pipe point geometric objects and 2D pipeline geometric objects according to the display control script; 3D model display: schedule 3D pipe point geometry objects and 3D pipeline geometry objects, build 3D models according to geometry object parameters, and display or hide 3D pipe point models and 3D pipeline models according to display control scripts.

7. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 6, characterized in that: The two-dimensional geometric object display comprises the following steps: 2D geometric object scheduling: obtain the 3D paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, generate the pipe point geometry object set, the pipeline geometry object set, and the merged 2D pipeline geometry object set, and construct the 2D pipe point geometry object, the 2D pipeline geometry object of the trunk network, and the 2D pipeline geometry object of the branch network; Filter and display according to control parameters: Display the two-dimensional pipeline geometric objects of the trunk network and hide the two-dimensional pipeline geometric objects of the branch network at specified distances and heights according to the display control script; display and hide the two-dimensional pipe point geometric objects with accessory information and feature information in specific pipe points at specified distances and heights according to the display control script requirements.

8. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to claim 6, characterized in that: The three-dimensional model display comprises the following steps: Geometry object scheduling: obtain the three-dimensional paging index of the pipe point, the first-level paging index of the pipeline, and the second-level paging index of the pipeline, and generate the pipe point geometry object set and the pipeline geometry object set; Constructing a 3D model according to geometric object parameters: extracting basic component geometric objects from the pipe point geometric object set and the pipeline geometric object set, triangulating the cylindrical geometric object, cube geometric object and manhole cover geometric object to construct cylindrical 3D model, cube 3D model and manhole cover 3D model, performing affine transformation on the connected body geometric object to construct a cylindrical 3D model set and a cube 3D model set with different matrix changes, performing affine transformation on the well chamber geometric object to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes, performing affine transformation on the pipe arrangement geometric object to construct a cylindrical 3D model set with different matrix changes, performing affine transformation on the pipe point geometric object set and the pipeline geometric object set to construct a cylindrical 3D model set, cube 3D model set and manhole cover 3D model set with different matrix changes; Filter the display according to the control parameters: Display and hide the 3D pipe point model at the specified distance and height according to the display control script, and display and hide the 3D pipeline model at the specified distance and height according to the display control script.

9. The method for parametric modeling and efficient display of a pipe network model based on volume objects according to any one of claims 1 to 8, characterized in that: The pipe network geometry object includes: pipe point geometry object and pipeline geometry object; the pipe point geometry object is composed of connected body geometry object or well chamber geometry object; the connected body geometry object is composed of cylindrical geometry object and cube geometry object according to the actual pipe network detection data; the well chamber geometry object is composed of cylindrical geometry object, cube geometry object and manhole cover geometry object according to the actual pipe network detection data; the pipeline geometry object is composed of cylindrical geometry object, cube geometry object and pipe arrangement geometry object; the pipe arrangement geometry object is composed of cylindrical geometry object, cube geometry object and pipe arrangement geometry object according to the actual pipe network detection data. The pipeline network data set includes: spatial reference information, pipe point feature class, pipeline feature class, and texture library, wherein the pipe point feature class is used to store pipe point geometry objects, and the pipeline feature class is used to store pipeline geometry objects; the basic component geometry objects include: cylinder geometry objects, cube geometry objects, manhole cover geometry objects, connected body geometry objects, well chamber geometry objects, and pipe row geometry objects; the pipeline three-dimensional space index grid encoding set {BslX, BslY, BslZ} performs cube geometry object on the three-dimensional space grid covered by the pipeline geometry outsourcing range. Construct, judge the three-dimensional spatial intersection relationship between the cube geometric object and the pipeline geometric object, and record the cube geometric object when it is judged to be intersecting; if it is judged to be non-intersecting, construct the next cube geometric object and judge it until the three-dimensional space grid covered by the last pipeline geometric outsourcing range, and store the grid code of the three-dimensional space grid where the cube geometric object is judged to be intersecting into the pipeline three-dimensional space index grid code set {BslX, BslY, BslZ}; the query geometry includes a two-dimensional geometric object or a three-dimensional geometric object; the existing pipe point geometry objects in the cluster are recalculated The termination conditions are: determining that the pipe point geometry object is no longer reallocated to different clusters; determining that the cluster center no longer changes position; determining that one of the three conditions is met: the sum of squared errors of the distance from the pipe point geometry object to the cluster center of the cluster to which it belongs is locally minimum; the pipeline geometry includes a first-level paging index grid code or the pipeline geometry includes a first-level paging index grid code and a second-level paging index grid code; the two-dimensional and three-dimensional integrated hierarchical display parameters include: the basis for the two-dimensional and three-dimensional integrated hierarchical display settings, the display status of pipe points and pipelines at specified heights and distances, the symbolization of two-dimensional geometry objects of pipe points and pipelines, and the symbolization of three-dimensional models.

Citation Information

Patent Citations

  • Structuring method for three-dimensional visualizing system of urban synthesis pipeline network

    CN101630419A

  • Data interaction system of urban underground pipeline, and method thereof

    CN105022769A