A method and device for comparing house type data

By comparing the basic data of household components in the old and new versions, Boolean operations were used to solve the display inconsistency problem in the 3D modeling software version update, and the correct identification and smooth upgrade of data in the new version were achieved.

CN114327617BActive Publication Date: 2025-09-05HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111633510.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2025-09-05
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

During the 3D modeling software version update process, when old data is applied to the new version, the system cannot correctly identify the display results, resulting in inconsistent display.

Method used

By obtaining the basic data of the old and new versions of the apartment components, parsing the surface data and traversing it, determining the coplanar data pairs, projecting them onto the standard reference plane for Boolean operations, obtaining the comparison results based on the inclusion relationship of the projection surface, and outputting the final comparison results.

Benefits of technology

It achieves correct identification of old data display results in the new version, solves the display inconsistency problem caused by version update, and supports smooth data upgrade.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114327617B_ABST
    Figure CN114327617B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and device for comparing apartment data, comprising the following steps: obtaining basic data of first and second versions of apartment components; parsing the basic data of the apartment components to obtain first surface data corresponding to the first version and second surface data corresponding to the second version; traversing the first and second surface data to determine the second surface data coplanar with the first surface data to form a coplanar data pair; projecting the two surfaces in the coplanar data pair onto a standard reference plane, performing Boolean operations on the two obtained projected surfaces, and obtaining a comparison result. The present invention solves the problem of the system being unable to correctly identify the corresponding display results when old data is applied to a new version by comparing the modeling results generated by different 3D modeling algorithms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a data comparison method, in particular to a comparison method and device for apartment type data. Background Art

[0002] Software is a continuous process of improvement. As software versions are updated, the same data applied to different versions may display different results due to different parsing logic. In such cases, the system cannot correctly identify the different display results, leading to problems with version updates. Redefining data for the new version is extremely time-consuming and labor-intensive, and the previous data is wasted.

[0003] 3D modeling software also has a similar problem. In a new version of the software, a wall in a room has been modeled and generated. However, when performing other operations on that wall, the platform cannot recognize the corresponding surface. In other words, the surface display has changed between the old and new versions. When you tile the wall in the new version, if you don't inform the computer that the new version of the surface has changed, it will only tile the old version of the surface, and the final tile result will be incorrect.

[0004] The purpose of the present invention is to compare the modeling results generated by different 3D modeling algorithms during the iteration process of the 3D modeling algorithm, thereby solving the problem that the system cannot correctly identify the corresponding display results when old data is applied to the new version. Summary of the Invention

[0005] In order to overcome the existing technical problem of using only old data, by comparing the apartment data, so that the old data can be parsed in the new version and displayed without errors, the technical solution adopted by the present invention is:

[0006] The present invention provides a method for comparing apartment type data, comprising the following steps:

[0007] Obtain the basic data of the first and second versions of the apartment components;

[0008] Parsing the basic data to obtain first surface data corresponding to the first version and second surface data corresponding to the second version;

[0009] Traversing the first surface data and the second surface data, determining the second surface data coplanar with the first surface data, and forming a coplanar data pair;

[0010] The two surfaces in the coplanar data pair are projected onto a standard reference plane, a Boolean operation is performed on the two obtained projection surfaces, and a comparison result is obtained.

[0011] Furthermore, the apartment type comparison method of the present invention also includes: projecting the first surface data to obtain a first projection surface, projecting the second surface data to obtain a second projection surface, and obtaining a comparison result based on the inclusion relationship between the first and second projection surfaces.

[0012] Furthermore, the apartment type comparison method of the present invention also includes: obtaining a comparison result based on the inclusion relationship between the first and second projection surfaces, including: if the first projection surface contains the second projection surface or the second projection surface contains the first projection surface, then the comparison result is surface inclusion; if the first projection surface intersects with the second projection surface, then the comparison result is surface intersection; if the first projection surface is equal to the second projection surface, then the comparison result is surface unchanged.

[0013] Furthermore, the apartment type comparison method of the present invention also includes: for the case where the comparison results are face inclusion and face intersection, the results of unmatched faces after the Boolean operation are integrated until there are no unmatched faces, and further comparison results are obtained including face splitting, face merging or composite face association.

[0014] Furthermore, the method of the present invention further comprises: outputting the comparison results to downstream applications.

[0015] Furthermore, the housing components in the present invention include one or more of walls, beams, slabs, columns and holes.

[0016] The present invention also proposes a device for comparing apartment type data, comprising:

