CN108510589B - Method and device for converting two-dimensional pipeline into three-dimensional model - Google Patents
Method and device for converting two-dimensional pipeline into three-dimensional model Download PDFInfo
- Publication number
- CN108510589B CN108510589B CN201810313499.XA CN201810313499A CN108510589B CN 108510589 B CN108510589 B CN 108510589B CN 201810313499 A CN201810313499 A CN 201810313499A CN 108510589 B CN108510589 B CN 108510589B
- Authority
- CN
- China
- Prior art keywords
- dimensional
- pipe
- pipeline
- line segment
- calculating
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000008569 process Effects 0.000 claims abstract description 18
- 238000004590 computer program Methods 0.000 claims description 6
- 238000003860 storage Methods 0.000 claims description 6
- 238000001514 detection method Methods 0.000 claims description 3
- 238000010276 construction Methods 0.000 abstract description 7
- 238000006243 chemical reaction Methods 0.000 abstract description 6
- 238000012545 processing Methods 0.000 abstract description 3
- 229910000831 Steel Inorganic materials 0.000 description 7
- 239000010959 steel Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000005477 standard model Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 239000000306 component Substances 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 210000000709 aorta Anatomy 0.000 description 1
- 238000005452 bending Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000010410 layer Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
- G06T17/10—Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/04—Architectural design, interior design
Landscapes
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a method and a device for converting a two-dimensional pipeline into a three-dimensional model, which relate to the technical field of three-dimensional construction, wherein the method for converting the two-dimensional pipeline into the three-dimensional model comprises the following steps: firstly, three-dimensional straight pipes are generated according to vector information of central line segments of a pipe gallery in a two-dimensional pipeline, then, the height difference between the adjacent three-dimensional straight pipes is calculated, three-dimensional vertical pipes are generated according to the height difference, then, the yaw angle between the adjacent three-dimensional straight pipes is calculated, three-dimensional elbows are generated according to the yaw angle, namely, three-dimensional elbows for connecting the three-dimensional straight pipes and the three-dimensional vertical pipes are generated, then, the three-dimensional straight pipes, the three-dimensional vertical pipes and the three-dimensional elbows are combined into a three-dimensional pipe gallery model, through the processing process, the quick conversion from the two-dimensional pipeline to the three-dimensional model can be realized, and therefore people can conveniently and quickly check the space condition of the pipe gallery.
Description
Technical Field
The invention relates to the technical field of three-dimensional construction, in particular to a method and a device for converting a two-dimensional pipeline into a three-dimensional model.
Background
Public pipe gallery is as important basic supporting facility in the industry garden, is the important pivot of garden commodity circulation, energy stream, is the green logistics channel of each enterprise in the connection garden swift, safe, efficient, is the transmission aorta in the heavy garden, is responsible for the important responsibility of "connecting customer's bridge", and simultaneously, public pipe gallery also is important lifeline engineering in the whole industry garden. Moreover, the safe operation of the pipe gallery and various pipelines erected on the pipe gallery not only relates to the safe production of each enterprise in the garden, but also directly influences the social stability and the garden image.
Because, can lay a great variety of pipeline, cable and its annex usually on the public pipe gallery, the spatial relationship between each object is very complicated, and the construction cost is high in addition, bears the weight of the space limited, consequently, how to carry out scientific management to the resource through the high-efficient space digital management means, how to improve the utilization ratio of the limited space resource of pipe gallery, become one of the main problems that garden utility tunnel management administrator faces.
Currently, the main solutions to the above problems are: a designer designs a new pipeline construction drawing in detail based on a public pipe gallery pipeline route summary drawing in a CAD format and an completion drawing of a pipe gallery pipeline, and because reference objects such as the summary drawing, the completion drawing and the like are scattered two-dimensional plane information, the space condition of a public pipe gallery (particularly a steel structure pipe gallery) cannot be comprehensively shown. In order to solve the problem of pipeline space resource conflict, a large number of completion detailed drawings can be consulted, measurement and confirmation are required to be carried out on site, and the process is complicated and laborious.
In conclusion, at present, no effective solution exists for the problem that the space condition of the pipe gallery cannot be quickly checked through the two-dimensional pipeline of the public pipe gallery.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for converting a two-dimensional pipeline into a three-dimensional model, in which a three-dimensional pipe gallery model is generated according to a generated three-dimensional straight pipe, a three-dimensional standpipe, a three-dimensional elbow, and the like, so as to improve convenience for people to check space conditions.
In a first aspect, an embodiment of the present invention provides a method for converting a two-dimensional pipeline into a three-dimensional model, including:
generating a three-dimensional straight pipe according to vector information of a central line segment of a pipe gallery in a two-dimensional pipeline;
calculating the height difference between adjacent three-dimensional straight pipes, and generating a three-dimensional vertical pipe according to the height difference;
calculating a yaw angle between adjacent three-dimensional straight pipes, and generating a three-dimensional elbow according to the yaw angle;
and combining the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow into a three-dimensional pipe gallery model.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where generating a three-dimensional straight pipe according to vector information of a centerline segment of a pipe gallery in a two-dimensional pipeline includes:
acquiring the starting point coordinate (S) of the center line segment of the pipe gallery in the two-dimensional pipelinex,Sy) Endpoint coordinate (E)x,Ey) Starting point frame top elevation ShTop elevation of terminal frame EhAnd pipe diameter DN;
According to the starting point coordinates (S)x,Sy) And a straight pipe line height H to generate a starting point (S) of a three-dimensional straight pipex,Sy,H);
According to pitch angle theta and yaw angleDetermining the space direction of the three-dimensional straight pipe;
and matching a preset three-dimensional model according to the pipeline height H, the pipe diameter DN and the straight pipe length L of the straight pipe and generating the three-dimensional straight pipe.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where calculating a height difference between adjacent three-dimensional straight pipes, and generating a three-dimensional standpipe according to the height difference includes:
taking the central line segment of the previous pipe gallery as F, and taking the central line segment of the next pipe gallery connected with the former pipe gallery as B;
terminal frame top height F for obtaining central line segment of previous pipe galleryEh;
Acquiring the starting point frame jacking height B of the center line segment of the next pipe gallerySh;
According to the terminal frame ceiling height FEhAnd starting point frame top height BShCalculating the height difference V between three-dimensional straight pipesh=|BSh-FEh|;
According to the height difference VhMatching a preset three-dimensional model with the pipe diameter DN to generateForming a three-dimensional standpipe.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where calculating a yaw angle between adjacent three-dimensional straight pipes, and generating a three-dimensional elbow according to the yaw angle includes:
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where combining a three-dimensional straight pipe, a three-dimensional standpipe, and a three-dimensional elbow into a three-dimensional pipe gallery model includes:
according to the starting point coordinates (S)x,Sy) And a straight pipe line height H to generate a starting point (S) of a three-dimensional straight pipex,Sy,H);
According to pitch angle theta and yaw angleDetermining the space direction of the three-dimensional straight pipe;
starting point (S) of the three-dimensional straight pipex,SyH) is superposed with one end of the three-dimensional straight pipe;
at pitch angle theta and yaw anglePlacing the three-dimensional straight pipe in a space coordinate system for a space direction;
placing three-dimensional vertical pipes between the connected three-dimensional straight pipes in a space coordinate system;
and connecting the three-dimensional straight pipe and the three-dimensional vertical pipe into a closed model by using a three-dimensional elbow.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the method further includes:
when the closed model is turned, the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow can rotate by 720 degrees.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes:
when space conflict is found in the process of carrying out space detection on the closed model, an alarm signal is sent out.
In a second aspect, an embodiment of the present invention provides an apparatus for converting a two-dimensional pipeline into a three-dimensional model, including:
the three-dimensional straight pipe generating module is used for generating a three-dimensional straight pipe according to vector information of a central line segment of a pipe gallery in a two-dimensional pipeline;
the three-dimensional vertical pipe generation module is used for calculating the height difference between adjacent three-dimensional straight pipes and generating a three-dimensional vertical pipe according to the height difference;
the three-dimensional elbow generating module is used for calculating a yaw angle between adjacent three-dimensional straight pipes and generating a three-dimensional elbow according to the yaw angle;
and the combined module is used for combining the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow into a three-dimensional pipe gallery model.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory is used to store a program that supports the processor to execute the method for converting a two-dimensional pipeline into a three-dimensional model provided in the foregoing aspect, and the processor is configured to execute the program stored in the memory.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods described above.
The embodiment of the invention provides a method and a device for converting a two-dimensional pipeline into a three-dimensional model, wherein the method for converting the two-dimensional pipeline into the three-dimensional model comprises the following steps: firstly, generating a three-dimensional straight pipe according to vector information of a central line segment of a pipe gallery in a two-dimensional pipeline, then, after a plurality of three-dimensional straight pipes are generated according to the steps, the height difference between the adjacent three-dimensional straight pipes is calculated, and a three-dimensional vertical pipe is generated according to the height difference, secondly, calculating the yaw angle between the adjacent three-dimensional straight pipes, generating a three-dimensional elbow according to the yaw angle, the three-dimensional straight pipe, the three-dimensional vertical pipe and the like are effectively connected through the three-dimensional elbow, then the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow are combined into a three-dimensional pipe gallery model, through the processing process, the two-dimensional pipeline can be conveniently and quickly converted into the three-dimensional model, so that people can conveniently check the space condition of the pipeline, the conversion method from the two-dimensional pipeline to the three-dimensional model saves a large number of processes of looking up and surveying by people, and can realize accurate evaluation of the spatial condition of the position of the pipeline.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a three-dimensional pipe gallery model in a method for converting a two-dimensional pipeline into a three-dimensional model according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for converting a two-dimensional pipeline into a three-dimensional model according to an embodiment of the present invention;
fig. 3 shows a structural connection diagram of a two-dimensional pipeline to three-dimensional model conversion device provided by the embodiment of the invention.
Icon: 1-three-dimensional straight pipe; 2-three-dimensional elbow; 3-a three-dimensional standpipe; 4-a three-dimensional straight pipe generation module; 5-a three-dimensional standpipe generating module; 6-a three-dimensional elbow generating module; 7-a combined module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Before underground construction and reconstruction, the space around the underground pipeline is clarified. At present, the main solutions are: the detailed design of a new pipeline construction drawing is carried out on a common pipe gallery pipeline route summary drawing and a completion drawing of a pipe gallery pipeline based on a CAD format, and because reference objects such as the summary drawing and the completion drawing are scattered two-dimensional plane information, the spatial condition of a common pipe gallery (especially a steel structure pipe gallery) cannot be comprehensively shown. Especially, under the condition of pipeline space resource conflict, can only be through consulting a large amount of as built detailed drawings to, need to measure the confirmation in the scene and can look over the piping lane space condition, the process is loaded down with trivial details hard.
Based on this, the embodiment of the present invention provides a method and an apparatus for converting a two-dimensional pipeline into a three-dimensional model, which are described below by way of example.
Some terms to be used in the present invention are explained first below:
(1) the pipe gallery steel structure: the common name is pipe gallery post, which is a large-scale framework composed of continuous pipe gallery frames (beams), rows of landing posts and various bracing members, and the section of the basic structure of the large-scale framework is in a reversed U shape. The pipe gallery structure can be a single layer or a double layer and is used for supporting rows of various pipelines, and the pipe gallery structure is widely applied to chemical and petrochemical production devices. The piping lane steel construction adopts the shaped steel of various specifications and shaped steel subassembly, NEN shaped steel and connection gusset etc. welding to form usually still with walking on stage, railing, cat ladder to satisfy the needs to pipeline, valve operation maintenance.
(2) Piping lane component data: the pipe gallery component consists of six types of upright posts, cross beams, secondary beams, inclined struts, bearing platforms and pile foundations; wherein the stand is the core component, plays the effect of piping lane position sign, and the stand contains attributes such as height, biggest bearing and maximum capacity (space).
(3) Pipeline data: the pipeline data is designed on the basis of a pipe gallery general plan, and the elements comprise pipe brackets, inflection points and pipelines.
Center line segment of pipe gallery: refers to a line segment broken on the pipeline with the pipe bracket and the inflection point as nodes. The system comprises coordinate information, starting and stopping node numbers, frame top elevations of the starting and stopping nodes, pipeline height, pipe diameter, pitch angle, yaw angle and other information.
Elevation of the top of the frame: the height of the pipe gallery stand column and the height of the starting point frame top of the pipeline section refer to the height of the pipe gallery stand column corresponding to the pipeline starting node.
Pitch angle: and calculating according to the length of the starting and stopping node of the pipeline joint and the top elevation of the starting and stopping node frame.
Yaw angle: and calculating according to the plane coordinate information of the start-stop node.
Height of pipeline: the height of the line segment starting node from the ground.
(4) Three-dimensional pipeline: the basic model for forming the three-dimensional pipeline consists of a straight pipe, an elbow and a vertical pipe.
Straight pipe: a pipeline parallel to the ground level.
Standpipe: a pipeline perpendicular to ground level.
Bending: and the connecting piece is used for connecting the pipeline sections with the yaw angles.
Example 1
Referring to fig. 1 and fig. 2, the method for converting a two-dimensional pipeline into a three-dimensional model provided in this embodiment specifically includes the following steps:
step S101: and generating a three-dimensional straight pipe according to the vector information of the center line segment of the pipe gallery in the two-dimensional pipeline.
Step S102: and calculating the height difference between the adjacent three-dimensional straight pipes, and generating a three-dimensional standpipe according to the height difference.
Step S103: and calculating a yaw angle between the adjacent three-dimensional straight pipes, and generating a three-dimensional elbow according to the yaw angle.
Step S104: and combining the three-dimensional straight pipe 1, the three-dimensional vertical pipe 3 and the three-dimensional elbow 2 into a three-dimensional pipe gallery model.
As will be explained in detail below, the step S101 is to generate a three-dimensional straight pipe according to vector information of a centerline segment of a pipe gallery in a two-dimensional pipeline, and specifically includes:
(1) because the two-dimensional pipeline is formed by connecting a plurality of sections of pipeline center line segments, the vector information of the pipeline center line segments in the two-dimensional pipeline, namely the starting point coordinate (S) is obtainedx,Sy) Endpoint coordinate (E)x,Ey) Starting point frame top elevation ShTop elevation of terminal frame EhAnd a pipe diameter DN.
(2) Calculating pitch angle of central line segment of pipe gallerySo as to consider the vertical swing of the central line segment of the pipe gallery.
(3) Calculating the yaw angle of the center line segment of the pipe gallerySo as to consider the horizontal swing of the central line segment of the pipe gallery.
(4) Calculating the straight tube length of the center line segment of the pipe galleryI.e. the absolute length of the pipe gallery centre line segment in the horizontal direction is calculated from the above coordinates.
(5) Calculating straight pipe pipeline height of central line segment of pipe galleryI.e. the absolute length of the pipe gallery centre line segment in the vertical direction is calculated from the above coordinates.
(6) And matching a preset three-dimensional model according to the pipeline height H, the pipe diameter DN and the straight pipe length L of the straight pipe and generating the three-dimensional straight pipe. It should be noted that the preset three-dimensional model can be flexibly selected according to the user's usage requirement, for example, a standard model generated directly in the CAD in advance according to the two-dimensional pipeline data, and the like. In the implementation process, the calculated height H of the straight pipe pipeline, the calculated pipe diameter DN and the calculated length L of the straight pipe are put into a three-dimensional model matched with the straight pipe pipeline, and the three-dimensional straight pipe is generated. In addition, in the matching selection process, the input and output parameters, the number of parameters, and the like of the pre-generated standard model are uncertain, and when the matched three-dimensional model is selected, the three-dimensional model matched with the parameters and the number of parameters needs to be searched.
Step S102, calculating the height difference between adjacent three-dimensional straight pipes, and generating a three-dimensional vertical pipe according to the height difference, specifically comprising:
(1) because the three-dimensional vertical pipe is arranged between the three-dimensional straight pipes for supporting, at least two pipe gallery central line segments which are horizontally arranged are needed for calculating and generating the three-dimensional vertical pipe, the former pipe gallery central line segment is marked as F in the implementation process, and the latter pipe gallery central line segment connected with the former pipe gallery central line segment is marked as B.
(2) Terminal frame top height F for obtaining central line segment of previous pipe galleryEhBy the vector parameter end point frame ceiling height FEhThe height of the center line segment of the previous pipe gallery is measured.
(3) Acquiring the starting point frame jacking height B of the center line segment of the next pipe galleryShStarting the gantry height B by the vector parameterShThe height of the central line segment of the latter pipe gallery is measured. And the center line segment of the previous pipe gallery and the center line segment of the next pipe gallery are adjacently connected.
(4) Then, according to the terminal frame ceiling height FEhAnd starting point frame top height BShCalculating the height difference V between three-dimensional straight pipesh=|BSh-FEhAnd l, because the two height values are uncertain, the height difference between the three-dimensional straight pipes is measured through calculation of absolute values.
(5) According to the height difference VhAnd the pipe diameter DN is matched with a preset three-dimensional model and a three-dimensional standpipe is generated. Similarly, it should be noted that the preset three-dimensional model can be flexibly selected according to the user's use requirement, for example, a standard model generated in advance in CAD directly according to the two-dimensional pipeline data. In practice, the calculated height difference VhAnd putting the pipe diameter DN into a three-dimensional model matched with the pipe diameter DN and generating a three-dimensional standpipe. In addition, in the matching selection process, the input and output parameters, the number of parameters, and the like of the pre-generated standard model are uncertain, and when the matched three-dimensional model is selected, the three-dimensional model matched with the parameters and the number of parameters needs to be searched.
The step S103 is to calculate a yaw angle between adjacent three-dimensional straight pipes, and generate a three-dimensional elbow according to the yaw angle, and specifically includes:
(1) obtaining the yaw angle of the central line segment F of the previous pipe galleryBefore consideringThe left and right swinging of a central line segment of a pipe gallery in the horizontal direction.
(2) Obtaining the yaw angle of the central line segment F of the next pipe galleryTo take into account the horizontal sway of the latter pipe gallery centre line segment. When the left-right swinging condition of the central line segment of the previous pipe gallery in the horizontal direction is consistent with the left-right swinging condition of the central line segment of the next pipe gallery in the horizontal direction, the three-dimensional straight pipe and the three-dimensional vertical pipe can be directly connected; under most circumstances, when the horizontal swing condition of the center line segment of the current pipe gallery is inconsistent with the horizontal swing condition of the center line segment of the next pipe gallery, corresponding difference values can be generated between the three-dimensional straight pipe and the three-dimensional vertical pipe, and elbows with different curvatures are needed to be connected.
(4) Thus, the angle of rotation of the elbow is calculated from the yaw angle between the two pipe gallery centre line segments
(5) In addition, in order to consider the left-right swing of the elbow in the horizontal direction, the yaw angle of the elbow is calculated during implementation
(6) Then according to the rotation angle WΦAnd yaw angleAnd generating the three-dimensional elbow. It should be noted that, the caliber width of the three-dimensional elbow is slightly larger than the pipe diameter DN, and the numerical value of the caliber width of the three-dimensional elbow can be flexibly set according to the situation in specific implementation.
Step S104 above combines three-dimensional straight pipe, three-dimensional standpipe and three-dimensional elbow into three-dimensional pipe gallery model, specifically including:
(1) in the process of forming the three-dimensional pipe gallery model, coordinates of a starting point of the model are determined, and the starting point of the model is usually determinedThe point coordinates coincide with the start point of the three-dimensional straight pipe in the selected spatial range, and therefore, in implementation, are based on the start point coordinates (S)x,Sy) And a straight pipe line height H to generate a starting point (S) of a three-dimensional straight pipex,Sy,H)。
(2) Then, according to the pitch angle theta and the yaw angle of the three-dimensional straight pipe in the step (1)The spatial direction of the three-dimensional straight pipe is determined, for example, the first quadrant direction with the starting point as the origin, and the like.
(3) To determine a good origin, i.e. the starting point of a three-dimensional straight tube (S)x,SyAnd H) is superposed with one end of a three-dimensional straight pipe, and one end point of the three-dimensional straight pipe is the starting point.
(4) After the origin point is determined, a three-dimensional straight pipe needs to be placed in the area where the space direction is located, and the pitch angle theta and the yaw angle theta are calculatedAnd placing the three-dimensional straight pipes in a space coordinate system for the space direction, and correspondingly, sequentially arranging a plurality of generated three-dimensional straight pipes backwards.
(5) And then, placing a three-dimensional vertical pipe between the connected three-dimensional straight pipes in a space coordinate system, wherein the three-dimensional vertical pipe placing principle needs to be determined according to the positions of the central line segment of the previous pipe gallery and the central line segment of the next pipe gallery. And vector information of the central line segment of the previous pipe gallery is used for generating the previous three-dimensional straight pipe.
(6) And then, connecting the three-dimensional straight pipe and the three-dimensional vertical pipe into a closed model by using the generated three-dimensional elbow. When the specific situation of the underground space needs to be examined, the specific situation can be judged through the closed model. When the models of other pipelines directly enter the closed model, the space conflict is shown, and when the models of other pipelines effectively bypass the closed model, the space condition is shown to be good, and the closed model can be implemented on the space.
In addition, for facilitating the viewing in space, the method for converting the two-dimensional pipeline into the three-dimensional model further comprises the following steps: when the closed model is turned, the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow can rotate by 720 degrees. Through the rotation, the space condition of the closed model can be effectively and accurately checked.
In addition, in order to make people aware of the existence of the space conflict, the method for converting the two-dimensional pipeline into the three-dimensional model further comprises the following steps: when a space conflict is found in the process of carrying out space detection on the closed model, an alarm signal is sent out, for example, a sound or light is sent out.
In summary, the method for converting a two-dimensional pipeline into a three-dimensional model provided by the embodiment includes: firstly, according to the vector information of the central line segment of the pipe gallery in the two-dimensional pipeline, a three-dimensional straight pipe is generated, then, the height difference between the adjacent three-dimensional straight pipes is calculated, a three-dimensional vertical pipe is generated according to the height difference, secondly, the yaw angle between the adjacent three-dimensional straight pipes is calculated, a three-dimensional elbow is generated according to the yaw angle, then, the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow are combined into a three-dimensional pipe gallery model, through the processing process, the three-dimensional model can be converted into the three-dimensional model according to the two-dimensional pipeline, and therefore, people can conveniently look up the space condition of the pipeline, the process that people look up and survey in large quantities is omitted, the accurate assessment of the space condition of the position of the pipeline can be achieved, and the method is convenient and fast.
Example 2
Referring to fig. 3, the present embodiment provides a two-dimensional pipeline to three-dimensional model conversion apparatus including:
and the three-dimensional straight pipe generating module 4 is used for generating the three-dimensional straight pipe according to the vector information of the central line segment of the pipe gallery in the two-dimensional pipeline.
And the three-dimensional standpipe generating module 5 is used for calculating the height difference between the adjacent three-dimensional straight pipes and generating a three-dimensional standpipe according to the height difference.
And the three-dimensional elbow generating module 6 is used for calculating a yaw angle between adjacent three-dimensional straight pipes and generating a three-dimensional elbow according to the yaw angle.
And the combined module 7 is used for combining the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow into a three-dimensional pipe gallery model.
The conversion device from the two-dimensional pipeline to the three-dimensional model provided by the embodiment of the invention has the same technical characteristics as the conversion method from the two-dimensional pipeline to the three-dimensional model provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
An embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory is used to store a program that supports the processor to execute the method of the above embodiment, and the processor is configured to execute the program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the above methods.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. The method and apparatus for converting a two-dimensional pipeline into a three-dimensional model provided by the embodiment of the present invention have the same implementation principle and technical effect as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for the parts of the embodiments of the apparatus that are not mentioned.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions or without necessarily implying any relative importance. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A method for converting a two-dimensional pipeline to a three-dimensional model, comprising:
generating a three-dimensional straight pipe according to vector information of a central line segment of a pipe gallery in a two-dimensional pipeline;
calculating the height difference between the adjacent three-dimensional straight pipes, and generating a three-dimensional vertical pipe according to the height difference;
calculating a yaw angle between adjacent three-dimensional straight pipes, and generating a three-dimensional elbow according to a rotation angle and the yaw angle; the rotation angle is the rotation angle of a connecting elbow between the three-dimensional straight pipe and the three-dimensional vertical pipe;
combining the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow into a three-dimensional pipe gallery model;
the vector information according to piping lane center line section in the two-dimensional pipeline generates three-dimensional straight tube, includes:
acquiring a starting point coordinate, an end point coordinate, a starting point frame top elevation S, an end point frame top elevation E and a pipe diameter DN of a central line segment of a pipe gallery in a two-dimensional pipeline;
calculating the pitch angle of the central line segment of the pipe gallery according to the starting point coordinate, the end point coordinate, the starting point frame top elevation S and the end point frame top elevation E;
calculating the yaw angle of the central line segment of the pipe gallery according to the starting point coordinate and the end point coordinate;
calculating the length L of the straight pipe of the central line segment of the pipe gallery according to the starting point coordinate, the end point coordinate, the starting point frame top elevation S and the end point frame top elevation E;
calculating the height H of the straight pipe of the central line segment of the pipe gallery according to the pipe diameter DN and the starting point frame top elevation S;
and matching a preset three-dimensional model according to the straight pipe pipeline height H, the pipe diameter DN and the straight pipe length L and generating the three-dimensional straight pipe.
2. The method for converting a two-dimensional pipeline into a three-dimensional model according to claim 1, wherein the generating a three-dimensional straight pipe according to the vector information of the center line segment of the pipe gallery in the two-dimensional pipeline comprises:
acquiring the starting point coordinate (S) of the center line segment of the pipe gallery in the two-dimensional pipelinex,Sy) Endpoint coordinate (E)x,Ey) Starting point frame top elevation ShTop elevation of terminal frame EhAnd pipe diameter DN;
And matching a preset three-dimensional model according to the straight pipe pipeline height H, the pipe diameter DN and the straight pipe length L and generating the three-dimensional straight pipe.
3. The method of converting a two-dimensional pipeline to a three-dimensional model according to claim 2, wherein said calculating a height difference between adjacent said three-dimensional straight pipes and generating a three-dimensional standpipe from said height difference comprises:
taking the central line segment of the previous pipe gallery as F, and taking the central line segment of the next pipe gallery connected with the former pipe gallery as B;
acquiring terminal frame jacking height F of previous pipe gallery center line segmentEh;
Acquiring the starting point frame jacking height B of the next pipe gallery central line segmentSh;
According to the terminal frame ceiling height FEhAnd the starting point frame jacking height BShCalculating the height difference V between the three-dimensional straight pipesh=|BSh-FEh|;
According to the height difference VhAnd the pipe diameter DN is matched with a preset three-dimensional model and generates the three-dimensional vertical pipe.
4. The method of converting a two-dimensional pipeline into a three-dimensional model according to claim 3, wherein said calculating a yaw angle between adjacent three-dimensional straight pipes and generating a three-dimensional elbow from said rotation angle and said yaw angle comprises:
5. The method of converting a two-dimensional pipeline to a three-dimensional model according to claim 3, wherein said combining said three-dimensional straight pipe, said three-dimensional riser pipe and said three-dimensional elbow into a three-dimensional pipe gallery model comprises:
according to the starting point coordinates (S)x,Sy) And said straight pipe line height H generating a starting point (S) of said three-dimensional straight pipex,Sy,H);
According to the pitch angle theta and the yaw angleDetermining the space direction of the three-dimensional straight pipe;
starting point (S) of the three-dimensional straight pipex,SyH) is superposed with one end of the three-dimensional straight pipe;
at the pitch angle theta and the yaw angle thetaPlacing the three-dimensional straight pipe in a space coordinate system for a space direction;
placing the three-dimensional vertical pipes between the connected three-dimensional straight pipes in the space coordinate system;
and connecting the three-dimensional straight pipe and the three-dimensional vertical pipe into a closed model by using the three-dimensional elbow.
6. The method of converting a two-dimensional pipeline to a three-dimensional model according to claim 5, further comprising:
when the closed model is turned over, the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow can rotate for 720 degrees.
7. The method of converting a two-dimensional pipeline to a three-dimensional model according to claim 5, further comprising:
and when a space conflict is found in the process of carrying out space detection on the closed model, an alarm signal is sent out.
8. A device for converting a two-dimensional pipeline to a three-dimensional model, comprising:
the three-dimensional straight pipe generating module is used for generating a three-dimensional straight pipe according to vector information of a central line segment of a pipe gallery in a two-dimensional pipeline;
the three-dimensional vertical pipe generation module is used for calculating the height difference between the adjacent three-dimensional straight pipes and generating a three-dimensional vertical pipe according to the height difference;
the three-dimensional elbow generating module is used for calculating a yaw angle between adjacent three-dimensional straight pipes and generating a three-dimensional elbow according to a rotation angle and the yaw angle; the rotation angle is the rotation angle of a connecting elbow between the three-dimensional straight pipe and the three-dimensional vertical pipe;
the assembling module is used for assembling the three-dimensional straight pipe, the three-dimensional vertical pipe and the three-dimensional elbow into a three-dimensional pipe gallery model;
the three-dimensional straight pipe generation module is specifically used for:
acquiring a starting point coordinate, an end point coordinate, a starting point frame top elevation S, an end point frame top elevation E and a pipe diameter DN of a central line segment of a pipe gallery in a two-dimensional pipeline;
calculating the pitch angle of the central line segment of the pipe gallery according to the starting point coordinate, the end point coordinate, the starting point frame top elevation S and the end point frame top elevation E;
calculating the yaw angle of the central line segment of the pipe gallery according to the starting point coordinate and the end point coordinate;
calculating the length L of the straight pipe of the central line segment of the pipe gallery according to the starting point coordinate, the end point coordinate, the starting point frame top elevation S and the end point frame top elevation E;
calculating the height H of the straight pipe of the central line segment of the pipe gallery according to the pipe diameter DN and the starting point frame top elevation S;
and matching a preset three-dimensional model according to the straight pipe pipeline height H, the pipe diameter DN and the straight pipe length L and generating the three-dimensional straight pipe.
9. A terminal, comprising a memory for storing a program that enables the processor to perform the method of any of claims 1 to 7 and a processor configured to execute the program stored in the memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810313499.XA CN108510589B (en) | 2018-04-09 | 2018-04-09 | Method and device for converting two-dimensional pipeline into three-dimensional model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810313499.XA CN108510589B (en) | 2018-04-09 | 2018-04-09 | Method and device for converting two-dimensional pipeline into three-dimensional model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108510589A CN108510589A (en) | 2018-09-07 |
CN108510589B true CN108510589B (en) | 2022-03-22 |
Family
ID=63381129
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810313499.XA Active CN108510589B (en) | 2018-04-09 | 2018-04-09 | Method and device for converting two-dimensional pipeline into three-dimensional model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108510589B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109558636A (en) * | 2018-10-26 | 2019-04-02 | 中交第航务工程局有限公司 | A kind of creation method based on Revit pipe gallery BIM model |
CN112509139B (en) * | 2020-12-14 | 2024-05-28 | 盈嘉互联(北京)科技有限公司 | BIM model pipeline center line extraction method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102201128A (en) * | 2011-04-14 | 2011-09-28 | 北京怡诚科训技术发展有限公司 | Method and device for transforming pipe models |
CN105512287A (en) * | 2015-11-30 | 2016-04-20 | 山东正元地球物理信息技术有限公司 | Method for establishing comprehensive pipe rack information database |
CN106659934A (en) * | 2014-02-24 | 2017-05-10 | 索尼互动娱乐股份有限公司 | Methods and systems for social sharing head mounted display (HMD) content with a second screen |
CN107464284A (en) * | 2017-08-26 | 2017-12-12 | 济南万维数字传媒有限公司 | Three-dimensional visualization property information management system based on mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9355495B2 (en) * | 2013-10-09 | 2016-05-31 | Trimble Navigation Limited | Method and system for 3D modeling using feature detection |
-
2018
- 2018-04-09 CN CN201810313499.XA patent/CN108510589B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102201128A (en) * | 2011-04-14 | 2011-09-28 | 北京怡诚科训技术发展有限公司 | Method and device for transforming pipe models |
CN106659934A (en) * | 2014-02-24 | 2017-05-10 | 索尼互动娱乐股份有限公司 | Methods and systems for social sharing head mounted display (HMD) content with a second screen |
CN105512287A (en) * | 2015-11-30 | 2016-04-20 | 山东正元地球物理信息技术有限公司 | Method for establishing comprehensive pipe rack information database |
CN107464284A (en) * | 2017-08-26 | 2017-12-12 | 济南万维数字传媒有限公司 | Three-dimensional visualization property information management system based on mobile terminal |
Non-Patent Citations (1)
Title |
---|
地下管网三维空间数据模型及自动化精细建模方法研究;周京春;《中国博士学位论文全文数据库 基础科学辑》;20170815;第17-25、73-93、107-111页 * |
Also Published As
Publication number | Publication date |
---|---|
CN108510589A (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107886182B (en) | Optimal design method and device for oil field gathering and transportation system | |
CN102147830B (en) | Method and system for optimally designing water supply pipe network | |
CN106649817B (en) | Method and device for constructing and lofting three-dimensional pipe model of geographic information system | |
ES2794724A1 (en) | Method and apparatus for facilitating creation of simulation model | |
CN114662254B (en) | Method for batch generation of drainage pipe network three-dimensional models based on space transformation | |
Liu et al. | Rule-based generation of ancient Chinese architecture from the song dynasty | |
CN108510589B (en) | Method and device for converting two-dimensional pipeline into three-dimensional model | |
CN103970919A (en) | Automatic building information modeling data processing method | |
Xie et al. | Rapid watershed delineation using an automatic outlet relocation algorithm | |
CN113112603A (en) | Method and device for optimizing three-dimensional model | |
Pađen et al. | Towards automatic reconstruction of 3D city models tailored for urban flow simulations | |
Florinsky | Spheroidal equal angular DEMs: The specificity of morphometric treatment | |
CN117150620A (en) | A rapid modeling and collision detection method for professional pipeline supports and hangers in power generation technology | |
CN113076617B (en) | Method, system and equipment for visualizing urban water supply pipe network structure and function | |
Du et al. | Cross‐section positioning based on a dynamic MLS tunnel monitoring system | |
Kim et al. | 3D reconstruction of large-scale scaffolds with synthetic data generation and an upsampling adversarial network | |
CN108509740B (en) | Pipeline path planning method and device based on pipe gallery | |
CN110717233A (en) | A rainwater pipe network flow calculation method and system based on GIS underlying surface analysis | |
CN114442603A (en) | Method, device, system and computer-readable storage device for inspection path planning | |
CN109460911A (en) | A kind of the path drawing drawing method and device of power equipment | |
CN110858006A (en) | Underground pipe network geophysical prospecting system and method based on GIS | |
CN110390725A (en) | A kind of pipeline completion drawing generating method, device and system | |
Ahmadullah et al. | Construction of hydraulically balanced water distribution network | |
CN114022618A (en) | Power line model creation method, apparatus, device, storage medium and program product | |
Bielecka et al. | User perspective on geospatial data quality. Case study of the Polish Topographic Database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |