House three-dimensional model wall supplementing method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202210836436.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-07-15
AI Technical Summary
Existing technologies cannot effectively construct 3D models of the exterior walls of high-rise buildings, resulting in missing wall thickness information and hollow areas. Furthermore, using drones and other equipment to collect data is labor-intensive and resource-intensive.
By obtaining a two-dimensional floor plan, the wall sections and exterior wall lines are stretched to form top-view wall geometry and exterior wall geometry, and then combined according to their positional relationships. The transparency and color are adjusted using the display perspective to distinguish between the interior and exterior walls.
It enables a three-dimensional and comprehensive display of the house's 3D model, improves the wall display effect, simplifies the processing, and avoids equipment and computational complexity.
Smart Images

Figure CN115393559B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method, apparatus, electronic device and storage medium for repairing walls in a three-dimensional house model. Background Technology
[0002] Data used to construct 3D building models is typically acquired using camera equipment that supports 3D structured light or radar / laser. During data acquisition, cameras are usually placed at various points within the building. Because information about the exterior walls cannot be captured, wall thickness information is missing, and the walls are represented as flat planes without any sense of depth. Furthermore, in locations such as where two walls are adjacent, there may be hollowed-out areas in the 3D building model. Figure 1 This is a schematic diagram of a 3D model of a house. For example... Figure 1 As shown, the framed area has obvious cutouts.
[0003] For single-story houses, data points can be set up outside the house and cameras can be used to collect data, which can then be used to calculate the wall thickness through geometric calculations. However, most houses nowadays are apartment buildings, and for high-rise buildings, using drones or other equipment to collect images and other data would undoubtedly consume too much manpower and resources. Summary of the Invention
[0004] This invention provides a method for patching walls in a 3D house model, comprising: acquiring a 2D floor plan of the house; acquiring wall cross-sections and exterior wall lines based on the 2D floor plan; stretching the wall cross-sections in a direction perpendicular to the 2D floor plan to a first stretching height to obtain a top-view wall geometry; wherein the first stretching height is less than or equal to a preset height threshold; stretching the exterior wall lines in a direction perpendicular to the 2D floor plan to a second stretching height to obtain an exterior wall geometry; wherein the second stretching height is the house height or the difference between the house height and the first stretching height; and combining the 3D house model, the top-view wall geometry, and the exterior wall geometry according to a positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0005] According to an embodiment of the present invention, a method for patching walls in a three-dimensional house model is provided, wherein the preset height threshold is at the pixel level.
[0006] According to an embodiment of the present invention, a method for patching a wall in a three-dimensional house model is provided, the method further comprising: obtaining a display view of the three-dimensional house model; progressively changing the first transparency and / or first color of the exterior wall geometry according to the display view; and / or progressively changing the second transparency and / or second color of the top-view wall geometry according to the display view.
[0007] According to an embodiment of the present invention, a method for supplementing walls in a three-dimensional house model is provided. The method further includes: stretching the outer wall line in a direction perpendicular to the two-dimensional floor plan to a second stretching height to obtain an inner wall geometry; or, copying the outer wall geometry and displaying it in the same position to obtain the inner wall geometry.
[0008] According to an embodiment of the present invention, a method for supplementing walls in a three-dimensional house model is provided. The method further includes: determining whether each wall part is displayed as an inner wall or an outer wall based on the display perspective; in response to the wall part being displayed as an inner wall, hiding the outer wall geometry of the corresponding wall part; and in response to the wall part being displayed as an outer wall, hiding the inner wall geometry of the corresponding wall part.
[0009] According to an embodiment of the present invention, a method for repairing walls in a three-dimensional house model is provided, the method further comprising: progressively changing the third transparency and / or third color of the inner wall geometry according to the display perspective.
[0010] According to an embodiment of the present invention, a method for patching walls in a 3D house model includes progressively changing the first transparency and / or first color of the exterior wall geometry according to the display viewpoint, comprising: when the display viewpoint is a top-down angle, adjusting the first transparency of the exterior wall geometry to be the lowest and the first color to be the darkest; when the display viewpoint is a front-view angle, adjusting the first transparency of the exterior wall geometry to be the highest and the first color to be the lightest; and / or, progressively changing the second transparency and / or second color of the top-down wall geometry according to the display viewpoint, comprising: when the display viewpoint is a top-down angle, adjusting the second transparency of the top-down wall geometry to be the lowest and the second color to be the darkest; when the display viewpoint is a front-view angle, adjusting the second transparency of the top-down wall geometry to be the highest and the second color to be the lightest; and / or, progressively changing the third transparency and / or third color of the interior wall geometry according to the display viewpoint, comprising: when the display viewpoint is a top-down angle, adjusting the third transparency of the interior wall geometry to be the lowest and the third color to be the darkest; when the display viewpoint is a front-view angle, adjusting the third brightness of the interior wall geometry to be the highest and the third color to be the lightest.
[0011] According to an embodiment of the present invention, a method for patching walls in a three-dimensional house model is provided, wherein the first color, the second color, and the third color are different.
[0012] This invention also provides a wall-filling device for a 3D house model, comprising: an extrusion element acquisition module, used to: acquire a 2D floor plan of the house, and acquire wall cross sections and exterior wall lines based on the 2D floor plan; a top-view wall geometry acquisition module, used to: extrude the wall cross sections in a direction perpendicular to the 2D floor plan to a first extrusion height to obtain a top-view wall geometry; wherein the first extrusion height is less than or equal to a preset height threshold; an exterior wall geometry acquisition module, used to: extrude the exterior wall lines in a direction perpendicular to the 2D floor plan to a second extrusion height to obtain an exterior wall geometry; wherein the second extrusion height is the house height or the difference between the house height and the first extrusion height; and a combination module, used to: combine the 3D house model, the top-view wall geometry, and the exterior wall geometry according to a positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0013] This invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps of any of the above-described methods for repairing walls using a three-dimensional house model.
[0014] This invention also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the three-dimensional house model wall patching method described above.
[0015] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described methods for repairing walls in a three-dimensional house model.
[0016] The method, apparatus, electronic device, and storage medium for supplementing walls in a 3D house model provided in this invention obtain a 2D floor plan of the house, acquire wall cross-sections and exterior wall lines based on the 2D floor plan, stretch the wall cross-sections to a first stretching height in a direction perpendicular to the 2D floor plan to obtain a top-view wall geometry, and stretch the exterior wall lines to a second stretching height in a direction perpendicular to the 2D floor plan to obtain an exterior wall geometry. Based on the positional correspondence, the 3D house model, the top-view wall geometry, and the exterior wall geometry are combined to achieve a three-dimensional and comprehensive display of the walls of the 3D house model, significantly improving the display effect of the 3D house model, and the processing process is simple and convenient. Attached Figure Description
[0017] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 It is a schematic diagram of a 3D model of a house;
[0019] Figure 2 This is a flowchart illustrating the method for patching walls in a three-dimensional house model provided in an embodiment of the present invention;
[0020] Figure 3 This is the method for repairing walls in a three-dimensional house model provided in this embodiment of the invention. Figure 1 A two-dimensional floor plan of the house shown.
[0021] Figure 4 It will be based on Figure 3 A schematic diagram of the geometry obtained by stretching the wall cross-section to the height of the room;
[0022] Figure 5 Based on Figure 3 The diagram shown is a composite image of the top-down wall geometry, exterior wall geometry, and interior wall geometry obtained from the two-dimensional floor plan.
[0023] Figure 6 What is shown is Figure 5 The top-down view of the wall geometry shown in the image.
[0024] Figure 7 What is shown is Figure 5 The external wall geometry shown in the image;
[0025] Figure 8 What is shown is Figure 5 The interior wall geometry shown in the image;
[0026] Figure 9 This is a schematic diagram showing the effect of a three-dimensional house model from a top-down perspective after being processed using the wall-filling method for three-dimensional house models provided in this embodiment of the invention.
[0027] Figure 10 This is a schematic diagram showing the side view effect of a three-dimensional house model after processing using the wall-filling method for a three-dimensional house model provided in this embodiment of the invention.
[0028] Figure 11 This is a schematic diagram showing the frontal view of a three-dimensional house model after processing using the wall-filling method for a three-dimensional house model provided in this embodiment of the invention.
[0029] Figure 12This is a schematic diagram of the structure of the three-dimensional model wall-repairing device for houses provided in an embodiment of the present invention;
[0030] Figure 13 This is a schematic diagram of the structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0032] Figure 2 This is a flowchart illustrating the method for patching walls in a 3D house model provided in an embodiment of the present invention. Figure 2 As shown, the method includes:
[0033] Step 101: Obtain the two-dimensional floor plan of the house, and obtain the wall cross-sections and exterior wall lines based on the two-dimensional floor plan.
[0034] Obtain a 2D floor plan of the house, and then obtain the wall cross-sections based on the floor plan. These wall cross-sections include the cross-sections of the interior walls and the walls connecting to the exterior of the house, as well as the wall cross-sections where doors and windows are located. The wall cross-sections obtained from the 2D floor plan represent the appearance of all the walls of the house as seen from a top-down view of the ceiling.
[0035] Furthermore, the exterior wall lines are obtained from the two-dimensional floor plan of the house. Since there are also walls around the doors and windows, the exterior wall lines also include the wall lines of the walls where the doors and windows connect to the outside.
[0036] Step 102: Stretch the wall section in a direction perpendicular to the two-dimensional floor plan to a first stretching height to obtain the top-view wall geometry; wherein, the first stretching height is less than or equal to a preset height threshold.
[0037] Figure 3 This is the method for repairing walls in a three-dimensional house model provided in this embodiment of the invention. Figure 1 The diagram shows a two-dimensional floor plan of the house. Figure 4 It will be based on Figure 3 A schematic diagram of the geometry obtained by stretching the wall cross-section to the room height. Although using Figure 4The geometry obtained by stretching can be used as the entire wall including the wall thickness, that is, including the inner wall and the outer wall. However, since the stretched inner wall and the wall in the 3D house model actually correspond to the same position, due to the error of the 2D floor plan or the 3D house model, it is very likely that the stretched inner wall will obscure the data of the inner wall part actually collected in the 3D house model.
[0038] The ultimate goal of wall patching is to optimize the display effect of the 3D house model and present a sense of three-dimensionality. To solve the problems in the above solutions, in this embodiment of the invention, the wall cross-section is stretched in a direction perpendicular to the 2D floor plan, for example, stretched upwards perpendicular to the 2D floor plan, to obtain the top-view wall geometry. Since the wall cross-section is related to the wall thickness, the top-view wall geometry is used to display the wall thickness in terms of display effect, that is, the wall thickness is perceived using the wall cross-section portion of the top-view wall geometry. Furthermore, since the height of the top-view wall geometry may obstruct the 3D house model, the height of the top-view wall geometry should be as small as possible. The height of the top-view wall geometry is related to the first stretching height when stretching the wall cross-section; therefore, when stretching the wall cross-section to obtain the top-view wall geometry, the smaller the first stretching height, the better. A large first stretching height will affect the display effect; therefore, the first stretching height when stretching the wall cross-section to obtain the top-view wall geometry can be set to be less than or equal to a preset height threshold.
[0039] Step 103: Stretch the exterior wall line in a direction perpendicular to the two-dimensional floor plan to the second stretching height to obtain the exterior wall geometry; wherein, the second stretching height is the room height or the difference between the room height and the first stretching height.
[0040] The exterior wall lines are stretched in a direction perpendicular to the 2D floor plan, for example, stretched upwards perpendicular to the floor plan. The stretching height is a second stretching height, which is either the room height or the difference between the room height and the first stretching height, thus creating the exterior wall geometry. Since the first stretching height can be a very small, negligible value, the second stretching height of the exterior wall lines can be set to the room height. For more precise display, the second stretching height can also be set to the difference between the room height and the first stretching height, such as the difference between the pixel values occupied by the room height and the pixel values occupied by the first stretching height.
[0041] Step 104: Based on the positional correspondence, combine the 3D model of the house, the top-view wall geometry, and the exterior wall geometry; wherein, the top-view wall geometry covers the exterior wall geometry.
[0042] The 3D model of the house and the 2D floor plan of the house are both obtained based on the house. The top-view wall geometry and the exterior wall geometry are obtained based on the 2D floor plan of the house. Therefore, the 3D model of the house, the top-view wall geometry and the exterior wall geometry are all obtained based on the house and correspond to the corresponding positions in the house.
[0043] Based on the corresponding positions within the house, the 3D model of the house, the top-view wall geometry, and the exterior wall geometry are combined, with the top-view wall geometry covering the exterior wall geometry, thereby completing the wall replacement in the 3D model of the house and obtaining an updated 3D model of the house.
[0044] and Figure 3 Compared to the method shown, combining the 3D model of the house, the top-view wall geometry, and the exterior wall geometry to fill in the wall can avoid the occlusion of the constructed wall on the wall in the 3D model of the house because the 3D model of the house is photographed from the inside of the house, and the walls in the 3D model of the house are the interior walls. The exterior wall geometry constructed by stretching the exterior wall lines is located outside the 3D model of the house, so it will not occlude the 3D model of the house.
[0045] Although no inner wall geometry is constructed in this embodiment of the invention, as the viewing angle of the 3D house model changes, the same wall part will either be seen as an inner wall or an outer wall. The inner and outer walls will not be displayed at the same time. Therefore, the outer wall geometry can be used to display both the outer and inner walls. In addition, the top-view wall geometry covers the outer wall line, thereby realizing the intuitive perception of the wall thickness, which greatly improves the display effect of the wall part. Moreover, the wall filling process is simple, does not require complicated equipment or complex calculations, and can easily and quickly realize the wall filling of the 3D house model.
[0046] Furthermore, while using camera equipment to collect images and other data to create a 3D model of a house, the collected wall sections may be lower than the room height due to the influence of ceiling decorations or interior furniture (such as floor-to-ceiling wardrobes). Displaying the geometry of the exterior walls, which represents the interior walls, allows for the visualization of the wall sections that were not captured.
[0047] The method for adding walls to a 3D house model provided in this invention involves obtaining a 2D floor plan of the house, acquiring wall cross-sections and exterior wall lines based on the floor plan, stretching the wall cross-sections to a first stretching height perpendicular to the floor plan to obtain a top-view wall geometry, and stretching the exterior wall lines to a second stretching height perpendicular to the floor plan to obtain an exterior wall geometry. Based on the positional correspondence, the 3D house model, the top-view wall geometry, and the exterior wall geometry are combined, achieving a three-dimensional and comprehensive display of the walls of the 3D house model. This significantly improves the display effect of the 3D house model, and the processing is simple and convenient.
[0048] According to an embodiment of the present invention, a method for patching walls in a three-dimensional house model is provided, wherein the preset height threshold is at the pixel level.
[0049] When extruding a wall section to obtain the top-view wall geometry, a smaller extrusion height is better. The extrusion height can be set to be less than or equal to a preset height threshold. A pixel is the smallest unit of display; to minimize the preset height threshold, it can be set to the pixel level, such as a preset number of pixels. Understandably, since the smallest unit of display is one pixel, setting the extrusion height for the top-view wall geometry to one pixel will minimize the obstruction of the resulting top-view wall geometry from the 3D building model. Accordingly, the preset height threshold can be one pixel.
[0050] The method for adding walls to a 3D house model provided in this embodiment of the invention, by setting a preset height threshold at the pixel level, minimizes the occlusion of the 3D house model by the geometry of the overhead wall, thereby further improving the display effect of the 3D house model.
[0051] According to an embodiment of the present invention, a method for patching walls in a three-dimensional house model is provided. The method further includes: obtaining a display view of the three-dimensional house model; progressively changing the first transparency and / or first color of the exterior wall geometry according to the display view; and / or progressively changing the second transparency and / or second color of the top-view wall geometry according to the display view.
[0052] By rotating the 3D model of the house, it can be observed from different angles. The 3D model of the house is constructed using cameras, and the interior walls are based on actual data collected. However, to avoid affecting the observation of the internal structure or layout of the house, the interior walls of the original 3D model can be hidden if they obstruct the view.
[0053] After combining the house's 3D model, top-view wall geometry, and exterior wall geometry according to their positional correspondences to obtain an updated 3D model, the original 3D model can still be displayed in the previous manner. However, due to the addition of exterior wall geometry, the updated 3D model may affect the observation of the house's internal structure and layout. Which part of the exterior wall geometry will affect the observation of the 3D model can be determined from the display perspective.
[0054] When exterior wall geometry obstructs the view, affecting observation of the interior of the 3D building model, the corresponding portion of the exterior wall geometry can be hidden. However, this will result in little difference in the wall's appearance compared to the original 3D building model; if it obstructs the view, it is hidden. If a single transparency level is set for the exterior wall geometry, low transparency (i.e., less transparent) will result in severe obstruction, while high transparency (i.e., more transparent) will weaken the wall's visibility.
[0055] To achieve a smooth visual transition, enhancing the sensory experience while avoiding observation of the interior of the 3D house model, this embodiment of the invention obtains the display perspective of the 3D house model and progressively changes the first transparency and / or first color of the exterior wall geometry according to the display perspective. Furthermore, it can also progressively change the second transparency and / or second color of the top-view wall geometry according to the display perspective.
[0056] The first transparency and / or first color of the exterior wall geometry can be gradually changed according to the display perspective of the 3D model of the house. This can be achieved by gradually increasing or decreasing the first transparency, or by gradually deepening or decreasing the first color, depending on the change in the display perspective.
[0057] The second transparency and / or second color of the top-view wall geometry are gradually changed according to the display perspective. This can be achieved by gradually increasing or decreasing the second transparency, or by gradually deepening or decreasing the second color, depending on the change in the display perspective.
[0058] The method for patching walls in a 3D house model provided in this invention achieves a smooth transition in the visual experience of the wall area by obtaining the display view of the 3D house model; gradually changing the first transparency and / or first color of the exterior wall geometry according to the display view; and / or gradually changing the second transparency and / or second color of the top-view wall geometry according to the display view, thus avoiding abruptness.
[0059] According to an embodiment of the present invention, a method for supplementing walls in a three-dimensional house model is provided. The method further includes: stretching the outer wall line in a direction perpendicular to the two-dimensional floor plan to a second stretching height to obtain the inner wall geometry; or, copying the outer wall geometry and displaying it in the same position to obtain the inner wall geometry.
[0060] The exterior wall lines are stretched to a second stretch height in a direction perpendicular to the two-dimensional floor plan to obtain the interior wall geometry. That is, the interior wall geometry is further constructed using the same method as the exterior wall geometry. The interior wall geometry and the exterior wall geometry are displayed in the same position.
[0061] Additionally, you can copy the constructed exterior wall geometry, merge the copied exterior wall geometry with the original exterior wall geometry and display them in the same location, and use the copied exterior wall geometry as the interior wall geometry.
[0062] While exterior wall geometry constructed based on the exterior wall lines can display both exterior and interior walls, using exterior wall geometry to represent both—with the color of one exterior wall geometry representing both interior and exterior wall colors—is more effective. To further enhance the visual appeal, for example, interior walls might be painted with latex paint or wallpapered, while exterior walls may have insulation layers. Therefore, using different colors for the interior and exterior walls better suits the needs of the actual scenario.
[0063] After obtaining the same inner wall geometry as the outer wall geometry, the original outer wall geometry can be used to display the outer wall, and the obtained inner wall geometry can be used to display the inner wall. The colors of the inner and outer walls can be distinguished by controlling the colors of the outer and inner wall geometry, thereby further enhancing the display effect and rationality, as well as the flexibility of the 3D model of the house.
[0064] The method for supplementing walls in a 3D house model provided in this invention obtains the inner wall geometry by stretching the outer wall line to a second stretching height in a direction perpendicular to the 2D floor plan; or by copying the outer wall geometry and displaying it in the same position to obtain the inner wall geometry. The outer wall geometry can be used to display the outer wall, and the inner wall geometry can be used to display the inner wall, which is beneficial to further enhance the display effect, as well as enhance the rationality and flexibility of the display.
[0065] According to an embodiment of the present invention, a method for supplementing walls in a three-dimensional house model is provided. The method further includes: determining whether each wall part is displayed as an inner wall or an outer wall based on the display perspective; in response to the wall part being displayed as an inner wall, hiding the outer wall geometry of the corresponding wall part; and in response to the wall part being displayed as an outer wall, hiding the inner wall geometry of the corresponding wall part.
[0066] Since interior and exterior wall geometries can be set to different colors, displaying both in the same area simultaneously can cause color overlap, affecting the display effect. To address this, since interior wall geometries can be used to display interior walls, and exterior wall geometries can be used to display exterior walls, the viewing angle can be used to determine whether each wall section is displaying an interior or exterior wall. If a wall section is displaying an interior wall, the corresponding exterior wall geometries can be hidden, displaying only the interior geometries. Conversely, if a wall section is displaying an exterior wall, the corresponding interior wall geometries can be hidden, displaying only the exterior geometries. This avoids the color overlap problem in wall display.
[0067] Figure 5 Based on Figure 3 The diagram shown is a composite image of the top-down wall geometry, exterior wall geometry, and interior wall geometry obtained from the two-dimensional floor plan. Figure 6 What is shown is Figure 5 The top-down view of the wall geometry shown in the image. Figure 7 What is shown is Figure 5 The geometry of the exterior wall shown in the image. Figure 8 What is shown is Figure 5 The interior wall geometry shown in the image. Figure 7 , Figure 8 As shown, in Figure 5 From the angle shown, since some wall sections can see the inner wall and some wall sections can see the outer wall, the wall sections that can see the inner wall display the inner wall geometry and hide the outer wall geometry; the wall sections that can see the outer wall display the outer wall geometry and hide the inner wall geometry, so it appears that not all parts of the inner and outer wall geometry are displayed.
[0068] The method for supplementing walls in a 3D house model provided in this invention determines whether each wall part is an inner wall or an outer wall based on the display perspective. If the wall part is an inner wall, the outer wall geometry of the corresponding wall part is hidden; if the wall part is an outer wall, the inner wall geometry of the corresponding wall part is hidden. This avoids the problem of color overlap between inner and outer walls and further enhances the display effect of the 3D house model.
[0069] According to an embodiment of the present invention, a method for repairing walls in a three-dimensional house model is provided, the method further includes: progressively changing the third transparency and / or third color of the inner wall geometry according to the display perspective.
[0070] Similarly, to avoid observing the collected data in the 3D model of the house, and considering the viewing experience, the display perspective of the 3D model of the house can be obtained, and the third transparency and / or third color of the interior wall geometry can be gradually changed according to the display perspective.
[0071] The method for repairing walls in a 3D house model provided in this invention ensures a good viewing experience by progressively changing the third transparency and / or third color of the inner wall geometry according to the viewing perspective, in the combination mode of the inner wall geometry and the outer wall geometry.
[0072] According to an embodiment of the present invention, a method for patching walls in a 3D house model progressively changes the first transparency and / or first color of the exterior wall geometry according to the display view, including: when the display view is a top-down angle, adjusting the first transparency of the exterior wall geometry to be the lowest and the first color to be the darkest; when the display view is a front-view angle, adjusting the first transparency of the exterior wall geometry to be the highest and the first color to be the lightest; and / or, progressively changing the second transparency and / or second color of the top-down wall geometry according to the display view, including: when the display view is a top-down angle, adjusting the second transparency of the top-down wall geometry to be the lowest and the second color to be the darkest; when the display view is a front-view angle, adjusting the second transparency of the top-down wall geometry to be the highest and the second color to be the lightest; and / or, progressively changing the third transparency and / or third color of the interior wall geometry according to the display view, including: when the display view is a top-down angle, adjusting the third transparency of the interior wall geometry to be the lowest and the third color to be the darkest; when the display view is a front-view angle, adjusting the third brightness of the interior wall geometry to be the highest and the third color to be the lightest.
[0073] Since a bird's-eye view generally focuses more on the floor plan information, the walls of the floor plan are emphasized (by darkening the color and reducing transparency); while a level view (front view) focuses more on the interior of the house, so the impact of the walls should be minimized (by increasing transparency).
[0074] When gradually changing the first transparency and / or first color of the exterior wall geometry according to the display perspective, the first transparency of the exterior wall geometry can be the lowest (e.g., the first transparency is 0, i.e., completely opaque) and the first color can be the darkest when the display perspective is from above; and the first transparency of the exterior wall geometry can be the highest (e.g., the first transparency is 100%, i.e., completely transparent) and the first color can be the lightest when the display perspective is from the front.
[0075] When progressively changing the second transparency and / or second color of the top-view wall geometry according to the display perspective, the second transparency of the top-view wall geometry can be the lowest (e.g., the second transparency is 0, i.e., completely opaque) and the second color can be the darkest when the display perspective is from above; the second transparency of the top-view wall geometry can be the highest (e.g., the second transparency is 100%, i.e., completely transparent) and the second color can be the lightest when the display perspective is from the front.
[0076] When gradually changing the third transparency and / or third color of the interior wall geometry according to the display perspective, the third transparency of the interior wall geometry can be the lowest (e.g., the third transparency is 0, i.e., completely opaque) and the third color can be the darkest when the display perspective is from above; and the third brightness of the interior wall geometry can be the highest (e.g., the third transparency is 100%, i.e., completely transparent) and the third color can be the lightest when the display perspective is from the front.
[0077] The method for adding walls to a 3D house model provided in this invention improves the observation effect of the walls from both top and side views by setting the transparency to the lowest and the color to the darkest when viewed from above, and setting the transparency to the highest and the color to the lightest when viewed from the front. This also minimizes the obstruction of objects within the 3D house model when viewed from the front, further enhancing the user experience.
[0078] According to an embodiment of the present invention, a method for repairing walls in a three-dimensional house model is provided, wherein the first color, the second color, and the third color are different.
[0079] The first color of the exterior wall geometry, the second color of the top-view wall geometry, and the third color of the interior wall geometry can be set to different colors. Different first and third colors of the exterior wall geometry allow for color differentiation between the interior and exterior walls. A different second color for the top-view wall geometry compared to both the first and second colors of the exterior wall geometry allows for better observation of the wall cross-section, i.e., perception of the wall thickness.
[0080] The method for repairing walls in a 3D house model provided in this invention further enhances the display effect of the 3D house model by setting different first, second, and third colors.
[0081] Figure 9 This is a schematic diagram showing the effect of a three-dimensional house model viewed from above after being processed using the wall-filling method for three-dimensional house models provided in this embodiment of the invention.
[0082] Figure 10 This is a schematic diagram showing the side view effect of a three-dimensional house model after processing using the wall-filling method provided in the embodiments of the present invention.
[0083] Figure 11 This is a schematic diagram showing the effect of a three-dimensional house model viewed from the front after being processed using the wall-filling method for three-dimensional house models provided in this embodiment of the invention.
[0084] This invention addresses the shortcomings of VR and other application scenarios where walls in 3D house models are missing due to factors such as the inability to measure exterior walls and obstruction by furniture or decoration. Furthermore, the geometry obtained by extruding from a 2D plane does not affect the display of information in the original 3D house model. The ExtrudeGeometry constructor from the Three.js library can be used to generate top-view wall geometry, exterior wall geometry, and interior wall geometry from a 2D floor plan.
[0085] The following describes the wall-completion device for a three-dimensional house model provided in the embodiments of the present invention. The wall-completion device for a three-dimensional house model described below can be referred to in correspondence with the wall-completion method for a three-dimensional house model described above.
[0086] Figure 12 This is a structural schematic diagram of the wall-repairing device for a three-dimensional house model provided in an embodiment of the present invention. Figure 12 As shown, the device includes a stretching element acquisition module 10, a top-view wall geometry acquisition module 20, an exterior wall geometry acquisition module 30, and a combination module 40. Specifically: the stretching element acquisition module 10 is used to acquire a two-dimensional floor plan of the house, and acquire wall cross-sections and exterior wall lines based on the two-dimensional floor plan; the top-view wall geometry acquisition module 20 is used to stretch the wall cross-sections to a first stretching height in a direction perpendicular to the two-dimensional floor plan to obtain the top-view wall geometry; wherein the first stretching height is less than or equal to a preset height threshold; the exterior wall geometry acquisition module 30 is used to stretch the exterior wall lines to a second stretching height in a direction perpendicular to the two-dimensional floor plan to obtain the exterior wall geometry; wherein the second stretching height is the house height or the difference between the house height and the first stretching height; the combination module 40 is used to combine the three-dimensional model of the house, the top-view wall geometry, and the exterior wall geometry according to their positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0087] The wall-filling device for a 3D house model provided in this invention obtains a 2D floor plan of the house, acquires the wall cross-section and outer wall line based on the 2D floor plan, stretches the wall cross-section to a first stretching height in a direction perpendicular to the 2D floor plan to obtain a top-view wall geometry, and stretches the outer wall line to a second stretching height in a direction perpendicular to the 2D floor plan to obtain an outer wall geometry. Based on the positional correspondence, the 3D house model, the top-view wall geometry, and the outer wall geometry are combined to achieve a three-dimensional and comprehensive display of the walls of the 3D house model, significantly improving the display effect of the 3D house model, and the processing is simple and convenient.
[0088] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided, wherein the preset height threshold is at the pixel level.
[0089] The wall-filling device for a 3D house model provided in this embodiment of the invention, by setting a preset height threshold at the pixel level, minimizes the obstruction of the 3D house model by the geometry of the overhead wall, thereby further improving the display effect of the 3D house model.
[0090] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided. The device further includes a display module, which is used to: acquire a display view of the three-dimensional house model; progressively change the first transparency and / or first color of the exterior wall geometry according to the display view; and / or progressively change the second transparency and / or second color of the top-view wall geometry according to the display view.
[0091] The wall-building device for a 3D house model provided in this invention achieves a smooth transition in the visual experience of the wall area by acquiring the display perspective of the 3D house model; gradually changing the first transparency and / or first color of the outer wall geometry according to the display perspective; and / or gradually changing the second transparency and / or second color of the top-view wall geometry according to the display perspective, thus avoiding abruptness.
[0092] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided. The device further includes an inner wall geometry acquisition module, which is used to: stretch the outer wall line to a second stretching height in a direction perpendicular to the two-dimensional floor plan to obtain the inner wall geometry; or, copy the outer wall geometry and display it in the same position to obtain the inner wall geometry.
[0093] The three-dimensional house model wall-filling device provided in this invention obtains the inner wall geometry by stretching the outer wall line to a second stretching height in a direction perpendicular to the two-dimensional floor plan; or, by copying the outer wall geometry and displaying it in the same position, the inner wall geometry is obtained. The outer wall geometry can be used to display the outer wall, and the inner wall geometry can be used to display the inner wall, which is beneficial to further enhance the display effect, as well as enhance the rationality and flexibility of the display.
[0094] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided, wherein the display module is further configured to: determine whether each wall part is displayed as an inner wall or an outer wall based on the display perspective; in response to the wall part being displayed as an inner wall, hide the outer wall geometry of the corresponding wall part; and in response to the wall part being displayed as an outer wall, hide the inner wall geometry of the corresponding wall part.
[0095] The wall-filling device for a 3D house model provided in this invention determines whether each wall part is an inner wall or an outer wall based on the display perspective. If the wall part is an inner wall, the outer wall geometry of the corresponding wall part is hidden; if the wall part is an outer wall, the inner wall geometry of the corresponding wall part is hidden. This avoids the problem of color overlap between inner and outer walls and further enhances the display effect of the 3D house model.
[0096] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided, wherein the display module is further used to: progressively change the third transparency and / or third color of the inner wall geometry according to the display perspective.
[0097] The wall-filling device for a three-dimensional house model provided in this invention gradually changes the third transparency and / or third color of the inner wall geometry according to the viewing angle, ensuring a good viewing experience in the combination mode of the inner wall geometry and the outer wall geometry.
[0098] According to an embodiment of the present invention, a wall-filling device for a three-dimensional house model is provided. When the display module is used to progressively change the first transparency and / or first color of the exterior wall geometry according to the display viewpoint, it is specifically configured to: when the display viewpoint is a top-down angle, adjust the first transparency of the exterior wall geometry to be the lowest and the first color to be the darkest; when the display viewpoint is a front-view angle, adjust the first transparency of the exterior wall geometry to be the highest and the first color to be the lightest; and / or, when the display module is used to progressively change the second transparency and / or second color of the top-view wall geometry according to the display viewpoint, when the display viewpoint is a top-down angle, adjust the second transparency of the top-view wall geometry to be the lowest and the second color to be the darkest; when the display viewpoint is a front-view angle, adjust the second transparency of the top-view wall geometry to be the highest and the second color to be the lightest; and / or, when the display module is used to progressively change the third transparency and / or third color of the interior wall geometry according to the display viewpoint, it is specifically configured to: when the display viewpoint is a top-down angle, adjust the third transparency of the interior wall geometry to be the lowest and the third color to be the darkest; when the display viewpoint is a front-view angle, adjust the third brightness of the interior wall geometry to be the highest and the third color to be the lightest.
[0099] The wall-building device for a 3D house model provided in this invention improves the observation effect of the wall from both top and side views by setting the transparency to the lowest and the color to the darkest when viewed from above, and the transparency to the highest and the color to the lightest when viewed from the front. This also minimizes the obstruction of objects within the 3D house model when viewed from the front, further enhancing the user experience.
[0100] According to an embodiment of the present invention, a wall-repairing device for a three-dimensional house model is provided, wherein the first color, the second color, and the third color are different.
[0101] The wall-building device for a three-dimensional house model provided in this embodiment of the invention further enhances the display effect of the three-dimensional house model by setting different first, second, and third colors.
[0102] Figure 13 This is a schematic diagram of the structure of the electronic device provided in the embodiment of the present invention, such as... Figure 13As shown, the electronic device may include: a processor 1310, a communications interface 1320, a memory 1330, and a communications bus 1340, wherein the processor 1310, the communications interface 1320, and the memory 1330 communicate with each other through the communications bus 1340. The processor 1310 can call logic instructions in the memory 1330 to execute a method for patching walls in a 3D house model. This method includes: acquiring a 2D floor plan of the house; acquiring wall cross-sections and exterior wall lines based on the 2D floor plan; stretching the wall cross-sections in a direction perpendicular to the 2D floor plan to a first stretching height to obtain a top-view wall geometry; wherein the first stretching height is less than or equal to a preset height threshold; stretching the exterior wall lines in a direction perpendicular to the 2D floor plan to a second stretching height to obtain an exterior wall geometry; wherein the second stretching height is the house height or the difference between the house height and the first stretching height; and combining the 3D house model, the top-view wall geometry, and the exterior wall geometry according to their positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0103] Furthermore, the logical instructions in the aforementioned memory 1330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0104] On the other hand, embodiments of the present invention also provide a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the three-dimensional model wall patching method for houses provided by the above methods. The method includes: obtaining a two-dimensional floor plan of the house; obtaining wall cross sections and exterior wall lines based on the two-dimensional floor plan; stretching the wall cross sections to a first stretching height in a direction perpendicular to the two-dimensional floor plan to obtain a top-view wall geometry; wherein the first stretching height is less than or equal to a preset height threshold; stretching the exterior wall lines to a second stretching height in a direction perpendicular to the two-dimensional floor plan to obtain an exterior wall geometry; wherein the second stretching height is the house height or the difference between the house height and the first stretching height; and combining the three-dimensional model of the house, the top-view wall geometry, and the exterior wall geometry according to the positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0105] In another aspect, embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a method for supplementing walls in a three-dimensional house model as described above. This method includes: obtaining a two-dimensional floor plan of the house; obtaining wall cross-sections and exterior wall lines based on the two-dimensional floor plan; stretching the wall cross-sections in a direction perpendicular to the two-dimensional floor plan to a first stretching height to obtain a top-view wall geometry; wherein the first stretching height is less than or equal to a preset height threshold; stretching the exterior wall lines in a direction perpendicular to the two-dimensional floor plan to a second stretching height to obtain an exterior wall geometry; wherein the second stretching height is the house height or the difference between the house height and the first stretching height; and combining the three-dimensional house model, the top-view wall geometry, and the exterior wall geometry according to a positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry.
[0106] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0107] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.
[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for patching walls in a three-dimensional house model, characterized in that, include: Obtain a two-dimensional floor plan of the house, and obtain the wall cross-sections and exterior wall lines based on the two-dimensional floor plan; The wall section is stretched to a first stretch height in a direction perpendicular to the two-dimensional floor plan to obtain a top-view wall geometry; wherein the first stretch height is less than or equal to a preset height threshold; wherein the preset height threshold is at the pixel level, and the top-view wall geometry is used to display the wall thickness; The exterior wall line is stretched to a second stretching height in a direction perpendicular to the two-dimensional floor plan to obtain the exterior wall geometry; wherein, the second stretching height is the room height or the difference between the room height and the first stretching height; Based on the positional correspondence, the three-dimensional model of the house, the top-view wall geometry, and the exterior wall geometry are combined; wherein, the top-view wall geometry covers the exterior wall geometry, and the exterior wall geometry is located outside the three-dimensional model of the house, serving to display both the exterior and interior walls. The three-dimensional model of the house is obtained by using camera equipment to capture images of the interior of the house.
2. The method for patching walls in a three-dimensional house model according to claim 1, characterized in that, The method further includes: Obtain the display perspective of the 3D model of the house; The first transparency and / or first color of the exterior wall geometry are progressively changed according to the display perspective; and / or the second transparency and / or second color of the top-view wall geometry are progressively changed according to the display perspective.
3. The method for patching walls in a three-dimensional house model according to claim 2, characterized in that, The method further includes: The outer wall line is stretched to the second stretching height in a direction perpendicular to the two-dimensional floor plan to obtain the inner wall geometry; or, the outer wall geometry is copied and displayed in the same position to obtain the inner wall geometry.
4. The method for patching walls in a three-dimensional house model according to claim 3, characterized in that, The method further includes: Determine whether each wall section is showing an interior or exterior wall based on the aforementioned display perspective; If the wall portion is an interior wall, then the exterior wall geometry of the corresponding wall portion is hidden. If the wall portion is an exterior wall, then the interior wall geometry of the corresponding wall portion is hidden.
5. The method for patching walls in a three-dimensional house model according to claim 4, characterized in that, The method further includes: The third transparency and / or third color of the interior wall geometry are progressively changed according to the viewing angle.
6. The method for patching walls in a three-dimensional house model according to claim 5, characterized in that, The step of progressively changing the first transparency and / or first color of the exterior wall geometry according to the display perspective includes: when the display perspective is a top-down angle, adjusting the first transparency of the exterior wall geometry to be the lowest and the first color to be the darkest; when the display perspective is a front-view angle, adjusting the first transparency of the exterior wall geometry to be the highest and the first color to be the lightest. And / or, the step of progressively changing the second transparency and / or second color of the top-view wall geometry according to the display perspective includes: when the display perspective is a top-view angle, adjusting the second transparency of the top-view wall geometry to the lowest level and the second color to the darkest level; when the display perspective is a front-view angle, adjusting the second transparency of the top-view wall geometry to the highest level and the second color to the lightest level. And / or, the step of progressively changing the third transparency and / or third color of the inner wall geometry according to the display perspective includes: when the display perspective is a top-down angle, adjusting the third transparency of the inner wall geometry to be the lowest and the third color to be the darkest; when the display perspective is a front-view angle, adjusting the third transparency of the inner wall geometry to be the highest and the third color to be the lightest.
7. A wall-repairing device for a three-dimensional house model, characterized in that, include: The extrusion element acquisition module is used to: acquire a two-dimensional floor plan of the house, and acquire wall cross-sections and exterior wall lines based on the two-dimensional floor plan; The top-view wall geometry acquisition module is used to: stretch the wall cross-section in a direction perpendicular to the two-dimensional floor plan to a first stretching height to obtain the top-view wall geometry; wherein, the first stretching height is less than or equal to a preset height threshold; wherein, the size of the preset height threshold is at the pixel level, and the top-view wall geometry is used to display the wall thickness; The exterior wall geometry acquisition module is used to: stretch the exterior wall line in a direction perpendicular to the two-dimensional floor plan to a second stretching height to obtain the exterior wall geometry; wherein, the second stretching height is the room height or the difference between the room height and the first stretching height; The combination module is used to combine the three-dimensional model of the house, the top-view wall geometry, and the exterior wall geometry according to the positional correspondence; wherein the top-view wall geometry covers the exterior wall geometry, and the exterior wall geometry is located outside the three-dimensional model of the house, serving to display both the exterior and interior walls, and the three-dimensional model of the house is obtained by using camera equipment to acquire images of the interior of the house.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method for repairing walls in a three-dimensional house model as described in any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for repairing walls in a three-dimensional house model as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Construction and hierarchical display control method for 3D interactive villa type
CN105654545A
Web-end lightweight display method suitable for Revit BIM model
CN112596727A
Three-dimensional modeling method for special-shaped electric power tunnel well
CN113656880A
