Summary of the invention
For the problems referred to above, it is an object of the invention to be in that for prior art Problems existing, there is provided a kind of based on BIM intelligent extraction setting-out characteristic point method, tradition is overcome to extract the problems such as the setting-out consuming time and then that cause of setting-out characteristic point is consuming time, take a large amount of labour force, with high costs and simplify the complex operations of prior art, realize intelligence setting-out characteristic point, increase substantially construction lofting efficiency, and make layman also be able to carry out accurate construction lofting, reduce engineering time and cost while being finally reached guarantee construction quality.
For achieving the above object, the present invention takes techniques below scheme:
A kind of method based on BIM intelligent extraction setting-out characteristic point, the method comprises the steps:
(1) any BIM model is chosen to be highlighted;
(2) coordinate figure (X on the summit of the normal of all triangular facets and all triangular facets of composition in selected BIM model is obtainedi, Yi, Zi);
(3) judging that adjacent two triangular facets having a common edge are whether in approximately the same plane, newly-built recording surface preserves coplanar triangular facet, travels through all triangular facets successively, is saved in respectively by coplanar triangular facet in the recording surface of correspondence;
(4) judging whether recording surface shape is round, if circle takes the center of circle for this model characteristic point, the summit otherwise taking this model is characteristic point.
In such scheme, described step (1) is title and the numbering etc. that need to read BIM model in APP, then set up and the real time correlation of BIM model in APP, finally when in APP BIM model be subject to click namely button triggering event occurs after just this model is highlighted.
It in such scheme, described step (2) is be typically all, according to BIM model, the feature being made up of triangular facet or four edged surfaces, it is possible to the coordinate figure (Xi, Yi, Zi) on the normal obtaining all triangular facets and the summit forming all triangular facets.
In such scheme, being parallel according to the normal vector of two triangular facets having common edge in described step (3), the coplanar principle of the two triangular facet judges that adjacent two triangular facets having a common edge are whether in approximately the same plane, newly-built recording surface preserves coplanar triangular facet, travel through all triangular facets successively, coplanar triangular facet is saved in respectively in the recording surface of correspondence.
In such scheme, be that the circumscribed circle center of circle according to all triangular facets in same plane is identical in described step (4), for circle, the figure that all triangular facets are constituted judges that recording surface is shaped as circle, and taking the center of circle for this model characteristic point, the summit otherwise taking this model is this model characteristic point.
In such scheme, carrying out above step on backstage, namely the action having only to a simple click screen on foreground can show the characteristic point of this model.
Due to the fact that and take above technical scheme, it has the advantage that
User directly can click BIM model in App can obtain the characteristic point of this model automatically, without extracting setting-out characteristic point by professional software, derive characteristic point, importing a series of processes such as characteristic point in App, make to lift up at BIM model that to pick and place sample characteristic point more intelligent, the characteristic point on BIM can be obtained, it is ensured that while construction precision, also improve work efficiency without professional software can be operated.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described in detail.
As it is shown in figure 1, the embodiment of the present invention provides a kind of method based on BIM intelligent extraction setting-out characteristic point, it is after arbitrary BIM model assembly being clicked on the basis of existing BIM model in setting-out APP, Automatic Program setting-out characteristic point, its concrete steps include as follows:
S1, any BIM model is chosen to be highlighted.
The BIM model imported in setting-out APP system is operated by the present invention, firstly the need of title and the numbering etc. that read BIM model in APP in real time, then set up and the real time correlation of BIM model in APP, finally when in APP BIM model be subject to click namely button triggering event occurs after just this model is highlighted.
Coordinate figure (the X on the summit of S2, the normal obtaining all triangular facets in selected BIM model and all triangular facets of compositioni, Yi, Zi)。
In the application one implements, referring to Fig. 2, described step S2 includes:
S21, BIM model changes into triangular facet.
Setting forth for metope BIM in this step, shown in Fig. 3, Fig. 4, other BIM models are similar.For the ease of step S3 judges coplanar problem and the principle that four points are not necessarily coplanar through be not arranged on the same straight line be 3 are certain coplanar, need first BIM model to be changed into triangular facet BIM model to be usually and be made up of triangular facet or four edged surfaces, wire frame mode can be utilized all to change into triangular facet if model is four edged surface compositions, otherwise be made without this step.
S22, record the quantity of following quantity, normal vector.
The triangular facet of composition BIM model is substantially made up of Points And lines, uses the quantity of the quantity below program language record and normal vector.
The two-dimensional array that vertex of surface dough-kneading method is vectorial is deposited in S23, foundation.
S24, obtain vertex of surface dough-making powder quantity.
S25, the summit taken out in first triangular facet and its normal vector index, respectively obtain its coordinate figure (Xv1, Yv1, Zv1) and (Xf1, Yf1, Zf1)。
S26, by travel through computing obtain all summits coordinate figure (Xvi, Yvi, Zvi) and the coordinate figure (X of triangular facet normal vectorfi, Yfi, Zfi)。
S3, judging that adjacent two triangular facets having a common edge are whether in approximately the same plane, newly-built recording surface preserves coplanar triangular facet, travels through all triangular facets successively, is saved in respectively by coplanar triangular facet in the recording surface of correspondence.
Judging whether adjacent two triangular facets have two apex coordinate values identical, if the same the two triangular facet has common edge otherwise without common edge.Normal vector according to adjacent two triangular facets having common edge(Xm, Ym, Zm) and(Xn, Yn, Zn), it is determined whetherNamely whether there is a non-zero constant λ to make:
(Xm, Ym, Zm)=λ (Xn, Yn, Zn)
Convert and namely whether meet below equation group:
If the coordinate figure of the normal vector of adjacent two triangular facets having common edge meets above equation group, illustrate that the two normal vector is parallel namelyAnd then can show that the adjacent triangular facet having a common edge of the two is namely coplanar at grade.
After two adjacent triangular facets having a common edge are coplanar, newly-built recording surface preserves coplanar triangular facet.Then continue to judge that whether other triangular facets that coplanar two triangular facet is adjacent are coplanar, if coplanar, then newly coplanar triangular facet is saved in built recording surface.Traveling through all triangular facets in this way, newly-built multiple recording surfaces are in order to preserve various coplanar triangular facet.
S4, judge whether recording surface shape is round.If circle takes the center of circle for this model characteristic point, the summit otherwise taking this model is characteristic point.
The triangular facet in the known recording surface of characteristic according to recording surface is coplanar, therefore must have an identical value in triangular facet apex coordinate value, supposes that Zvi value is all identical in the present embodiment.Can reading the coordinate figure (Xvi, Yvi, Zvi) on three summits in all triangular facets in recording surface, which numerical value of Xvi, Yvi, Zvi compared in all triangular facet apex coordinate values is same numerical value.In the present embodiment, two-dimensional coordinate (the Xvi on all summits can be taken out after relatively, Yvi), then three summits of a triangular facet are arbitrarily read, it is assumed to (Xv1, Yv1), (Xv2, Yv2), (Xv3 in the present embodiment, Yv3), the circumscribed circle equation of three vertex correspondence concurrently setting this triangular facet is:
(X-a)2+(Y-b)2=c
Wherein, a, b, c is unknown number, (Xv1, Yv1), (Xv2, Yv2), (Xv3, Yv3) is substituted into above equation and obtains equation group:
Solve above equation group and obtain the value of a, b, c, it is assumed that for a0, b0, c0, now the center of circle of circumscribed circle is (a0, b0), and radius is c0, obtain circumscribed circle equation and be:
(X-a0)2+(Y-b0)2=c0
Wherein, a0, b0, c0 are constant herein.
Bring the summit of other triangular facets in this recording surface into the equation left side (X-a0)2+(Y-b0)2Whether evaluation is seen equal to c0 value, if differing within the scope of certain error with c0 value, then judges that this recording surface is as circular, sees shown in Fig. 5, Fig. 6, and records its three-dimensional central coordinate of circle value (a0, b0, Zvi), and take the characteristic point that this circle-center values is this model.The summit otherwise taking this model is characteristic point.
The various embodiments described above are merely to illustrate the present invention, and wherein in embodiment, data representation etc. all can be varied from, every equivalents carried out on the basis of technical solution of the present invention and improvement, all should not get rid of outside protection scope of the present invention.