[0017] A data acquisition unit, used to acquire basic data of the first version and the second version of the apartment components;

[0018] a data parsing unit, configured to parse the basic data to obtain first surface data corresponding to the first version and second surface data corresponding to the second version;

[0019] A surface comparison unit, configured to traverse the first surface data and the second surface data, determine the second surface data coplanar with the first surface data, and form a coplanar data pair;

[0020] The Boolean operation unit is used to project the two surfaces in the coplanar data pair onto a standard reference plane, perform Boolean operations on the two obtained projection surfaces, and obtain a comparison result.

[0021] Furthermore, the Boolean operation unit in the above device is further used to: obtain the first projection surface by projecting the first surface data, obtain the second projection surface by projecting the second surface data, and obtain the comparison result according to the inclusion relationship between the first and second projection surfaces.

[0022] Furthermore, the comparison result obtained in the above-mentioned device based on the inclusion relationship between the first and second projection surfaces includes: if the first projection surface contains the second projection surface or the second projection surface contains the first projection surface, then the comparison result is surface inclusion; if the first projection surface intersects with the second projection surface, then the comparison result is surface intersection; if the first projection surface is equal to the second projection surface, then the comparison result is surface invariance.

[0023] Furthermore, the Boolean operation unit in the above-mentioned device is further used to: for the case where the comparison results are face inclusion and face intersection, integrate the results of unmatched faces after the Boolean operation until there are no unmatched faces, and obtain further comparison results including face splitting, face merging or composite face association.

[0024] Furthermore, the above device also includes: an output unit, used to output the comparison results to downstream applications.

[0025] Furthermore, the housing components in the above device include: one or more of walls, beams, plates, columns and holes.

[0026] The present invention also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the above-mentioned apartment data comparison method.

[0027] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned apartment type data comparison method is implemented.

[0028] The present invention has the beneficial effect of outputting apartment data comparison results, guiding downstream applications that rely on modeling results to smoothly upgrade their data. This solves the technical problem of different versions displaying the same data differently due to version updates and modeling algorithm updates, making it impossible for downstream applications to recognize the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a flow chart of the apartment type data comparison method of the present invention;

[0030] Figure 2 It is a schematic diagram of the projection surface of the present invention in which scheme A includes scheme B;

[0031] Figure 3 It is a schematic diagram of the projection surface of the present invention in which scheme B includes scheme A;

[0032] Figure 4a is an example diagram of the Boolean operation of the present invention;

[0033] Figure 4b is an example diagram of the Boolean operation of the present invention;

[0034] Figure 5 It is a structural diagram of the apartment type comparison device of the present invention. DETAILED DESCRIPTION

[0035] The present invention will now be further described with reference to the embodiments and accompanying drawings:

[0036] The present invention provides a method for comparing apartment type data. Figure 1 The flowchart of the apartment type data comparison method of the present invention is shown.

[0037] The logical basis for the comparison of the housing type data of the present invention is that the basic data of Plan A (old version) and Plan B (new version) are exactly the same. The basic data includes the position data and shape data of the housing type components. Taking the wall as an example, the basic data includes the position and thickness of the wall. The data of Plan A (old version) and Plan B (new version) are exactly the same, which means that the position data and shape data of the housing type components of the old version and the new version are consistent. Taking the wall as an example, the new version wall is where the old version wall is, and the thickness of the old version wall is the same as the thickness of the old version wall. However, the area of ​​the wall may be enlarged or reduced, etc., which are similar in shape. Therefore, the models built based on the underlying logical modeling of the old and new versions may not be exactly the same, but should be similar.

[0038] Based on this premise, all walls in the same position to be compared should be coplanar. That is, the same two faces in different versions, in similar positions, will produce different face results due to different parsing logic. The apartment data comparison process used is as follows:

[0039] Step 1: Obtain the basic data of all apartment components of Plan A (old version) and Plan B (new version). Apartment components include walls, beams, slabs, columns, holes, etc.; assume that surfaces a, b, and c are obtained; Plan B includes surfaces a′, b′, and c′.

[0040] Step 2: Analyze the basic apartment data obtained above to obtain the surface data of Plan A and Plan B. For example, Plan A includes surface a, surface b, and surface c; Plan B includes surface a′, surface b′, and surface c′.

[0041] Step 3: Traverse the face data of Solution A and Solution B to obtain coplanar pairs. For example, if face a and face a' are coplanar, face b and face b' are coplanar, and face c and face c' are coplanar, extract the coplanar pairs (a, a'), (b, b'), and (c, c') from each group.

