Summary of the invention
The objective of the invention is: overcome transversal section data that existing method do not take full advantage of the banded structure thing and be difficult to the deficiency finishing automatic modeling efficiently and embody process of construction, the banded structure thing process of construction automation modeling method that provides a kind of construction data to drive, this method has taken full advantage of the transversal section data, can generate the completion of banded structure thing and construction model automatically based on a spot of construction data, improve modeling efficiency and extendability and can embody process of construction.
To achieve these goals, the technical solution used in the present invention is: the banded structure thing process of construction automation modeling method that a kind of construction data drives, this method with the banded structure thing abstract be the transversal section template, the discrete transversal section sequence that turns to of continuous banded structure thing, generate the transversal section model according to a spot of structure parameter, and connect and generate the completion model, from the completion model, extract the construction model based on a spot of progress data again, automatically generate the completion of banded structure thing and the purpose of construction model thereby reach based on construction data, the step that specifically comprises is as follows:
(1) designs the ingredient of table definition structure transversal section according to structure, and generate the transversal section template;
(2) the structure transversal section sample point coordinate that provides according to transversal section template and the unit in charge of construction of step (1) is given birth to the transversal section model;
(3) the structure spatial positional information that provides according to structure position table is chosen the transversal section model that step (2) obtains, and connects generation structure model;
(4) selected commencement date;
(5) commencement date of setting according to step (4) is chosen corresponding construction progress report in database, and the combined structure object model generates the construction model;
(6) the construction model that obtains of plot step (5), thus banded structure thing process of construction automation modeling finished.
Further, the method of the ingredient of constructing definitions thing transversal section is in the described step (1): mode is formed in the transversal section according to structure design table regulation, utilize tree structure to describe the transversal section, it is divided into structure structure, construction package element, line segment line and arc arc, the transversal section template is divided into some construction package element with baroque cross-sectional configuration body structure by level, and construction package comprises line segment line and the arc arc that constitutes the transversal section.
Further, the method according to transversal section template and the living transversal section of structure transversal section sample point coordinate model is in the described step (2): according to sample point coordinate and structure parameter list, utilize the formula (a) and (b) to calculate transversal section middle conductor and arc;
l
i-b=l
i-a+size·v(angle)·R (a)
p
i=i·(radian/m)·radius·orientation·R+O(point) (b)
Wherein, R is tied to the transition matrix of world coordinate system for the transversal section coordinate; l
I-b, l
I-aBe extremity of segment point coordinate, size is line segment length, and v (angle) is the line segment direction vector; p
iBe summit on the arc, radian is radian, and radius is radius, and orientation is the radial direction vector, and O (point) is central coordinate of circle, and m is number of vertex on the arc.
Further, choose the transversal section model according to structure position table in the described step (3), and connect and generate the structure model: can constitute three-dimensional belt pattern through the transversal section model sequence that instantiation obtains is end to end; It is a recursive procedure that the transversal section connects, and structure structure gives its construction package element of lower floor connecting task assignment, and element gives line and arc task assignment, and line segment and arc are connected to curved surface the most at last; Line between the transversal section is divided into straight line, broken line and three kinds of modes of Beizer curve.
Further, described step (5) is chosen the construction progress report of appointed day in database, extract the construction model from structure completion model: the transversal section template has been stipulated the growth pattern of banded structure thing, mainly is divided into: the increasing, widen and three kinds of modes of construction set accumulation of transversal section; The progress data that increases under the growth pattern is the construction elevation, extracts the above or following completion model of the level line of construction elevation correspondence as construction transversal section model; Widen under the growth pattern transversal section, progress data position width, extract completion model in the width range of sampled point both sides as construction transversal section model; The cumulative growth mode is extracted some construction package formation construction transversal section model in the model of completion transversal section.
Principle of the present invention is: the transversal section data have comprised the main information of describing banded structure beyond the region of objective existence shape, take full advantage of the transversal section data, with the banded structure thing abstract be the transversal section template, generate the transversal section model according to a spot of structure parameter, and connect and generate the completion model, from the completion model, extract the construction model based on a spot of progress data again, generate the completion of banded structure thing and the purpose of construction model automatically thereby reach based on construction data.
The present invention's advantage compared with prior art is: the present invention has taken full advantage of the transversal section data, with structure abstract be the transversal section template, automatically generate the completion of banded structure thing and construction model based on a spot of construction data, improve modeling efficiency and extendability and can embody process of construction.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing and example:
The present invention disperses continuous band-shaped structure and is the transversal section sequence.Described for every kind of banded structure thing definition transversal section template.The transversal section template has been stipulated structure, growth pattern, the instantiation mode of transversal section and has been drawn classification.Structure design table has been stipulated the transversal section contour structures, and the transversal section template is divided into some construction packages by function and structure with it, and construction package is made of line segment and arc; The transversal section increases to increase, to widen and to accumulate three kinds of modes in building course; The transversal section template begins to define line segment and arc successively along cross-sectional outling from sampled point, so also will be according to this order during the model of instantiation transversal section; The transversal section template has been specified the change procedure of structure profile texture in building course, does the displaying structure with the texture of respective stage when drawing the construction model.The supplemental characteristic of each transversal section of structure parameter table stores, parameter entries comprise size and the directional information of line segment and arc by transversal section template table regulation.The parameter entries of enumerating by the transversal section template in structure design table extracts the supplemental characteristic of each transversal section one by one and deposits the structure parameter list in.Can generate the transversal section model according to transversal section template, structure parameter list and sample point coordinate, and connect and be structure completion model.Build progress report and store the progress data of each transversal section and the changes phase of transversal section profile texture.From structure completion model, extract the construction model according to building progress report, and draw by the texture of respective stage.
The present invention is based on the flow process of the banded structure thing process of construction automation modeling method that construction data drives as shown in Figure 2, its step is as follows:
(1) designs the ingredient of table definition structure transversal section according to structure, and generate the transversal section template;
The transversal section template is divided into some construction package elemen with baroque cross-sectional configuration body structure by level, and construction package comprises line segment line and the arc arc that constitutes the transversal section, as shown in Figure 1.The BNF normal form of having showed the transversal section template below.
<structure>::=<structure><element>|<element>
<element>::=<element><line>|<element><arc>|<line>|<arc>
The transversal section template the is abstract geometric profile of transversal section has defined and has formed the line segment of transversal section and the two-dimensional space attribute of arc, and specified the growth pattern of transversal section, makes cross-sectional design and world coordinate system decoupling zero.
Line segment is defined as two tuples<size, angle 〉, size represents the line segment size, and angle represents that line segment is at the angle of transversal section coordinate system with positive x axle.Definition can be the three-dimensional data decoupling zero of transversal section template and the concrete transversal section of description like this, and the user only need specify size and the direction of line segment, and need not be concerned about the coordinate of line segment end points.And the data volume of size and directional information is convenient to storage administration less than three-dimensional coordinate.The three-dimensional data of line segment can be determined when instantiation.
Arc is defined as four-tuple<radius, radian, orientation, point 〉.Wherein, radius represents the radius of arc; Radian represents radian; Orientation is the fan-shaped direction vector of counterclockwise article one radius; Point represents two end points of the center of circle or arc.
(2) the structure transversal section sample point coordinate that provides according to transversal section template and the unit in charge of construction of step (1) generates the transversal section model;
The method of transversal section instantiation is as follows.Calculate the direction vector of arc and line segment and the transition matrix that the transversal section coordinate is tied to world coordinate system, calculate arc and the line segment summit coordinate in world coordinate system according to sample point coordinate again.
The method of calculating transition matrix is as follows.Sampled point p
I-1To sampled point p
iVector
Normal vector n as transversal section i
i(x
i, y
i, z
i), the structure parameter list has been specified the direction n of transversal section axis of ordinates in world coordinate system
y(x
y, y
y, z
y), as shown in Figure 3, so obtain the direction vector of transversal section coordinate system three axes in world coordinate system, as shown in Figure 4.For the some A in the coordinate system of transversal section (x ', y ', z '), if three coordinate axis of transversal section coordinate system and initial point are described to vectorial u, v, w and o in world coordinate system, o+x ' u+y ' v+z ' w is the description of A in world coordinate system so.Because R only be rotation matrix, so can ignore translational movement o, suppose that namely transversal section coordinate system and world coordinate system initial point are overlapping, so A is described as x ' u+y ' v+z ' w in world coordinate system.So, according to direction vector n
y, n
y, n
iCan calculate the transition matrix R of transversal section coordinate system and world coordinate system, as shown in Equation (1).
Can obtain the coordinate v ' of direction vector v under world coordinate system by R.
v′=R·v (2)
Line segment instantiation method: according to line segment one end points coordinate, line segment size size, direction vector v (angle) and transition matrix R, can obtain other end point coordinate, as shown in Equation (3).
l
i-b=l
i-a+size·v(angle)·R (3)
Wherein, l
I-aAnd l
I-bIt is the end points of i bar line segment.
Arc instantiation method: obtain radius vectors v according to radial direction vector orientation and radius length radius
rAgain with angle θ with v
rM-1 time (radian radian=m θ) of other end rotation to arc obtains m-1 bar intermediate vector v
j(j=2,3 ..., m); Calculate vertex sequence p on the arc according to formula (4) at last
i(i=1,2 ..., coordinate m), as shown in Figure 5.
p
i=i·(radian/m)·radius·orientation·R+O(point) (4)
(3) the structure spatial positional information that provides according to structure position table is chosen the transversal section model that step (2) obtains, and connects generation structure model.
Can constitute three-dimensional belt pattern through the transversal section model sequence that instantiation obtains is end to end.It is a recursive procedure that the transversal section connects.Transversal section structure gives construction package element connecting task assignment, and construction package is shared task to line segment line and arc arc, at last corresponding line segment and arc is coupled together.Detailed process is as follows.
(a) check whether current structure assembly element connects, and is then to change (c) over to, otherwise change (b) over to.
(b) judge whether current structure assembly element is atom component, is then to change (d) over to, otherwise enters next level, and change (a) over to.
(c) return the last layer level, judge whether to get back to the structure node, be then to stop connecting flow process and return the banded structure object model, otherwise change (a) over to.
(d) connect the adjacent atom assembly successively, replace line segment and arc with curved surface.Element is labeled as completion status with the current structure assembly, and changes (c) over to.
Line between the transversal section is divided into straight line, broken line and three kinds of modes of Beizer curve.Draw the patch that covers banded building surface after connecting line segment on the adjacent transversal section and arc, patch has been formed the model of banded structure thing.
(4) selected commencement date.Commencement date is defined as an integer, is year, month, day successively on earth from a high position.Unit in charge of construction submits the construction progress report on time, and form is pressed commencement date and structure mileage number tissue.
(5) according to commencement date, in database, choose corresponding construction progress report, and the combined structure object model generates the construction model.
The transversal section template has been stipulated the growth pattern of banded structure thing, mainly is divided into: the increasing, widen and three kinds of modes of construction set accumulation of transversal section.The progress data that increases under the growth pattern is the construction elevation, extracts the above or following completion model of the level line of construction elevation correspondence as construction transversal section model; Widen under the growth pattern transversal section, progress data position width, extract completion model in the width range of sampled point both sides as construction transversal section model; The cumulative growth mode is extracted some construction package formation construction transversal section model in the model of completion transversal section.Increase with add wide way in, if the line segment in cut-off rule and the transversal section model and arc are crossing, then obtain intersection point, former line segment or arc are divided into two parts by intersection point.
Building progress report provides and the corresponding progress data of the growth pattern of structure.For increasing mode, progress data is the construction elevation of transversal section; For add wide way, progress data is that the transversal section is at the width of the sampling point left and right sides; For the accumulation mode, progress data is unique indications of some construction package element.
(6) the construction model that obtains of plot step (5).The transversal section template definition change procedure of structure superficial makings in building course, and build the texture phase that progress report indicates structure, therefore when drawing the construction model, select different texture for use according to different conditions, thereby embody work progress.
The part that does not elaborate among the present invention belongs to those skilled in the art's known technology.
It should be noted last that; the above only is preferred implementation of the present invention; should be understood that; for those skilled in the art; utilize spatial coherence that the panorama data are compressed under the prerequisite not breaking away from the present invention; can also make some improvement or be equal to replacement, these improvement and be equal to replacement and also should be considered as protection scope of the present invention.