Disclosure of Invention
In view of the above drawbacks in the prior art, an object of the present invention is to provide a method, an apparatus, an electronic device and a medium for tear-and-reform comparison based on scheme data. The construction data capable of guiding landing is generated based on the scheme data of the original house type and the modified house type, and the problem that the original house type is not clear in direct comparison with the modified house type is solved.
In order to achieve the above purpose, the invention adopts the following technical scheme.
The first aspect of the present application provides a solution-to-reconstruction comparison method based on scheme data, including:
step S1, performing special construction logic processing on the original house type scheme and the improved house type scheme;
step S2, generating demolished and unchanged data by carrying out graphic Boolean operation on the original house type component and the reconstructed house type component;
in step S3, new and unchanged data are generated by performing a graphic boolean operation on the original house type component and the modified house type component.
In one possible design, the special construction logic process includes: the house type elements which are determined not to be demolished in step S2 or determined not to be newly constructed in step S3, but which need to be demolished or newly constructed in actual construction, are processed and filtered.
In one possible design, step S1 includes:
step S101, traversing original house type components and reconstructed house type components;
step S102, carrying out special construction logic judgment on similar components;
and step S103, recording the processing result of the special construction logic.
In one possible design, step S2 includes:
acquiring projections of the original house type component and the reconstructed house type component on a horizontal plane;
and performing Boolean operation on the projection to obtain demolished and unchanged data.
In one possible design, step S2 includes:
step S201, acquiring XOY projection A of all the reconstructed house type components;
step S202, obtaining an XOY projection B of the house type component E;
step S203, performing two-dimensional graphic Boolean operation on the projections A and B, subtracting the reconstructed house type projection A from the original house type component projection B by the Boolean operation, judging whether the Boolean operation result is empty, if so, indicating that no change is made on the XOY plane, and entering step S204; if not, the removal is described, and the process goes to step S205;
step S204, comparing the three-dimensional data of the house type component E with the components of the original house type,
if the XOY plane is not changed, the height can be changed, and whether the XOY plane does not need to be removed is determined by comparing the heights;
and step S205, recording the final result.
In one possible design, step S3 includes:
acquiring projections of the original house type component and the reconstructed house type component on a horizontal plane;
and performing Boolean operation on the projection to obtain new and unchanged data.
In one possible design, step S3 includes:
step S301, acquiring XOY projections A of all original house type components;
step S302, obtaining an XOY projection B of the house type component E;
step S303, two-dimensional graphic Boolean operation is carried out on the projections A and B,
subtracting the original house type projection A from the reconstructed house type component projection B, judging whether the Boolean operation result is null, if so, indicating that no change exists on the XOY plane, and entering step S304, otherwise, indicating that new construction is performed, and entering step S305;
step S304, comparing the three-dimensional data of the E and the member of the reconstructed house type,
if the XOY plane is not changed, the height of the XOY plane can be changed, and whether new construction is really not needed is determined through the comparison of the heights;
in step S305, the final result is entered.
A second aspect of the present application provides a solution data-based reconstruction comparison apparatus, including:
the special construction logic processing unit is used for carrying out special construction logic processing on the original house type scheme and the improved house type scheme;
the dismantling comparison unit is used for generating dismantled and unchanged data by carrying out graphic Boolean operation on the original house type component and the reconstructed house type component;
and the new construction comparison unit is used for generating new construction and unchanged data by carrying out graphic Boolean operation on the original house type component and the reconstructed house type component.
A third aspect of the present application provides an electronic device comprising: a memory and at least one processor;
the memory is to store program instructions;
the at least one processor is configured to invoke program instructions in the memory to perform the tear-down-and-make alignment method according to the first aspect or each possible implementation manner of the first aspect.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the method for tear-down and make-up comparison according to the first aspect or each possible implementation manner of the first aspect.
Has the advantages that:
by the method and the system, the user can easily obtain the difference between the original house type and the modified house type and guide the construction to land. And because the invention has dealt with the difference of algorithm and special construction logic, under the situation that the wall thickness is inconsistent, etc. changes, can also produce and accord with the construction logic and tear down and reconstruct the construction drawing, has promoted efficiency and accuracy of plotting greatly.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Unless otherwise defined, terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Further, it will be understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense.
The following are some definitions of terms:
original house type scheme: the blank house type is before house type reconstruction.
A house type reconstruction scheme: the house type is completed after the house type structure is modified and the next decoration and construction can be carried out.
The house type component: and indicating the basic data of a certain wall, beam, plate, column, hole and the like in the house type.
The scheme is as follows: refers to a complete house type consisting of all house type components.
According to the method for splitting, rebuilding and comparing based on the scheme, the scheme data of the original house type scheme and the rebuilding house type scheme are read, data comparison is carried out according to the volume data information of the data, and three results are finally output: and removing the data, and creating new data without changing the data. The volume data information may be three-dimensional geometry volume data information of the dwelling member in the dwelling scheme data.
The whole process is shown in fig. 1, the comparison method needs special construction logic processing, then carries out data processing on the house type component, and finally carries out data processing on the door opening to output comparison data.
The method for disassembling, reconstructing and comparing based on scheme data provided by the embodiment comprises the following steps:
step S1, special construction logic processing;
step S2, generating demolished and unchanged data;
in step S3, new and unchanged data is generated.
In one possible embodiment, the special construction logic process is specifically as follows:
the logic is mainly used for processing special construction logics, such as construction logics of 'changing the wall thickness and requiring integral disassembly and construction', and the like. The special construction logic is contrary to the result produced by the comparison method, and the house type components which accord with the special construction logic need to be processed and filtered in advance in a pre-filtering mode. The special construction logic can be added by a user, and then the pretreatment process is automatically executed by a program.
Special construction logic: the present invention is directed to a house type member that is not considered to be removable or newly constructed at the time of calculation, but is actually required to be removable or newly constructed.
Automatically through code processing, a characteristic judgment is made in the code according to example logic and the situation is processed.
The filtering method is shown in fig. 2 and comprises the following steps:
step S101, traversing original house type component and rebuilding house type component
And traversing all the components, and searching the components with similar positions and structures.
A positionally similar, structurally similar member refers to a member that is positionally overlapping and structurally similar.
For example, if the member a of the original house type intersects the member B of the reconstructed house type, and a and B are walls with different thicknesses, A, B belong to members with similar positions and structures.
Step S102, carrying out special construction logic judgment on similar components
Making special construction logic judgment on similar original house type component A and reconstructed house type component B, e.g.
(1) The positions of A and B are consistent, and the thickness is changed;
(2) a and B are crossed obliquely;
(3) a crisscrossed wall;
(4) and (5) dismantling the table top.
Step S103, recording the processing result of the special construction logic
Recording the processing results of the special construction logics of the A and the B, and filtering the specially processed components. And directly aiming at the definition of the special construction logic, outputting the reconstruction result. These specially processed data have completed the computations of the tear down and rebuild prior to the normal flow.
The specific method of filtering may be to mark the component to be filtered as not participating in the subsequent alignment, and directly reject the component.
In one possible embodiment, the recipe data processing method is as follows:
the comparison of the plan data is based on XOY planar projection of the volume data information of all the house components. During comparison, the integral house type projection of the original house type and the reconstructed house type is constructed, and the comparison result is produced through the comparison of the plane projection of the single house type component. Take the original house type figure 3 and the modified house type figure 4 as an example.
The flow is shown in fig. 5.
In one possible implementation, the implementation of generating the torn and unaltered data is as follows:
taking a comparison process of the demolition data for the house type member E in a single original house type as an example, the method specifically includes:
step S201, acquiring XOY projection A of all the reconstructed house type components
Based on all components of the modified house type, projected to the XOY plane, all data is converted to a 2D presentation, as shown in fig. 6.
Step S202, obtaining the XOY projection B of the house component E
For the original house type member E that needs to be calculated, its projection B is calculated separately, as shown in fig. 7, where the left diagram shows the position of the individual elements in the original house type and the right diagram shows the projection of the individual elements.
Step S203, two-dimensional graphic Boolean operation is carried out on the projection A and the projection B
And subtracting the reconstructed house type projection A from the original house type component projection B, judging whether the Boolean projection result is empty, if so, indicating that no change exists on the XOY plane, and entering the next step. If not, the explanation is that the removal is performed, and as shown in fig. 8, the flow proceeds to step S205.
Step S204, comparing the three-dimensional data of the E and the components of the original house type
If there is no change in the XOY plane, it may be in elevation, which determines if removal is really not required by comparison of elevations. In other words, the Z-axis data is compared after 2D comparison in the XY plane.
Step S205, recording the final result
And generating demolition data if the demolition data is changed and generating unchanged data if the demolition data is not changed according to the data generated by the flow.
In one possible embodiment, the implementation of generating new and unchanged data is as follows:
taking a new data comparison process for a single house type component E in a modified house type as an example, the method specifically includes:
step S301, acquiring XOY projection A of all original house type components
Based on all components of the original house type, projected to the XOY plane, all data is converted to a 2D presentation, as shown in fig. 9.
Step S302, obtaining the XOY projection B of the house component E
For a reconstruction house type member E that needs to be calculated, its projection B is calculated separately, as shown in fig. 10, where the left diagram shows the position of the individual element in the reconstruction house type and the right diagram shows the projection of the individual element.
Step S303, two-dimensional graphic Boolean operation is carried out on the projection A and the projection B
And subtracting the original house type projection A from the reconstructed house type component projection B, judging whether the Boolean projection result is empty, if so, indicating that no change exists on the XOY plane, and entering the next step. If not, the new construction is described, and as shown in fig. 11, the flow proceeds to step S305.
Step S304, comparing the three-dimensional data of the E and the member of the reconstructed house type
If there is no change in the XOY plane, there may be a change in height, and this step determines whether new creation is really not needed by comparing the heights.
Step S305, recording the final result
And generating new data if the data is changed and generating unchanged data if the data is not changed according to the data generated by the flow.
In one embodiment, an apparatus for tear-and-make comparison based on plan house type data is further provided, including:
the special construction logic processing unit is used for carrying out special construction logic processing on the original house type scheme and the improved house type scheme;
the dismantling comparison unit is used for generating dismantled and unchanged data by carrying out graphic Boolean operation on the original house type component and the reconstructed house type component;
and the new construction comparison unit is used for generating new construction and unchanged data by carrying out graphic Boolean operation on the original house type component and the reconstructed house type component.
In one embodiment, there is also provided an electronic device comprising: a memory and at least one processor;
the memory is to store program instructions;
at least one processor is used for calling the program instructions in the memory to execute the tear-and-make comparison method as described in each possible implementation manner of the foregoing embodiments.
In an embodiment, a computer-readable storage medium is further provided, on which a computer program is stored, and when the computer program is executed, the method for tear-and-make comparison is implemented as described in each possible implementation manner of the foregoing embodiments.
In the various embodiments of the present application described above, all or part of the implementation may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable medium to another computer readable medium, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state drives), among others.
The above-mentioned embodiments, objects, technical solutions and advantages of the present application are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present application should be included in the scope of the present application.