Detailed Description
For a better understanding of the invention, the method according to the invention is further illustrated below with reference to the description of an embodiment in conjunction with the drawing.
In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the invention. It will be understood by those skilled in the art, however, that the present invention may be practiced without these specific details. In the embodiments, well-known methods, procedures, components, and so forth have not been described in detail as not to unnecessarily obscure the embodiments.
Referring to fig. 1, the invention discloses a method for temporarily building three-dimensional digital automatic layout for engineering construction, which is characterized in that:
step 1: loading three-dimensional scene coordinates of engineering construction, and creating a target area where the temporary construction is located based on the initial point of the scene coordinates;
step 2: adding temporary building components by taking the target area as a datum plane, wherein the temporary building components comprise one or more components;
and step 3: carrying out area matching detection on the target area and the temporary building component;
and 4, step 4: carrying out three-dimensional digital automatic layout on the temporary building assembly;
and 5: performing collision analysis within the range of the target area;
and 6, combining the target area containing the temporary construction assembly with the engineering construction three-dimensional scene, and displaying the engineering construction temporary three-dimensional digital scene.
Preferably, wherein the step 3: carrying out area matching detection on the target area and the temporary building assembly, and specifically comprising the following steps:
if the cross-sectional area of a single temporary building component exceeds the area of the constructed target area, the fact that the temporary building component selected by the user cannot be matched with the target area is indicated, the user is prompted to re-select the temporary building component, and if the cross-sectional area of the single temporary building component does not exceed the area of the constructed target area, the fact that matching is successful is indicated; and prompting the temporary building assembly with the cross-sectional area exceeding the area of the target area when prompting the user to reselect the temporary building assembly.
Preferably, wherein the step 4: the three-dimensional digital automatic layout of the temporary building assembly specifically comprises the following steps:
step 4-1, determining the area of the target area S1, and determining the sum of the cross sectional areas of all the adjacent building components S2;
step 4-2, comparing the area sizes of S1 and S2, and if S1 is larger than or equal to S2, determining the preliminarily selected temporary building components; if the S1 is smaller than the S2, prompting the user to reselect the temporary building component, returning to the step 4-1 until the area requirement is met, and determining the preliminarily selected temporary building component;
4-3, dividing the cross section shape of the primarily selected temporary building component into a regular graph and an irregular graph; performing circumscribed rectangle enveloping on the cross section graphs of the temporary building components with irregular cross sections to obtain a minimum circumscribed enveloping rectangle, taking the minimum circumscribed enveloping rectangle as the cross section of the temporary building components, and determining the sum of the cross section areas of all the temporary building components S3;
step 4-4, comparing the area sizes of S1 and S3, if (80%. S1) is greater than or equal to S3, determining the finally selected temporary building component, if (80%. S1) is less than S3, prompting the user to reselect the temporary building component, returning to the step 4-1 until the area requirement is met, and determining the finally selected temporary building component;
and 4-5, performing three-dimensional digital automatic layout of the temporary building assembly in the target area. The automatic layout of the temporary building can be realized by adopting the prior art in the field.
Preferably, in the step 4-3, the circumscribed rectangular envelope is performed on the cross-sectional graph of each temporary building component with the irregular cross-section, specifically: extracting coordinate information of the irregular cross-section graph, and continuously rotating the irregular cross-section graph until the irregular cross-section graph completes the rotation of the angle of 90 degrees, wherein the angle of each rotation is controlled between 0 and 90 degrees; and simultaneously carrying out rectangular orthogonal envelope in the rotation process to obtain a minimum circumscribed envelope rectangle, wherein the minimum circumscribed envelope rectangle is a rectangle which envelopes irregular cross-section figures and has the smallest area.
Preferably, wherein the step 4: the three-dimensional digital automatic layout of the temporary building components is carried out, and the method also comprises the steps of 4-6, the automatic layout adjustment of the temporary building components,
in order to realize the layout optimization of each temporary building in the engineering construction, the positions of temporary building components in the target area after the initial automatic layout are adjusted, and the following objective functions and constraint conditions are adopted:
F(Xi,T)=aL(Xi,Ti)+bC(Xi,Ti)+cU(Xi,Ti)+dD(Xi,Ti)+eQ(Xi,Ti)
wherein i is iteration times (i is an integer more than or equal to 0), X is the coordinate position of the layout of each adjacent building component, T is an adjustment parameter, and X is0As coordinate position of the initial layout, T0For initial adjustment of parameters, a, b, C, D and e are weight factors of L, C, U, D, Q respectively, L is total length of connecting lines between each adjacent construction component and the engineering construction main body, C is total number of crossing of connecting lines between adjacent construction components, U is adjacent distance between adjacent construction components, and D is adjacent distance between each adjacent construction component and the edge of the target areaThe nearest distance of the boundary, Q is the sum of the uniformity of all the adjacent components;
the constraint conditions are as follows:
wherein S is
iIs the cross-sectional area of the ith adjacent building component, S1 is the area of the target region, n is the number of selected adjacent building components,
is the height of the ith temporary building component, P
i(height) is the height limit of the current layout position of the ith temporary component,
foundation depth, P, for the ith temporary building component
i(base) is the foundation depth limit for the current layout position of the ith build component,
is the cross-sectional area of the ith adjacent component, P
i(square) a building area limit for the current layout position of the ith building block;
and specifically, the following optimization steps are adopted for adjusting the layout of the temporary building assembly:
4-6-1, calculating a target function in an initial state after the initial automatic layout is successful;
4-6-2, adjusting the layout of the temporary building components, and adjusting the positions of one or more temporary building components in the target area;
4-6-3, calculating the target function again, judging whether the adjustment result is accepted or not according to the constraint condition if the value of the target function after the position adjustment of the temporary building assembly is not smaller than the initial value, returning to the initial automatic layout state if the adjustment result is not accepted, and returning to execute the step 4-6-2; if the current state is smaller than the initial value, the current state is saved and is used as the initial state of the next position adjustment;
step 4-6-4, judging whether the random position adjustment is terminated under the current adjustment parameters to generate a new state according to a preset criterion, and if the preset criterion is met, continuing to adjust the position of the temporary building assembly; if the preset criterion is not met, the adjustment parameter T is reduced, the iteration flow step 4-6-1 is re-entered, and the process is ended until the set convergence criterion is met,
and 4-6-5, taking the position adjustment state of the temporary building assembly in the current iteration flow as the final temporary building assembly layout.
Preferably, the convergence criterion of step 4-6-4 is whether the number of iterations is satisfied, or whether the objective function value of the current iteration is smaller than a threshold value.
The application also provides a system for the engineering construction temporary three-dimensional digital automatic layout, which is characterized in that:
a creation unit: the system is used for loading three-dimensional scene coordinates of engineering construction, and creating a target area where the temporary construction is located based on the initial point of the scene coordinates;
a component addition unit: adding temporary building components by taking the target area as a datum plane, wherein the temporary building components comprise one or more components;
an area detection unit: the system is used for carrying out area matching detection on the target area and the temporary building component;
an automatic layout unit: the system is used for carrying out three-dimensional digital automatic layout on the temporary building assembly;
a collision analysis unit: the collision analysis is carried out within the range of the target area;
a display unit: and the system is used for combining the target area containing the temporary construction assembly with the engineering construction three-dimensional scene and displaying the engineering construction temporary three-dimensional digital scene.
Preferably, wherein the area detecting unit: the method is used for area matching detection of a target area and an adjacent building assembly, and specifically comprises the following steps:
if the cross-sectional area of a single temporary building component exceeds the area of the constructed target area, the fact that the temporary building component selected by the user cannot be matched with the target area is indicated, the user is prompted to re-select the temporary building component, and if the cross-sectional area of the single temporary building component does not exceed the area of the constructed target area, the fact that matching is successful is indicated; and prompting the temporary building assembly with the cross-sectional area exceeding the area of the target area when prompting the user to reselect the temporary building assembly.
Preferably, wherein the automatic layout unit: the method is used for three-dimensional digital automatic layout of the temporary building assembly, and specifically comprises the following steps:
the layout unit 4-1 is used for determining the area S1 of the target area and determining the sum of the cross sectional areas of all the adjacent building components S2;
the layout unit 4-2 is used for comparing the area sizes of S1 and S2, and if S1 is larger than or equal to S2, determining a preliminarily selected temporary building component; if the S1 is smaller than the S2, prompting the user to reselect the temporary building component, returning to the step 4-1 until the area requirement is met, and determining the preliminarily selected temporary building component;
the layout unit 4-3 is used for dividing the cross section shape of the primarily selected temporary building component into a regular graph and an irregular graph; performing circumscribed rectangle enveloping on the cross section graphs of the temporary building components with irregular cross sections to obtain a minimum circumscribed enveloping rectangle, taking the minimum circumscribed enveloping rectangle as the cross section of the temporary building components, and determining the sum of the cross section areas of all the temporary building components S3;
the layout unit 4-4 is used for comparing the area sizes of S1 and S3, if (80%. S1) is greater than or equal to S3, the finally selected temporary building component is determined, if (80%. S1) is less than S3, the user is prompted to reselect the temporary building component, the step 4-1 is carried out again until the area requirement is met, and the finally selected temporary building component is determined;
and the layout unit 4-5 is used for performing three-dimensional digital automatic layout of the temporary building components in the target area. The automatic layout of the temporary building can be realized by adopting the prior art in the field.
Preferably, the layout unit 4-3 is configured to perform circumscribed rectangular envelope on cross-sectional graphs of the temporary building assemblies each having an irregular cross-section, specifically: extracting coordinate information of the irregular cross-section graph, and continuously rotating the irregular cross-section graph until the irregular cross-section graph completes the rotation of the angle of 90 degrees, wherein the angle of each rotation is controlled between 0 and 90 degrees; and simultaneously carrying out rectangular orthogonal envelope in the rotation process to obtain a minimum circumscribed envelope rectangle, wherein the minimum circumscribed envelope rectangle is a rectangle which envelopes irregular cross-section figures and has the smallest area.
Preferably, wherein the automatic layout unit: used for carrying out three-dimensional digital automatic layout of the temporary building components, and also comprises an adjusting unit used for automatic layout adjustment of the temporary building components,
in order to realize the layout optimization of each temporary building in the engineering construction, the positions of temporary building components in the target area after the initial automatic layout are adjusted, and the following objective functions and constraint conditions are adopted:
F(Xi,T)=aL(Xi,Ti)+bC(Xi,Ti)+cU(Xi,Ti)+dD(Xi,Ti)+eQ(Xi,Ti)
wherein i is iteration times (i is an integer more than or equal to 0), X is the coordinate position of the layout of each adjacent building component, T is an adjustment parameter, and X is0As coordinate position of the initial layout, T0For initial adjustment parameters, a, b, C, D and e are weight factors of L, C, U, D, Q respectively, L is the total length of connecting lines between each adjacent construction component and the engineering construction main body, C is the total number of crossed connecting lines between each adjacent construction component, U is the adjacent distance between each adjacent construction component, D is the nearest distance between each adjacent construction component and the boundary of a target area, and Q is the sum of the uniformity of all the adjacent construction components;
the constraint conditions are as follows:
wherein S is
iIs the cross-sectional area of the ith adjacent building component, S1 is the area of the target region, n is the number of selected adjacent building components,
is the height of the ith temporary building component, P
i(height) is the height limit of the current layout position of the ith temporary component,
foundation depth, P, for the ith temporary building component
i(base) is the foundation depth limit for the current layout position of the ith build component,
is the cross-sectional area of the ith adjacent component, P
i(square) a building area limit for the current layout position of the ith building block;
and specifically comprises the following units for adjusting the layout of the temporary building assembly:
the adjusting unit 4-6-1 is used for calculating a target function in an initial state after the initial automatic layout is successful;
the adjusting unit 4-6-2 is used for adjusting the layout of the temporary building components and adjusting the positions of one or more temporary building components in the target area;
an adjusting unit 4-6-3, configured to calculate the target function again, if the value of the target function after the position adjustment of the temporary building component is not smaller than the initial value, determine whether to accept the adjustment result according to the constraint condition, if not, return to the state of the initial automatic layout, and return to execute step 4-6-2; if the current state is smaller than the initial value, the current state is saved and is used as the initial state of the next position adjustment;
the adjusting unit 4-6-4 is used for judging whether the random position adjustment is terminated under the current adjusting parameter to generate a new state according to a preset criterion, and if the random position adjustment is terminated under the current adjusting parameter, continuing to adjust the position of the temporary building component; if the preset criterion is not met, the adjustment parameter T is reduced, the iteration flow step 4-6-1 is re-entered, and the process is ended until the set convergence criterion is met,
and the adjusting unit 4-6-5 is used for taking the position adjusting state of the temporary building component in the current iteration process as the final temporary building component layout.
Preferably, the convergence criterion of the adjusting unit 4-6-4 is whether the number of iterations is met or whether the objective function value of the current iteration is smaller than a threshold value.
The invention has the advantages that the automatic whole process of the temporary building automatic layout saves a large amount of time, improves the efficiency, increases the accuracy of results, reasonably utilizes the terrain of a construction site, provides multiple guarantees, performs the prior area matching detection and the subsequent position adjustment optimization, and well completes the visual automatic temporary building of the temporary building.
There has been described herein only the preferred embodiments of the invention, but it is not intended to limit the scope, applicability or configuration of the invention in any way. Rather, the detailed description of the embodiments is presented to enable any person skilled in the art to make and use the embodiments. It will be understood that various changes and modifications in detail may be effected therein without departing from the spirit and scope of the invention as defined by the appended claims.