[0042] Step 4: Project two faces in a group onto a standard reference plane. The standard reference plane is a plane that is parallel to the two faces being calculated, but whose center coordinate point is at the coordinate origin (0, 0, 0). That is, project (a, a′), (b, b′), and (c, c′) onto the standard reference plane respectively to obtain the projection planes of the two faces in each group.

[0043] Perform Boolean operations on the two 2D projection surfaces in each group to obtain the 2D contours of the two surfaces, and perform a relationship judgment on the 2D contours of the two surfaces. Taking (a, a′) as an example, if the projection contour of a is within the projection contour of a′, the output result a′ contains a; if the projection contour of a′ is within the projection contour of a, the output result a contains a′; if the projection contour of a intersects with the projection contour of a′, the output result a′ only intersects with a; if the projection contour of a coincides with the projection contour of a′, the output result a′ is equal to a; the above Boolean operations are also performed on the remaining coplanar surfaces.

[0044] Figure 2-3 Schematics showing Plan A encompassing Plan B and Plan B encompassing Plan A. A encompassing B means that A has been modified and reduced in size. For example, F1-DF1=>NF1. In the left diagram, F1 represents the entire top surface, while in the right diagram, NF1 represents the entire top surface minus the top surface of the pillar. B encompassing A means that A has been modified and increased in size. For example, F1+F2+AF1=>NF1. In the left diagram, the top surface consists of the left half of F1, the right half of F2, and the hollowed-out center of AF1. In the right diagram, the top surface is merged into a single surface, NF1.

[0045] Furthermore, the Boolean operation results in the expression a=>a'+? or a'=>a+? for the inclusion case; and the expression ? + a=>a'+? for the intersection case. The ? in these expressions represents the unmatched face, which is stored and compared with other expressions containing the projected face until all expressions contain no unmatched faces. This results in the final result of face splitting, face merging, and composite face association.

[0046] Figure 4a 、 4b A diagram showing the Boolean operation process for obtaining the final results of face splitting, face merging and composite face association is shown.

[0047] Figure 4aSection 4.0 corresponds to: Plan A (old version); Section 5.0 corresponds to: Plan B (new version). Assume that after going through steps 1-4 above for faces A and B in Plan A (old version) and faces C in Plan B (new version), their projection relationships are as follows: Face C contains face A, which yields the expression A+? =>C; Face C contains face B, which yields the expression B+? =>C; ? in the above expressions represents unmatched faces. Integrate the above expressions with unmatched faces and traverse them again. We obtain A+B+? =>C, and there is no unmatched part in C. Therefore, we can conclude that A+B=>C, which is a face merge.

[0048] Let's use an example to illustrate a more complex calculation. Suppose that after running steps 1-4 above for faces A, B, and C in Plan A (old version) and faces D, E, and F in Plan B, their projection relationships are as follows: Face C contains face F, yielding the expression C=>F+?; Face D contains face A, yielding the expression A+?=>D; Face B intersects faces D and E, yielding the expression B+?=>D+E; Face C intersects face E, yielding C+?=>E+?. The "?" in these expressions represents the unmatched face.

[0049] Integrate the expressions with unmatched faces and traverse them again. Integrate the expression A+? => D, which contains D, with B+? => D+E, to obtain A+B+? => D+E+?. Integrate this expression with the expression C+? => E+?, which contains E, to obtain A+B+C+? => D+E+?. Integrate this expression with the expression C=> F+?, which contains C, to obtain A+B+C+? => D+E+F+?. Since there are no unmatched faces in Plan A or Plan B, we can determine that the final expression is: A+B+C => D+E+F, which is a composite face association.

[0050] The calculation method for more complex situations is similar. Expressions containing the same faces are continuously integrated to obtain new expressions until there are no faces that may not be correct in the new and old solutions, and then the relationship between the faces in the new and old solutions is obtained.

[0051] The apartment data comparison results output by the present invention can be sent to downstream applications to guide downstream applications that rely on modeling results to perform smooth data upgrades.

[0052] The present invention also provides a device, comprising: a data acquisition unit, configured to acquire basic data of the first version and the second version of the house type components;

[0053] a data parsing unit, configured to parse the surface data of all the household components to obtain first surface data corresponding to the first version and second surface data corresponding to the second version;

