CN108510589A - Conversion method and device of the two dimensional pipeline to threedimensional model - Google Patents

Conversion method and device of the two dimensional pipeline to threedimensional model Download PDF

Info

Publication number
CN108510589A
CN108510589A CN201810313499.XA CN201810313499A CN108510589A CN 108510589 A CN108510589 A CN 108510589A CN 201810313499 A CN201810313499 A CN 201810313499A CN 108510589 A CN108510589 A CN 108510589A
Authority
CN
China
Prior art keywords
dimensional
straight tube
piping lane
pipeline
center line
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.)
Granted
Application number
CN201810313499.XA
Other languages
Chinese (zh)
Other versions
CN108510589B (en
Inventor
邓佳
章作
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changsha Hai Chart Technology Co Ltd
Original Assignee
Changsha Hai Chart Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changsha Hai Chart Technology Co Ltd filed Critical Changsha Hai Chart Technology Co Ltd
Priority to CN201810313499.XA priority Critical patent/CN108510589B/en
Publication of CN108510589A publication Critical patent/CN108510589A/en
Application granted granted Critical
Publication of CN108510589B publication Critical patent/CN108510589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design

Abstract

The present invention provides the conversion method of two dimensional pipeline to threedimensional model and devices, are related to three-dimensional constructing technology field, wherein the conversion method of the two dimensional pipeline to threedimensional model includes:First, three-dimensional straight tube is generated according to the Vector Message of piping lane center line section in two dimensional pipeline, then, calculate the difference in height between adjacent three-dimensional straight tube, and, three-dimensional vertical tube is generated according to difference in height, secondly, calculate the yaw angle between adjacent three-dimensional straight tube, and, three-dimensional elbow is generated according to yaw angle, generate the three-dimensional elbow for connecting above-mentioned three-dimensional straight tube and three-dimensional vertical tube, later, by three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination are at three-dimensional piping lane model, pass through above-mentioned processing procedure, can realize two dimensional pipeline to threedimensional model rapid translating, to enable people to conveniently view the special case of piping lane.

Description

Conversion method and device of the two dimensional pipeline to threedimensional model
Technical field
The present invention relates to the conversion methods and dress of three-dimensional constructing technology field more particularly to two dimensional pipeline to threedimensional model It sets.
Background technology
Public piping lane is the important pivot of zone logistics, energy flow as complete sets of basic equipment facility important in industrial park, It is quick, the safe and efficient environlnental logistics channel for connecting each enterprise in garden, is the transmission main artery for changing garden again, load The important duty of the bridge of client " connection " is born, meanwhile, public piping lane is also lifeline work important in entire industrial park Journey.Also, the safe operation of piping lane itself and the various pipes set up thereon is not only related to the safety of garden Nei Ge enterprises Production also directly influences the image of the stabilization and garden of society.
Due to that miscellaneous pipeline, cable and its adjunct would generally be laid on public piping lane, between each object Spatial relationship is sufficiently complex, in addition construction cost is high, bearing space is limited, therefore, how to pass through efficient spatial digitalized pipe Reason means carry out scientific management to resource, how to improve the utilization rate of piping lane confined space resource, become garden pipe gallery warp One of the main problem that battalion manager faces.
Currently, primary solutions regarding to the issue above are:Public piping lane pipeline road of the designer based on CAD formats The detailed design that new pipeline construction figure is carried out by the as-constructed drawing of summary view and piping lane pipeline, due to above-mentioned summary view and completion The references object such as drawing are all the two dimensional surface information of dispersion, can not comprehensively show public piping lane (especially steel construction piping lane) Special case.It, can only be by consulting a large amount of completion detail drawing on solving the problems, such as pipeline space resource contention, also, need It to arrive scene and measure confirmation, process is cumbersome laborious.
To sum up, the problem of can not quickly viewing piping lane special case about the two dimensional pipeline by public piping lane at present, It there is no effective solution method.
Invention content
In view of this, the embodiment of the present invention be designed to provide two dimensional pipeline to threedimensional model conversion method and dress It sets, by generating three-dimensional piping lane model according to the three-dimensional straight tube, three-dimensional vertical tube and three-dimensional elbow etc. of generation, improves people and check The convenience of special case.
In a first aspect, an embodiment of the present invention provides the conversion methods of two dimensional pipeline to threedimensional model, including:
Three-dimensional straight tube is generated according to the Vector Message of piping lane center line section in two dimensional pipeline;
The difference in height between adjacent three-dimensional straight tube is calculated, and, three-dimensional vertical tube is generated according to difference in height;
The yaw angle between adjacent three-dimensional straight tube is calculated, and, three-dimensional elbow is generated according to yaw angle;
By three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination at three-dimensional piping lane model.
With reference to first aspect, an embodiment of the present invention provides the first possible embodiments of first aspect, wherein root Three-dimensional straight tube is generated according to the Vector Message of piping lane center line section in two dimensional pipeline, including:
Obtain the starting point coordinate (S of piping lane center line section in two dimensional pipelinex,Sy), terminal point coordinate (Ex,Ey), starting point frame top mark High Sh, the high E of terminal frame top markhWith caliber DN;
Calculate the pitch angle of piping lane center line section
Calculate the yaw angle of piping lane center line section
Calculate the length of straight pipe of piping lane center line section
Calculate the straight tube pipeline height of piping lane center line section
According to starting point coordinate (Sx,Sy) and straight tube pipeline height H generate the starting point (S of three-dimensional straight tubex,Sy,H);
According to pitching angle theta and yaw angleDetermine the direction in space of three-dimensional straight tube;
Pre-set threedimensional model is matched according to straight tube pipeline height H, caliber DN and length of straight pipe L and generates three-dimensional straight Pipe.
The possible embodiment of with reference to first aspect the first, an embodiment of the present invention provides second of first aspect Possible embodiment, wherein the difference in height between adjacent three-dimensional straight tube is calculated, and, three-dimensional vertical tube, packet are generated according to difference in height It includes:
Previous piping lane center line segment is denoted as F, the latter piping lane center line segment being attached thereto is denoted as B;
The terminal frame for obtaining previous piping lane center line segment rises FEh
The starting point frame for obtaining the latter piping lane center line segment rises BSh
F is risen according to terminal frameEhB is risen with starting point frameShCalculate the difference in height V between three-dimensional straight tubeh=| BSh-FEh|;
According to difference in height VhPre-set threedimensional model is matched with caliber DN and generates three-dimensional vertical tube.
Second of possible embodiment with reference to first aspect, an embodiment of the present invention provides the third of first aspect Possible embodiment, wherein the yaw angle between adjacent three-dimensional straight tube is calculated, and, three-dimensional elbow, packet are generated according to yaw angle It includes:
Obtain the yaw angle of previous piping lane center line segment F
Obtain the yaw angle of the latter piping lane center line segment F
Calculate the rotation angle of elbow
Calculate the yaw angle of elbow
According to rotation angle WΦAnd yaw angleGenerate three-dimensional elbow.
Second of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 4th kind of first aspect Possible embodiment, wherein by three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination at three-dimensional piping lane model, including:
According to starting point coordinate (Sx,Sy) and straight tube pipeline height H generate the starting point (S of three-dimensional straight tubex,Sy,H);
According to pitching angle theta and yaw angleDetermine the direction in space of three-dimensional straight tube;
By the starting point (S of three-dimensional straight tubex,Sy, H) and it is overlapped with one end of three-dimensional straight tube;
With pitching angle theta and yaw angleThree-dimensional straight tube is placed in space coordinates for direction in space;
Three-dimensional vertical tube is placed between connected three-dimensional straight tube in space coordinates;
Three-dimensional straight tube and three-dimensional vertical tube are connected into closed model with three-dimensional elbow.
The 4th kind of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 5th kind of first aspect Possible embodiment, wherein method further includes:
When being overturn to closed model, three-dimensional straight tube, three-dimensional vertical tube and three-dimensional elbow can 720 degree of rotations.
The 4th kind of possible embodiment with reference to first aspect, an embodiment of the present invention provides the 6th kind of first aspect Possible embodiment, wherein method further includes:
When finding Steric clashes during carrying out space exploration to closed model, alarm signal is sent out.
Second aspect, an embodiment of the present invention provides the conversion equipments of two dimensional pipeline to threedimensional model, including:
Three-dimensional straight tube generation module, for generating three-dimensional straight according to the Vector Message of piping lane center line section in two dimensional pipeline Pipe;
Three-dimensional vertical tube generation module, for calculating the difference in height between adjacent three-dimensional straight tube, and, generate three according to difference in height Tie up vertical tube;
Three-dimensional elbow generation module, for calculating the yaw angle between adjacent three-dimensional straight tube, and, generate three according to yaw angle Tie up elbow;
Composite module is used for three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination into three-dimensional piping lane model.
The third aspect, the embodiment of the present invention also provide a kind of terminal, including memory and processor, and memory is for depositing Storage supports processor to execute the program of conversion method of the two dimensional pipeline of above-mentioned aspect offer to threedimensional model, and processor is configured For for executing the program stored in memory.
Fourth aspect, the embodiment of the present invention also provide a kind of computer readable storage medium, computer readable storage medium On be stored with computer program, when computer program is run by processor execute any of the above-described method the step of.
Conversion method and device of the two dimensional pipeline provided in an embodiment of the present invention to threedimensional model, wherein the two dimensional pipeline Conversion method to threedimensional model includes:First, three-dimensional straight is generated according to the Vector Message of piping lane center line section in two dimensional pipeline Then pipe after generating multiple three-dimensional straight tubes according to above-mentioned steps, calculates the difference in height between adjacent three-dimensional straight tube, also, root Three-dimensional vertical tube is generated according to difference in height, secondly, calculates the yaw angle between adjacent three-dimensional straight tube, also, three are generated according to yaw angle Elbow is tieed up, is effectively connected three-dimensional straight tube and three-dimensional vertical tube etc. by three-dimensional elbow, it is later, three-dimensional straight tube, three-dimensional is perpendicular Pipe and three-dimensional bend-head combination can conveniently be converted two dimensional pipeline at three-dimensional piping lane model by above-mentioned processing procedure At threedimensional model, consequently facilitating people check the special case of pipeline, compared with existing processing mode, the two dimensional pipeline to three-dimensional The conversion method of model eliminates the process that people largely consult and survey, and can realize to pipeline position special case Accurate evaluation.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages are in specification, claims And specifically noted structure is realized and is obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate Appended attached drawing, is described in detail below.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art Embodiment or attached drawing needed to be used in the description of the prior art are briefly described, it should be apparent that, in being described below Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor It puts, other drawings may also be obtained based on these drawings.
Fig. 1 shows three-dimensional piping lane mould in the two dimensional pipeline to the conversion method of threedimensional model that the embodiment of the present invention is provided The schematic diagram of type;
Flow chart of the two dimensional pipeline provided Fig. 2 shows the embodiment of the present invention to the conversion method of threedimensional model;
Fig. 3 shows the structure connection of two dimensional pipeline that the embodiment of the present invention is provided to the conversion equipment of threedimensional model Figure.
Icon:1- three-dimensional straight tubes;2- three-dimensional elbows;3- three-dimensional vertical tubes;4- three-dimensional straight tube generation modules;5- three-dimensional vertical tubes are given birth to At module;6- three-dimensional elbow generation modules;7- composite modules.
Specific implementation mode
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, the detailed description of the embodiment of the present invention to providing in the accompanying drawings is not intended to limit claimed invention below Range, but it is merely representative of the selected embodiment of the present invention.Based on the embodiment of the present invention, those skilled in the art are not doing The every other embodiment obtained under the premise of going out creative work, shall fall within the protection scope of the present invention.
Before carrying out underground construction and transformation, the special case around underground utilities is first understood.Currently, main Solution is:The as-constructed drawing of public piping lane pipeline summary view and piping lane pipeline based on CAD formats carries out new pipeline The detailed design of construction drawing, since the references object such as above-mentioned summary view and as-constructed drawing are all the two dimensional surface information of dispersion, nothing Method comprehensively shows the special case of public piping lane (especially steel construction piping lane).Especially in the feelings of pipeline space resource contention It, can only be by consulting a large amount of completion detail drawing, furthermore, it is desirable to which piping lane space can just be viewed by measuring confirmation to scene under condition Situation, process are cumbersome laborious.
Based on this, an embodiment of the present invention provides the conversion method of two dimensional pipeline to threedimensional model and device, below by Embodiment is described.
Some that be used technical terms in the present invention are explained first below:
(1) piping lane steel construction:It is commonly called as piping lane pillar, is by continuous piping lane frame (beam) and rows of landing column and each The large-scale framework of kind stay bolt composition, basic structure section are in " ∏ " type.Pipe rack can be single layer, can also be bilayer, To the rows of various pipelines of rest, using more in chemical industry and petrochemical production device.Piping lane steel construction generally use The shaped steel and shaped steel component of various specifications, Н shaped steel and connecting rib etc. are welded, and are generally accompanied by and walk on stage, railing, climb Ladder, to meet the needs to pipeline, valve operation repair.
(2) piping lane component data:Piping lane component is made of column, crossbeam, secondary beam, diagonal brace, cushion cap and six type of pile foundation; Its central post is core component, plays the role of piping lane station location marker, it is (empty that column contains height, maximum capacity and maximum capacity Between) etc. attributes.
(3) pipeline data:Pipeline data are designed based on piping lane always flat figure, and element is by conduit saddle, inflection point and pipe Line forms.
Piping lane center line segment:It refer to the line segment interrupted as node using conduit saddle and inflection point on pipeline.Including coordinate information, rise The only information such as node serial number, the frame top mark height of start-stop node, pipeline height, caliber, pitch angle and yaw angle.
Frame top mark is high:The height of piping lane column, line sections starting point frame top mark height refers to the corresponding piping lane of pipeline start node The height of column.
Pitch angle:It is calculated according to pipeline section start-stop node's length and start-stop node frame top mark height.
Yaw angle:It is calculated according to the plane coordinates information of start-stop node.
Pipeline height:The height of line sections start node from the ground.
(4) three-dimensional pipeline:The basic model of the three-dimensional pipeline of composition is made of straight tube, elbow and vertical tube.
Straight tube:The pipeline parallel with ground level.
Vertical tube:The pipeline vertical with ground level.
Elbow:Connector, for connecting the line sections there are yaw angle.
Embodiment 1
Referring to Fig. 1 and Fig. 2, the conversion method for two dimensional pipeline to the threedimensional model that the present embodiment proposes specifically includes following step Suddenly:
Step S101:Three-dimensional straight tube is generated according to the Vector Message of piping lane center line section in two dimensional pipeline.
Step S102:The difference in height between adjacent three-dimensional straight tube is calculated, also, three-dimensional vertical tube is generated according to difference in height.
Step S103:The yaw angle between adjacent three-dimensional straight tube is calculated, also, three-dimensional elbow is generated according to yaw angle.
Step S104:Three-dimensional straight tube 1, three-dimensional vertical tube 3 and three-dimensional elbow 2 are combined into three-dimensional piping lane model.
Above-mentioned each step is described in detail below, above-mentioned steps S101 is according to piping lane center line section in two dimensional pipeline Vector Message generate three-dimensional straight tube, specifically include:
(1) since two dimensional pipeline is formed by connecting by multistage piping lane center line segment, obtains piping lane center in two dimensional pipeline The Vector Message of line segment, that is, starting point coordinate (Sx,Sy), terminal point coordinate (Ex,Ey), the high S of starting point frame top markh, the high E of terminal frame top markhWith Caliber DN.
(2) pitch angle of piping lane center line section is calculatedTo consider this section pipe Corridor center line segment swings up and down situation vertical direction.
(3) yaw angle of piping lane center line section is calculatedTo consider this section of piping lane center line segment in water Square to the situation that swings.
(4) length of straight pipe of piping lane center line section is calculatedThat is basis Above-mentioned coordinate calculates the absolute growth of piping lane center line section in the horizontal direction.
(5) the straight tube pipeline height of piping lane center line section is calculatedI.e. according to above-mentioned coordinate computer tube The absolute growth of corridor center line segment in the vertical direction.
(6) pre-set threedimensional model is matched according to straight tube pipeline height H, caliber DN and length of straight pipe L and generates three Tie up straight tube.It needs to illustrate, pre-set threedimensional model can flexibly be chosen according to user's use demands, example Such as, the master pattern etc. being directly generated in advance in CAD according to two dimensional pipeline data.In implementation process, by what is calculated Straight tube pipeline height H, caliber DN and length of straight pipe L are put into matching threedimensional model and generate three-dimensional straight tube.It additionally needs Under explanation, matching selection process, parameter, number of parameters of the input and output for the master pattern being generated in advance etc. be not true It is fixed, the threedimensional model to match with above-mentioned parameter, number of parameters is first searched when choosing matched threedimensional model.
Step S102 calculates the difference in height between adjacent three-dimensional straight tube, also, generates three-dimensional vertical tube according to difference in height, specifically Including:
(1) since three-dimensional vertical tube is provided in for what is played a supportive role between three-dimensional straight tube, and therefore, it is necessary at least two A horizontally disposed piping lane center line segment calculates and generates three-dimensional vertical tube, remembers previous piping lane center line segment in implementation process Make F, the latter piping lane center line segment being attached thereto is denoted as B.
(2) the terminal frame for obtaining previous piping lane center line segment rises FEh, F is risen by the vector parameters terminal frameEh's It obtains to weigh the altitudes of previous piping lane center line segment.
(3) the starting point frame for obtaining the latter piping lane center line segment rises BSh, B is risen by the vector parameters starting point frameSh's It obtains to weigh the altitudes of the latter piping lane center line segment.Also, in previous piping lane center line segment and the latter piping lane Heart line segment is adjacent connected.
(4) after, F is risen according to terminal frameEhB is risen with starting point frameShCalculate the difference in height V between three-dimensional straight tubeh=| BSh-FEh|, since above-mentioned two height value is uncertain, so weighing the height between three-dimensional straight tube by the calculating of absolute value Gap.
(5) according to difference in height VhPre-set threedimensional model is matched with caliber DN and generates three-dimensional vertical tube.Similarly, it needs It illustrates, pre-set threedimensional model can flexibly be chosen according to user's use demands, for example, being managed according to two dimension Line number is according to the master pattern etc. being directly generated in advance in CAD.In implementation process, the difference in height V that will calculatehAnd caliber DN is put into matching threedimensional model and generates three-dimensional vertical tube.It additionally needs under explanation, matching selection process, in advance Parameter, number of parameters of the input and output of the master pattern of generation etc. are uncertain, first to be looked into when choosing matched threedimensional model Look for the threedimensional model to match with above-mentioned parameter, number of parameters.
Above-mentioned steps S103 calculates the yaw angle between adjacent three-dimensional straight tube, also, generates three-dimensional elbow according to yaw angle, It specifically includes:
(1) yaw angle of previous piping lane center line segment F is obtainedTo consider previous piping lane center line segment in level side To the situation that swings.
(2) yaw angle of the latter piping lane center line segment F is obtainedTo consider the latter piping lane center line segment in level side To the situation that swings.It swings situation and the latter piping lane center when previous piping lane center line segment is in the horizontal direction When the line segment situation in the horizontal direction that swings is consistent, three-dimensional straight tube and three-dimensional vertical tube can be connected directly;Most situations Under, swing situation and the latter piping lane center line segment in the horizontal direction when previous piping lane center line segment is in the horizontal direction The situation that swings it is inconsistent when, will produce corresponding difference between three-dimensional straight tube and three-dimensional vertical tube, need different cambers Elbow is connected.
(4) therefore, the rotation angle of elbow is calculated according to the yaw angle between the line segment of above-mentioned two piping lane center
(5) also, in order to consider elbow itself swinging in the horizontal direction, when implementation, calculates the yaw angle of elbow
(6) after, according to rotation angle WΦAnd yaw angleGenerate three-dimensional elbow.It needs to illustrate, above-mentioned three-dimensional The aperture width of elbow is slightly larger than above-mentioned caliber DN, when specific implementation the numerical value of the aperture width of three-dimensional elbow can according to circumstances into Row flexibly setting.
Above-mentioned steps S104 at three-dimensional piping lane model, specifically includes three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination:
(1) during forming three-dimensional piping lane model, the starting point coordinate of model is first determined, it is generally the case that model Starting point coordinate it is consistent with the starting point of the three-dimensional straight tube in selected spatial dimension, therefore, implement when, according to starting point coordinate (Sx, Sy) and straight tube pipeline height H generate the starting point (S of three-dimensional straight tubex,Sy,H)。
(2) after, according to the pitching angle theta and yaw angle of the three-dimensional straight tube in step (1)Determine the space side of three-dimensional straight tube To for example, using above-mentioned starting point as first quartile direction of origin etc..
(3) in order to determine origin, i.e., by the starting point (S of three-dimensional straight tubex,Sy, H) and it is overlapped with one end of three-dimensional straight tube, this three Tie up an endpoint, that is, above-mentioned starting point of straight tube.
(4) after determining origin, need to place three-dimensional straight tube in the region where direction in space, with pitching angle theta and Yaw angleThree-dimensional straight tube is placed in space coordinates for direction in space, correspondingly, the multiple three-dimensional straight tubes generated successively to After arrange.
(5) after, three-dimensional vertical tube is placed between connected three-dimensional straight tube in space coordinates, three-dimensional vertical tube is placed Principle needs depending on the position of previous piping lane center line segment and the latter piping lane center line segment.Wherein, previous piping lane The Vector Message of center line segment is for generating previous three-dimensional straight tube.
(6) after, three-dimensional straight tube and three-dimensional vertical tube are connected into closed model with the three-dimensional elbow of above-mentioned generation.When need When examining or check the concrete condition of the underground space, it can be judged by the concrete condition of the closed model.When there is other pipelines When model is directly entered the closed model, show there are Steric clashes, when the model of other pipelines has effectively bypassed the closing Model when, show that special case is good, the closed model is practicable on this space.
In addition, for the ease of checking in space, the conversion method of two dimensional pipeline to threedimensional model further includes:To closed When model is overturn, three-dimensional straight tube, three-dimensional vertical tube and three-dimensional elbow can 720 degree of rotations.It, can be effective by above-mentioned rotation Accurately view the special case residing for above-mentioned closed model.
In addition, for the ease of making the presence it was recognized that Steric clashes, the conversion method of two dimensional pipeline to threedimensional model Further include:When finding Steric clashes during carrying out space exploration to closed model, alarm signal, example are sent out Such as, sound or light etc. are sent out.
In conclusion the conversion method of two dimensional pipeline provided in this embodiment to threedimensional model includes:First, according to two dimension The Vector Message of piping lane center line section generates three-dimensional straight tube in pipeline, then, calculates the difference in height between adjacent three-dimensional straight tube, and And three-dimensional vertical tube is generated according to difference in height, secondly, the yaw angle between adjacent three-dimensional straight tube is calculated, also, give birth to according to yaw angle At three-dimensional elbow, later, by three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination at three-dimensional piping lane model, pass through above-mentioned processing Process can be converted to threedimensional model according to two dimensional pipeline, in this way, the special case of pipeline is checked convenient for people, to save People largely consult and the processes of exploration, and can realize the accurate evaluation to pipeline position special case, convenient and efficient.
Embodiment 2
Referring to Fig. 3, the conversion equipment for present embodiments providing two dimensional pipeline to threedimensional model includes:
Three-dimensional straight tube generation module 4, for generating three-dimensional straight according to the Vector Message of piping lane center line section in two dimensional pipeline Pipe.
Three-dimensional vertical tube generation module 5, for calculating the difference in height between adjacent three-dimensional straight tube, also, according to height bad student At three-dimensional vertical tube.
Three-dimensional elbow generation module 6, gives birth to for calculating the yaw angle between adjacent three-dimensional straight tube, also, according to yaw angle At three-dimensional elbow.
Composite module 7 is used for three-dimensional straight tube, three-dimensional vertical tube and three-dimensional bend-head combination into three-dimensional piping lane model.
Two dimensional pipeline provided in an embodiment of the present invention is to the conversion equipment of threedimensional model, the two dimension provided with above-described embodiment The conversion method technical characteristic having the same of pipeline to threedimensional model reaches phase so can also solve identical technical problem Same technique effect.
The embodiment of the present invention additionally provides a kind of terminal, including memory and processor, and memory is supported for storing Processor executes the program of above-described embodiment method, and processor is configurable for executing the program stored in memory.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, when computer program is run by processor the step of the method for execution any of the above-described.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment weight Point explanation is all difference from other examples, and the same or similar parts between the embodiments can be referred to each other. The two dimensional pipeline that the embodiment of the present invention is provided is to the conversion method and device of threedimensional model, the technology of realization principle and generation Effect is identical with preceding method embodiment, and to briefly describe, device embodiment part does not refer to place, can refer to preceding method reality Apply corresponding contents in example.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module or unit in each embodiment of the present invention can integrate and to form an independence Part, can also be modules individualism, can also two or more modules be integrated to form an independent portion Point.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence, can not be interpreted as indicating or implying relative importance.Moreover, term " packet Include ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion so that including the mistake of a series of elements Journey, method, article or equipment include not only those elements, but also include other elements that are not explicitly listed, either Further include for elements inherent to such a process, method, article, or device.In the absence of more restrictions, by sentence The element that "including a ..." limits, it is not excluded that also deposit in the process, method, article or apparatus that includes the element In other identical element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should be noted that:Similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and is explained.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection 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. two dimensional pipeline is to the conversion method of threedimensional model, which is characterized in that including:
Three-dimensional straight tube is generated according to the Vector Message of piping lane center line section in two dimensional pipeline;
The difference in height between the adjacent three-dimensional straight tube is calculated, and, three-dimensional vertical tube is generated according to the difference in height;
The yaw angle between the adjacent three-dimensional straight tube is calculated, and, it is generated according to the rotation angle and the yaw angle three-dimensional curved Head;
By the three-dimensional straight tube, the three-dimensional vertical tube and the three-dimensional bend-head combination at three-dimensional piping lane model.
2. two dimensional pipeline according to claim 1 is to the conversion method of threedimensional model, which is characterized in that described according to two dimension The Vector Message of piping lane center line section generates three-dimensional straight tube in pipeline, including:
Obtain the starting point coordinate (S of piping lane center line section in two dimensional pipelinex,Sy), terminal point coordinate (Ex,Ey), the high S of starting point frame top markh、 The high E of terminal frame top markhWith caliber DN;
Calculate the pitch angle of piping lane center line segment
Calculate the yaw angle of piping lane center line segment
Calculate the length of straight pipe of piping lane center line segment
Calculate the straight tube pipeline height of piping lane center line segment
Pre-set threedimensional model and life are matched according to the straight tube pipeline height H, the caliber DN and the length of straight pipe L At the three-dimensional straight tube.
3. two dimensional pipeline according to claim 2 is to the conversion method of threedimensional model, which is characterized in that it is described calculate it is adjacent Difference in height between the three-dimensional straight tube, and, three-dimensional vertical tube is generated according to the difference in height, including:
Previous piping lane center line segment is denoted as F, the latter piping lane center line segment being attached thereto is denoted as B;
The terminal frame for obtaining the previous piping lane center line segment rises FEh
The starting point frame for obtaining the latter piping lane center line segment rises BSh
F is risen according to the terminal frameEhB is risen with the starting point frameShCalculate the difference in height V between the three-dimensional straight tubeh=| BSh-FEh|;
According to the difference in height VhPre-set threedimensional model is matched with the caliber DN and generates the three-dimensional vertical tube.
4. two dimensional pipeline according to claim 3 is to the conversion method of threedimensional model, which is characterized in that it is described calculate it is adjacent Yaw angle between the three-dimensional straight tube, and, three-dimensional elbow is generated according to the rotation angle and the yaw angle, including:
Obtain the yaw angle of the previous piping lane center line segment F
Obtain the yaw angle of the latter piping lane center line segment F
Calculate the rotation angle of elbow
Calculate the yaw angle of elbow
According to the rotation angle WΦWith the yaw angleGenerate the three-dimensional elbow.
5. two dimensional pipeline according to claim 3 is to the conversion method of threedimensional model, which is characterized in that described by described three Straight tube, the three-dimensional vertical tube and the three-dimensional bend-head combination are tieed up into three-dimensional piping lane model, including:
According to the starting point coordinate (Sx,Sy) and the straight tube pipeline height H generate the starting point (S of the three-dimensional straight tubex,Sy,H);
According to the pitching angle theta and the yaw angleDetermine the direction in space of the three-dimensional straight tube;
By the starting point (S of the three-dimensional straight tubex,Sy, H) and it is overlapped with one end of the three-dimensional straight tube;
With the pitching angle theta and the yaw angleThe three-dimensional straight tube is placed in space coordinates for direction in space;
The three-dimensional vertical tube is placed between the connected three-dimensional straight tube in the space coordinates;
The three-dimensional straight tube and the three-dimensional vertical tube are connected into closed model with the three-dimensional elbow.
6. two dimensional pipeline according to claim 5 is to the conversion method of threedimensional model, which is characterized in that the method is also wrapped It includes:
When being overturn to the closed model, the three-dimensional straight tube, the three-dimensional vertical tube and the three-dimensional elbow energy 720 Degree rotation.
7. two dimensional pipeline according to claim 5 is to the conversion method of threedimensional model, which is characterized in that the method is also wrapped It includes:
When finding Steric clashes during carrying out space exploration to the closed model, alarm signal is sent out.
8. two dimensional pipeline is to the conversion equipment of threedimensional model, which is characterized in that including:
Three-dimensional straight tube generation module, for generating three-dimensional straight tube according to the Vector Message of piping lane center line section in two dimensional pipeline;
Three-dimensional vertical tube generation module, for calculating the difference in height between the adjacent three-dimensional straight tube, and, according to the height bad student At three-dimensional vertical tube;
Three-dimensional elbow generation module, for calculating the yaw angle between the adjacent three-dimensional straight tube, and, according to the rotation angle and The yaw angle generates three-dimensional elbow;
Composite module is used for the three-dimensional straight tube, the three-dimensional vertical tube and the three-dimensional bend-head combination into three-dimensional piping lane model.
9. a kind of terminal, which is characterized in that including memory and processor, the memory supports processor to hold for storing The program of any one of row claim 1 to 7 the method, the processor are configurable for executing and be stored in the memory Program.
10. a kind of computer readable storage medium, it is stored with computer program on computer readable storage medium, feature exists In when computer program is run by processor the step of any one of execution the claims 1 to 7 the method.
CN201810313499.XA 2018-04-09 2018-04-09 Method and device for converting two-dimensional pipeline into three-dimensional model Active CN108510589B (en)

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 true CN108510589A (en) 2018-09-07
CN108510589B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN112509139A (en) * 2020-12-14 2021-03-16 盈嘉互联(北京)科技有限公司 BIM model pipeline center line extraction method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201128A (en) * 2011-04-14 2011-09-28 北京怡诚科训技术发展有限公司 Method and device for transforming pipe models
US20150097828A1 (en) * 2013-10-09 2015-04-09 Trimble Navigation Limited Method and system for 3d modeling using feature detection
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102201128A (en) * 2011-04-14 2011-09-28 北京怡诚科训技术发展有限公司 Method and device for transforming pipe models
US20150097828A1 (en) * 2013-10-09 2015-04-09 Trimble Navigation Limited Method and system for 3d modeling using feature detection
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)

* Cited by examiner, † Cited by third party
Title
周京春: "地下管网三维空间数据模型及自动化精细建模方法研究", 《中国博士学位论文全文数据库 基础科学辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
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
CN112509139A (en) * 2020-12-14 2021-03-16 盈嘉互联(北京)科技有限公司 BIM model pipeline center line extraction method and device

Also Published As

Publication number Publication date
CN108510589B (en) 2022-03-22

Similar Documents

Publication Publication Date Title
Irizarry et al. Optimizing location of tower cranes on construction sites through GIS and BIM integration
CN105320811A (en) Method for establishing topological connected model of urban underground electricity pipe network
Cha et al. Integrated simulation framework for the process planning of ships and offshore structures
CN114511202A (en) BIM-based full-period engineering project management method and platform
CN109359351A (en) A kind of pipeline three-dimensional modeling method and pipe design method
CN105808884B (en) Fractal theory-based bounded uncertainty plane crack stress intensity factor upper and lower bound prediction method
CN107688908A (en) Study and judge the method and device of construction safety risk
CN108510589A (en) Conversion method and device of the two dimensional pipeline to threedimensional model
CN104572924A (en) Multiscale expression information generating method for GIS (geographic information system) vector building polygon
CN108364331A (en) A kind of isopleth generation method, system and storage medium
CN109934465A (en) A kind of urban safety overall risk analysis method and system
CN108563915B (en) Vehicle digital simulation test model construction system and method, and computer program
KR20100025144A (en) Architectural structure management system based on geographic information system and architecture drawing and method thereof
CN113780475A (en) Mountain tunnel model fusion method based on GIS environment
CN107490618B (en) Method for calculating magnetic induction intensity of self-leakage magnetic field of steel pipeline containing defects
CN112597574A (en) Construction method and device of building information model
CN103559657A (en) Electric transmission line data processing method and system
CN115964830A (en) Unmanned aerial vehicle emergency center site selection method and device under complex roadway network
CN113095552B (en) Ocean platform leakage combustible gas cloud cluster volume prediction method and system
CN103714494B (en) Power circuit method for building up and device
CN108509740A (en) Pipeline path method and device for planning based on piping lane
CA2887319C (en) A method for determining a karstic region
Punurai et al. A novel hybridized metaheuristic technique in enhancing the diagnosis of cross‐sectional dent damaged offshore platform members
CN112948949A (en) Dynamic modeling method, device and equipment for hydro-junction engineering
CN108137128A (en) For determining the method and system of connecting element manufacture size

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