Multi-story building data generation and reconstruction method, device, equipment and medium
By identifying the spatial coordinate variation characteristics of staircase objects in multi-story buildings, overall 3D model data is generated, solving the problem of cumbersome decoration of multi-story buildings in existing technologies, realizing the overall decoration of multi-story buildings, and improving the flexibility and uniformity of decoration.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
- Filing Date
- 2022-07-11
- Publication Date
- 2026-04-24
AI Technical Summary
Existing online renovation solutions only support the generation of real-world spaces for single-story houses, and cannot uniformly renovate multi-story houses, resulting in a cumbersome and inflexible renovation process.
By acquiring 3D model data of multi-story buildings, identifying the spatial coordinate variation characteristics of staircase objects, determining the connection points of adjacent floors, deleting the corresponding spatial patch data, and generating overall 3D model data, the connectivity of multi-story buildings is realized.
It enables online decoration of multi-story houses, improving the flexibility and uniformity of decoration and meeting users' overall decoration needs for multi-story houses.
Smart Images

Figure CN115391873B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual reality technology, and in particular to a method, apparatus, equipment and medium for generating and modifying multi-story building data. Background Technology
[0002] With the development of virtual reality technology, online home decoration is becoming increasingly popular. Through online home decoration, users can simulate the decoration process online before actually decorating their homes. When viewing the decoration effects, any interior elements that do not meet the user's needs can be adjusted as required to achieve a home decoration effect that satisfies the user's requirements.
[0003] Currently, online renovation solutions generate a virtual reality space for the target house to be renovated, and then implement online renovation based on this virtual reality space. However, existing online renovation solutions only support generating virtual reality spaces for single-story houses. For multi-story houses, such as duplexes or houses with attics, it is necessary to generate a panoramic space for each floor separately and carry out online renovation separately. This online renovation method is relatively cumbersome and lacks flexibility. Summary of the Invention
[0004] This application provides a method, apparatus, equipment, and medium for generating and modifying multi-story building data, which are used to generate overall three-dimensional model data of a building containing multiple floors and modify the multi-story building to meet the user's needs for overall renovation of multi-story buildings.
[0005] This application provides a method for generating panoramic data of a multi-story building, comprising: acquiring 3D model data corresponding to each floor of the multi-story building, wherein the 3D model data corresponding to each floor is 3D model data constructed by treating the floor as an independent building object, including spatial patch data of each spatial object in the floor space and stair patch data of a stair object located in the floor space; identifying stair patch data corresponding to the stair object from the 3D model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object; determining spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from the 3D model data corresponding to each floor based on the stair patch data corresponding to the stair object; projecting the stair patch data corresponding to the stair object onto a first spatial object to obtain a projection area on the first spatial object, wherein the first spatial object is a spatial object in a higher floor connected to the stair object; deleting a portion of the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object to connect the two spatial objects in adjacent floors connected to the stair object, thereby obtaining the 3D model data corresponding to the multi-story building.
[0006] In one optional embodiment, before identifying the stair surface data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object, the method further includes: verifying the three-dimensional model data corresponding to the multi-floor building according to preset three-dimensional model data verification rules, and correcting the three-dimensional model data that does not comply with the verification.
[0007] In one optional embodiment, based on the spatial coordinate change characteristics of the stair object, the stair surface data corresponding to the stair object is identified from the three-dimensional model data corresponding to each floor. This includes: based on the change characteristics of the spatial coordinates of adjacent stair surface data, where the height coordinate values increase sequentially within a preset difference range and the horizontal area is the same, a set of corresponding surface data is identified from the three-dimensional model data corresponding to each floor as the stair surface data corresponding to the stair object.
[0008] In one optional embodiment, based on the staircase patch data corresponding to the staircase object, spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object is determined from the 3D model data corresponding to each floor. This includes: determining first staircase patch data located at the bottom of the staircase object and second staircase patch data located at the top of the staircase object based on the height coordinate values in the spatial coordinates of the staircase patch data corresponding to the staircase object; and determining spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object based on the spatial coordinates of the first staircase patch data and the second staircase patch data, as well as the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space.
[0009] In one optional embodiment, based on the spatial coordinates of the first staircase patch data and the second staircase patch data, and the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space, the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object is determined. This includes: based on the spatial coordinates corresponding to the first staircase patch data at the bottom of the staircase object, determining a set of patch data whose height satisfies a preset relationship with the first staircase patch data and contains the same horizontal coordinates, as the spatial patch data corresponding to the spatial objects in the lower floors connected to the staircase object; and based on the spatial coordinates corresponding to the second staircase patch data at the top of the staircase object, determining a set of patch data whose height satisfies a preset relationship with the second staircase patch data and contains the same horizontal coordinates, as the spatial patch data corresponding to the spatial objects in the higher floors connected to the staircase object.
[0010] In one optional embodiment, deleting a portion of the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object includes: displaying a floor plan corresponding to the first spatial object, the floor plan including patch objects corresponding to the spatial patch data of the first spatial object, the patch objects being editable; in response to a selection operation performed on the patch object, deleting the spatial coordinates corresponding to the selected area in the spatial patch data of the first spatial object, and marking the corresponding deletion effect on the patch objects of the floor plan; wherein, the selected area includes the projection area of the stair patch data corresponding to the stair object onto the first spatial object.
[0011] In an optional embodiment, the spatial patch data further includes texture information. When deleting a portion of the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, the method further includes deleting the texture information corresponding to the portion of the spatial patch data within the projection area.
[0012] In an optional embodiment, the three-dimensional model data corresponding to each floor also includes wall patch data corresponding to the subspace object where the stair object is located in each floor space, and further includes: at least partially deleting the wall patch data corresponding to the subspace object where the stair object is located, so that the stair object is connected to a second space object in the lower floor connected to the stair object, wherein the subspace object is a part of the space in the second space object.
[0013] In one optional embodiment, at least partially deleting the wall panel data corresponding to the subspace object where the staircase object is located includes: determining whether there is any target wall panel data in the wall panel data corresponding to the subspace object where the staircase object is located that overlaps with the space panel data corresponding to the second space object in the lower floor connected to the staircase object; if so, deleting the other wall panel data in the wall panel data corresponding to the subspace object except for the target wall panel data; if not, deleting all wall panel data corresponding to the subspace object.
[0014] In an optional embodiment, the method further includes: obtaining the projected area of the stair object on the second spatial object and its corresponding maximum bounding rectangle area based on the spatial coordinates of the stair patch data corresponding to the stair object; if the projected area is less than its corresponding maximum bounding rectangle area, then correcting the area of the second spatial object based on the difference between the maximum bounding rectangle area and the projected area.
[0015] In an optional embodiment, the method further includes: rendering the 3D model data corresponding to the multi-story building to obtain and display the 3D real-world space corresponding to the multi-story building; responding to a first renovation operation, displaying a first floor plan, wherein the first floor plan is the floor plan corresponding to the first floor to be renovated; responding to a first selection operation on the first floor plan, determining the first spatial patch data corresponding to the selected first area in the 3D model data corresponding to the first floor; responding to a stair object addition operation, adding stair patch data corresponding to the stair object to the projection space of the next floor in the first spatial patch data; deleting the first spatial patch data, and displaying the added stair object in the 3D real-world space at the spatial position corresponding to the projection space.
[0016] In an optional embodiment, the method further includes: responding to a second renovation operation by displaying a second floor plan, wherein the second floor plan is the floor plan corresponding to the second floor to be renovated; the second renovation operation is used to renovate a portion of the space objects in the second floor into cantilevered space objects, and to renovate a portion of the space objects in the floor below the second floor into high-ceilinged space objects; responding to a second selection operation on the second floor plan by determining the second spatial patch data corresponding to the selected second area in the 3D model data corresponding to the second floor; deleting the second spatial patch data from the 3D model data corresponding to the second floor, and using the boundary defined by the second spatial patch data as the boundary of the cantilevered space object; adding wall patch data corresponding to the half-height wall object in the 3D model data corresponding to the second floor based on the boundary of the cantilevered space object, and synchronously displaying the renovated high-ceilinged space object, cantilevered space object and its corresponding half-height wall object in the 3D real-world space.
[0017] In an optional embodiment, the method further includes: determining the space type of each space object in each floor space based on the three-dimensional model data corresponding to the multi-story building; setting texture information that is adapted to the space type of each space object on the space patch data corresponding to each space object, so as to obtain a three-dimensional real-world space containing texture information after rendering the three-dimensional model data.
[0018] This application embodiment also provides a method for renovating a multi-story building, including: acquiring three-dimensional model data corresponding to the multi-story building; rendering the three-dimensional model to obtain and display the three-dimensional real-world space corresponding to the multi-story building; responding to a first renovation operation and displaying a first floor plan, wherein the first floor plan is the floor plan corresponding to the first floor to be renovated; responding to a first selection operation on the first floor plan and determining the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor; responding to a stair object addition operation and adding stair patch data corresponding to the stair object to the projection space of the next floor in the first spatial patch data; deleting the first spatial patch data and displaying the added stair object in the three-dimensional real-world space at the spatial position corresponding to the projection space.
[0019] In an optional embodiment, the method further includes: responding to a second renovation operation by displaying a second floor plan, wherein the second floor plan is the floor plan corresponding to the second floor to be renovated; the second renovation operation is used to renovate a portion of the space objects in the second floor into cantilevered space objects, and to renovate a portion of the space objects in the floor below the second floor into high-ceilinged space objects; responding to a second selection operation on the second floor plan by determining the second spatial patch data corresponding to the selected second area in the 3D model data corresponding to the second floor; deleting the second spatial patch data from the 3D model data corresponding to the second floor, and using the boundary defined by the second spatial patch data as the boundary of the cantilevered space object; adding wall patch data corresponding to the half-height wall object in the 3D model data corresponding to the second floor based on the boundary of the cantilevered space object, and synchronously displaying the renovated high-ceilinged space object, cantilevered space object and its corresponding half-height wall object in the 3D real-world space.
[0020] In an optional embodiment, the method further includes: responding to an operation to add other objects to a target location in the three-dimensional real-world space, and adding other object data to the three-dimensional model data, wherein the spatial coordinates of the other object data correspond to the target location, and the other objects include furniture objects, door objects, window objects, and wall objects.
[0021] This application embodiment also provides a panoramic data generation device for a multi-story building, comprising: an acquisition module, used to acquire three-dimensional model data corresponding to each floor of the multi-story building, wherein the three-dimensional model data corresponding to each floor is three-dimensional model data constructed by treating the floor as an independent building object, including spatial patch data of each spatial object in the floor space and stair patch data of a stair object located in the floor space; an identification module, used to identify the stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object; a determination module, used to determine the spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from the three-dimensional model data corresponding to each floor based on the stair patch data corresponding to the stair object; a first processing module, used to project the stair patch data corresponding to the stair object onto a first spatial object to obtain a projection area on the first spatial object, wherein the first spatial object is a spatial object in a higher floor connected to the stair object; and a second processing module, used to delete a portion of the spatial patch data located in the projection area from the spatial patch data corresponding to the first spatial object, so as to connect the two spatial objects in adjacent floors connected to the stair object and obtain the three-dimensional model data corresponding to the multi-story building.
[0022] This application embodiment also provides a renovation device for a multi-story building, comprising: an acquisition module, configured to acquire three-dimensional model data corresponding to the multi-story building, render the three-dimensional model, obtain and display the three-dimensional real-world space corresponding to the multi-story building; a first editing module, configured to respond to a first renovation operation, display a first floor plan, wherein the first floor plan is the floor plan corresponding to the first floor to be renovated; and respond to a first selection operation on the first floor plan, determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor; a second editing module, configured to respond to a stair object addition operation, add stair patch data corresponding to the stair object to the projection space of the next floor in the first spatial patch data; and delete the first spatial patch data, and display the added stair object in the three-dimensional real-world space at the spatial position corresponding to the projection space.
[0023] This application also provides an electronic terminal device, including a processor and a memory, which, when the processor executes the computer program, are used to implement any step of the method.
[0024] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps of the method.
[0025] In this embodiment, for the 3D model data constructed as an independent house object for each floor in a multi-story building, the location information that needs to be connected between two spatial objects on adjacent floors can be determined based on the stair facet data corresponding to the stair object. Based on this, the partial spatial facet data corresponding to the location information is determined, and the partial spatial facet data is deleted, thereby connecting the two spatial objects on adjacent floors connected by the stair object. Furthermore, the same processing is performed on the two spatial objects on adjacent floors connected by each stair object in the multi-story building. In this way, the overall 3D model data corresponding to a house containing multiple floors can be obtained, which can be used for subsequent renovation of the multi-story building based on the 3D model data corresponding to the multi-story building, meeting the user's need for overall online decoration of multi-story buildings, and making online decoration more flexible. Attached Figure Description
[0026] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0027] Figure 1a A flowchart illustrating a method for generating three-dimensional model data for multi-story buildings, provided as an embodiment of this application;
[0028] Figure 1b A flowchart illustrating a method for renovating a multi-story building, as provided in this application embodiment;
[0029] Figure 2a This is a structural schematic diagram of a staircase object provided in an embodiment of this application;
[0030] Figure 2b This application provides a schematic diagram illustrating the positional relationship between a staircase object and its adjacent connected floors, as part of an embodiment of the present application.
[0031] Figure 2c A floor plan comparison diagram of a unit before and after floor renovation is provided for an embodiment of this application;
[0032] Figure 2d This is a structural diagram of a subspace object containing a staircase object, provided in an embodiment of this application.
[0033] Figure 2e This is a structural diagram of another subspace object containing a staircase object provided in an embodiment of this application;
[0034] Figure 3a A schematic diagram of a three-dimensional model data generation device for multi-story buildings provided in an embodiment of this application;
[0035] Figure 3bThis is a schematic diagram of the structure of a multi-story building renovation device provided in an embodiment of this application;
[0036] Figure 4 This is a schematic diagram of the structure of an electronic terminal device provided in an embodiment of this application. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0038] Online home renovation largely relies on a 3D virtual reality space corresponding to a physical house. By simulating the renovation of a physical house within this 3D virtual reality space, users can experience the renovation effect. Therefore, to obtain the corresponding 3D virtual reality space, it is usually necessary to first construct a 3D model of the house, obtain the corresponding 3D model data, and then further render the 3D virtual reality space from the 3D model data. When constructing the 3D model, it is built on a floor-by-floor basis. For multi-story houses, the 3D models corresponding to different floors are independent. Therefore, in existing online renovation solutions, the renovation of multi-story houses is also done separately for each floor, making it impossible to uniformly renovate multiple floors from the perspective of the entire house.
[0039] To address the limitation of existing online home renovation solutions in providing unified renovation options for multi-story buildings, this application provides a method for generating 3D model data for multi-story buildings. This method connects each floor in a 3D model constructed as an independent building object within a multi-story building, obtaining overall 3D model data for the entire building. This data is then used to render a corresponding multi-story 3D real-world space, which is then applied to the online renovation scenario. This allows users to perform unified online renovation of multi-story buildings from a holistic perspective, offering greater flexibility and better meeting practical needs.
[0040] The method for generating three-dimensional model data of multi-story buildings provided in this application will now be described in detail with reference to the accompanying drawings.
[0041] Figure 1a The method for generating three-dimensional model data of multi-story buildings provided in the embodiments of this application, such as Figure 1a As shown, the method includes:
[0042] S1a. Obtain the 3D model data corresponding to each floor in a multi-story building. The 3D model data corresponding to each floor is the 3D model data constructed by treating the floor as an independent building object, including the spatial patch data of each spatial object in the space of that floor and the stair patch data of the stair object located in the space of that floor.
[0043] S2a. Based on the spatial coordinate change characteristics of the stair object, identify the stair surface data corresponding to the stair object from the three-dimensional model data corresponding to each floor.
[0044] S3a. Based on the stair surface data corresponding to the stair object, determine the spatial surface data corresponding to the two spatial objects in the adjacent floors connected to the stair object from the 3D model data corresponding to each floor.
[0045] S4a. Project the stair face data corresponding to the stair object onto the first spatial object to obtain the projection area on the first spatial object. The first spatial object is the spatial object in the higher floor connected to the stair object.
[0046] S5a. Delete some spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, so as to connect two spatial objects in adjacent floors connected to the stair object and obtain the three-dimensional model data corresponding to the multi-story building.
[0047] To construct a 3D model of a multi-story building, professional photographers typically need to capture panoramic images of the building from multiple angles and perspectives. These panoramic images are then given to a model-making team to construct 3D models corresponding to each floor and generate the corresponding 3D model data. Each floor's 3D model includes at least one spatial object; except for the top floor, each floor also includes staircase objects leading to the next floor. Correspondingly, the 3D model data for the multi-story building includes spatial facet data of each spatial object on each floor, as well as staircase facet data of the staircase objects located on each floor. Among them, the spatial patch data of each spatial object refers to the three-dimensional data corresponding to the walls, floors and ceilings that enclose each spatial object; for each spatial object in the space of adjacent floors in a multi-story building, the three-dimensional data corresponding to the ceiling of each spatial object in the lower floor space is also the three-dimensional data corresponding to the floor of each spatial object in the higher floor space; the stair patch data in each floor space refers to the three-dimensional data corresponding to the riser (elevation) and tread (plane) of each step that constitutes each stair object.
[0048] Because the 3D model of a multi-story building is constructed with each floor space as an independent building object, the 3D models of each floor space are not connected to each other; correspondingly, the 3D model data of each floor space also do not satisfy connectivity. Therefore, to obtain the overall 3D model data of the multi-story building, after obtaining the 3D model data of each floor, it is necessary to determine the connected spatial positions between adjacent floors based on the position of the staircase object. This allows for the deletion of the spatial patch data corresponding to that spatial position, thus obtaining the overall 3D model data of the multi-story building. Since a staircase object consists of multiple steps arranged in a preset relationship on the horizontal and vertical planes, when determining the staircase object, the staircase patch data corresponding to the staircase object can be identified from the 3D model data of each floor based on the spatial coordinate change characteristics of the staircase object.
[0049] Furthermore, based on the staircase patch data corresponding to the staircase object and the spatial patch data of each spatial object in each floor space, the spatial patch data corresponding to the two spatial objects in the adjacent floors connected to the staircase object can be determined from the 3D model data corresponding to each floor. For ease of distinction, the spatial objects in the higher floors of the adjacent floors connected to the staircase object are called the first spatial objects, and the spatial objects in the lower floors of the adjacent floors connected to the staircase object are called the second spatial objects. Based on this, by projecting the staircase patch data corresponding to the staircase object onto the first spatial object, the projection area of the staircase object on the first spatial object can be obtained. By deleting the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, the two spatial objects in the adjacent floors connected to the staircase object can be connected, thus obtaining the 3D model data corresponding to the multi-story building.
[0050] In this embodiment, to obtain accurate 3D model data corresponding to a multi-story building, before identifying the stair surface data corresponding to the stair object from the 3D model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object, the 3D model data corresponding to the multi-story building can be verified according to preset 3D model data verification rules. Non-compliant 3D model data can be corrected to ensure the accuracy of subsequent identification data. The preset 3D model data verification rules refer to 3D data rules formed based on the relative positional relationships between various spatial objects and their corresponding other objects in a multi-story building. For example, taking any wall object enclosing a spatial object as an example, a wall object has two walls, each belonging to two adjacent different spatial objects. If a door object or window object is installed on the wall object, then both walls of the wall object are associated with the installed door object or window object; correspondingly, the spatial objects to which the two walls belong are also associated with the door object or window object installed on the wall object. Therefore, if a wall in a wall object is identified as having a relationship with a door or window object installed on that wall object, but another wall in the same wall object is not associated with a door or window object installed on that wall object, then the identified 3D data is non-compliant. It is necessary to add the relationship between the other wall in the wall object and the door or window object installed on that wall object to ensure the integrity and accuracy of the data.
[0051] Furthermore, after verifying and correcting the 3D model data corresponding to multi-story buildings, staircase objects and subsequent processing can be identified from the verified 3D model data. Optionally, when identifying the staircase surface data corresponding to the staircase object from the 3D model data corresponding to each floor based on the spatial coordinate variation characteristics of the staircase object, a set of surface data corresponding to each floor can be identified from the 3D model data corresponding to each floor, based on the variation characteristic that the height coordinate values in the spatial coordinates of the 3D model data increase sequentially within a preset difference range while maintaining the same horizontal area. This set of surface data is used as the staircase surface data corresponding to the staircase object. For example, as follows... Figure 2a As shown, the height of indoor stair treads is generally between 65mm and 185mm. If, from the 3D model data corresponding to each floor, the height coordinates of adjacent surface data in the horizontal direction are identified as increasing sequentially at equal heights within the range of 65mm to 185mm, and the horizontal area corresponding to each surface data is the same, then this set of surface data is determined to be the surface data corresponding to the riser and tread of the stair object, respectively. This set of surface data is then used as the stair surface data corresponding to the indoor stair object.
[0052] Based on this, when the surface data corresponding to the staircase object is identified in the 3D model data corresponding to each floor, the spatial surface data corresponding to two spatial objects in adjacent floors connected to the staircase object can be determined from the 3D model data corresponding to each floor based on the staircase surface data corresponding to the staircase object. In this embodiment, the spatial surface data corresponding to the two spatial objects in adjacent floors connected to the staircase object refers to the spatial surface data corresponding to the floor and ceiling of the floor where the staircase object is located, that is, the spatial surface data corresponding to the floor of the floor above the floor where the staircase object is located. In this embodiment, the specific method of determining the spatial surface data corresponding to the two spatial objects in adjacent floors connected to the staircase object is not limited. Optionally, based on the height coordinate value in the spatial coordinates corresponding to the staircase surface data of the staircase object, in order from top to bottom, the staircase surface data in the horizontal direction with the lowest height coordinate value can be used as the first staircase surface data, and the staircase surface data in the horizontal direction with the highest height coordinate value can be used as the second staircase surface data. Based on this, the first stair panel data located at the bottom of the stair panel object and the second stair panel data located at the top of the stair panel object can be determined according to the height coordinate value in the spatial coordinates of the stair panel data corresponding to the stair panel object. Then, based on the spatial coordinates of the first stair panel data and the second stair panel data, as well as the spatial coordinates of the spatial panel data corresponding to each spatial object in each floor space, the spatial panel data corresponding to two spatial objects in the adjacent floors connected to the stair panel object can be determined.
[0053] like Figure 2bAs shown, for each step of a staircase object, following a top-to-bottom order, typically, the first step of the staircase object is flush with the floor of the higher floor it connects to, and the relative distance between the last step and the floor of the floor it resides in is the height of one step. That is, the distance between the last step and the floor of the lower floor it connects to is the height of one step. Therefore, when determining the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object, we can determine a set of patch data whose height satisfies a preset relationship and contains the same horizontal coordinates, based on the spatial coordinates corresponding to the first staircase patch data at the bottom of the staircase object. This set of patch data serves as the spatial patch data corresponding to the spatial objects in the lower floors connected to the staircase object. Similarly, based on the spatial coordinates corresponding to the second staircase patch data at the top of the staircase object, we can determine a set of patch data whose height satisfies a preset relationship and contains the same horizontal coordinates, serving as the spatial patch data corresponding to the spatial objects in the higher floors connected to the staircase object. The first projection area, which includes the same horizontal coordinate, is the first projection area obtained by projecting the first step of the stair object upwards onto the floor of the higher floor space; and the second projection area is the last step of the stair object projecting downwards onto the floor of the lower floor space. The horizontal coordinates in the spatial coordinates corresponding to the first and second projection areas are the horizontal coordinates in the spatial coordinates corresponding to the partial face data of the higher floor space and the partial face data of the lower floor space connected by the stair object.
[0054] Based on the above, after determining the number of spatial patches corresponding to two spatial objects on adjacent floors connected to the staircase object, the first spatial object located on the higher floor can be determined based on the spatial patch data corresponding to the two spatial objects. The staircase patch data corresponding to the staircase object is then projected onto the first spatial object to obtain the projection area on the first spatial object. Furthermore, by deleting some spatial patch data within the projection area from the spatial patch data corresponding to the first spatial object, the two spatial objects on adjacent floors connected to the staircase object can be connected, thus establishing connectivity between the 3D spatial data corresponding to each floor in the 3D spatial data of a multi-story building.
[0055] In this embodiment, the specific method of deleting the partial spatial patch data corresponding to the projected area in the first spatial object is not limited. In one optional embodiment, the projected area in the first spatial object can be determined by the method described in the above embodiment, and the partial spatial patch data corresponding to the projected area can be directly deleted, so that the adjacent floor spaces connected by the stair object are connected. In another optional embodiment, when the three-dimensional model data corresponding to each floor space in a multi-story house is obtained, the corresponding floor plan can be rendered according to the three-dimensional model data corresponding to each floor space. Based on this, if the floor plan remodeling personnel want to modify the first spatial object in the target floor space, for example, to connect the first spatial object with the space object on the next floor, the floor plan remodeling personnel can select the first spatial object in the target floor space. Furthermore, in response to the floor plan remodeling personnel selecting the first spatial object, the floor plan corresponding to the first spatial object can be displayed. The floor plan includes the patch object corresponding to the spatial patch data of the first spatial object, and the patch object can be edited. The floor plan remodeling personnel can select any area in the patch object as the area connected to the space object on the next floor.
[0056] Figure 2c Here are the floor plans of the first space before and after the renovation, such as... Figure 2c As shown in the original floor plan, the renovation team selected an area on the floor plan's surface. Figure 2c The area within the white box is designated as the location connected to the next layer of spatial objects. Furthermore, in response to a floor plan remodeling personnel performing a selection operation on the facet object, the spatial coordinates corresponding to the selected area in the spatial facet data of the first spatial object can be deleted. In this embodiment, the spatial facet data also includes texture information. When deleting a portion of the spatial facet data located within the projection area of the spatial facet data corresponding to the first spatial object, the deletion also includes deleting the texture information corresponding to the portion of the spatial facet data within the projection area. Correspondingly, the deletion effect is also marked on the facet object of the floor plan, such as... Figure 2c As shown in the revised floor plan, the textures corresponding to the partial objects within the white frame have been removed.
[0057] In this embodiment, the specific location of the area selected by the renovator in the floor plan corresponding to the first space object is not limited. Optionally, if the lower-level space object of the first space object includes a staircase object, the projected space corresponding to the downward projection of the selected area can be the space where the staircase object is located in the lower-level space object. In this way, movement between the first space object and the lower-level space object can be directly achieved through the staircase object. Of course, if there is a staircase object in the lower-level space object, the projected space corresponding to the downward projection of the selected area may not be the space where the staircase object is located in the lower-level space object. Alternatively, if there is no staircase object in the lower-level space object, the selected area can be any area in the first space object. Based on this, a staircase object can be added at the location corresponding to the projected space of the selected area to move between the first space object and the lower-level space object through the staircase object.
[0058] In an optional embodiment of this application, the spatial location of the staircase object can be distinguished from other adjacent spatial objects as an independent subspace object. This allows for separate processing of the staircase object within that subspace object should there be separate decoration or renovation requirements. Based on this, in this embodiment, the 3D model data corresponding to each floor also includes wall panel data corresponding to the subspace object containing the staircase object on each floor. The subspace object containing the staircase object is a spatial object whose cross-section is the area of the largest bounding rectangle projected onto the plane by the staircase panel data corresponding to the staircase object. Figure 2d This is a schematic diagram of the structure of a subspace object provided in an embodiment of this application, such as... Figure 2d As shown, in this embodiment, the planar projection of the stair object is a rectangular area, and the cross-section of the subspace object where the stair object is located is the same as the projected area of the stair object. Figure 2e This is a schematic diagram of the structure of another subspace object provided in an embodiment of this application, such as... Figure 2e As shown, in this embodiment, the planar projection of the stair object is an L-shaped area, and the cross-section of the subspace object where the stair object is located is the area of the largest bounding rectangle of the L-shaped projection area, that is, the cross-section of the subspace object is the same as the projection area of the stair object.
[0059] In this embodiment, the height of each subspace object is not limited, nor is the amount of data for stair objects in each subspace object limited. The number of stair objects in each subspace object can be one or more. When there is only one stair object in a subspace object, the height of the subspace object can be the same as the height of the floor it is located on, or it can be the height of the floor it is located on to the height of the multi-story building. When there are multiple stair objects in a subspace object, for example, in a multi-story building with more than two floors, the space where the stair objects between every two floors are located corresponds to the same projected area on the plane. In this case, the height of the subspace object containing multiple stair objects can be the height of the multi-story building. Of course, it is not limited to this and can be determined according to actual needs.
[0060] Based on the above, if the subspace object containing the staircase object is part of a second space object on a lower floor connected to the staircase object, then in addition to deleting some space panel data within the projection area of the staircase panel data on the first space object, at least some wall panel data corresponding to the subspace object containing the staircase object can also be deleted to make the staircase object connected to the second space object on the lower floor. In this embodiment, the method of at least partially deleting the wall panel data corresponding to the subspace object containing the staircase object will vary depending on the spatial location of the staircase object. Optionally, based on the spatial coordinates of the wall panel data corresponding to the subspace object containing the staircase object and the spatial coordinates of the wall panel data corresponding to the second space object on the lower floor connected to the staircase object, it can be determined whether there is a target wall panel data overlapping with the space panel data corresponding to the second space object in the wall panel data corresponding to the subspace object containing the staircase object; if so, then delete the other wall panel data except for the target wall panel data; if not, then delete all wall panel data corresponding to the subspace object.
[0061] For example, if the staircase object has no side against the wall of the second space object, then the wall face data of the subspace object containing the staircase object does not contain any target wall face data that overlaps with the space face data of the second space object. If the staircase object has any side against the wall of the second space object, then the wall face data of the subspace object containing the staircase object contains target wall face data that overlaps with the space face data of the second space object on the lower floor connected to the staircase object. This target wall face data is the wall face data of the wall object that is commonly associated with both the subspace object containing the staircase object and the second space object, i.e., the wall face data of the wall object against which the staircase object is located.
[0062] In this embodiment, the 3D spatial data corresponding to a multi-story building also includes texture information. After obtaining the 3D model data corresponding to the multi-story building, the spatial type of each spatial object in each floor can be determined based on the 3D model data. Texture information adapted to the spatial type of each spatial object is then set for the spatial patch data corresponding to each spatial object. After rendering the 3D model data, a 3D real-world space containing texture information is obtained. For example, for bedrooms and living rooms, the floor is usually wooden, so the texture of the corresponding wooden floor needs to be rendered during rendering; for kitchens, bathrooms, or balconies, the floor is usually tiled or marble, so the texture of the corresponding tiled or marble needs to be rendered during rendering. Therefore, when the same spatial object is divided into different types of spatial objects, or different types of spatial objects are merged into one spatial object, it is necessary to determine whether the texture information needs to be changed when rendering the 3D real-world space.
[0063] Therefore, in this embodiment, in order to render the texture information of different types of spatial objects in a targeted manner and obtain the actual projected area of each spatial object when rendering a 3D real-world space corresponding to a multi-story building, even after deleting the wall patch data corresponding to the sub-space object where the stair object is located, the projected area of the stair object on the second spatial object and its corresponding maximum bounding rectangle area can be obtained based on the spatial coordinates of the stair patch data corresponding to the stair object. This allows for determining whether to correct the projected area of the second spatial object on the floor where the stair object is located based on the size relationship between the projected area of the stair object on the second spatial object and its corresponding maximum bounding rectangle area. Optionally, if the projected area of the stair object on the second spatial object is smaller than its corresponding maximum bounding rectangle area, the area of the second spatial object is corrected based on the difference between the maximum bounding rectangle area and the projected area. For example, as... Figure 2d If the projected area of the staircase object shown is the same as the area of the largest bounding rectangle of its corresponding projected area, then there is no need to modify the spatial patch data corresponding to the second spatial object; for example, as... Figure 2e The staircase object shown has an L-shaped projected area on the plane. The difference between the area of the largest bounding rectangle of its corresponding projected area and the L-shaped projected area is then corrected to the partial spatial patch data of the second spatial object.
[0064] Based on the above, by connecting two spatial objects in adjacent floors connected by the staircase object, and by connecting the sub-space object containing the staircase object with other adjacent spatial objects, the overall 3D model data corresponding to the multi-story building is obtained. Further, rendering the 3D model data corresponding to the multi-story building yields a 3D real-world space. Displaying this rendered 3D real-world space allows renovation engineers to perform further modifications based on it. In this embodiment, the method of renovation for multi-story buildings is not limited. Optionally, renovations can be done through one or more of hard furnishing and / or soft furnishing methods. For example, renovation engineers can add a staircase object to any floor of the multi-story building; alternatively, they can transform any spatial object on any floor into a cantilevered space and transform the corresponding spatial object on the next floor into a high-ceilinged space; or they can add other furniture objects, etc., depending on actual needs.
[0065] Optionally, the renovation personnel can select any floor space in the 3D virtual reality space and confirm the renovation operation to be performed on it. In this embodiment, the renovation operation of adding a staircase object in the 3D virtual reality space is called the first renovation operation. Based on this, when the renovation personnel perform the first renovation operation, a first floor plan can be displayed. Optionally, the first floor plan can be the floor plan corresponding to the first floor to be renovated; further optionally, it can also be the floor plan corresponding to the target space object in the selected first floor. This is not limited here. Depending on the location where the staircase object is added, a floor plan corresponding to the space at that location can be displayed. Furthermore, the renovation personnel can determine the spatial location of the staircase object to be added in the first floor plan, and then add the staircase object at that location.
[0066] In this embodiment, the specific method for determining the spatial location of the stair object to be added is not limited. In an optional embodiment, if the first floor is one floor higher than the first floor, the renovation personnel can perform a first selection operation on the first floor plan and determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor, and project the first spatial patch data to the next floor as the spatial location of the stair object to be added. Furthermore, the renovation personnel can perform a stair object addition operation on the first floor plan. In response to the stair object addition operation, the stair patch data corresponding to the stair object can be added to the projection space of the first spatial patch data to the next floor, and the first spatial patch data can be deleted. The added stair object is then displayed in the spatial location of the corresponding projection space in the three-dimensional real-world space. In another optional embodiment, if the first floor is a single floor, the renovation personnel can perform a first selection operation on the first floor plan and determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor, and project the first spatial patch data to the upper floor as the spatial position corresponding to the stair object to be added; further, the renovation personnel can perform a stair object addition operation on the first floor plan, and in response to the stair object addition operation, they can add the stair patch data corresponding to the stair object to the upper floor projection space of the first spatial patch data, delete the first spatial patch data, and display the added stair object at the spatial position corresponding to the projection space in the three-dimensional real scene space.
[0067] In this embodiment of the application, the transformation operation of converting a portion of the spatial objects in a certain floor space into cantilevered spatial objects and the transformation operation of converting a portion of the spatial objects in the next floor into cantilevered spatial objects in a three-dimensional real-world space is called the second transformation operation. Based on this, the renovation personnel can select the second floor to be renovated from the 3D real-world space and perform a second renovation operation on it. Furthermore, in response to the renovation personnel performing the second renovation operation, a second floor plan can be displayed, which is the floor plan corresponding to the second floor to be renovated. Further, the renovation personnel can perform a second selection operation on the second floor plan and determine the boundary position corresponding to the second floor being transformed into a cantilevered space object based on the spatial coordinates of the selected second area in the 3D model data corresponding to the second spatial patch data of the second floor. Optionally, the selected second area can be used as a region connected to the space of the next floor, and the space corresponding to the remaining area in the second floor can be transformed into a cantilevered space object. Based on this, when the selected second area is determined to be connected to the second spatial patch data, the second spatial patch data can be deleted from the 3D model data corresponding to the second floor to connect the second floor with the next floor, so that the upward projection space of the second spatial patch data and the space of the next floor together form a high-ceiling space, and the boundary defined by the second spatial patch data is used as the boundary of the cantilevered space object.
[0068] Furthermore, based on the boundary of the cantilevered space object, wall panel data corresponding to the half-height wall object can be added to the 3D model data corresponding to the second floor, and the modified high-ceilinged space object, cantilevered space object, and their corresponding half-height wall object can be synchronously displayed in the 3D real-world space. In this embodiment, the specific method of determining the position information of the half-height wall object is not limited. Optionally, the boundary defined by the second space panel data can be directly used as the boundary of the cantilevered space object, and the spatial coordinates corresponding to the boundary can be used as the position information of the half-height wall object. In another optional embodiment, the position information of the half-height wall object can also be determined based on a preset relationship between the boundary position of the cantilevered space object and the position of the half-height wall object. Optionally, the preset relationship between the boundary position of the cantilevered space object and the position of the half-height wall object can be that the position of the half-height wall object is parallel to the boundary defined by the second space panel data, and the distance between the two is between 30-50cm. Based on this, when the boundary defined by the second space panel data is determined, the spatial coordinate range corresponding to the position of the half-height wall object in the remaining area of the second floor can be determined based on the preset relationship, as the position information of the half-height wall object.
[0069] It should be noted that in the above embodiments, the modification of adding staircase objects to multi-story buildings and the modification of adjacent floors into cantilever space objects and high-ceiling space objects can be done individually or together, without limitation. For example, after modifying two independent floors into cantilever space objects and high-ceiling space objects, a staircase object can be added between the cantilever space object and the high-ceiling space object below. Furthermore, when deleting the first space patch data and the second space patch data, the first space patch data and the corresponding textures can also be deleted simultaneously from the floor plans corresponding to the first and second floors, respectively, to allow the floor plan modification personnel to determine the specific deletion locations. For the display effects of the floor plans corresponding to the first and second floors, and the corresponding display effects of deleting the first space patch data on the floor plans, please refer to [link to relevant documentation]. Figure 2c This will not be elaborated upon here.
[0070] In addition to the aforementioned hard furnishing renovations of multi-story buildings, this application embodiment also supports other soft furnishing renovations of multi-story buildings. Optionally, after obtaining the 3D model data corresponding to the multi-story building, the renovation personnel can also perform an add operation on a target location in the 3D real-world space to add other objects in the 3D real-world space, such as, but not limited to, furniture objects, door objects, window objects, and wall objects; furthermore, in response to the add operation of other objects performed on the target location in the 3D real-world space, other object data corresponding to the other objects selected by the renovation personnel can be added to the 3D model data according to the spatial coordinates corresponding to the target location, and the added other objects can be synchronously displayed at the corresponding target location in the 3D real-world space.
[0071] Alternatively, in the rendered 3D real-world space corresponding to a multi-story building, the original single-floor roaming method can be updated to a multi-floor roaming method, so that users can roam across floors when browsing the 3D real-world space corresponding to a multi-story building, thereby improving the user experience.
[0072] Based on the above, this application also provides a method for renovating a multi-story building. Figure 1b The flowchart shows the renovation method for this multi-story building, such as... Figure 1b As shown, the method includes:
[0073] S1b: Obtain the 3D model data corresponding to the multi-story building, render the 3D model, and obtain and display the 3D real-world space corresponding to the multi-story building.
[0074] S2b: Respond to the first renovation operation and display the first floor plan. The first floor plan is the floor plan corresponding to the first floor to be renovated.
[0075] S3b: Responding to the first selection operation on the first floor plan, determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data of the first floor;
[0076] S4b: In response to the stair object addition operation, add the stair object's corresponding stair face data to the projection space of the next floor from the first space face data.
[0077] S5b: Delete the first spatial patch data and display the added staircase object at the corresponding spatial position in the projection space of the 3D real scene space.
[0078] In an optional embodiment, the above method can also respond to a second renovation operation to display a second floor plan, which is the floor plan corresponding to the second floor to be renovated; wherein, the second renovation operation is used to renovate some space objects in the second floor into cantilever space objects, and to renovate some space objects in the floor below the second floor into high-ceiling space objects; further, it can also respond to a second selection operation on the second floor plan to determine the second space patch data corresponding to the selected second area in the 3D model data corresponding to the second floor; and delete the second space patch data from the 3D model data corresponding to the second floor, and use the boundary defined by the second space patch data as the boundary of the cantilever space object; according to the boundary of the cantilever space object, add the wall patch data corresponding to the half-height wall object in the 3D model data corresponding to the second floor, and synchronously display the renovated high-ceiling space object, cantilever space object and its corresponding half-height wall object in the 3D real-world space.
[0079] In an optional embodiment, the method described above can also respond to the addition of other objects to the target location in the three-dimensional real-world space and add other object data to the three-dimensional model data; wherein the spatial coordinates of the other object data correspond to the target location, and the other objects include furniture objects, door objects, window objects, and wall objects.
[0080] The specific implementation process of the above-mentioned method for renovating multi-story buildings can be found in the description of the corresponding parts in the above embodiments, and will not be repeated here. In this embodiment, for the 3D model data constructed as an independent building object for each floor in a multi-story building, the location information that needs to be connected between two spatial objects on adjacent floors connected by the stair object can be determined based on the stair surface data corresponding to the stair object; based on this, the partial spatial surface data corresponding to the location information is determined, and the partial spatial surface data is deleted, thereby connecting the two spatial objects on adjacent floors connected by the stair object; furthermore, the same processing is performed on the two spatial objects on adjacent floors connected by each stair object in the multi-story building, and the 3D model data corresponding to the multi-story building as a whole can be obtained. In this way, not only can the overall 3D model data corresponding to a building containing multiple floors be generated, but also the multi-story building can be renovated based on the 3D model data corresponding to the multi-story building, meeting the user's need for overall online decoration of multi-story buildings, making online decoration more flexible.
[0081] It should be noted that the execution subject of each step of the method provided in the above embodiments can be the same device, or the method can be executed by different devices. For example, the execution subject of steps S1a to S5a can be device A; or the execution subject of step S1a can be device A, and the execution subject of steps S2a to S5a can be device B; and so on.
[0082] Furthermore, in some processes described in the above embodiments and accompanying drawings, multiple operations appear in a specific order. However, it should be clearly understood that these operations may not be executed in the order they appear herein, or they may be executed in parallel. The operation numbers, such as S1a, S1b, etc., are merely used to distinguish different operations and do not represent any execution order. Additionally, these processes may include more or fewer operations, and these operations may be executed sequentially or in parallel. It should be noted that the descriptions such as "first" and "second" in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to different types.
[0083] Based on the above, this application also provides a three-dimensional model data generation device for multi-story buildings. For example, the three-dimensional model data generation device can be implemented as a virtual device in a Communication Control Unit (CCU), such as an application program. Figure 3a As shown, the 3D model data generation device includes: an acquisition module 301a, an identification module 302a, a determination module 303a, a first processing module 304a, and a second processing module 305a; wherein,
[0084] The acquisition module 301a is used to acquire the 3D model data corresponding to each floor of a multi-story building. The 3D model data corresponding to each floor is the 3D model data constructed by treating that floor as an independent building object, including the spatial patch data of each spatial object in that floor space and the stair patch data of the stair object located in that floor space. The identification module 302a is used to identify the stair patch data corresponding to the stair object from the 3D model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object. The determination module 303a is used to determine the spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from the 3D model data corresponding to each floor based on the stair patch data corresponding to the stair object. The first processing module 304a is used to project the stair patch data corresponding to the stair object onto a first spatial object to obtain the projection area on the first spatial object, where the first spatial object is the spatial object in the higher floor connected to the stair object. The second processing module 305a is used to delete some spatial patch data located in the projection area from the spatial patch data corresponding to the first spatial object to connect the two spatial objects in adjacent floors connected to the stair object, thereby obtaining the 3D model data corresponding to the multi-story building.
[0085] In an optional embodiment, before the identification module 302a identifies the stair surface data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object, it is further configured to: verify the three-dimensional model data corresponding to the multi-story building according to the preset three-dimensional model data verification rules, and correct the three-dimensional model data that does not comply with the verification.
[0086] In an optional embodiment, when the identification module 302a identifies the stair surface data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object, it is used to: identify a set of corresponding surface data from the three-dimensional model data corresponding to each floor based on the change characteristics of the spatial coordinates of adjacent stair surface data having the characteristic that the height coordinate values increase sequentially within a preset difference range and the horizontal area is the same, as the stair surface data corresponding to the stair object.
[0087] In an optional embodiment, when the identification module 302a determines the spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from the three-dimensional model data corresponding to each floor based on the stair patch data corresponding to the stair object, it is used to: determine the first stair patch data located at the bottom of the stair object and the second stair patch data located at the top of the stair object based on the height coordinate value in the spatial coordinates of the stair patch data corresponding to the stair object; and determine the spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object based on the spatial coordinates of the first stair patch data and the second stair patch data, as well as the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space.
[0088] In an optional embodiment, when the identification module 302a determines the spatial surface data corresponding to two spatial objects in an adjacent floor connected to the stair object based on the spatial coordinates of the first stair surface data and the second stair surface data, as well as the spatial coordinates of the spatial surface data corresponding to each spatial object in each floor space, it is used to: determine a set of surface data whose height satisfies a preset relationship with the first stair surface data and contains the same horizontal coordinates based on the spatial coordinates corresponding to the first stair surface data at the bottom of the stair object, as the spatial surface data corresponding to the spatial objects in the lower floor connected to the stair object; and determine a set of surface data whose height satisfies a preset relationship with the second stair surface data and contains the same horizontal coordinates based on the spatial coordinates corresponding to the second stair surface data at the top of the stair object, as the spatial surface data corresponding to the spatial objects in the higher floor connected to the stair object.
[0089] In an optional embodiment, when the second processing module 305a deletes a portion of the spatial patch data located within the projection area in the spatial patch data corresponding to the first spatial object, it is configured to: display a floor plan corresponding to the first spatial object, the floor plan including patch objects corresponding to the spatial patch data of the first spatial object, the patch objects being editable; in response to a selection operation performed on the patch objects, delete the spatial coordinates corresponding to the selected area in the spatial patch data of the first spatial object, and mark the corresponding deletion effect on the patch objects of the floor plan; wherein, the selected area includes the projection area of the stair patch data corresponding to the stair object projected onto the first spatial object.
[0090] In an optional embodiment, the spatial patch data further includes texture information. When the second processing module 305a deletes a portion of the spatial patch data located within the projection area in the spatial patch data corresponding to the first spatial object, it is also used to delete the texture information corresponding to the portion of the spatial patch data within the projection area.
[0091] In an optional embodiment, the three-dimensional model data corresponding to each floor also includes wall patch data corresponding to the subspace object where the stair object is located in each floor space. The second processing module 305a is further configured to: at least partially delete the wall patch data corresponding to the subspace object where the stair object is located, so that the stair object is connected to the second space object in the lower floor connected to the stair object, and the subspace object is a part of the space in the second space object.
[0092] In an optional embodiment, when the second processing module 305a deletes at least part of the wall panel data corresponding to the subspace object where the staircase object is located, it is configured to: determine whether there is any target wall panel data in the wall panel data corresponding to the subspace object where the staircase object is located that overlaps with the space panel data corresponding to the second space object in the lower floor connected to the staircase object; if so, delete the other wall panel data in the wall panel data corresponding to the subspace object except for the target wall panel data; if not, delete all wall panel data corresponding to the subspace object.
[0093] In an optional embodiment, the second processing module 305a is further configured to: obtain the projected area of the stair object on the second spatial object and its corresponding maximum bounding rectangle area based on the spatial coordinates of the stair surface data corresponding to the stair object; if the projected area is less than its corresponding maximum bounding rectangle area, then correct the area of the second spatial object based on the difference between the maximum bounding rectangle area and the projected area.
[0094] In an optional embodiment, the second processing module 305a is further configured to: render the 3D model data corresponding to the multi-story building to obtain and display the 3D real-world space corresponding to the multi-story building; respond to the first renovation operation and display the first floor plan, which is the floor plan corresponding to the first floor to be renovated; respond to the first selection operation on the first floor plan and determine the first spatial patch data corresponding to the selected first area in the 3D model data corresponding to the first floor; respond to the stair object addition operation and add stair patch data corresponding to the stair object to the projection space of the next floor in the first spatial patch data; delete the first spatial patch data and display the added stair object in the spatial position of the corresponding projection space in the 3D real-world space.
[0095] In an optional embodiment, the second processing module 305a is further configured to: respond to a second renovation operation and display a second floor plan, wherein the second floor plan is the floor plan corresponding to the second floor to be renovated; the second renovation operation is configured to renovate some space objects in the second floor into cantilever space objects, and to renovate some space objects in the floor below the second floor into high-ceiling space objects; respond to a second selection operation on the second floor plan and determine the second space patch data corresponding to the selected second area in the 3D model data corresponding to the second floor; delete the second space patch data from the 3D model data corresponding to the second floor, and use the boundary defined by the second space patch data as the boundary of the cantilever space object; add wall patch data corresponding to the half-height wall object in the 3D model data corresponding to the second floor according to the boundary of the cantilever space object, and synchronously display the renovated high-ceiling space object, cantilever space object and its corresponding half-height wall object in the 3D real-world space.
[0096] In an optional embodiment, the second processing module 305a is further configured to: determine the space type corresponding to each space object in each floor space based on the three-dimensional model data corresponding to the multi-story building; set texture information that is compatible with the space type of each space object for the space patch data corresponding to each space object, so as to obtain a three-dimensional real-world space containing texture information after rendering the three-dimensional model data.
[0097] Based on the above, this application also provides a device for modifying multi-story buildings. For example, the device for modifying multi-story buildings can be implemented as a virtual device in a Communication Control Unit (CCU), such as an application program. Figure 3b As shown, the renovation device for a multi-story building includes: an acquisition module 301b, a first editing module 302b, and a second editing module 303b. The acquisition module 301b acquires the 3D model data corresponding to the multi-story building, renders the 3D model, and obtains and displays the 3D real-world space corresponding to the multi-story building. The first editing module 302b responds to a first renovation operation by displaying a first floor plan, which is the floor plan corresponding to the first floor to be renovated; and responds to a first selection operation on the first floor plan by determining the first selected area and its corresponding first spatial patch data in the 3D model data of the first floor. The second editing module 303b responds to a stair object addition operation by adding stair patch data corresponding to the stair object to the projection space of the next floor from the first spatial patch data; and deletes the first spatial patch data and displays the added stair object at the corresponding spatial position in the 3D real-world space.
[0098] In an optional embodiment, the first editing module 302b is further configured to respond to the second renovation operation and display a second floor plan, which is the floor plan corresponding to the second floor to be renovated; the second renovation operation is configured to renovate some space objects in the second floor into cantilever space objects, and to renovate some space objects in the floor below the second floor into high-ceiling space objects; the second editing module 303b is further configured to respond to the second selection operation on the second floor plan, determine the second space patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor; delete the second space patch data from the three-dimensional model data corresponding to the second floor, and use the boundary defined by the second space patch data as the boundary of the cantilever space object; add the wall patch data corresponding to the half-height wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the cantilever space object, and synchronously display the renovated high-ceiling space object, cantilever space object and its corresponding half-height wall object in the three-dimensional real-world space.
[0099] In an optional embodiment, the second editing module 303b is further configured to respond to the operation of adding other objects to the target location in the three-dimensional real-world space, and to add other object data to the three-dimensional model data. The spatial coordinates of the other object data correspond to the target location. The other objects include furniture objects, door objects, window objects, and wall objects.
[0100] It should be noted that the specific functions and implementation processes of each module in the above-mentioned device can be found in the above-mentioned method embodiments, and will not be repeated here.
[0101] This application also provides an electronic terminal device. Figure 4 This is a structural diagram of an electronic terminal device, such as... Figure 4 As shown, the electronic terminal device includes: a processor 41 and a memory 42 storing a computer program; wherein the processor 41 and the memory 42 may be one or more.
[0102] Memory 42 is primarily used to store computer programs that can be executed by processor 41, causing processor 41 to control the electronic terminal device to perform corresponding functions, actions, or tasks. In addition to storing computer programs, memory 42 can also be configured to store various other data to support operation on the electronic terminal device. Examples of this data include instructions for any application program or method used to operate on the electronic terminal device.
[0103] The memory 42 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0104] In this embodiment, the implementation of processor 41 is not limited; it may be, for example, but not limited to, a CPU, GPU, or MCU. Processor 41 can be considered as a control system for an electronic terminal device, capable of executing computer programs stored in memory 42 to control the electronic terminal device to perform corresponding functions, actions, or tasks. It is worth noting that, depending on the implementation of the electronic terminal device and the specific scenario, the required functions, actions, or tasks may differ; correspondingly, the computer programs stored in memory 42 will also differ, and processor 41 can control the electronic terminal device to perform different functions and complete different actions or tasks by executing different computer programs.
[0105] In some alternative embodiments, such as Figure 4 As shown, the electronic terminal equipment may also include other components such as a display 43, a power supply component 44, and a communication component 45. Figure 4 The diagram only shows some components and does not mean that the electronic terminal device only includes... Figure 4 The components shown may be additional components for different application needs, such as those required for voice interaction. Figure 4 As shown, the electronic terminal device may also include an audio component 46. The specific components that may be included in the electronic terminal device depend on the product form of the electronic terminal device and are not limited here.
[0106] In this embodiment, the display 43 is used to display a graphical user interface, which shows a three-dimensional real-world space corresponding to a multi-story building; the three-dimensional real-world space includes at least one spatial object in each floor space, and adjacent floor spaces are interconnected.
[0107] In this embodiment, when the processor 41 executes the computer program in the memory 42, it is used to: acquire three-dimensional model data corresponding to each floor of a multi-story building, wherein the three-dimensional model data corresponding to each floor is three-dimensional model data constructed by treating the floor as an independent building object, including spatial patch data of each spatial object in the floor space and stair patch data of a stair object located in the floor space; identify the stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object; determine the spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from the three-dimensional model data corresponding to each floor based on the stair patch data corresponding to the stair object; project the stair patch data corresponding to the stair object onto a first spatial object to obtain a projection area on the first spatial object, wherein the first spatial object is a spatial object in a higher floor connected to the stair object; delete part of the spatial patch data located in the projection area from the spatial patch data corresponding to the first spatial object to connect the two spatial objects in adjacent floors connected to the stair object, thereby obtaining the three-dimensional model data corresponding to the multi-story building.
[0108] Accordingly, embodiments of this application also provide an electronic terminal device, the corresponding structure of which is similar to... Figure 4 The structures shown are similar; see details elsewhere. Figure 4 The electronic terminal device in this embodiment includes a processor and a memory storing a computer program; wherein the processor and the memory may be one or more.
[0109] Memory is primarily used to store computer programs, which can be executed by a processor, causing the processor to control electronic terminal devices to perform corresponding functions, actions, or tasks. In addition to storing computer programs, memory can also be configured to store various other data to support operation on the electronic terminal device. Examples of this data include instructions for any application program or method used to operate on the electronic terminal device.
[0110] Memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0111] In this application embodiment, the implementation form of the processor is not limited, and it may be, but is not limited to, a CPU, GPU, or MCU. The processor can be viewed as a control system for an electronic terminal device, capable of executing computer programs stored in memory to control the electronic terminal device to perform corresponding functions, actions, or tasks. It is worth noting that, depending on the implementation form of the electronic terminal device and the scenario in which it operates, the required functions, actions, or tasks will differ; correspondingly, the computer programs stored in memory will also differ, and the processor executing different computer programs can control the electronic terminal device to perform different functions and complete different actions or tasks.
[0112] In some alternative embodiments, the electronic terminal device may also include other components such as a display, a power supply component, and a communication component. These are only some of the components shown schematically and do not mean that the electronic terminal device only includes these components. Depending on different application requirements, the electronic terminal device may also include other components. For example, if voice interaction is required, the electronic terminal device may also include an audio component. The specific components that the electronic terminal device may include depend on the product form of the electronic terminal device and are not limited here.
[0113] In this embodiment of the application, the display is used to show a graphical user interface, which displays a three-dimensional real-world space corresponding to a multi-story building; the three-dimensional real-world space includes at least one spatial object in each floor space, and adjacent floor spaces are interconnected.
[0114] In this embodiment of the application, when the processor executes the computer program in the memory, it is used to: acquire 3D model data corresponding to a multi-story building, render the 3D model, obtain and display the 3D real-world space corresponding to the multi-story building; respond to a first renovation operation and display a first floor plan, wherein the first floor plan is the floor plan corresponding to the first floor to be renovated; respond to a first selection operation on the first floor plan and determine the first spatial patch data corresponding to the selected first area in the 3D model data corresponding to the first floor; respond to a stair object addition operation and add stair patch data corresponding to the stair object to the projection space of the next floor in the first spatial patch data; and delete the first spatial patch data and display the added stair object at the spatial position of the corresponding projection space in the 3D real-world space.
[0115] It should be noted that the specific functions of the processor in the above-mentioned electronic terminal device can be found in the above method embodiments, and will not be repeated here.
[0116] Accordingly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed, can perform the steps that can be executed by an electronic terminal device in the above method embodiments.
[0117] The communication components in the above embodiments are configured to facilitate wired or wireless communication between the device housing the communication component and other devices. The device housing the communication component can access wireless networks based on communication standards, such as WiFi, 2G, 3G, 4G / LTE, 5G, or combinations thereof. In one exemplary embodiment, the communication component receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID), Infrared Data Association (IrDA) technology, Ultra-Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0118] The display in the above embodiments includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touchscreen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of the touch or swipe action, but also the duration and pressure associated with the touch or swipe operation.
[0119] The power supply component in the above embodiments provides power to various components of the device in which the power supply component is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply component is located.
[0120] The audio component in the above embodiments can be configured to output and / or input audio signals. For example, the audio component includes a microphone (MIC) configured to receive external audio signals when the device containing the audio component is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals can be further stored in memory or transmitted via a communication component. In some embodiments, the audio component also includes a speaker for outputting audio signals.
[0121] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in one or more flowchart illustrations and / or one or more block diagrams.
[0123] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means that implement the functions specified in one or more flowcharts and / or one or more block diagrams.
[0124] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, such that the instructions, which execute on the computer or other programmable apparatus, provide steps for implementing the functions specified in one or more flowcharts and / or one or more block diagrams.
[0125] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0126] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0127] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0128] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0129] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A method for generating three-dimensional model data of a multi-story building, characterized in that, include: Obtain the 3D model data corresponding to each floor in a multi-story building. The 3D model data corresponding to each floor is the 3D model data constructed by treating that floor as an independent building object, including the spatial patch data of each spatial object in that floor space and the stair patch data of the stair object located in that floor space. Based on the spatial coordinate change characteristics of the stair object, the stair surface data corresponding to the stair object is identified from the 3D model data corresponding to each floor. This includes: based on the change characteristics of the spatial coordinates of adjacent stair surface data, where the height coordinate values increase sequentially within a preset difference range and the horizontal area is the same, a set of corresponding surface data is identified from the 3D model data corresponding to each floor as the stair surface data corresponding to the stair object. Based on the staircase patch data corresponding to the staircase object, determine the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object from the 3D model data corresponding to each floor. This includes: determining the first staircase patch data located at the bottom of the staircase object and the second staircase patch data located at the top of the staircase object based on the height coordinate values in the spatial coordinates of the staircase patch data corresponding to the staircase object; and determining the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object based on the spatial coordinates of the first staircase patch data and the second staircase patch data, as well as the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space. Project the stair panel data corresponding to the stair object onto the first spatial object to obtain the projection area on the first spatial object, where the first spatial object is a spatial object in a higher floor connected to the stair object. Delete some spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, so as to connect two spatial objects in adjacent floors connected to the stair object, and obtain the three-dimensional model data corresponding to the multi-story building.
2. The method according to claim 1, characterized in that, Before identifying the stair surface data corresponding to the stair object from the 3D model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object, the process also includes: For the 3D model data corresponding to the multi-story building, the 3D model data is verified according to the preset 3D model data verification rules, and the 3D model data that does not comply with the verification is corrected.
3. The method according to claim 1, characterized in that, Based on the spatial coordinates of the first staircase patch data and the second staircase patch data, and the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space, the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object are determined, including: Based on the spatial coordinates corresponding to the first stair surface data at the bottom of the stair object, a set of surface data whose height satisfies a preset relationship with the first stair surface data and contains the same horizontal coordinates is determined, and this set is used as the spatial surface data corresponding to the spatial object in the lower floor connected to the stair object; and Based on the spatial coordinates corresponding to the second stair surface data at the top of the stair object, a set of surface data whose height satisfies a preset relationship with the second stair surface data and contains the same horizontal coordinates is determined, and these are used as the spatial surface data corresponding to the spatial objects in the higher floors connected to the stair object.
4. The method according to claim 1, characterized in that, Delete a portion of the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, including: Display the floor plan corresponding to the first spatial object. The floor plan includes patch objects corresponding to the spatial patch data of the first spatial object. The patch objects are editable. In response to the selection operation performed on the patch object, the spatial coordinates corresponding to the selected area in the spatial patch data of the first spatial object are deleted, and the corresponding deletion effect is marked on the patch object of the floor plan; The selected area includes the projected area of the stair surface data corresponding to the stair object projected onto the first spatial object.
5. The method according to any one of claims 1-3, characterized in that, The spatial patch data also includes texture information. In the case of deleting a portion of the spatial patch data located within the projection area from the spatial patch data corresponding to the first spatial object, the method further includes deleting the texture information corresponding to the portion of the spatial patch data within the projection area.
6. The method according to any one of claims 1-3, characterized in that, The 3D model data corresponding to each floor also includes the wall patch data corresponding to the subspace object where the staircase object is located in each floor space, and also includes: At least partially delete the wall patch data corresponding to the subspace object where the staircase object is located, so that the staircase object can be connected to the second space object in the lower floor connected to the staircase object, and the subspace object is a part of the second space object.
7. The method according to claim 6, characterized in that, At least partially delete the wall patch data corresponding to the subspace object where the staircase object is located, including: Determine whether there is any target wall panel data in the wall panel data corresponding to the subspace object where the staircase object is located that overlaps with the space panel data corresponding to the second space object in the lower floor connected to the staircase object; If it exists, delete all wall patch data corresponding to the subspace object except for the target wall patch data; If it does not exist, delete all wall patch data corresponding to the subspace object.
8. The method according to claim 6, characterized in that, Also includes: Based on the spatial coordinates of the stair surface data corresponding to the stair object, the projected area of the stair object on the second spatial object and its corresponding maximum bounding rectangle area are obtained; If the projected area is less than the area of its corresponding maximum bounding rectangle, the area of the second spatial object is adjusted according to the difference between the area of the maximum bounding rectangle and the projected area.
9. The method according to any one of claims 1-3, characterized in that, Also includes: Render the 3D model data corresponding to the multi-story building to obtain and display the 3D real-world space corresponding to the multi-story building; In response to the first renovation operation, the first floor plan is displayed. The first floor plan is the floor plan corresponding to the first floor to be renovated. In response to the first selection operation on the first floor plan, determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor. In response to the addition of a stair object, add the stair surface data corresponding to the stair object to the projection space of the next floor from the first space surface data; The first spatial patch data is deleted, and the added staircase object is displayed in the spatial position corresponding to the projection space in the three-dimensional real-world space.
10. The method according to claim 9, characterized in that, Also includes: In response to the second renovation operation, the second floor plan is displayed. The second floor plan is the floor plan corresponding to the second floor to be renovated. The second modification operation is used to modify a portion of the space objects on the second floor into cantilevered space objects, and to modify a portion of the space objects on the floor below the second floor into high-ceilinged space objects; In response to the second selection operation on the second floor plan, determine the second spatial patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor; Delete the second spatial patch data from the 3D model data corresponding to the second floor, and use the boundary defined by the second spatial patch data as the boundary of the cantilevered space object; Based on the boundary of the cantilevered space object, add the wall panel data corresponding to the half-height wall object to the three-dimensional model data corresponding to the second floor, and synchronously display the modified high-ceiling space object, cantilevered space object and its corresponding half-height wall object in the three-dimensional real-world space.
11. The method according to claim 10, characterized in that, Also includes: Based on the three-dimensional model data corresponding to the multi-story building, determine the space type corresponding to each space object in each floor space; Texture information that is compatible with the spatial type of each spatial object is set for the spatial patch data corresponding to each spatial object, so that a three-dimensional real-world space containing texture information is obtained after rendering the three-dimensional model data.
12. A method for renovating a multi-story building, characterized in that, include: Obtain the 3D model data corresponding to the multi-story building, render the 3D model, and obtain and display the 3D real-world space corresponding to the multi-story building; In response to the first renovation operation, the first floor plan is displayed. The first floor plan is the floor plan corresponding to the first floor to be renovated. In response to the first selection operation on the first floor plan, determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor. In response to the addition of a stair object, add the stair surface data corresponding to the stair object to the projection space of the next floor from the first space surface data; Delete the first spatial patch data and display the added staircase object in the spatial position corresponding to the projection space in the three-dimensional real scene space; In response to the second renovation operation, the second floor plan is displayed. The second floor plan is the floor plan corresponding to the second floor to be renovated. The second modification operation is used to modify a portion of the space objects on the second floor into cantilevered space objects, and to modify a portion of the space objects on the floor below the second floor into high-ceilinged space objects; In response to the second selection operation on the second floor plan, determine the second spatial patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor; Delete the second spatial patch data from the 3D model data corresponding to the second floor, and use the boundary defined by the second spatial patch data as the boundary of the cantilevered space object; Based on the boundary of the cantilevered space object, add the wall panel data corresponding to the half-height wall object to the three-dimensional model data corresponding to the second floor, and synchronously display the modified high-ceiling space object, cantilevered space object and its corresponding half-height wall object in the three-dimensional real-world space.
13. The method according to claim 12, characterized in that, Also includes: In response to the operation of adding other objects to the target location in the three-dimensional real-world space, other object data is added to the three-dimensional model data. The spatial coordinates of the other object data correspond to the target location. The other objects include furniture objects, door objects, window objects, and wall objects.
14. A device for generating three-dimensional model data of a multi-story building, characterized in that, include: The acquisition module is used to acquire the 3D model data corresponding to each floor in a multi-story building. The 3D model data corresponding to each floor is the 3D model data constructed by treating that floor as an independent building object, including the spatial patch data of each spatial object in that floor space and the stair patch data of the stair object located in that floor space. The identification module is used to identify the stair surface data corresponding to the stair object from the three-dimensional model data corresponding to each floor based on the spatial coordinate change characteristics of the stair object. This includes: based on the change characteristics of the spatial coordinates of adjacent stair surface data, which have the characteristic that the height coordinate values increase sequentially within a preset difference range and the horizontal area is the same, identifying a set of corresponding surface data from the three-dimensional model data corresponding to each floor as the stair surface data corresponding to the stair object. The determination module is used to determine, based on the staircase patch data corresponding to the staircase object, the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object from the 3D model data corresponding to each floor. This includes: determining the first staircase patch data located at the bottom of the staircase object and the second staircase patch data located at the top of the staircase object based on the height coordinates in the spatial coordinates of the staircase patch data corresponding to the staircase object; and determining the spatial patch data corresponding to two spatial objects in adjacent floors connected to the staircase object based on the spatial coordinates of the first staircase patch data and the second staircase patch data, as well as the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space. The first processing module is used to project the stair surface data corresponding to the stair object onto the first spatial object to obtain the projection area on the first spatial object, where the first spatial object is a spatial object in a higher floor connected to the stair object. The second processing module is used to delete part of the spatial patch data located within the projection area in the spatial patch data corresponding to the first spatial object, so as to connect two spatial objects in adjacent floors connected to the stair object and obtain the three-dimensional model data corresponding to the multi-story building.
15. A device for modifying multi-story buildings, characterized in that, include: The acquisition module is used to acquire the three-dimensional model data corresponding to the multi-story building, render the three-dimensional model, and obtain and display the three-dimensional real-world space corresponding to the multi-story building. The first editing module is used to respond to the first renovation operation and display the first floor plan, which is the floor plan corresponding to the first floor to be renovated. In response to the first selection operation on the first floor plan, determine the first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor. It is also used to respond to the second renovation operation and display the second floor plan, which is the floor plan corresponding to the second floor to be renovated; The second modification operation is used to modify a portion of the space objects on the second floor into cantilevered space objects, and to modify a portion of the space objects on the floor below the second floor into high-ceilinged space objects; The second editing module is used to respond to the stair object addition operation and add the stair object's corresponding stair surface data to the projection space of the next floor from the first space surface data. And delete the first spatial patch data, and display the added staircase object in the spatial position corresponding to the projection space in the three-dimensional real scene space; It is also used to respond to a second selection operation on the second floor plan and determine the second spatial patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor. Delete the second space patch data from the 3D model data corresponding to the second floor, and use the boundary defined by the second space patch data as the boundary of the cantilever space object; according to the boundary of the cantilever space object, add the wall patch data corresponding to the half-height wall object to the 3D model data corresponding to the second floor, and synchronously display the modified high-ceiling space object, cantilever space object and its corresponding half-height wall object in the 3D real scene space.
16. An electronic terminal device, characterized in that, include: A processor and memory, which, when the processor executes a computer program, are used to implement the steps of the method as described in any one of claims 1-13.
17. A computer-readable storage medium, characterized in that, When the instructions in the computer-readable storage medium are executed by the processor of the electronic terminal device, the electronic terminal device is enabled to perform the steps of the method as described in any one of claims 1-13.
Citation Information
Patent Citations
Stair model creation method and device, computer equipment and storage medium
CN112464325A