[0054] A surface comparison unit, configured to traverse the first surface data and the second surface data, determine the second surface data coplanar with the first surface data, and form a coplanar data pair;

[0055] The Boolean operation unit is used to project the two surfaces in the coplanar data pair onto a standard reference plane, perform Boolean operations on the two obtained projection surfaces, and obtain a comparison result.

[0056] The functions of each unit of the apartment type comparison device correspond to the above-mentioned apartment type comparison algorithm, which will not be described in detail here.

[0057] The present invention also provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned apartment data comparison method.

[0058] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above-mentioned apartment type data comparison method are implemented.

[0059] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented using a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0060] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0061] In the several embodiments provided in this application, if any function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of this application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), magnetic disk or optical disk, and other media that can store program code.

[0062] The above description is merely a specific embodiment of the present application. Any person skilled in the art may easily conceive of variations or substitutions within the technical scope disclosed in this application, and such variations or substitutions shall be within the scope of protection of this application. The scope of protection of this application shall be subject to the scope of protection of the claims.

Claims

1. A method for comparing apartment type data, characterized in that: The following steps are involved: Obtain the basic data of the first and second versions of the apartment components; Parsing the basic data to obtain first surface data corresponding to the first version and second surface data corresponding to the second version; Traversing the first surface data and the second surface data, determining the second surface data coplanar with the first surface data, and forming a coplanar data pair; Projecting the two surfaces in the coplanar data pair onto a standard reference plane, obtaining a first projection surface from the projection of the first surface data and a second projection surface from the projection of the second surface data, performing a Boolean operation on the two obtained projection surfaces, and obtaining a comparison result based on the inclusion relationship between the first and second projection surfaces; The obtaining of a comparison result based on the inclusion relationship between the first and second projection surfaces includes: If the first projection surface includes the second projection surface or the second projection surface includes the first projection surface, the comparison result is surface inclusion; If the first projection surface intersects with the second projection surface, the comparison result is a surface intersection; If the first projection surface is equal to the second projection surface, the comparison result is that the surface is unchanged; In the case where the comparison results are face inclusion and face intersection, the results of the unmatched faces after the Boolean operation are integrated until there are no unmatched faces, and further comparison results are obtained including face splitting, face merging or composite face association; The method further includes: outputting the comparison result to a downstream application, and guiding the downstream application to perform a smooth data upgrade.

2. The apartment type data comparison method according to claim 1, characterized in that: The housing components include: one or more of walls, beams, slabs, columns and holes.

3. A housing type data comparison device, characterized in that: The device comprises: A data acquisition unit, used to acquire basic data of the first version and the second version of the apartment components; a data parsing unit, configured to parse the basic data to obtain first surface data corresponding to the first version and second surface data corresponding to the second version; A surface comparison unit, configured to traverse the first surface data and the second surface data, determine the second surface data coplanar with the first surface data, and form a coplanar data pair; A Boolean operation unit, configured to project the two surfaces in the coplanar data pair onto a standard reference plane, perform a Boolean operation on the two obtained projected surfaces, and obtain a comparison result; The Boolean operation unit is further configured to: The first projection surface is obtained by projecting the first surface data, and the second projection surface is obtained by projecting the second surface data, and a comparison result is obtained according to the inclusion relationship between the first and second projection surfaces; The obtaining of a comparison result based on the inclusion relationship between the first and second projection surfaces includes: If the first projection surface includes the second projection surface or the second projection surface includes the first projection surface, the comparison result is surface inclusion; If the first projection surface intersects with the second projection surface, the comparison result is a surface intersection; If the first projection surface is equal to the second projection surface, the comparison result is that the surface is unchanged; The Boolean operation unit is further configured to: when the comparison result is face inclusion and face intersection, integrate the results of unmatched faces after the Boolean operation until no unmatched faces exist, and obtain further comparison results including face splitting, face merging or composite face association; The device further includes: an output unit, configured to output the comparison result to a downstream application, and guide the downstream application to perform a smooth data upgrade.

4. The apartment data comparison device according to claim 3, characterized in that: The housing components include: one or more of walls, beams, slabs, columns and holes.

5. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the computer program is executed by the processor, the processor executes the apartment type data comparison method according to claim 1 or 2.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the apartment type data comparison method according to claim 1 or 2 is implemented.

Citation Information

Patent Citations

  • Method and system for acquiring hard data

    CN113158310A

  • Scheme data-based disassembly and reconstruction comparison method and device, electronic equipment and medium

    CN113609545A