CN115391873A - Multi-floor house data generation and transformation method, device, equipment and medium - Google Patents

Multi-floor house data generation and transformation method, device, equipment and medium Download PDF

Info

Publication number
CN115391873A
CN115391873A CN202210814813.9A CN202210814813A CN115391873A CN 115391873 A CN115391873 A CN 115391873A CN 202210814813 A CN202210814813 A CN 202210814813A CN 115391873 A CN115391873 A CN 115391873A
Authority
CN
China
Prior art keywords
space
stair
floor
patch data
data corresponding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210814813.9A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Chengshi Wanglin Information Technology Co Ltd
Original Assignee
Beijing Chengshi Wanglin Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Chengshi Wanglin Information Technology Co Ltd filed Critical Beijing Chengshi Wanglin Information Technology Co Ltd
Priority to CN202210814813.9A priority Critical patent/CN115391873A/en
Publication of CN115391873A publication Critical patent/CN115391873A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Structural Engineering (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Civil Engineering (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application provides a method, a device, equipment and a medium for generating and transforming multi-floor house data. In the embodiment of the application, for three-dimensional model data constructed by taking each floor in a multi-floor house as an independent house object, the position information required to be communicated between two space objects in adjacent floors connected by a stair object can be determined according to stair patch data corresponding to the stair object; based on the position information, determining partial space patch data corresponding to the position information, and deleting the partial space patch data, namely communicating two space objects in adjacent floors connected by the stair object; further, the same processing is carried out on two space objects in adjacent floors connected with each stair object in the multi-floor house, and integral three-dimensional model data corresponding to the multi-floor house are obtained.

Description

Multi-floor house data generation and transformation method, device, equipment and medium
Technical Field
The application relates to the technical field of virtual reality, in particular to a method, a device, equipment and a medium for generating and transforming multi-floor house data.
Background
With the development of virtual reality technology, online home decoration is more and more popular, and through online home decoration, a user can perform online simulation decoration before actually decorating a house. When looking over the decoration effect, to the indoor object that does not conform to user's decoration demand, can adjust as required to obtain the house ornamentation effect that satisfies user's demand.
Currently, an online decoration scheme is to generate a real space for a target house to be decorated, and to realize online decoration of the target house based on the real space. However, the existing online decoration scheme only supports the generation of the real-scene space of a single-floor house, and if the house is a multi-floor house, such as a duplex house, a house with an attic, etc., the panoramic space needs to be generated for each floor of the house and the house needs to be decorated online separately, so that the online decoration mode is complicated and the flexibility is poor.
Disclosure of Invention
A plurality of aspects of the application provide a method, a device, equipment and a medium for generating and transforming multi-floor house data, so that the data are used for generating integral three-dimensional model data corresponding to a house comprising a plurality of floors and transforming the multi-floor house, and the requirement of a user for integrally decorating the multi-floor house is met.
The embodiment of the application provides a panoramic data generation method for a multi-floor house, which comprises the following steps: acquiring three-dimensional model data corresponding to each floor in a multi-floor house, wherein the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space; according to the space coordinate change characteristics of the stair object, stair patch data corresponding to the stair object are identified from the three-dimensional model data corresponding to each floor; according to the stair patch data corresponding to the stair object, determining space patch data corresponding to two space objects in adjacent floors connected with the stair object from the three-dimensional model data corresponding to each floor; projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object; and deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, thereby obtaining three-dimensional model data corresponding to the multi-floor house.
In an optional embodiment, before the data of the stair patch corresponding to the stair object is identified from the three-dimensional model data corresponding to each floor according to the spatial coordinate variation characteristic of the stair object, the method further includes: and aiming at the three-dimensional model data corresponding to the multi-floor house, checking the three-dimensional model data according to a preset three-dimensional model data checking rule, and correcting the three-dimensional model data which is not in compliance with the checking.
In an optional embodiment, identifying stair patch data corresponding to a stair object from three-dimensional model data corresponding to each floor according to a spatial coordinate variation characteristic of the stair object includes: and identifying a group of corresponding patch data from the three-dimensional model data corresponding to each floor as stair patch data corresponding to the stair object according to the change characteristics that the space coordinates corresponding to the adjacent stair patch data have height coordinate values which are sequentially increased within a preset difference value range and have the same horizontal area.
In an optional embodiment, determining, according to stair patch data corresponding to the stair object, spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object from three-dimensional model data corresponding to each floor includes: determining first stair patch data positioned at the bottom of the stair object and second stair patch data positioned at the top of the stair object according to a height coordinate value in a space coordinate of the stair patch data corresponding to the stair object; and determining the space patch data corresponding to two space objects in the adjacent floors connected with the stair object according to the space coordinates of the first stair patch data and the second stair patch data and the space coordinates of the space patch data corresponding to each space object in each floor space.
In an optional embodiment, determining, according to the spatial coordinates of the first stair patch data and the second stair 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 stair object includes: determining a group of patch data which satisfies a preset relation with the height of the first stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the first stair patch data at the bottom of the stair object, and taking the patch data as the space patch data corresponding to the space object in the lower floor connected with the stair object; and determining a group of patch data which satisfies a preset relation with the height of the second stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the second stair patch data on the top of the stair object, and taking the patch data as the space patch data corresponding to the space object in the high floor connected with the stair object.
In an optional embodiment, deleting data of a part of spatial patches located in the projection area in spatial patch data corresponding to the first spatial object includes: displaying a planar user type diagram corresponding to the first space object, wherein the planar user type diagram comprises a patch object corresponding to space patch data of the first space object, and the patch object can be edited; responding to the selection operation executed on the patch object, deleting the corresponding space coordinates of the selected area in the space patch data of the first space object, and marking the corresponding deletion effect on the patch object of the planar user type graph; the selected region comprises a projection area of the stair patch data corresponding to the stair object projecting to the first standard space object.
In an optional embodiment, the spatial patch data further includes texture information, and in a case that a part of spatial patch data located in the projection area in the spatial patch data corresponding to the first spatial object is deleted, the method further includes: and deleting texture information corresponding to partial spatial patch data in the projection area.
In an optional embodiment, the three-dimensional model data corresponding to each floor further includes wall patch data corresponding to a subspace object where a stair object in each floor space is located, and further includes: and at least partially deleting the wall surface patch data corresponding to the subspace object in which the stair object is located, so that the stair object is communicated with a second space object in a lower floor connected with the stair object, wherein the subspace object is a partial space in the second space object.
In an optional embodiment, at least partially deleting the wall patch data corresponding to the subspace object where the stair object is located includes: judging whether target wall surface patch data which are overlapped with space surface patch data corresponding to a second space object in a low floor connected with the stair object exist in the wall surface patch data corresponding to the subspace object where the stair object is located; if so, deleting other wall surface patch data except the target wall surface patch data of the wall surface patch data corresponding to the subspace object; and if not, deleting all the wall surface patch data corresponding to the subspace object.
In an optional embodiment, further comprising: according to the space coordinates of the stair patch data corresponding to the stair object, obtaining the projection area of the stair object on the second space object and the corresponding maximum external rectangular area; and if the projection area is smaller than the corresponding maximum external rectangular area, correcting the area of the second space object according to the difference value between the maximum external rectangular area and the projection area.
In an optional embodiment, further comprising: rendering three-dimensional model data corresponding to a multi-floor house to obtain and display a three-dimensional real scene space corresponding to the multi-floor house; responding to a first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified; responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; responding to a stair object adding operation, and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data; deleting the first space patch data, and displaying the added stair objects at the space position corresponding to the projection space in the three-dimensional real scene space.
In an optional embodiment, further comprising: responding to a second reconstruction operation, and displaying a second plane house type graph, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; the second transformation operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects; responding to a second selected operation on the second planar user-type graph, and determining corresponding second space patch data of the selected second area in the three-dimensional model data corresponding to the second floor; deleting the second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object; and adding wall surface patch data corresponding to the half-high wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-high wall object in the three-dimensional live-action space.
In an optional embodiment, further comprising: determining the space type corresponding to each space object in each floor space according to the three-dimensional model data corresponding to the multi-floor house; and setting texture information matched 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 scene space containing the texture information after rendering the three-dimensional model data.
The embodiment of the application further provides a method for transforming a multi-floor house, which comprises the following steps: acquiring three-dimensional model data corresponding to a multi-floor house, and rendering the three-dimensional model to obtain and display a three-dimensional real scene space corresponding to the multi-floor house; responding to a first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified; responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; responding to a stair object adding operation, and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data; deleting the first space patch data, and displaying the added stair objects at the space positions corresponding to the projection space in the three-dimensional real scene space.
In an optional embodiment, further comprising: responding to a second reconstruction operation, and displaying a second plane house type graph, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; the second transformation operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects; responding to a second selected operation on the second planar user-type graph, and determining corresponding second space patch data of the selected second area in the three-dimensional model data corresponding to the second floor; deleting the second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object; and adding wall surface patch data corresponding to the half-high wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-high wall object in the three-dimensional live-action space.
In an optional embodiment, further comprising: responding to other object adding operation executed on the target position in the three-dimensional real scene space, and adding other object data in the three-dimensional model data, wherein the spatial coordinates of the other object data correspond to the target position, and the other objects comprise a furniture object, a door body object, a window object and a wall body object.
The embodiment of the present application further provides a panoramic data generation device for a multi-floor house, including: the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring three-dimensional model data corresponding to each floor in a multi-floor house, the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object, and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space; the identification module is used for identifying stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to the space coordinate change characteristic of the stair object; the determining module is used for determining space patch data corresponding to two space objects in adjacent floors connected with the stair object from the three-dimensional model data corresponding to each floor according to the stair patch data corresponding to the stair object; the first processing module is used for projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object; and the second processing module is used for deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, and thus, three-dimensional model data corresponding to the multi-floor house is obtained.
The embodiment of the present application still provides a transformation device in multi-floor house, includes: the acquisition module is used for acquiring three-dimensional model data corresponding to a multi-floor house, rendering the three-dimensional model, and acquiring and displaying a three-dimensional real space corresponding to the multi-floor house; the first editing module is used for responding to a first modification operation and displaying a first flat house type diagram, wherein the first flat house type diagram is a flat house type diagram corresponding to a first floor to be modified; responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; the second editing module is used for responding to a stair object adding operation and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data; and deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
An embodiment of the present application further provides an electronic terminal device, including: a processor and a memory for implementing any of the steps of the method when the computer program is executed by the processor.
Embodiments of the present application also provide 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.
In the embodiment of the application, for three-dimensional model data constructed by taking each floor in a multi-floor house as an independent house object, the position information required to be communicated between two space objects in adjacent floors connected by a stair object can be determined according to stair patch data corresponding to the stair object; based on the position information, determining partial space patch data corresponding to the position information, and deleting the partial space patch data, namely communicating two space objects in adjacent floors connected by the stair object; further, do same processing to two space objects in the adjacent floor that every stair object is connected in the multi-floor house, through this kind of mode, alright with the whole three-dimensional model data that the house that contains a plurality of floors corresponds to supply follow-up three-dimensional model data that corresponds according to the multi-floor house to reform transform the multi-floor house, satisfy the user and carry out the demand of whole on-line fitment to the multi-floor house, make on-line fitment more nimble.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a flowchart of a three-dimensional model data generation method for a multi-floor house according to an embodiment of the present application;
fig. 1b is a flowchart of a multi-floor house improvement method according to an embodiment of the present disclosure;
fig. 2a is a schematic structural diagram of a stair object according to an embodiment of the present disclosure;
fig. 2b is a schematic diagram of a position relationship between a stair object and an adjacent floor connected to the stair object according to an embodiment of the present application;
fig. 2c is a comparison diagram of flat house types before and after floor modification according to the embodiment of the present application;
fig. 2d is a schematic structural diagram of a subspace object where a stair object is located according to an embodiment of the present application;
fig. 2e is a schematic structural diagram of another subspace object where a stair object is located according to an embodiment of the present application;
fig. 3a is a schematic structural diagram of a three-dimensional model data generating device for a multi-floor house according to an embodiment of the present application;
fig. 3b is a schematic structural diagram of a multi-storey house improvement device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic terminal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The on-line decoration mostly depends on the three-dimensional real-scene space corresponding to the solid house, and the decoration of the solid house is simulated in the three-dimensional real-scene space, so that a user can experience the decoration effect. Therefore, in order to obtain the three-dimensional live-action space corresponding to the house, it is generally necessary to construct a three-dimensional model corresponding to the house in advance, obtain three-dimensional model data corresponding to the three-dimensional model, and further render the three-dimensional model data to obtain the three-dimensional live-action space. When the three-dimensional model is constructed, the three-dimensional model is constructed by taking a floor as a unit, and for a multi-floor house, the corresponding three-dimensional models among different floors are independent. Therefore, in the existing on-line decoration scheme, the decoration of the multi-floor house is also realized by taking the floor as a unit, and the multiple floors cannot be decorated in a unified way from the whole angle of the house.
In order to solve the problem that the house comprising multiple floors cannot be decorated in a unified mode in the existing on-line decoration scheme, the embodiment of the application provides a three-dimensional model data generation method for the house comprising the multiple floors. By the method, each floor in the three-dimensional model built as the independent house object in the multi-floor house can be communicated to obtain the integral three-dimensional model data corresponding to the multi-floor house, and the corresponding multi-floor three-dimensional real scene space is obtained by rendering according to the three-dimensional model data and is applied to an on-line decoration scene. Like this, the user alright with carry out unified online fitment to the multi-floor house from the whole angle in house, the mode is more nimble, also more accords with actual demand.
Hereinafter, a method for generating three-dimensional model data of a multi-floor house according to an embodiment of the present invention will be described in detail with reference to the drawings.
Fig. 1a is a three-dimensional model data generating method of a multi-floor house according to an embodiment of the present application, and as shown in fig. 1a, the method includes:
s1a, obtaining three-dimensional model data corresponding to each floor in a multi-floor house, wherein the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space;
s2a, identifying stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to the space coordinate change characteristic of the stair object;
s3a, according to stair patch data corresponding to the stair object, determining space patch data corresponding to two space objects in adjacent floors connected with the stair object from three-dimensional model data corresponding to each floor;
s4a, projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object;
and S5a, deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, and obtaining three-dimensional model data corresponding to the multi-floor house.
In order to construct a three-dimensional model corresponding to a multi-floor house, professional shooting personnel are generally required to shoot the multi-floor house from multiple angles and multiple directions, so that a panoramic picture corresponding to the multi-floor house is obtained. And further, the shot panoramic pictures are delivered to a model making team, so that the model making team can construct three-dimensional models corresponding to all floor spaces according to the shot panoramic pictures and generate corresponding three-dimensional model data. In the constructed three-dimensional model corresponding to each floor space, each floor space comprises at least one space object, and except the top floor space, the other floor spaces also comprise stair objects communicated with the previous floor space; correspondingly, the three-dimensional model data corresponding to the multi-floor house includes space patch data of each space object in each floor space and stair patch data of the stair object located in each floor space. The space patch data of each space object is three-dimensional data respectively corresponding to a wall, a floor and a ceiling which enclose each space object; for each space object in the adjacent floor space in the multiple floors, the three-dimensional data corresponding to the shed roof of each space object in the low floor space is also the three-dimensional data corresponding to the floor of each space object in the high floor space; the stair section data in each floor space is three-dimensional data corresponding to a kick surface (vertical surface) and a tread surface (plane) corresponding to each step constituting each stair object.
Because each floor space is constructed as an independent house object when the three-dimensional model of the multi-floor house is constructed, the three-dimensional models corresponding to the floor spaces are not communicated with each other in the three-dimensional models corresponding to the multi-floor house; correspondingly, the three-dimensional model data corresponding to each floor space also do not satisfy the communication relation. Based on this, in order to obtain three-dimensional model data corresponding to the multi-floor house as a whole, when three-dimensional model data corresponding to each floor in the multi-floor house is obtained, it is necessary to determine a connected spatial position between adjacent floor spaces according to the position of a stair object, delete spatial patch data corresponding to the spatial position, and obtain three-dimensional model data corresponding to the multi-floor house as a whole. Because the stair object is formed by arranging a plurality of steps on the horizontal plane and the height according to the preset relation, when the stair object is determined, the stair surface patch data corresponding to the stair object can be identified from the three-dimensional model data corresponding to each floor according to the space coordinate change characteristic of the stair object.
Further, according to the stair patch data corresponding to the stair object and the space patch data of each space object in each floor space, the space patch data corresponding to two space objects in the adjacent floors connected with the stair object can be determined from the three-dimensional model data corresponding to each floor; for the sake of convenience of distinction, each space object in the high floor among the adjacent floors connected by the stair object is referred to as a first space object, and each space object in the low floor among the adjacent floors connected by the stair object is referred to as a second space object. Based on the data, the stair patch data corresponding to the stair object are projected to the first space object, a projection area of the stair object on the first space object can be obtained, partial space patch data located in the projection area in the space patch data corresponding to the first space object are deleted, two space objects in adjacent floors connected with the stair object can be communicated, and three-dimensional model data corresponding to a multi-floor house is obtained.
In the embodiment of the application, in order to obtain accurate three-dimensional model data corresponding to a multi-floor house, before stair patch data corresponding to a stair object is identified from three-dimensional model data corresponding to each floor according to the spatial coordinate variation characteristic of the stair object, the three-dimensional model data can be verified according to a preset three-dimensional model data verification rule aiming at the three-dimensional model data corresponding to the multi-floor house, the three-dimensional model data which is not verified to be in compliance is corrected, and the accuracy of subsequent identification data is ensured. The preset three-dimensional model data verification rule is a three-dimensional data rule formed according to the relative position relationship between each space object and other corresponding objects in the multi-floor house. For example, taking any wall object enclosing a space object as an example, one wall object has two wall surfaces, the two surfaces of the wall object belong to two adjacent different space objects, and if a door body object or a window body object is installed on the wall object, the two wall surfaces of the wall object and the installed door body object or window body object have a relationship; correspondingly, the space objects respectively belonging to the two wall surfaces have a correlation relationship with the door body object or the window body object installed on the wall body object. Based on this, if it is recognized that one wall surface in one wall body object has a relationship with the door body object or the window object installed on the wall body object, and the other wall surface of the wall body object has no relationship with the door body object or the window object installed on the wall body object, it is recognized that the three-dimensional data is not compliant, and it is necessary to add the relationship between the other wall surface of the wall body object and the door body object or the window object installed on the wall body object, thereby ensuring the integrity and accuracy of the data.
Further, after the three-dimensional model data corresponding to the multi-floor house is verified and corrected, the stair object and subsequent other processing can be identified from the verified three-dimensional model data. Optionally, when stair patch data corresponding to the stair object is identified from the three-dimensional model data corresponding to each floor according to the spatial coordinate variation characteristic of the stair object, a group of corresponding patch data is identified from the three-dimensional model data corresponding to each floor as stair patch data corresponding to the stair object according to the spatial coordinate in the three-dimensional model data having the variation characteristic that the height coordinate values are sequentially increased within the preset difference range and the horizontal areas are the same. For example, as shown in fig. 2a, the stair step height in a room is generally between 65mm and 185mm, and if it is recognized from the three-dimensional model data corresponding to each floor that the height coordinate values in the spatial coordinates corresponding to the patch data adjacent in the horizontal direction are sequentially increased by equal heights within the range of 65mm to 185mm, and the horizontal areas corresponding to each patch data are the same, it is determined that the group of recognized patch data are patch data corresponding to the kick surface and the tread surface of the stair object, respectively, and the group of patch data is taken as stair patch data corresponding to the stair object in the room.
Based on this, when the patch data corresponding to the stair object is identified in the three-dimensional model data corresponding to each floor, the spatial patch data corresponding to two spatial objects in the adjacent floor connected to the stair object can be determined from the three-dimensional model data corresponding to each floor according to the stair patch data corresponding to the stair object. In this embodiment of the application, the space patch data corresponding to two space objects in adjacent floors connected to the stair object refer to space patch data corresponding to a floor and space patch data corresponding to a ceiling of a floor space where the stair object is located, that is, space patch data corresponding to a floor of a previous floor space of the floor space where the stair object is located. In this embodiment of the application, a specific manner of determining the space patch data corresponding to two space objects in adjacent floors connected to a stair object is not limited, and optionally, according to a height coordinate value in a space coordinate corresponding to the stair patch data of the stair object, in an order from top to bottom, stair patch data in a horizontal direction with a lowest height coordinate value is used as first stair patch data, and stair patch data in a horizontal direction with a highest height coordinate value is used as second stair patch data. Based on the data, according to the height coordinate value in the space coordinate of the stair patch data corresponding to the stair object, 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 are determined, so that according to the space coordinates of the first stair patch data and the second stair patch data and the space coordinates of the space patch data corresponding to each space object in each floor space, the space patch data corresponding to two space objects in the adjacent floors connected with the stair object are determined.
As shown in fig. 2b, for each step of the stair object, in order from top to bottom, generally, the first step surface of the stair object is flush with the floor of the high floor space connected to the stair object, and the relative distance between the last step surface of the stair object and the floor of the floor space where the stair object is located is the height of one step, that is, the distance between the last step surface of the stair object and the floor of the low floor space connected to the stair object is the height of one step. Therefore, when determining the spatial patch data corresponding to two spatial objects in the adjacent floors connected with the stair object, according to the spatial coordinates corresponding to the first stair patch data at the bottom of the stair object, determining a group of patch data which satisfies the preset relationship with the height of the first stair patch data and contains the same horizontal coordinate as the spatial patch data corresponding to the spatial object in the lower floor connected with the stair object; and determining a group of patch data which satisfies a preset relation with the height of the second stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the second stair patch data at the top of the stair object, and using the patch data as the space patch data corresponding to the space object in the high floor connected with the stair object. The first step face of the stair object is projected, projected on the floor of the high-rise space and obtained as a first projection area; and projecting the last step surface of the stair object downwards, projecting the last step surface on the floor of the low-floor space to obtain a second projection area, wherein the horizontal coordinates in the space coordinates respectively corresponding to the first projection area and the second projection area are the horizontal coordinates in the space coordinates respectively corresponding to partial patch data of the high-floor space and partial patch data of the low-floor space connected with the stair object.
Based on the above, under the condition that the number of the space patches corresponding to the two space objects in the adjacent floors connected with the stair object is determined, the first space object located on the high floor can be determined according to the space patch data corresponding to the two space objects, and the stair patch data corresponding to the stair object is projected to the first space object, so as to obtain the projection area on the first space object. Furthermore, part of the spatial patch data in the projection area in the spatial patch data corresponding to the first spatial object is deleted, so that two spatial objects in adjacent floors connected by the stair object can be communicated, and three-dimensional spatial data corresponding to each floor space in the three-dimensional spatial data corresponding to the multi-floor house has a communication relation.
In this embodiment of the present application, a specific manner of deleting a part of spatial patch data corresponding to a projection area in a first spatial object is not limited, and in an optional embodiment, the projection area in the first spatial object may be determined by the manner in the above embodiment, and the part of spatial patch data corresponding to a projection area is directly deleted, so that two adjacent floor spaces connected by a stair object are communicated. In another optional embodiment, when the three-dimensional model data corresponding to each floor space in the multi-floor house is obtained, the corresponding flat floor plan can be rendered according to the three-dimensional model data corresponding to each floor space; based on this, if the house type improvement staff wants to improve the first space object in the target floor space, for example, wants to communicate the first space object with the next floor space object, the house type improvement staff can select the first space object in the target floor space; further, in a case that a response is made that the house type improvement person selects the first space object, a flat house type diagram corresponding to the first space object may be displayed, the flat house type diagram includes a patch object corresponding to the space patch data of the first space object, the patch object may be edited, and the house type improvement person may select any one of the areas in the patch object as an area communicated with a next layer of space object.
Fig. 2c is a planar house type diagram respectively corresponding to the front and rear of the first space object modification, and as shown in the planar house type diagram before the modification in fig. 2c, a house type modification person selects an area (an area in a white frame in fig. 2 c) on a patch object of the planar house type as a position communicated with a space object of a next layer; further, in a case that a response is made to the house type improvement staff to perform a selection operation on the patch object, the spatial coordinates of the selected area corresponding to the spatial patch data of the first spatial object may be deleted. In this embodiment of the application, the spatial patch data further includes texture information, and in a case that part of spatial patch data located in the projection area in the spatial patch data corresponding to the first spatial object is deleted, the method further includes deleting the texture information corresponding to the part of spatial patch data in the projection area. Correspondingly, the corresponding deletion effect is also marked on the patch object of the flat house type graph, and as shown in the flat house type graph after being modified in fig. 2c, the texture corresponding to the patch object in the white frame is deleted.
In this embodiment of the application, a specific position corresponding to a selected region in a planar house type graph corresponding to a first space object is not limited by a house type improvement worker, and optionally, in a case that a lower-layer space object of the first space object includes a stair object, a projection space corresponding to a downward projection of the selected region may be a space where the stair object in the lower-layer space object is located, so that the first space object and the lower-layer space object can move directly through the stair object. Of course, when there is a stair object in the lower-level space object, the projection space in which the selected area projects downward may not be the space in which the stair object in the lower-level space object is located, or when there is no stair object in the lower-level space object, the selected area may be any area in the first space object; based on the above, a stair object can be further added at a spatial position corresponding to the projection space projected downwards in the selected area, so that the stair object can move between the first space object and the lower layer space object.
In an optional embodiment of the present application, a spatial position where the stair object is located may be regarded as an independent subspace object to be distinguished from other neighboring spatial objects, so that the stair object in the subspace object may be individually processed under the condition that there is an individual decoration or modification requirement for the stair object. Based on this, in the embodiment of the present application, the three-dimensional model data corresponding to each floor further includes wall surface patch data corresponding to a subspace object where a stair object in each floor space is located; the subspace object where the stair object is located is a space object with the section of the maximum circumscribed rectangular area projected on a plane by stair patch data corresponding to the stair object. Fig. 2d is a schematic structural diagram of a subspace object according to an embodiment of the present disclosure, as shown in fig. 2d, in this embodiment, a plane projection corresponding to a stair object is a rectangular area, and a cross section of the subspace object where the stair object is located is the same as a projection area of the stair object; fig. 2e is a schematic structural diagram of another subspace object provided in the present application, and as shown in fig. 2e, in this embodiment, a plane projection corresponding to the stair object is an L-shaped area, and a cross section of the subspace object where the stair object is located is a maximum circumscribed rectangle area of the L-shaped projection area, that is, the cross section of the subspace object is larger than the projection area of the stair object by the same amount.
In the embodiment of the present application, the height of each subspace object is not limited, and the data amount of the stair object in each subspace object is also not limited, the number of the stair objects in each subspace object may be one or more; under the condition that the number of the stair objects in the subspace objects is one, the height of the subspace objects can be the same as the height of the floor space where the subspace objects are located, or can also be the height from the floor where the subspace objects are located to a multi-floor house; when the number of the stair objects in the subspace objects is multiple, for example, the floors of the multi-floor house are greater than two floors, and the spatial positions of the stair objects between every two floors correspond to the same projection area on the plane, the height of the subspace object including the multiple stair objects may be the height of the multi-floor house, which is certainly not limited thereto, and may be specifically determined according to actual requirements.
Based on the above, if the subspace object where the stair object is located is a partial space in the second space object in the low floor connected to the stair object, when the partial space tile data in the projection area of the stair tile data on the first space object is deleted, the wall tile data corresponding to the subspace object where the stair object is located may also be at least partially deleted, so that the stair object is connected to the second space object in the low floor connected to the stair object. In the embodiment of the present application, according to different spatial positions of the stair object, ways of at least partially deleting wall patch data corresponding to the subspace object where the stair object is located may also be different. Optionally, whether target wall surface patch data which is overlapped with the space surface patch data corresponding to the second space object exists in the wall surface patch data corresponding to the subspace object where the stair object is located may be judged according to the space coordinate of the wall surface patch data corresponding to the subspace object where the stair object is located and the space coordinate of the wall surface patch data corresponding to the second space object in the low floor connected to the stair object; if so, deleting other wall surface patch data except the target wall surface patch data of the wall surface patch data corresponding to the subspace object; and if not, deleting all the wall surface patch data corresponding to the subspace object.
For example, if one side of the stair object in the second space object does not rest on the wall of the second space object, it is determined that no target wall patch data overlapping with the space patch data corresponding to the second space object exists in the wall patch data corresponding to the subspace object where the stair object is located; if any side of the stair object in the second space object is close to the wall of the second space object, determining that target wall surface patch data which is overlapped with the space surface patch data corresponding to the second space object in the low floor connected with the stair object exists in the wall surface patch data corresponding to the subspace object where the stair object is located, wherein the target wall surface patch data is the wall surface patch data corresponding to the wall object which corresponds to the subspace object where the stair object is located and the second space object together, namely the wall surface patch data corresponding to the wall object which the stair object is located against.
In this embodiment of the present application, the three-dimensional spatial data corresponding to the multi-floor house further includes texture information, and when the three-dimensional model data corresponding to the multi-floor house is obtained, the spatial type corresponding to each spatial object in each floor space may also be determined according to the three-dimensional model data corresponding to the multi-floor house, so as to set texture information adapted to the spatial type of each spatial object for the spatial patch data corresponding to each spatial object, and obtain a three-dimensional real scene space including the texture information after rendering the three-dimensional model data. For example, for a bedroom and a living room, the ground is usually a wooden floor, and when rendering, the texture corresponding to the wooden floor needs to be rendered; for a kitchen, a bathroom or a balcony, the floor is generally ceramic tiles or marble, and when rendering, a texture corresponding to the ceramic tiles or marble is required to be rendered. Therefore, in the case where the same spatial object is divided into different types of spatial objects, or different types of spatial objects are combined into one spatial object, it is necessary to determine whether or not a change of texture information is involved in rendering the three-dimensional real-scene space.
Therefore, in the embodiment of the present application, in order to render the corresponding texture information of different types of space objects in a targeted manner and obtain the actual projection areas corresponding to the space objects when rendering the three-dimensional real-scene space corresponding to a multi-floor house, under the condition that the wall surface patch data corresponding to the subspace object where the stair object is located is deleted, the projection area of the stair object on the second space object and the maximum external rectangular area corresponding to the second space object can be obtained according to the space coordinate of the stair surface patch data corresponding to the stair object, and whether the projection area corresponding to the second space object in the floor where the stair object is located needs to be corrected is determined according to the size relationship between the projection area of the stair object on the second space object and the maximum external rectangular area corresponding to the second space object. Optionally, if the projection area of the stair object on the second space object is smaller than the corresponding maximum circumscribed rectangle area, the area of the second space object is corrected according to the difference between the maximum circumscribed rectangle area and the projection area. For example, as shown in fig. 2d, if the projection area of the stair object on the plane is the same as the maximum circumscribed rectangle area of the projection area corresponding to the stair object, the spatial patch data corresponding to the second spatial object does not need to be corrected; for another example, as shown in fig. 2e, if the projection area of the stair object on the plane is L-shaped, the difference between the maximum circumscribed rectangle area of the corresponding projection area and the L-shaped projection area is corrected to be the partial spatial patch data of the second spatial object.
Based on the above, under the condition that two space objects in the adjacent floors connected by the stair object are communicated and the subspace object where the stair object is located is communicated with other adjacent space objects, the three-dimensional model data corresponding to the multi-floor house as a whole is obtained. Furthermore, three-dimensional model data corresponding to the multi-floor house is rendered, a three-dimensional real-scene space corresponding to the multi-floor house can be obtained, the rendered three-dimensional real-scene space is displayed, and house type transformation personnel can further perform transformation operation on the multi-floor house according to the three-dimensional real-scene space. In the embodiment of the present application, a manner in which a house type modification person can modify a multi-floor house is not limited, and optionally, the modification of the multi-floor house by the house type modification person may be any one or more of hard-set and/or soft-set manners. For example, a housekeeping remodel personnel may add stair objects in any floor space in a multi-floor house; for another example, the house type reconstruction personnel can also reconstruct any space object in any floor in the multi-floor house into an overhanging space object and reconstruct the corresponding space object in the next floor into an overhanging space object; for another example, the house type reconstruction personnel can add other furniture objects in a multi-floor house, and the like, and can perform reconstruction specifically according to actual requirements.
Alternatively, the house improvement worker may select any floor space in the three-dimensional real-world space and confirm the improvement operation performed thereon. In the embodiment of the present application, the modification operation of adding a stair object in the three-dimensional real-scene space is referred to as a first modification operation, and based on this, in a case that a response is made to a house type modification worker to perform the first modification operation, a first floor plan may be displayed, and optionally, the first floor plan may be a floor plan corresponding to a first floor to be modified; further optionally, the planar floor plan corresponding to the target space object in the selected first floor may also be presented, without limitation, according to the difference in the adding position of the stair object, the planar floor plan corresponding to the space corresponding to the adding position may be presented. Further, the house type reconstruction personnel can determine the space position corresponding to the stair object to be added in the first plane house type graph so as to add the stair object at the space position.
In this embodiment of the application, a specific manner of determining a spatial position corresponding to a stair object to be added is not limited, but in an optional embodiment, if a first floor is higher than one floor, a housekeeping improvement worker may perform a first selection operation in a first planar housekeeping diagram, determine first spatial patch data corresponding to a selected first region in three-dimensional model data corresponding to the first floor, and use a projection space of the first spatial patch data to a next floor as a spatial position corresponding to the stair object to be added; further, the house type reconstruction personnel can perform a stair object adding operation in the first plane house type graph, and under the condition of responding to the stair to object adding operation, the stair patch data corresponding to the stair object can be added into the projection space of the next floor according to the first space patch data, the first space patch data is deleted, and the added stair object is displayed at the space position corresponding to the projection space in the three-dimensional real scene space. In another optional embodiment, if the first floor is a first floor, the house type improvement staff may perform a first selection operation in the first planar house type diagram, determine first spatial patch data corresponding to the selected first area in the three-dimensional model data corresponding to the first floor, and use a projection space of the first spatial patch data to the previous floor as a spatial position corresponding to the stair object to be added; further, the house type reconstruction personnel can perform a stair object adding operation in the first plane house type graph, and under the condition of responding to the stair to object adding operation, the stair patch data corresponding to the stair object can be added into the projection space of the previous floor according to the first space patch data, the first space patch data is deleted, and the added stair object is displayed at the space position corresponding to the projection space in the three-dimensional real scene space.
In the embodiment of the present application, a modification operation of modifying a partial space object in a certain floor space into an overhanging space object and modifying a partial space object in a floor next to the floor into an overhanging space object in a three-dimensional live-action space is referred to as a second modification operation. Based on the method, the house type reconstruction personnel can select a second floor to be reconstructed from the three-dimensional real-scene space and perform second reconstruction operation on the second floor; further, under the condition that a response is made to the house type reconstruction personnel to execute a second reconstruction operation, a second plane house type graph can be displayed, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; further, the house type reconstruction personnel can execute a second selection operation on the second plane house type graph, and determine a boundary position corresponding to the second floor reconstruction space object according to the space coordinate corresponding to the second space patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor; optionally, the selected second area may be used as an area communicated with the space of the next floor, and the space corresponding to the remaining area in the second floor may be modified into an overhanging space object; based on this, when determining the second spatial patch data that the selected second area won, the second spatial patch data may be deleted from the three-dimensional model data corresponding to the second floor so as to connect the second floor to the next floor, so that the projection space of the second spatial patch data upward and the next floor space together form the overhanging space, and the boundary defined by the second spatial patch data may be the boundary of the overhanging space object.
Further, wall surface patch data corresponding to the half-high wall object can be added to the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and the transformed overhanging space object, the overhanging space object and the corresponding half-high wall object thereof are synchronously displayed in the three-dimensional live-action space. In the embodiment of the present application, it is not limited to determine the position information of the half-high wall object in a specific manner, and optionally, a boundary defined by the second space patch data may be directly used as a boundary of the overhanging space object, and an idle-run coordinate corresponding to the boundary may be used as the position information of the half-high wall object; in another optional embodiment, the position information of the half-high wall object may also be determined according to a preset relationship between a boundary position of a preset overhanging space object and a position of the half-high wall object. Optionally, the preset relationship between the position of the boundary of the preset overhanging space object and the position of the half-high wall object may be that the position of the half-high wall object is parallel to the boundary defined by the second space patch data, and the distance between the position of the half-high wall object and the boundary is between 30 cm and 50 cm; based on this, when the boundary defined by the second spatial patch data is determined, the spatial coordinate range corresponding to the position of the half-high wall object may be determined as the position information of the half-high wall object in the remaining area in the second floor according to the preset relationship.
In the above embodiment, the modification of the staircase object and the modification of the overhanging space object and the adjacent floor into the overhanging space object are added to the multi-floor house, and may be performed alternatively or jointly, and the modification is not limited herein. For example, after two independent floors are modified into an overhanging space object and a high-rise space object, a stair object is added between the overhanging space object and the lower high-rise space object. It should be further noted that, when the first spatial patch data and the second spatial patch data are deleted, the textures corresponding to the first spatial patch data and the first spatial patch data may also be deleted synchronously from the planar house type diagrams respectively corresponding to the first floor and the second floor, so that the house type improvement staff may determine a specific deletion position. For the display effect of the planar floor plan corresponding to the first floor and the second floor, and the display effect of deleting the first spatial patch data and the first spatial patch data corresponding to the first spatial patch data on the planar floor plan, reference may be made to fig. 2c, which is not described herein again.
Except the transformation of hard-mounting the multi-floor house, the embodiment of the application also supports the transformation of other soft-mounting the multi-floor house. Optionally, in the case of obtaining three-dimensional model data corresponding to a multi-floor house, the house type modification person may further perform an adding operation with respect to a target position in the three-dimensional real-scene space, so as to add other objects in the three-dimensional real-scene space, for example, including but not limited to a furniture object, a door object, a window object, a wall object, and the like; further, in the case of responding to an addition operation of another object performed on the target position in the three-dimensional live-action space, data of another object corresponding to another object selected by the user-type modification personnel may be added to the three-dimensional model data according to the space coordinate corresponding to the target position, and the added another object may be synchronously displayed at the corresponding target position in the three-dimensional live-action space.
Further optionally, in the rendered three-dimensional live-action space corresponding to the multi-floor house space, the original roaming mode on a single floor can be updated to be a multi-floor roaming mode, so that when a user browses the three-dimensional live-action space corresponding to the multi-floor house, the user can roam across floors, and user experience is improved.
Based on the above, an embodiment of the present application further provides a method for transforming a multi-floor building, where fig. 1b is a flowchart of the method for transforming a multi-floor building, and as shown in fig. 1b, the method includes:
s1b, acquiring three-dimensional model data corresponding to the multi-floor house, rendering the three-dimensional model, and obtaining and displaying a three-dimensional real scene space corresponding to the multi-floor house;
s2b, responding to the first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified;
s3b, responding to a first selection operation on the first plane floor plan, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor;
s4b, responding to the stair object adding operation, and adding stair surface patch data corresponding to the stair object into a projection space of a next floor according to the first space surface patch data;
and S5b, deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
In an optional embodiment, in the method, a second flat house type map may be further displayed in response to a second modification operation, where the second flat house type map is a flat house type map corresponding to a second floor to be modified; wherein the second transforming operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects; further, second space patch data corresponding to the selected second area in the three-dimensional model data corresponding to the second floor can be determined in response to second selection operation on the second plane user-type graph; deleting the second space patch data from the three-dimensional model data corresponding to the second floor, and taking the boundary defined by the second space patch data as the boundary of the overhanging space object; and adding wall surface 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 overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-height wall object in the three-dimensional live-action space.
In an optional embodiment, in the method, the method may further respond to an additional object adding operation performed on the target position in the three-dimensional real scene space, and add additional object data in the three-dimensional model data; the space coordinates of the other object data correspond to the target position, and the other objects include furniture objects, door objects, window objects and wall objects.
For a specific implementation process of the method for transforming a multi-floor building, reference may be made to the description of the corresponding parts in the above embodiments, which is not described herein again. In the embodiment of the application, for three-dimensional model data constructed by taking each floor in a multi-floor house as an independent house object, the position information required to be communicated between two space objects in adjacent floors connected by a stair object can be determined according to stair patch data corresponding to the stair object; based on the position information, determining partial space patch data corresponding to the position information, deleting the partial space patch data, and communicating two space objects in adjacent floors connected by the stair object; furthermore, the same treatment is carried out on two space objects in the adjacent floors connected with each stair object in the multi-floor house, so that the three-dimensional model data corresponding to the multi-floor house on the whole can be obtained. Through this kind of mode, not only can generate the whole three-dimensional model data that the house that contains a plurality of floors corresponds, can also reform transform the multi-floor house according to the three-dimensional model data that the multi-floor house corresponds, satisfy the user and carry out the demand of whole on-line fitment to the multi-floor house for the on-line fitment is more nimble.
It should be noted that, the executing subjects of the steps of the method provided in the foregoing embodiments may be the same device, or different devices may also be used as the executing subjects of the method. For example, the execution subject of steps S1a to S5a may be device a; for another example, the execution subject of step S1a may be device a, and the execution subjects of steps S2 a-S5 a may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations appearing in a specific order are included, but it should be clearly understood that these operations may be executed out of the order they appear herein or in parallel, and the order of the operations such as S1a, S1b, etc. is merely used to distinguish between the various operations, and the order itself does not represent any order of execution. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit the types of "first" and "second".
Based on the foregoing, an embodiment of the present application further provides a three-dimensional model data generating device for a multi-floor building, for example, the three-dimensional model data generating device may be implemented as a virtual device, such as an application program, in a Communication Control Unit (CCU). As shown in fig. 3a, the three-dimensional model data generating apparatus 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 the content of the first and second substances,
the obtaining module 301a is configured to obtain three-dimensional model data corresponding to each floor in a multi-floor building, where the three-dimensional model data corresponding to each floor is three-dimensional model data constructed by using the floor as an independent building object, and includes space patch data of each space object in the floor space and stair patch data of a stair object located in the floor space; the identification module 302a is configured to identify stair patch data corresponding to a stair object from three-dimensional model data corresponding to each floor according to a spatial coordinate change characteristic of the stair object; the determining module 303a is configured to determine, according to the stair patch data corresponding to the stair object, 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; the first processing module 304a is configured to project stair patch data corresponding to a stair object to a first space object to obtain a projection area on the first space object, where the first space object is a space object in a high floor connected to the stair object; the second processing module 305a is configured to delete a part of the spatial patch data located in the projection area in the spatial patch data corresponding to the first spatial object, so as to communicate two spatial objects in adjacent floors connected to the stair object, thereby obtaining three-dimensional model data corresponding to the multi-floor building.
In an optional embodiment, before the identification module 302a identifies the stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to the spatial coordinate variation characteristic of the stair object, the identification module is further configured to: and aiming at the three-dimensional model data corresponding to the multi-floor house, checking the three-dimensional model data according to a preset three-dimensional model data checking rule, and correcting the three-dimensional model data which is not in compliance with the checking.
In an optional embodiment, when the stair object has the spatial coordinate variation characteristic, the identifying module 302a is configured to identify stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor, to: and identifying a group of corresponding patch data from the three-dimensional model data corresponding to each floor as stair patch data corresponding to the stair object according to the change characteristics that the space coordinates corresponding to the adjacent stair patch data have height coordinate values which are sequentially increased within a preset difference value range and have the same horizontal area.
In an optional embodiment, the identification module 302a, when determining, from the three-dimensional model data corresponding to each floor, spatial patch data corresponding to two spatial objects in adjacent floors connected to a stair object according to the stair patch data corresponding to the stair object, is configured to: determining first stair patch data positioned at the bottom of the stair object and second stair patch data positioned at the top of the stair object according to a height coordinate value in a space coordinate of the stair patch data corresponding to the stair object; and determining the space patch data corresponding to two space objects in the adjacent floors connected with the stair object according to the space coordinates of the first stair patch data and the second stair patch data and the space coordinates of the space patch data corresponding to each space object in each floor space.
In an optional embodiment, the identifying module 302a, when determining the spatial patch data corresponding to two spatial objects in the adjacent floors connected to the stair object according to the spatial coordinates of the first stair patch data and the second stair patch data and the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space, is configured to: determining a group of patch data which satisfies a preset relation with the height of the first stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the first stair patch data at the bottom of the stair object, and taking the patch data as the space patch data corresponding to the space object in the lower floor connected with the stair object; and determining a group of patch data which satisfies a preset relation with the height of the second stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the second stair patch data at the top of the stair object, and using the patch data as the space patch data corresponding to the space object in the high floor connected with the stair object.
In an optional embodiment, when deleting a part of spatial patch data located in the projection area in the spatial patch data corresponding to the first spatial object, the second processing module 305a is configured to: displaying a planar house type graph corresponding to the first space object, wherein the planar house type graph comprises a surface patch object corresponding to space surface patch data of the first space object, and the surface patch object can be edited; responding to the selection operation executed on the patch object, deleting the corresponding space coordinates of the selected area in the space patch data of the first space object, and marking the corresponding deletion effect on the patch object of the planar user type graph; and the selected area comprises a projection area of the stair patch data corresponding to the stair object projecting to the first standard space object.
In an optional embodiment, the spatial patch data further includes texture information, and the second processing module 305a, in the case of deleting a part of spatial patch data located in the projection area in the spatial patch data corresponding to the first spatial object, is further configured to: and deleting texture information corresponding to partial spatial patch data in the projection area.
In an optional embodiment, the three-dimensional model data corresponding to each floor further includes wall patch data corresponding to a subspace object where a stair object in each floor space is located, and the second processing module 305a is further configured to: and at least partially deleting the data of the wall surface patch corresponding to the subspace object where the stair object is located, so that the stair object is communicated with a second space object in a low floor connected with the stair object, wherein the subspace object is part of space in the second space object.
In an optional embodiment, when at least partially deleting the wall patch data corresponding to the subspace object where the stair object is located, the second processing module 305a is configured to: judging whether target wall surface patch data which are overlapped with the space surface patch data corresponding to the second space object in the low floor connected with the stair object exist in the wall surface patch data corresponding to the subspace object where the stair object is located; if so, deleting other wall surface patch data except the target wall surface patch data of the wall surface patch data corresponding to the subspace object; and if not, deleting all the wall surface patch data corresponding to the subspace object.
In an alternative embodiment, the second processing module 305a is further configured to: according to the space coordinates of the stair patch data corresponding to the stair object, obtaining the projection area of the stair object on the second space object and the maximum external rectangular area corresponding to the projection area; and if the projection area is smaller than the corresponding maximum circumscribed rectangular area, correcting the area of the second space object according to the difference value of the maximum circumscribed rectangular area and the projection area.
In an alternative embodiment, the second processing module 305a is further configured to: rendering the three-dimensional model data corresponding to the multi-floor house to obtain and display a three-dimensional real scene space corresponding to the multi-floor house; responding to the first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified; responding to a first selection operation on the first plane floor plan, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; responding to a stair object adding operation, and adding stair surface patch data corresponding to the stair object into a projection space of a next floor according to the first space surface patch data; and deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
In an alternative embodiment, the second processing module 305a is further configured to: responding to a second reconstruction operation, and displaying a second plane house type graph, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; the second transformation operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects; responding to a second selection operation on the second plane user-type graph, and determining corresponding second space patch data of the selected second area in the three-dimensional model data corresponding to the second floor; deleting second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object; and adding wall surface patch data corresponding to the semi-high wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding semi-high wall object in the three-dimensional live-action space.
In an alternative embodiment, the second processing module 305a is further configured to: determining a space type corresponding to each space object in each floor space according to three-dimensional model data corresponding to the multi-floor house; and setting texture information matched 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 scene space containing the texture information after rendering the three-dimensional model data.
Based on the above, an embodiment of the present application further provides a transformation apparatus for a multi-floor building, for example, the transformation apparatus for a multi-floor building may be implemented as a virtual device in a Communication Control Unit (CCU), for example, an application program. As shown in fig. 3b, the transformation apparatus of a multi-story building comprises: an obtaining module 301b, a first editing module 302b, and a second editing module 303b; the obtaining module 301b is configured to obtain three-dimensional model data corresponding to a multi-floor house, render a three-dimensional model, and obtain and display a three-dimensional real space corresponding to the multi-floor house; the first editing module 302b is configured to respond to the first modification operation and display a first floor plan, where the first floor plan is a floor plan corresponding to a first floor to be modified; responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; the second editing module 303b is configured to add, in response to the stair object addition operation, stair surface patch data corresponding to the stair object in the projection space of the next floor from the first space surface patch data; and deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
In an optional embodiment, the first editing module 302b is further configured to display a second flat floor plan in response to the second modification operation, where the second flat floor plan is a floor plan corresponding to a second floor to be modified; the second transformation operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects; the second editing module 303b is further configured to determine, in response to a second selection operation on the second flat user-type graph, second spatial patch data corresponding to the selected second region in the three-dimensional model data corresponding to the second floor; deleting second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object; and adding wall surface 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 overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-height wall object in the three-dimensional live-action space.
In an optional embodiment, the second editing module 303b is further configured to respond to an additional object addition operation performed on a target position in the three-dimensional live-action space, and add additional object data to the three-dimensional model data, where spatial coordinates of the additional object data correspond to the target position, and the additional object includes a furniture object, a door object, a window object, and a wall object.
It should be noted that, for specific functions and implementation processes of each module in the apparatus, reference may be made to the method embodiment described above, and details are not described herein again.
An embodiment of the present application further provides an electronic terminal device, where fig. 4 is a schematic structural diagram of the electronic terminal device, and as shown in fig. 4, the electronic terminal device includes: a processor 41 and a memory 42 in which computer programs are stored; the processor 41 and the memory 42 may be one or more.
The memory 42 is mainly used for storing computer programs, and these computer programs can be executed by the processor 41, so that the processor 41 controls the electronic terminal device to implement corresponding functions, and complete corresponding actions or tasks. In addition to storing computer programs, the memory 42 may also be configured to store other various data to support operations on the electronic terminal device. Examples of such data include instructions for any application or method operating on the electronic terminal device.
The memory 42, which may be implemented by any type or combination of volatile or non-volatile memory devices, 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 memory, flash memory, magnetic or optical disks.
In the embodiment of the present application, the implementation form of the processor 41 is not limited, and may be, for example, but not limited to, a CPU, a GPU, an MCU, or the like. The processor 41 may be regarded as a control system of the electronic terminal device and may be configured to execute a computer program stored in the memory 42 to control the electronic terminal device to implement corresponding functions and complete corresponding actions or tasks. It should be noted that, according to the implementation form and the scene of the electronic terminal device, the functions, actions or tasks to be implemented may be different; accordingly, the computer programs stored in the memory 42 may be different, and the execution of different computer programs by the processor 41 may control the electronic terminal device to perform different functions, perform different actions or tasks.
In some optional embodiments, as shown in fig. 4, the electronic terminal device may further include: a display 43, a power supply component 44, and a communication component 45. Only some of the components are schematically shown in fig. 4, which does not mean that the electronic terminal device only includes the components shown in fig. 4, and the electronic terminal device may further include other components according to different application requirements, for example, in the case that there is a requirement for voice interaction, as shown in fig. 4, the electronic terminal device may further include an audio component 46. The components that the electronic terminal device may include are determined according to the product form of the electronic terminal device, and are not limited herein.
In the embodiment of the present application, the display 43 is configured to display a graphical user interface, where a three-dimensional real-scene space corresponding to a multi-floor house is displayed on the graphical user interface; the three-dimensional live-action space comprises at least one space object in each floor space, and the adjacent floor spaces are communicated with each other.
In the embodiment of the present application, when the processor 41 executes the computer program in the memory 42, it is configured to: the system comprises a data acquisition module, a data processing module and a data processing module, wherein the data acquisition module is used for acquiring three-dimensional model data corresponding to each floor in a multi-floor house, the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object, and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space; according to the space coordinate change characteristics of the stair objects, stair patch data corresponding to the stair objects are identified from the three-dimensional model data corresponding to each floor; according to the stair patch data corresponding to the stair object, determining the space patch data corresponding to two space objects in the adjacent floors connected with the stair object from the three-dimensional model data corresponding to each floor; projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object; and deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, thereby obtaining three-dimensional model data corresponding to the multi-floor house.
Correspondingly, an embodiment of the present application further provides an electronic terminal device, where a corresponding structure of the electronic terminal device is similar to the structure shown in fig. 4, and specifically, reference may be made to fig. 4. The electronic terminal device in the embodiment includes a processor and a memory in which a computer program is stored; the processor and the memory may be one or more, among others.
And the memory is mainly used for storing computer programs, and the computer programs can be executed by the processor to enable the processor to control the electronic terminal equipment to realize corresponding functions and complete corresponding actions or tasks. In addition to storing computer programs, the memory may be configured to store other various data to support operations on the electronic terminal device. Examples of such data include instructions for any application or method operating on the electronic terminal device.
The memory, which may be implemented by any type of volatile or non-volatile memory device or 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 memory, flash memory, magnetic or optical disk.
In the embodiment of the present application, the implementation form of the processor is not limited, and the processor may be, for example, but not limited to, a CPU, a GPU, or an MCU. The processor may be regarded as a control system of the electronic terminal device, and may be configured to execute the computer program stored in the memory to control the electronic terminal device to implement the corresponding function and complete the corresponding action or task. It should be noted that, according to the implementation form and the scene of the electronic terminal device, the functions, actions or tasks to be implemented may be different; accordingly, the computer programs stored in the memory may be different, and the execution of different computer programs by the processor may control the electronic terminal device to perform different functions, perform different actions or tasks.
In some optional embodiments, the electronic terminal device may further include: display, power supply and communication components, which are only some components schematically, do not mean that the electronic terminal device only includes these components, and the electronic terminal device may also include other components for different application requirements, for example, in case of a voice interaction requirement, the electronic terminal device may also include an audio component. The components that the electronic terminal device may include are determined according to the product form of the electronic terminal device, and are not limited herein.
In the embodiment of the application, the display is used for displaying a graphical user interface, and a three-dimensional real scene space corresponding to a multi-floor house is displayed on the graphical user interface; the three-dimensional live-action space comprises at least one space object in each floor space, and the adjacent floor spaces are communicated with each other.
In an embodiment of the application, the processor, when executing the computer program in the memory, is configured to: the system comprises a three-dimensional model acquisition module, a three-dimensional display module and a three-dimensional display module, wherein the three-dimensional model acquisition module is used for acquiring three-dimensional model data corresponding to a multi-floor house, rendering the three-dimensional model and acquiring and displaying a three-dimensional real scene space corresponding to the multi-floor house; responding to the first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified; responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor; responding to the stair object adding operation, and adding stair surface patch data corresponding to the stair object into the projection space of the next floor according to the first space surface patch data; and deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
It should be noted that, for specific functions of the processor in the electronic terminal device, reference may be made to the method embodiments described above, and details are not described herein again.
Accordingly, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program is capable of implementing the steps that can be executed by the electronic terminal device in the foregoing method embodiments when executed.
The communication component in the above embodiments is configured to facilitate communication between the device in which the communication component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal 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 communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
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 may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The power supply assembly of the above embodiments provides power to various components of the device in which the power supply assembly is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The audio components in the embodiments of the figures described above may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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 the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
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 the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (20)

1. A three-dimensional model data generation method of a multi-floor house is characterized by comprising the following steps:
acquiring three-dimensional model data corresponding to each floor in a multi-floor house, wherein the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space;
according to the space coordinate change characteristics of the stair objects, stair patch data corresponding to the stair objects are identified from the three-dimensional model data corresponding to each floor;
according to the stair patch data corresponding to the stair object, determining space patch data corresponding to two space objects in adjacent floors connected with the stair object from the three-dimensional model data corresponding to each floor;
projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object;
and deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, thereby obtaining three-dimensional model data corresponding to the multi-floor house.
2. The method of claim 1, further comprising, before identifying stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to a spatial coordinate variation characteristic of the stair object, the method further comprising:
and aiming at the three-dimensional model data corresponding to the multi-floor house, checking the three-dimensional model data according to a preset three-dimensional model data checking rule, and correcting the three-dimensional model data which is not in compliance with the checking.
3. The method of claim 1, wherein identifying stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to the spatial coordinate variation characteristic of the stair object comprises:
and identifying a group of corresponding patch data from the three-dimensional model data corresponding to each floor as stair patch data corresponding to the stair object according to the change characteristics that the space coordinates corresponding to the adjacent stair patch data have height coordinate values which are sequentially increased within a preset difference value range and have the same horizontal area.
4. The method according to claim 3, wherein determining 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 according to the stair patch data corresponding to the stair object comprises:
determining first stair patch data positioned at the bottom of the stair object and second stair patch data positioned at the top of the stair object according to a height coordinate value in a space coordinate of the stair patch data corresponding to the stair object;
and determining the space patch data corresponding to two space objects in the adjacent floors connected with the stair object according to the space coordinates of the first stair patch data and the second stair patch data and the space coordinates of the space patch data corresponding to each space object in each floor space.
5. The method of claim 4, wherein determining spatial patch data corresponding to two spatial objects in adjacent floors connected to the stair object according to the spatial coordinates of the first stair patch data and the second stair patch data and the spatial coordinates of the spatial patch data corresponding to each spatial object in each floor space comprises:
determining a group of patch data which satisfies a preset relation with the height of the first stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the first stair patch data at the bottom of the stair object, and taking the patch data as the space patch data corresponding to the space object in the lower floor connected with the stair object; and
and determining a group of patch data which satisfies a preset relation with the height of the second stair patch data and contains the same horizontal coordinate according to the space coordinate corresponding to the second stair patch data at the top of the stair object, and using the patch data as the space patch data corresponding to the space object in the high floor connected with the stair object.
6. The method of claim 1, wherein deleting a portion of spatial patch data located in the projection area from the spatial patch data corresponding to the first spatial object comprises:
displaying a planar house type graph corresponding to the first space object, wherein the planar house type graph comprises a patch object corresponding to space patch data of the first space object, and the patch object can be edited;
responding to the selection operation executed on the patch object, deleting the corresponding space coordinates of the selected area in the space patch data of the first space object, and marking the corresponding deletion effect on the patch object of the planar user type graph;
the selected region comprises a projection area of the stair patch data corresponding to the stair object projecting to the first standard space object.
7. The method according to any one of claims 1 to 5, wherein the spatial patch data further includes texture information, and in a case where a part of spatial patch data located within the projection area in the spatial patch data corresponding to the first spatial object is deleted, the method further includes: and deleting texture information corresponding to partial spatial patch data in the projection area.
8. The method according to any one of claims 1 to 5, wherein the three-dimensional model data corresponding to each floor further includes wall patch data corresponding to a subspace object in which a stair object in each floor space is located, further comprising:
and at least partially deleting the wall surface patch data corresponding to the subspace object in which the stair object is located, so that the stair object is communicated with a second space object in a lower floor connected with the stair object, wherein the subspace object is a partial space in the second space object.
9. The method of claim 8, wherein at least partially deleting the wall patch data corresponding to the subspace object in which the stair object is located comprises:
judging whether target wall surface patch data which are overlapped with space surface patch data corresponding to a second space object in a low floor connected with the stair object exist in the wall surface patch data corresponding to the subspace object where the stair object is located;
if so, deleting other wall surface patch data except the target wall surface patch data of the wall surface patch data corresponding to the subspace object;
and if not, deleting all the wall surface patch data corresponding to the subspace object.
10. The method of claim 8, further comprising:
according to the space coordinates of the stair patch data corresponding to the stair object, obtaining the projection area of the stair object on the second space object and the corresponding maximum external rectangular area;
and if the projection area is smaller than the corresponding maximum external rectangular area, correcting the area of the second space object according to the difference value between the maximum external rectangular area and the projection area.
11. The method of any one of claims 1-5, further comprising:
rendering three-dimensional model data corresponding to a multi-floor house to obtain and display a three-dimensional real scene space corresponding to the multi-floor house;
responding to a first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified;
responding to a first selection operation on the first plane floor plan, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor;
responding to a stair object adding operation, and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data;
deleting the first space patch data, and displaying the added stair objects at the space positions corresponding to the projection space in the three-dimensional real scene space.
12. The method of claim 11, further comprising:
responding to a second reconstruction operation, and displaying a second plane house type graph, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; the second transformation operation is used for transforming part of the space objects in the second floor into overhanging space objects and transforming part of the space objects in the next floor of the second floor into overhanging space objects;
responding to a second selection operation on the second plane floor plan, and determining corresponding second space patch data of the selected second area in the three-dimensional model data corresponding to the second floor;
deleting the second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object;
and adding wall surface patch data corresponding to the half-high wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-high wall object in the three-dimensional live-action space.
13. The method of claim 12, further comprising:
determining the space type corresponding to each space object in each floor space according to the three-dimensional model data corresponding to the multi-floor house;
and setting texture information matched 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 scene space containing the texture information after rendering the three-dimensional model data.
14. A method of retrofitting a multi-storey building comprising:
acquiring three-dimensional model data corresponding to a multi-floor house, and rendering the three-dimensional model to obtain and display a three-dimensional real scene space corresponding to the multi-floor house;
responding to a first modification operation, and displaying a first floor plan, wherein the first floor plan is a floor plan corresponding to a first floor to be modified;
responding to a first selection operation on the first plane user type graph, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor;
responding to a stair object adding operation, and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data;
deleting the first space patch data, and displaying the added stair objects at the space positions corresponding to the projection space in the three-dimensional real scene space.
15. The method of claim 14, further comprising:
responding to a second reconstruction operation, and displaying a second plane house type graph, wherein the second plane house type graph is a plane house type graph corresponding to a second floor to be reconstructed; the second transforming operation is to transform a portion of the spatial objects in the second floor to cantilevered spatial objects and to transform a portion of the spatial objects in a floor next to the second floor to cantilevered spatial objects;
responding to a second selected operation on the second planar user-type graph, and determining corresponding second space patch data of the selected second area in the three-dimensional model data corresponding to the second floor;
deleting the second space patch data from the three-dimensional model data corresponding to the second floor, and taking a boundary defined by the second space patch data as a boundary of the overhanging space object;
and adding wall surface patch data corresponding to the half-high wall object in the three-dimensional model data corresponding to the second floor according to the boundary of the overhanging space object, and synchronously displaying the modified overhanging space object, the overhanging space object and the corresponding half-high wall object in the three-dimensional live-action space.
16. The method of claim 14 or 15, further comprising:
responding to other object adding operation executed on the target position in the three-dimensional real scene space, and adding other object data in the three-dimensional model data, wherein the spatial coordinates of the other object data correspond to the target position, and the other objects comprise a furniture object, a door body object, a window object and a wall body object.
17. A three-dimensional model data generating apparatus for a multi-floor house, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring three-dimensional model data corresponding to each floor in a multi-floor house, the three-dimensional model data corresponding to each floor is constructed by taking the floor as an independent house object, and comprises space patch data of each space object in a floor space and stair patch data of a stair object positioned in the floor space;
the identification module is used for identifying stair patch data corresponding to the stair object from the three-dimensional model data corresponding to each floor according to the space coordinate change characteristic of the stair object;
the determining module is used for determining space patch data corresponding to two space objects in adjacent floors connected with the stair object from the three-dimensional model data corresponding to each floor according to the stair patch data corresponding to the stair object;
the first processing module is used for projecting stair patch data corresponding to the stair object to a first space object to obtain a projection area on the first space object, wherein the first space object is a space object in a high floor connected with the stair object;
and the second processing module is used for deleting partial space patch data positioned in the projection area in the space patch data corresponding to the first space object so as to communicate two space objects in adjacent floors connected with the stair object, and thus, three-dimensional model data corresponding to the multi-floor house is obtained.
18. A multi-storey building modernization device, comprising:
the acquisition module is used for acquiring three-dimensional model data corresponding to a multi-floor house, rendering the three-dimensional model, and acquiring and displaying a three-dimensional real space corresponding to the multi-floor house;
the first editing module is used for responding to a first modification operation and displaying a first flat house type diagram, wherein the first flat house type diagram is a flat house type diagram corresponding to a first floor to be modified; responding to a first selection operation on the first plane floor plan, and determining corresponding first space patch data of the selected first area in the three-dimensional model data corresponding to the first floor;
the second editing module is used for responding to a stair object adding operation and adding stair surface patch data corresponding to a stair object into a projection space of a next floor according to the first space surface patch data; and deleting the data of the first space patch, and displaying the added stair object at a space position corresponding to the projection space in the three-dimensional real scene space.
19. An electronic terminal device, comprising: a processor and a memory for implementing the steps of the method according to any one of claims 1-16 when the processor executes a computer program.
20. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic terminal device, enable the electronic terminal device to perform the steps of any one of claims 1-16.
CN202210814813.9A 2022-07-11 2022-07-11 Multi-floor house data generation and transformation method, device, equipment and medium Pending CN115391873A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210814813.9A CN115391873A (en) 2022-07-11 2022-07-11 Multi-floor house data generation and transformation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210814813.9A CN115391873A (en) 2022-07-11 2022-07-11 Multi-floor house data generation and transformation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115391873A true CN115391873A (en) 2022-11-25

Family

ID=84117109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210814813.9A Pending CN115391873A (en) 2022-07-11 2022-07-11 Multi-floor house data generation and transformation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115391873A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117556512A (en) * 2023-11-28 2024-02-13 杭州中房信息科技有限公司 Efficient generation method, medium and equipment for building table overview chart adapting to complex data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117556512A (en) * 2023-11-28 2024-02-13 杭州中房信息科技有限公司 Efficient generation method, medium and equipment for building table overview chart adapting to complex data

Similar Documents

Publication Publication Date Title
US10140769B2 (en) Electronic device and method for providing map service
US11847677B2 (en) Lighting and internet of things design using augmented reality
EP3226211B1 (en) Method and program of automatic three-dimensional solid modeling based on two-dimensional drawing
RU2708287C1 (en) Method and device for drawing room layout
CN111932666B (en) Method and device for reconstructing three-dimensional virtual image of house and electronic equipment
CN111968247B (en) Method and device for constructing three-dimensional house space, electronic equipment and storage medium
CN111951374B (en) House decoration data processing method and device, electronic equipment and storage medium
KR20190065933A (en) Method for interior platform based on spatial awareness
US11503256B2 (en) Object feature visualization apparatus and methods
US10796488B2 (en) Electronic device determining setting value of device based on at least one of device information or environment information and controlling method thereof
US20200202626A1 (en) Augmented Reality Noise Visualization
CN114972579B (en) House type graph construction method, device, equipment and storage medium
US11683459B2 (en) Object feature visualization apparatus and methods
US20180364812A1 (en) Building space control
CN110197534A (en) Hooking method, device, processor and the terminal of Virtual Building accessory model
CN115391873A (en) Multi-floor house data generation and transformation method, device, equipment and medium
CN115393467A (en) House type graph generation method, device, equipment and medium
KR20210083574A (en) A method for providing tag interfaces using a virtual space interior an apparatus using it
CN117521179B (en) Atmosphere lamp equipment, luminous partition layout construction method and device and computer equipment
CN115310174A (en) House information processing method, device, equipment and storage medium
CN115907912A (en) Method and device for providing virtual trial information of commodities and electronic equipment
CN115439576A (en) Method, device, equipment and medium for generating house type graph of terminal equipment
US20220114295A1 (en) Methods, systems, and media for building configuration of one or more buildings
CN114288664A (en) Game scene generation method and device, storage medium and electronic device
CN113297652A (en) Construction drawing generation method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination