A wall projection method and device, electronic equipment and storage medium

By performing view projection transformation and NDC spatial transformation on the wall outline, and combining near-plane information and wall line information to generate the wall projection result, the problem of incomplete projection of complex walls is solved, and accurate and efficient projection effect is achieved.

CN114782244BActive Publication Date: 2026-02-06GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210409639.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2026-02-06
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

In the interior design process, the projection of complex walls cannot be displayed correctly, leading to construction errors and waste of resources.

Method used

By obtaining a top view of the wall, cropping the polygonal outline of the wall, performing view projection transformation and NDC spatial transformation, and combining near-plane information and wall line information, the projection result of the wall is generated.

Benefits of technology

It enables complete projection of complex walls, reduces projection errors and time, and improves the accuracy and completeness of projection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114782244B_ABST
    Figure CN114782244B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a wall projection method and device, electronic equipment and storage medium, wherein the method comprises: obtaining an overhead view of the wall; clipping a wall polygon contour in the overhead view to obtain a wall contour; performing view projection transformation on the wall contour to obtain transformed spatial information; and obtaining a projection result of the wall according to the wall contour and the spatial information. By implementing the embodiments of the present application, the entire complex wall can be projected, the wall is completely projected, the projection result cannot be correctly displayed is avoided, and the projection time is saved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of interior design, in particular to a wall projection method and device, electronic equipment and computer readable storage medium. BACKGROUND

[0002] In the process of interior design, in order to obtain the design effect more intuitively, the visual effect of the projection of the wall in the elevation view of the construction drawing is usually required to be displayed. However, due to the complexity of the indoor structure, the wall line projection can only be simply displayed, the wall section, wall hole and corner line cannot be correctly identified, and the projection result of some complex walls such as inclined walls cannot be correctly displayed.

[0003] This leads to errors during construction according to the effect drawing, which cannot achieve the expected effect and causes serious waste. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a wall projection method, device, electronic equipment and computer readable storage medium, which can project the entire complex wall, project the wall completely, avoid incorrect display of the projection result, and save projection time.

[0005] In a first aspect, the embodiments of the present application provide a wall projection method, which comprises:

[0006] obtaining an overhead view of the wall;

[0007] clipping a wall polygon contour in the overhead view to obtain a wall contour;

[0008] performing view projection transformation on the wall contour to obtain transformed spatial information;

[0009] obtaining a projection result of the wall according to the wall contour and the spatial information.

[0010] In the above implementation process, the wall contour is subjected to view projection transformation to obtain spatial information, and then the projection result of the wall is obtained according to the spatial information, so that the wall contour can be completely projected, the entire complex wall can be projected, the wall can be completely projected, the incorrect display of the projection result can be avoided, and the projection time can be saved.

[0011] Further, the step of performing view projection transformation on the wall contour to obtain transformed spatial information comprises:

[0012] obtaining projection information corresponding to the wall contour;

[0013] constructing an orthogonal projection matrix according to the projection information;

[0014] perform NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain the spatial information.

[0015] In the implementation process, the NDC space transformation can completely display the projection information of the wall contour without causing loss of the projection information, so that the obtained spatial information is more accurate and the error caused by the NDC space transformation in the projection process is reduced.

[0016] Further, the step of obtaining the projection result of the wall according to the wall contour and the spatial information comprises:

[0017] obtaining near-plane information in the spatial information;

[0018] obtaining wall line information in the wall contour;

[0019] obtaining the projection result of the wall according to the near-plane information and the wall line information.

[0020] In the implementation process, the plane information and the wall line information can completely display the spatial information and the wall contour in the projection result, thereby ensuring the integrity of the projection result.

[0021] Further, the step of obtaining the projection result of the wall according to the near-plane information and the wall line information comprises:

[0022] obtaining wall surface information according to the near-plane information and the wall line information;

[0023] obtaining the projection result of the wall according to the near-plane information, the wall line information and the wall surface information.

[0024] In the implementation process, the wall surface information, the near-plane information and the wall line information can completely project the wall, thereby avoiding the incomplete projection result of the wall, saving the projection time, reducing the error caused in the projection process and ensuring the accuracy of the projection result.

[0025] In a second aspect, the embodiments of the present application further provide a wall projection device, which comprises:

[0026] an acquisition module configured to acquire an overhead view of the wall;

[0027] a clipping module configured to clip a wall polygon contour in the overhead view to obtain a wall contour;

[0028] a projection transformation module configured to perform view projection transformation on the wall contour to obtain transformed spatial information;

[0029] The projection result obtaining module is configured to obtain the projection result of the wall according to the wall contour and the space information.

[0030] In the implementation process, the wall contour is subjected to view projection transformation to obtain the space information, and then the projection result of the wall is obtained according to the space information, so that the wall contour can be completely projected, the entire complex wall can be projected, the wall can be completely projected, the projection result can be correctly displayed, and the projection time is saved.

[0031] Further, the projection transformation module is further configured to:

[0032] Obtain the projection information corresponding to the wall contour.

[0033] Construct an orthogonal projection matrix according to the projection information.

[0034] Perform NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain the space information.

[0035] In the implementation process, the NDC space transformation can completely display the projection information of the wall contour without causing loss of the projection information, so that the obtained space information is more accurate, and the error caused by the NDC space transformation in the projection process is reduced.

[0036] Further, the projection result obtaining module is further configured to:

[0037] Obtain near-plane information in the space information.

[0038] Obtain wall line information in the wall contour.

[0039] Obtain the projection result of the wall according to the near-plane information and the wall line information.

[0040] In the implementation process, the plane information and the wall line information can completely display the space information and the wall contour in the projection result, and the integrity of the projection result is ensured.

[0041] Further, the projection result obtaining module is further configured to:

[0042] Obtain wall surface information according to the near-plane information and the wall line information.

[0043] Obtain the projection result of the wall according to the near-plane information, the wall line information and the wall surface information.

[0044] In the implementation process, the wall surface information, the near plane information and the wall line information can project the wall body completely, avoid the incomplete projection result of the wall body, save the projection time, reduce the error generated in the projection process, and ensure the accuracy of the projection result.

[0045] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. The processor implements the steps of the method according to any one of the first aspect when executing the computer program.

[0046] In a fourth aspect, a computer readable storage medium is provided, which stores instructions. When the instructions run on a computer, the computer executes the method according to any one of the first aspect.

[0047] In a fifth aspect, a computer program product is provided, which makes a computer execute the method according to any one of the first aspect when running on the computer.

[0048] Other features and advantages of the present disclosure will be described in the following description, or can be learned from the description, or can be determined without any doubt, or can be known by implementing the above-mentioned technologies of the present disclosure.

[0049] And can be implemented in accordance with the contents of the specification, the following with the preferred embodiments of the present application and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments of the present application. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0051] Figure 1 The flowchart of the wall body projection method provided by the embodiments of the present application;

[0052] Figure 2 The structural composition schematic diagram of the wall body projection device provided by the embodiments of the present application;

[0053] Figure 3 The structural composition schematic diagram of the electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0055] It should be noted that similar reference numerals and letters refer to like items in the following drawings, and therefore, once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second", and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0056] The specific implementation of the present application will be described in further detail below in combination with the drawings and embodiments. The following embodiments are used to illustrate the present application, but not to limit the scope of the present application.

[0057] Embodiment one

[0058] Figure 1 is a flowchart of a projection method of a wall provided by the embodiments of the present application, as shown in the figure, the method comprises: Figure 1

[0059] S1, obtaining an overhead view of a wall;

[0060] S2, clipping a wall polygon contour in the overhead view to obtain a wall contour;

[0061] S3, performing view projection transformation on the wall contour to obtain spatial information after transformation;

[0062] S4, obtaining a projection result of the wall according to the wall contour and the spatial information.

[0063] In the above implementation process, the wall contour is subjected to view projection transformation to obtain spatial information, and then the projection result of the wall is obtained according to the spatial information, so that the wall contour can be completely projected, the entire complex wall can be projected, the wall can be completely projected, the projection result cannot be correctly displayed, and the projection time is saved.

[0064] In S2, the Sutherland-Hodgman clipping algorithm can be used to clip the wall polygon contour on the overhead view.

[0065] In a feasible implementation, S3 comprises:

[0066] obtaining projection information corresponding to the wall contour;

[0067] constructing an orthogonal projection matrix according to the projection information;

[0068] performing NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain the spatial information.

[0069] ​In the implementation process, the NDC space transformation can completely display the projection information of the wall contour and does not cause loss of the projection information, so that the obtained space information is more accurate and the error caused by the NDC space transformation in the projection process is reduced.

[0070] The projection information includes an observation direction, a viewport size, and a projection region range, the wall contour after the clipping is converted into a normalized device coordinates (NDC) space through a view projection transformation, and space information is obtained.

[0071] In a possible implementation, S4 includes:

[0072] Obtaining near-plane information in the space information;

[0073] Obtaining wall line information in the wall contour;

[0074] Obtaining a projection result of the wall according to the near-plane information and the wall line information.

[0075] In the implementation process, the near-plane information and the wall line information can completely display the space information and the wall contour in the projection result, and the integrity of the projection result is ensured.

[0076] Since the value range of the xyz axes of the NDC coordinate system is [-1, 1], the point with the z-axis coordinate of -1 is taken as the near-plane point of the observation direction, that is, the near-plane information.

[0077] The wall line information includes wall corner lines and corresponding positions and wall lines and corresponding positions.

[0078] Further, the step of obtaining the projection result of the wall according to the near-plane information and the wall line information includes:

[0079] Obtaining wall surface information according to the near-plane information and the wall line information;

[0080] Obtaining the projection result of the wall according to the near-plane information, the wall line information, and the wall surface information.

[0081] In the implementation process, the wall surface information, the near-plane information, and the wall line information can completely project the wall, avoid the incomplete projection result of the wall that causes incorrect display, save the projection time, reduce the error generated in the projection process, and ensure the accuracy of the projection result.

[0082] The wall surface information includes a wall surface, a wall section, and a wall hole, the position where the two ends of the wall line fall on the near-plane point is the wall section, the interval covered by the wall line when projected to the near-plane point (excluding the interval occupied by the wall section) is the wall surface, and the interval that is not covered is the wall hole.

[0083] Connecting any point of the wall contour with the position of the point of the wall contour projected to the near plane point forms a line segment, if the line segment intersects with a wall line, it is judged that the point of the wall contour is behind the wall and needs to be removed. If there is no intersection with the wall line, the line where the point of the wall contour is located is a wall corner line. The wall elevation view after projection is generated according to the near plane information, wall line information and wall surface information.

[0084] In the embodiment, an arbitrary observation direction, a viewport size, a projection region range can be specified to project the wall in an arbitrary house type to generate a wall elevation view, remove the wall lines blocked by the wall, intercept the wall and generate a corresponding wall section and a wall hole. It is simple, efficient, high in freedom and strong in controllability.

[0085] Embodiment two

[0086] In order to perform the method corresponding to the above-mentioned embodiment one to realize the corresponding functions and technical effects, a wall projection device is provided below, as shown in the figure, the device comprises: Figure 2

[0087] The acquisition module 1 is used to acquire the overhead view of the wall;

[0088] The clipping module 2 is used to clip the wall polygon contour in the overhead view to obtain the wall contour;

[0089] The projection transformation module 3 is used to perform view projection transformation on the wall contour to obtain the transformed space information;

[0090] The projection result obtaining module 4 is used to obtain the projection result of the wall according to the wall contour and the space information.

[0091] In the above implementation process, the wall contour is subjected to view projection transformation to obtain the space information, and then the projection result of the wall is obtained according to the space information, so that the wall contour can be completely projected, the entire complex wall can be projected, the wall can be completely projected, the projection result cannot be correctly displayed, and the projection time is saved.

[0092] Further, the projection transformation module 3 is further used to:

[0093] Obtain the projection information corresponding to the wall contour;

[0094] Construct an orthogonal projection matrix according to the projection information;

[0095] Perform NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain the space information.

[0096] ​In the implementation process, the NDC space transformation can completely display the projection information of the wall contour, and does not cause loss of the projection information, so that the obtained space information is more accurate, and the error caused by the NDC space transformation in the projection process is reduced.

[0097] Further, the projection result obtaining module 4 is further used for:

[0098] obtaining near-plane information in the space information;

[0099] obtaining wall line information in the wall contour;

[0100] obtaining the projection result of the wall according to the near-plane information and the wall line information.

[0101] In the implementation process, the plane information and the wall line information can completely display the space information and the wall contour in the projection result, and ensure the integrity of the projection result.

[0102] Further, the projection result obtaining module 4 is further used for:

[0103] obtaining wall surface information according to the near-plane information and the wall line information;

[0104] obtaining the projection result of the wall according to the near-plane information, the wall line information and the wall surface information.

[0105] In the implementation process, the wall surface information, the near-plane information and the wall line information can completely project the wall, avoid the incomplete projection result of the wall, save the projection time, reduce the error generated in the projection process, and ensure the accuracy of the projection result.

[0106] The wall projection device described above can implement the method of the embodiment one. The optional items in the embodiment one are also applicable to this embodiment, and will not be described here.

[0107] The remaining content of the embodiment of the present application can refer to the content of the above-mentioned embodiment one. In this embodiment, it will not be described again.

[0108] Embodiment three

[0109] The embodiment of the present application provides an electronic device, which comprises a memory and a processor. The memory is used for storing a computer program, and the processor runs the computer program to make the electronic device execute the wall projection method of the embodiment one.

[0110] Optionally, the electronic device can be a server.

[0111] Please refer to Figure 3 , Figure 3A structural component diagram of an electronic device is provided in the embodiments of the present application. The electronic device can include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication among the components. The communication interface 32 of the device in the embodiments of the present application is used to communicate signaling or data with other node devices. The processor 31 can be an integrated circuit chip with signal processing capability.

[0112] The processor 31 described above can be a general processor, including a central processing unit (CPU), a network processor (NP) and the like; and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a ready programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor 31 can also be any conventional processor or the like.

[0113] The memory 33 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read only memory (PROM), an erasable programmable read only memory (EPROM), an electrically erasable programmable read only memory (EEPROM) and the like. The memory 33 stores computer readable instructions. When the computer readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiments involve various steps.

[0114] Optionally, the electronic device can further include a storage controller, an input output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, the input output unit are electrically connected with each other directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected with each other through one or more communication buses 34. The processor 31 is used to execute the executable modules stored in the memory 33, such as software function modules or computer programs included in the device.

[0115] The input / output unit is used to provide a user with a creation task and create a start optional period or a preset execution time for the task to realize the interaction between the user and the server. The input / output unit can be, but is not limited to, a mouse, a keyboard and the like.

[0116] It can be understood that Figure 3 The structure shown is only schematic, and the electronic device can further include more or fewer components than those shown, or have a different configuration of components than those shown. Figure 3 The components shown in the figures can be implemented in hardware, software, or a combination thereof. Figure 3 The components shown in the figures can be implemented in hardware, software, or a combination thereof. Figure 3 The components shown in the figures can be implemented in hardware, software, or a combination thereof.

[0117] In addition, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the projection method of the wall body in the embodiment one.

[0118] The embodiment of the present application further provides a computer program product, which, when running on a computer, causes the computer to execute the method in the method embodiment.

[0119] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are only schematic, for example, the flowcharts and block diagrams in the drawings show the possible implementation architectures, functions and operations of the devices, methods and computer program products according to the embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders from those noted in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based device for executing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0120] In addition, each functional module in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0121] The functions described can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the functions can be stored or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media include both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code means in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or other

[0122] The application is described above with reference to the embodiments. The application is not limited to the above embodiments. It will be apparent to a person skilled in the art that various modifications and changes can be made to the application without departing from the spirit and scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall within the scope of the application. It should be noted that similar reference numerals and letters in the following drawings represent similar items, and thus, once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings.

[0123] The application is described above with reference to the embodiments. The application is not limited to the above embodiments. It will be apparent to a person skilled in the art that various modifications and changes can be made to the application without departing from the spirit and scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall within the scope of the application. It should be noted that similar reference numerals and letters in the following drawings represent similar items, and thus, once an item is defined in one drawing, it need not be further defined and explained in subsequent drawings.

[0124] It should be noted that the relational terms herein such as first and second and the like are used solely to distinguish one from another entity or action without necessarily requiring or implying any actual relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

Claims

1. A method of projecting a wall, characterized by, The method comprises: obtaining an overhead view of the wall; clipping a wall polygon contour in the overhead view to obtain a wall contour; performing view projection transformation on the wall contour to obtain transformed spatial information; obtaining a projection result of the wall according to the wall contour and the spatial information; obtaining a projection result of the wall according to the wall contour and the spatial information comprises: obtaining near-plane information in the spatial information; obtaining wall line information in the wall contour; obtaining the projection result of the wall according to the near-plane information and the wall line information; obtaining the projection result of the wall according to the near-plane information and the wall line information comprises: obtaining wall surface information according to the near-plane information and the wall line information; obtaining the projection result of the wall according to the near-plane information, the wall line information and the wall surface information.

2. The wall projection method according to claim 1, wherein The step of performing view projection transformation on the wall contour to obtain transformed spatial information comprises: obtaining projection information corresponding to the wall contour; constructing an orthogonal projection matrix according to the projection information; performing NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain spatial information.

3. A wall projection device, characterized by The device comprises: an obtaining module configured to obtain an overhead view of the wall; a clipping module configured to clip a wall polygon contour in the overhead view to obtain a wall contour; a projection transformation module configured to perform view projection transformation on the wall contour to obtain transformed spatial information; a projection result obtaining module configured to obtain a projection result of the wall according to the wall contour and the spatial information; the projection result obtaining module is further configured to: obtain near-plane information in the spatial information; obtain wall line information in the wall contour; obtain the projection result of the wall according to the near-plane information and the wall line information; the projection result obtaining module is further configured to: obtain wall surface information according to the near-plane information and the wall line information; obtain the projection result of the wall according to the near-plane information, the wall line information and the wall surface information.

4. The wall projection apparatus according to claim 3, wherein the projection transformation module is further configured to: obtain projection information corresponding to the wall contour; construct an orthogonal projection matrix according to the projection information; perform NDC space transformation on the wall contour according to the orthogonal projection matrix to obtain spatial information.

5. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory is configured to store a computer program, and the processor is configured to run the computer program to enable the electronic device to perform the wall projection method according to any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that, The computer program stored in the memory is configured to be executed by the processor to implement the wall projection method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Revit-based space integration and classification method and device

    CN110717210A

  • Method and device for generating facade construction drawing by building model

    CN111859511A