Method and device for closing internal and external corners, electronic equipment and storage medium

By calculating the data structure of Yin-yang angles in the wall design and obliquely modeling to generate an extension body, the problem of Yin-yang angle closure is solved, and the natural closure of Yin-yang angles and the simplification of subsequent decoration is achieved.

CN119442408AActive Publication Date: 2025-02-14HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411493199.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-24
Publication Date
2025-02-14
Estimated Expiration
2044-10-24

AI Technical Summary

Technical Problem

The prior art is difficult to achieve the closure of Yin and Yang angles in wall design, resulting in the problem of the lack of Yin and Yang angles.

Method used

By calculating the data structure based on the plane shape height and angle on both sides of the Yin-Yang angle, the extension body is generated by oblique modeling to achieve the closure of the Yin-Yang angle.

Benefits of technology

This method can effectively realize the closure of the Yin-Yang angle, simplify the subsequent laying and decoration process, and reduce the calculation complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119442408A_ABST
    Figure CN119442408A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for closing internal and external corners, and the method comprises the steps: calculating a data structure of a plane model on each side at the internal and external corners according to the heights of the plane models on the two sides of the internal and external corners and the angles of the internal and external corners, the data structure comprising the lifting height and the horizontal offset of points on the plane models and the ID of a region to which the data structure belongs; performing oblique modeling on the plane modeling on each side according to the data structure to generate an extension body, wherein the extension body can form internal and external corners of the plane modeling and realize closing of the internal and external corners. According to the oblique modeling mode, the topological structure is not changed according to the modeling result, only the position lengths of the points, the edges and the faces are changed, and a series of follow-up supports such as paving, corner lines and lamp strips related to the modeling result are naturally supported or relatively easy to achieve. Moreover, the judgment of the boundary conditions can increase the complexity of program calculation, and excessive boundary conditions do not need to be considered, so that the calculation consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of wall design, and in particular relates to a method, a device, an electronic device and a storage medium for realizing the closure of positive and negative corners. Background Art

[0002] At present, the finished surface design based on the wall only performs a simple finished surface elevation design, and the finished surface at the corners cannot be formed. The specific existing data structure roughly needs to include point, edge, and area information, and the area contains the elevation of the area. The data structure expresses the geometric data and elevation of the area, based on which three-dimensional modeling is performed to generate a surface, and then based on the surface, the corresponding paving is generated. From the modeling method, it can be seen that the user realizes the finished surface through the plane modeling tool. Since each plane modeling tool is an independent protrusion modeling, it has no connection with the plane modeling on the other side, so there will be a technical problem of missing the corners.

[0003] The existing method of generating Yin-Yang angles is based on modifying the topological structure to generate new edges and faces. For example, the patent application with publication number CN117708944A discloses a method, device, electronic device and storage medium for generating Yin-Yang angles. The specific implementation scheme is: determine the Yin-Yang angle area to be processed in the apartment data; select the target line style from the pre-configured multiple Yin-Yang angle line styles; wherein each of the multiple Yin-Yang angle line styles includes the line profile and the position information of the line reference point, and the line profiles in different Yin-Yang angle line styles are different; based on the position information of the line reference point in the target line style, determine the apartment data reference point that matches the line reference point in the Yin-Yang angle area; based on the apartment data reference point, add the Yin-Yang angle lines with the same line profile as the target line style in the Yin-Yang angle area. This method generally requires additional support for the generation of corner lines or light strips attached to new edges and faces, and paving. It is also necessary to consider more boundary conditions and whether special processing is required. Summary of the invention

[0004] In view of the above, an object of the present invention is to provide a method, device, electronic device and storage medium for achieving the closure of the Yin-Yang angle, so as to achieve the generation and closure of the Yin-Yang angle.

[0005] To achieve the above-mentioned purpose of the invention, an embodiment provides a method for closing a yin-yang angle, comprising the following steps:

[0006] Calculate the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape;

[0007] According to the data structure, the plane shape on each side is obliquely modeled to generate an extended body, which will form the Yin-Yang corners of the plane shape and realize the closure of the Yin-Yang corners.

[0008] In one embodiment, the method further includes: where a Yin-Yang corner needs to be generated, checking whether the plane shapes on both sides of the Yin-Yang corner meet the Yin-Yang corner conditions, that is, judging whether the vertical division of the shape area is consistent, and if the vertical division is consistent, it is considered that the Yin-Yang corner can be generated.

[0009] In one embodiment, the method also includes: when the plane shape on each side is obliquely modeled according to the data structure, the angle line on the plane shape will be naturally extended, and the bound curves of the respective angle lines of the extension bodies on the left and right sides of the Yin-Yang angle are specifically identified as the lofting path, and the two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, the angle line with the closing effect of the Yin-Yang angle is generated by lofting.

[0010] In one embodiment, the method also includes: when the plane shape on each side is obliquely modeled according to the data structure, the light strip on the plane shape will be naturally extended, and the bound curves of the respective light strips of the extension bodies on the left and right sides of the Yin-Yang corner are specifically identified as the lofting path, and the two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, a light strip with a closed Yin-Yang corner effect is lofted and generated.

[0011] To achieve the above-mentioned purpose of the invention, the embodiment further provides a device for closing the internal and external corners, comprising:

[0012] A data generation module is used to calculate the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, and the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape;

[0013] The module for generating closed Yin-Yang corners is used to perform oblique modeling on each side of the plane shape according to the data structure to generate an extension body, which will form the Yin-Yang corners of the plane shape and realize the closure of the Yin-Yang corners.

[0014] To achieve the above-mentioned purpose of the invention, an embodiment further provides a computing device, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the above-mentioned method for achieving the closure of the Yin-Yang angle.

[0015] In order to achieve the above-mentioned purpose of the invention, an embodiment further provides a computer-readable storage medium, on which a program is stored, and when the program is executed by a processor, the above-mentioned method for achieving closed Yin-Yang angles is implemented.

[0016] In order to achieve the above-mentioned purpose of the invention, an embodiment further provides a computer product, which includes a computer program, characterized in that when the computer program is executed by a processor, the above-mentioned method for achieving closed Yin-Yang angles is implemented.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] When closing the Yin-Yang corners, the data structure of each side of the plane modeling at the Yin-Yang corners is calculated based on the plane modeling heights on both sides of the Yin-Yang corners and the angles of the Yin-Yang corners. The data structure includes the elevation height, horizontal offset, and area ID of the points on the plane modeling. The plane modeling on each side is obliquely modeled according to the data structure to generate an extension body. The extension body will form the Yin-Yang corners of the plane modeling and achieve the closure of the Yin-Yang corners. This oblique modeling method does not change the topological structure, but only changes the position and length of the points, edges, and faces. This will make a series of subsequent related supports such as paving, corner lines, and light strips naturally supported or relatively easy to implement. Furthermore, the judgment of boundary conditions will increase the complexity of program calculations. The present invention does not need to consider too many boundary conditions, thereby reducing computing consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a flow chart of a method for achieving closure of yin and yang angles provided in an embodiment;

[0021] Figure 2 It is a schematic diagram of an existing planar protrusion provided in an embodiment;

[0022] Figure 3 The corresponding relationship between the points after the plane modeling protrusion is stretched provided by the embodiment;

[0023] Figure 4 is a schematic diagram of modeling a planar protrusion provided in an embodiment;

[0024] Figure 5 It is a schematic diagram of the structure of the device for achieving the closure of the Yin-Yang angles provided in the embodiment. DETAILED DESCRIPTION

[0025] To make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific implementation methods described herein are only used to explain the present invention and do not limit the scope of protection of the present invention.

[0026] like Figure 2 As shown in the figure, the data structure expressing the protrusion in the existing wall design generally includes point, edge, and region information. The region includes the elevation of the region. The data structure expresses the geometric data and elevation of the region, based on which three-dimensional modeling is performed to generate a surface. Then, based on the surface, the corresponding paving is generated. Figure 3 As shown in the figure, from the modeling method, when users use plane modeling tools to complete the surface, the problem of missing yin and yang corners will occur. This is because each plane modeling tool is an independent protrusion modeling, and has no connection with the plane modeling on the other side.

[0027] To solve this technical problem, the embodiment of the present invention provides a method for achieving closed yin and yang angles, the core idea of ​​which is to change the way of modeling the protrusions of the plane modeling from simple vertical protrusions to allowing oblique protrusions to be modeled, such as Figure 4 As shown in the figure, the modeling of the middle point of the area is still the raised protrusion modeling, and only the protrusion modeling method of the edge point is changed to oblique modeling. This can directly form a closed Yin-Yang corner after modeling.

[0028] Based on the above core ideas, such as Figure 1 As shown, a method for achieving closure of yin-yang angles provided in an embodiment includes the following steps:

[0029] S1, calculating the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape.

[0030] Based on the oblique protrusion modeling proposed by the present invention, firstly, when obtaining the corresponding point after protrusion stretching, in addition to the elevation distance from the region, a certain horizontal offset is also required for a point on the plane modeling. Secondly, a point on the plane modeling can have multiple points after protrusion stretching, and these points can belong to different regions, such as Figure 3 As shown, Figure 3 After the A0 point is stretched, two corresponding points A1 and A2 can be obtained, which belong to two regions. Therefore, a region ID needs to be added to accurately express the results of all corresponding points after the original point protrusion is stretched. Therefore, when modeling oblique protrusions, the required data structure is newly defined to include the elevation height, horizontal offset, and region ID of the point on the plane model. Based on this data structure, it is clear how to perform oblique modeling in the future.

[0031] In the embodiment, the calculation of generating the Yin-Yang angle is triggered by user interaction. After that, the adjacent plane shapes that constitute the Yin-Yang angle of the entire scheme are traversed in sequence. Where the Yin-Yang angle needs to be generated, the plane shapes on both sides of the Yin-Yang angle are checked to see if they meet the conditions of the Yin-Yang angle, that is, whether the vertical division of the shape area is consistent. If the vertical division is consistent, it is considered that the Yin-Yang angle can be generated, and the regional contours of the plane shapes on both sides of the Yin-Yang angle are checked. If the distribution of these regional contours in the vertical direction is consistent, so that the areas on both sides of the Yin-Yang angle can correspond one to one, then it is considered that the Yin-Yang angle can be generated.

[0032] Specifically, the need to generate a Yin-Yang corner is triggered by user interaction. Then, when the Yin-Yang corner needs to be generated, the horizontal offset of each side of the plane shape at the Yin-Yang corner and the area ID to which it belongs are calculated according to the plane shape height on both sides of the Yin-Yang corner and the angle of the Yin-Yang corner, and a new data structure is formed with the elevation height of the point on the plane shape.

[0033] S2, based on the data structure, the plane shape on each side is obliquely modeled to generate an extension body, and the extension body will form the Yin and Yang corners of the plane shape and realize the closure of the Yin and Yang corners.

[0034] In the embodiment, the plane modeling on each side is obliquely modeled according to the data structure to generate an extension body to form the Yin-Yang corners of the plane modeling and achieve the closure of the Yin-Yang corners. This modeling method does not change the topological structure. Therefore, the subsequent support of the attached corner lines, light strips, paving, etc. is relatively easy to achieve.

[0035] For the corner lines of Yin-Yang angles, the corner lines are bound to the curves after modeling. Because the topological structure of the curve itself does not change during modeling and stretching, only the length changes, so the corner lines can naturally reach the required Yin-Yang angle length, that is, the curve generated by the new modeling method. However, simply increasing the length is not enough. The Yin-Yang angles of the corner lines also need to be processed to generate the shape of the Yin-Yang angles.

[0036] Specifically, during oblique modeling, the angle lines on the plane shape will naturally extend. The bound curves of the respective angle lines of the extended bodies on the left and right sides of the Yin-Yang angle are specifically identified as the lofting path. The two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, the angle lines with the closing effect of the Yin-Yang angle are generated by lofting.

[0037] For the light strips at the yin and yang corners, a retracted light strip is placed on the plane modeling. Without considering the yin and yang corners, the retracted light strip will cause the plane modeling surface modeling to change and the modeling generation of the light strip. When considering the yin and yang corners, the curves after the yin and yang corners modeling can be directly used to construct the light strip. For example, if the curve of the yang corner is longer than the original curve, but the topology remains unchanged, the plane modeling changes and light strip modeling caused by the retracted original light strip can still be used based on the wireless after the length change.

[0038] Specifically, when the plane shape on each side is modeled obliquely according to the data structure, the light strip on the plane shape will be naturally extended, and the bound curves of the light strips of the extended bodies on the left and right sides of the Yin-Yang corner are specifically identified as the lofting path, and the two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, the light strip with the closed effect of the Yin-Yang corner is generated by lofting.

[0039] In the above method, based on the new data structure through oblique modeling and the corresponding oblique modeling method, the topological relationship of the modeling result remains unchanged. That is, there is no deletion or addition of geometric elements such as points, edges, and regions, and the mutual relationship has not changed. Only the length of the edge and the area of ​​the region have changed. These changes will not greatly affect the corner lines, light strips, paving, etc., making these contents relatively easy to handle.

[0040] like Figure 5 As shown, the embodiment also provides a device 50 for achieving closed Yin-Yang corners, including: a data generation module 51 and a Yin-Yang corner closed generation module 52, wherein the data generation module 51 is used to calculate the data structure of the plane modeling on each side at the Yin-Yang corners according to the plane modeling heights on both sides of the Yin-Yang corners and the angles of the Yin-Yang corners, and the data structure includes the elevation height, horizontal offset, and area ID of the points on the plane modeling; the Yin-Yang corner closed generation module 52 is used to perform oblique modeling on each side of the plane modeling according to the data structure to generate an extension body, and the extension body will form a Yin-Yang corner of the plane modeling and achieve closed Yin-Yang corners.

[0041] It should be noted that the device for realizing the closure of the Yin-Yang angle provided in the above-mentioned embodiment should be illustrated by the division of the above-mentioned functional modules when realizing the closure of the Yin-Yang angle. The above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal or server is divided into different functional modules to complete all or part of the functions described above. In addition, the device for realizing the closure of the Yin-Yang angle provided in the above-mentioned embodiment and the method embodiment for realizing the closure of the Yin-Yang angle belong to the same concept. The specific implementation process is detailed in the method embodiment for realizing the closure of the Yin-Yang angle, which will not be repeated here.

[0042] Based on the same inventive concept, an embodiment further provides a computing device, including a memory and one or more processors, wherein executable codes are stored in the memory, and when the one or more processors execute the executable codes, the method for achieving closed Yin-Yang angles is implemented, specifically including the following steps:

[0043] S1, calculating the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape;

[0044] S2, based on the data structure, the plane shape on each side is obliquely modeled to generate an extension body, and the extension body will form the Yin and Yang corners of the plane shape and realize the closure of the Yin and Yang corners.

[0045] The computing device provided in the embodiment, in addition to the processor and memory, also includes hardware required for other services such as internal bus, network interface, memory, etc. at the hardware level. The memory is a non-volatile memory, and the processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the method of achieving the closure of the Yin-Yang angle described in S1-S2 above. Of course, in addition to the software implementation, the present invention does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0046] Based on the same inventive concept, an embodiment further provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the method for closing the yin and yang angles described above is implemented, specifically including the following steps:

[0047] S1, calculating the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape;

[0048] S3, based on the data structure, the plane shape on each side is obliquely modeled to generate an extension body, and the extension body will form the Yin and Yang corners of the plane shape and realize the closure of the Yin and Yang corners.

[0049] In an embodiment, computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0050] The specific implementation methods described above provide a detailed description of the technical solutions and beneficial effects of the present invention. It should be understood that the above is only the most preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, supplements and equivalent substitutions made within the scope of the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for closing the internal and external corners, characterized in that: The following steps are involved: Calculate the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape; According to the data structure, the plane shape on each side is obliquely modeled to generate an extended body, which will form the Yin-Yang corners of the plane shape and realize the closure of the Yin-Yang corners.

2. The method for closing the internal and external corners according to claim 1, characterized in that: Also includes: Where a Yin-Yang corner needs to be generated, check whether the plane shapes on both sides of the corner meet the conditions of the corner, that is, determine whether the vertical division of the shape area is consistent. If the vertical division is consistent, it is considered that the corner can be generated.

3. The method for closing the internal and external corners according to claim 2, characterized in that: Determine whether the vertical division of the modeling area is consistent. If the vertical division is consistent, it is considered that the Yin-Yang corner can be generated, including: checking the area contours of the plane modeling on both sides of the Yin-Yang corner. If the distribution of these area contours in the vertical direction is consistent, so that the areas on both sides of the Yin-Yang corner can correspond one to one, then it is considered that the Yin-Yang corner can be generated.

4. The method for closing the internal and external corners according to claim 1, characterized in that: Also includes: When the plane shape on each side is modeled obliquely according to the data structure, the corner lines on the plane shape will be naturally extended. The bound curves of the respective corner lines of the extended bodies on the left and right sides of the Yin-Yang angle are specifically identified as the lofting path. The two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, the corner lines with the closing effect of the Yin-Yang angle are generated by lofting.

5. The method for closing the internal and external corners according to claim 1, characterized in that: Also includes: When the plane shape on each side is modeled obliquely according to the data structure, the light strip on the plane shape will be naturally extended. The bound curves of the light strips of the extended bodies on the left and right sides of the Yin-Yang corner are specifically identified as the lofting path. The two lofting paths on both sides are regarded as a whole lofting path. Based on this whole lofting path, the light strip with the closed effect of the Yin-Yang corner is generated by lofting.

6. A device for closing the internal and external corners, characterized in that: include: A data generation module is used to calculate the data structure of each side of the plane shape at the corner according to the plane shape height on both sides of the corner and the angle of the corner, and the data structure includes the elevation height, horizontal offset, and area ID of the point on the plane shape; The module for generating closed Yin-Yang corners is used to perform oblique modeling on each side of the plane shape according to the data structure to generate an extension body, which will form the Yin-Yang corners of the plane shape and realize the closure of the Yin-Yang corners.

7. A computing device comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the one or more processors execute the executable code, they are used to implement the method for achieving closed Yin-Yang angles as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the method for achieving closed Yin-Yang angles as described in any one of claims 1-5 is implemented.

9. A computer product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for achieving closed Yin-Yang angles described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Method and device for generating internal and external corners, electronic equipment and storage medium

    CN117708944A

  • Oblique splicing method and device for table top and side table top, computer equipment and readable storage medium

    CN112883512A

  • BIM-based manufacturing method and application of waterproof roll internal and external corner prefabricated members

    CN113605699A

  • Component adjustment method and device in BIM model, computer equipment and storage medium

    CN113919027A

  • Modeling method and system for integral ceiling

    CN114861280A