Method and device for generating three-dimensional house type diagram and electronic equipment
By analyzing and identifying the wall type of model data, determine the midline of the wall and generate three -dimensional apartment diagrams, solve the problem of low -ending efficiency in the traditional home improvement design process, realize the rapid and accurate units, improve the marketing experience and the marketing experience and improvement. efficiency.
Patent Information
- Application Number
- CN202310936149.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-27
- Publication Date
- 2025-01-28
AI Technical Summary
In the traditional home decoration design process, it takes several days to measure the house and issue the plan, resulting in poor marketing experience and long time to place an order, making it impossible to quickly and accurately generate three-dimensional floor plans.
By determining the model data to be processed, and analysis of the model data, the wall data of the outline of the bottom surface of the wall is generated; the wall contour is searched based on the wall data to identify the wall type; The middle line of the body; the three -dimensional apartment diagram is generated according to the set wall thickness, wall midline, and wall data.
The three -dimensional apartment diagram is achieved quickly and accurately, which improves the production efficiency of the apartment type, can quickly obtain the apartment solution at the measuring house, and improve the communication and ordering process of shopping guide personnel and users.
Smart Images

Figure CN119379944A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of home decoration design technology, and in particular to a method, device and electronic equipment for generating a three-dimensional floor plan. Background Art
[0002] When domestic home improvement companies provide shopping guides, the traditional service process is that a dedicated house measurement personnel will come to measure the house, collect the measurement data, draw the CAD floor plan, import it into the designer's tool for design, and finally promote the plan. This process is time-consuming, and it takes several days from measurement to plan. The marketing experience is poor and the order placement time is also long. Therefore, if the shopping guide can quickly obtain the floor plan at the house measurement site, and then cooperate with the designer's quick build or smart model room function, the shopping guide can communicate with the user on the spot and quickly guide the user to place an order; Summary of the invention
[0003] The purpose of one or more embodiments of the present specification is to provide a method, device and electronic device for generating a three-dimensional floor plan, so as to quickly and accurately generate a three-dimensional floor plan and improve the efficiency of floor plan generation.
[0004] To solve the above technical problems, one or more embodiments of this specification are implemented as follows:
[0005] In the first aspect, a method for generating a three-dimensional floor plan is proposed, comprising:
[0006] Determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the bottom surface of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type;
[0007] Searching for the bottom surface contour of the wall based on the wall data to identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules;
[0008] Determine the wall centerline of the wall according to the identified wall type and a wall centerline determination rule corresponding to the wall type;
[0009] A three-dimensional floor plan of the target apartment is generated according to the wall thickness, the wall centerline and the wall data set for the target apartment.
[0010] In a second aspect, a device for generating a three-dimensional floor plan is proposed, comprising:
[0011] A parsing module, used to determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the bottom surface of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type;
[0012] An identification module, used to search for the bottom surface contour of the wall based on the wall data, and identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules;
[0013] A determination module, used to determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type;
[0014] A generation module is used to generate a three-dimensional floor plan of the target apartment type according to the wall thickness, the wall centerline and wall data set for the target apartment type.
[0015] In a third aspect, an electronic device is provided, comprising:
[0016] Processor; and
[0017] A memory arranged to store computer executable instructions, which, when executed, cause the processor to execute the method for generating a three-dimensional floor plan as described in the first aspect.
[0018] In a fourth aspect, a computer-readable storage medium is proposed, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device executes the method for generating a three-dimensional floor plan described in the first aspect.
[0019] It can be seen from the technical solutions provided by one or more embodiments of the above specification that by determining the model data to be processed and parsing the model data, wall data carrying the bottom surface contour of the wall is generated; the bottom surface contour of the wall is searched based on the wall data to identify the wall type to which the wall belongs; the wall centerline of the wall is determined according to the identified wall type and the wall centerline determination rule corresponding to the wall type; and a three-dimensional floor plan of the target floor plan is generated according to the wall thickness set for the target floor plan, the wall centerline and the wall data. Thus, a three-dimensional floor plan can be generated quickly and accurately, and the efficiency of floor plan generation is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the description of one or more embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] Figure 1 It is a schematic diagram of the principle that the model data obtained by scanning the house type is stored in the usdz file format.
[0022] Figure 2 It is a schematic diagram of the steps of a method for generating a three-dimensional floor plan provided in an embodiment of this specification.
[0023] Figure 3a and Figure 3b It is a schematic diagram of a region obtained after a ring search process provided by an embodiment of this specification.
[0024] Figure 4 It is a schematic diagram of the generation process of a three-dimensional floor plan provided by an embodiment of this specification.
[0025] Figure 5 It is a schematic diagram of a process of parsing and generating structured wall and door and window opening data provided by an embodiment of this specification.
[0026] Figure 6 It is a structural schematic diagram of a device for generating a three-dimensional floor plan provided by an embodiment of this specification.
[0027] Figure 7 It is a schematic diagram of the structure of an electronic device provided by an embodiment of this specification. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the one or more embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0029] The scanned apartment types in this manual are stored in the usdz file format. The specific models are as follows: Figure 1 As shown. The usdz file format has associated the wall and the corresponding key structural parts on the wall (such as door and window openings, etc.); refer to Figure 1In the data, the wall data of each wall is recorded. The wall data here can include the wall identification and wall height. However, the recorded walls and key structural parts are cubes with extremely small thickness, that is, the wall thickness and the center line of the wall are not given. Moreover, for walls with key structural parts attached, the wall data will be associated with the data of the key structural parts. For example, the wall data of wall 12 is associated with the data of form 3, which means that form 3 is set on wall 12. For home decoration design software, the premise of generating a wall is to calculate the center line of the wall and the wall thickness. In addition, the hole information such as door and window holes in the key structural parts also needs to be consistent with the wall in which they are located in order to open a reasonable hole. However, the usdz format cannot directly obtain the above information, and even the wall thickness data is missing. Therefore, the apartment data obtained by the current scanning tools or scanning software cannot generate the required three-dimensional apartment type in the design tool.
[0030] In view of this, the embodiment of this specification proposes a scheme for generating a three-dimensional floor plan. The main inventive concept is to generate wall data with the bottom surface contour of the wall by determining the model data to be processed and parsing the model data; search the bottom surface contour of the wall based on the wall data to identify the wall type to which the wall belongs; determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type; generate a three-dimensional floor plan of the target floor plan according to the wall thickness set for the target floor plan, the wall centerline and the wall data. Thus, structured wall parameter information and even door and window opening parameter information are extracted from the three-dimensionally scanned floor plan, so as to connect to the floor plan design tool, quickly and accurately generate a three-dimensional floor plan, and improve the efficiency of floor plan generation.
[0031] It should be understood that the key structural parts involved in this specification may be doors and / or windows. For example, a certain wall of the target apartment has a door or a window, or both a door and a window. In fact, the key structural parts may also be other structural parts that need to be reflected in the three-dimensional apartment, such as a flue or an exhaust duct. The embodiments of this specification do not limit this.
[0032] Embodiment 1
[0033] Reference Figure 2As shown, it is a schematic diagram of the steps of a method for generating a three-dimensional floor plan provided in an embodiment of the present specification. It should be understood that the execution subject of the method for generating a three-dimensional floor plan may be a device for generating a three-dimensional floor plan, and the generating device may be a hardware device or a software module, for example, a computer, a mobile phone or other device with computing and processing capabilities, or a three-dimensional floor plan function module integrated in these devices, which can execute the following steps to realize the generation function of the three-dimensional floor plan. Among them, the generating device may be a design software with a floor plan scanning function, and after obtaining the floor plan data through the scanning function, the three-dimensional floor plan to be constructed is obtained through the processing of the following steps; or, the generating device may communicate with an external device or software with a floor plan scanning function, and after obtaining the floor plan data scanned by the external device or software, the three-dimensional floor plan to be constructed is obtained through the processing of the following steps.
[0034] In the embodiment of this specification, the method for generating a three-dimensional floor plan may include the following steps:
[0035] Step 202: determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the wall bottom surface; wherein the model data is the apartment type information obtained by scanning the target apartment type.
[0036] In the embodiments of the present specification, the model data to be processed may be the apartment type information obtained by scanning the target apartment type. When determining the model data to be processed here, different processing may be performed according to the source of the model data. In one feasible scheme, the model data may be obtained by scanning and processing the target apartment type by a three-dimensional apartment type generating device. In this case, the three-dimensional apartment type generating device may be a device with image acquisition and / or ranging functions, for example, a camera, a laser radar or other measuring device may be integrated or installed therein; after the three-dimensional apartment type generating device scans and obtains the model data, the model data may be processed by the scheme of the present specification to generate the required three-dimensional apartment type. In another feasible scheme, the model data may be obtained by scanning and processing by an external device or apparatus connected to the three-dimensional apartment type generating device. The external device or apparatus may be integrated or installed therein with a camera, a laser radar or other measuring device to scan and map the target apartment type and generate the three-dimensional apartment type. Figure 1 The generated model data can be marked and stored based on the identification of the target apartment type, so that the three-dimensional apartment type generating device can obtain it from an external device or device, or from a storage space (storage device or cloud) storing the model data, and use the solution of this specification to process the obtained model data to generate the required three-dimensional apartment type.
[0037] It should be noted that the model data involved in this specification is characterized by the apartment type information obtained through scanning and surveying. Therefore, the processing object of the solution in this specification is incomplete apartment type information, and the apartment type information in the model data needs to be corrected and improved.
[0038] In addition, it should be noted that the scanned three-dimensional model data of the house must be stored according to a certain data structure. For example, the scanning results can be stored in the usdz format, and each wall can be stored independently, for example, it can be expressed in a cube or in a mesh of a three-dimensional model; the geometric storage method of door and window openings is the same as that of the walls, and they are associated with the walls. This association is used to indicate which wall the door and window openings are on.
[0039] In the embodiment of the present specification, when parsing the model data to generate wall data carrying the wall bottom surface contour, the following steps may be specifically included:
[0040] Step 1: Determine the ground surface of the target apartment based on the vertex coordinates of the wall in the model data.
[0041] After determining the model data, based on the apartment type information in the model data, all walls contained in the target apartment type are traversed to obtain the wall data of all walls. These wall data include wall height and wall vertices. Each wall can correspond to multiple vertices, for example, the wall vertices at the top of the target apartment type, and the wall vertices at the bottom. From these wall vertices, extract the plane where the lowest vertex is located (if the coordinates are set, the minimum value of the coordinates extending along the wall height direction can be defined; for example, the ground in the data source can be parallel to the XOY plane, and the minimum Z value in the wall vertex coordinates is extracted as the position of the ground plane) as the ground of the target apartment type.
[0042] Step 2: Determine the bottom contour of the wall based on the projection contour parallel to the ground.
[0043] A feasible solution is to determine the data format of the model data when determining the bottom contour of the wall based on the projection contour parallel to the ground; if the data format is mesh, extract the triangular facets parallel to the ground, project all the triangular facets onto the ground, take the directional enclosing box of the triangular facets as the wall contour or directly perform Boolean operation on all the triangular facet projections to find the bottom contour of the wall; if the data format is cube, extract the contour of the cube face that is parallel to the ground and has the lowest height as the bottom contour of the wall. In fact, in addition to these two data formats, other data formats can also exist. When processing, the contour calculation method that matches the data format should be selected, which will not be described one by one here.
[0044] Step 3: extract the wall height and wall identification from the model data, and generate wall data together with the bottom surface contour.
[0045] In view of the fact that the height of the wall is recorded in the model data, when all the walls are traversed in step 1, a wall identifier can be added to each wall, so that one wall data corresponds to one wall identifier, and one wall data contains information such as wall height, wall vertex and wall identifier. Therefore, after determining the bottom surface contours of all walls in sequence or simultaneously based on the method of step 2, the wall height and wall identifier can be extracted from the model data, and the wall data of the wall can be generated with the bottom surface contour of the same wall. In fact, this step is to determine the bottom surface contour of each wall and add it to the wall data to form structured data. It should be understood that the bottom surface contour can be a contour loop, which is represented by the corresponding bottom surface coordinates. For example, the output wall data {type, id, height, minz, loop}, where type is the wall, id refers to the wall identifier, height is the wall height, minz is the bottom surface of the wall, and loop is the bottom surface contour of the wall.
[0046] Further, the housing type information records the association between the wall and the key structural parts corresponding to the wall. In other words, considering the variety of housing types, the above scheme is aimed at housing types without key structural parts, and there is no need to pay attention to the impact of key structural parts such as doors and windows on the housing type. However, most housing types are designed with doors and windows, so in the above housing type information, not only the wall data is recorded, but also the association between the wall and the key structural parts set thereon can be recorded. Then, after extracting the wall height and wall identification from the model data and generating the wall data together with the bottom surface contour, the key structural part height and key structural part identification can also be extracted from the model data, and the key structural part data can be generated together with the corresponding wall identification and bottom surface contour. For example, the key structural part data {type, id, wallid, height, minz, loop} is output, where type is the key structural part, id refers to the key structural part identification, wallid is the wall identification of the wall associated with the key structural part, height is the height of the key structural part, minz is the bottom surface of the key structural part, and loop is the bottom surface contour of the wall.
[0047] Step 204: searching for the bottom contour of the wall based on the wall data to identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules;
[0048] In specific implementation, the bottom surface contour in the wall data can be extracted, and the wall edge of the wall can be marked based on the bottom surface contour; the marked wall edge can be searched and processed using a ring search algorithm, and the wall type can be identified based on the ring search result.
[0049] Among them, when marking the wall edges based on the bottom contour of the wall, the bottom contours of all the walls can be collected, and then these bottom contours can be classified and marked. The specific classification and marking method is not limited. For example, the two short sides of wall 1 can be marked as the front-wall edge (front-1) and the back-wall edge (back-1), and the two long sides of wall 1 can be marked as the left-wall edge (left-1) and the right-wall edge (right-1). At the same time, the wall area can be marked with wall identification 1. For another example, the two long sides of wall 2 are marked as the front-wall edge (front-2) and the back-wall edge (back-2), and the two short sides of wall 2 are marked as the left-wall edge (left-2) and the right-wall edge (right-2). At the same time, the wall area can be marked with wall identification 2. In fact, the two short sides can also be marked as the back-wall edge (back-1) and the front-wall edge (front-1), that is, the markings of the two short sides are exchanged. However, no matter which classification definition method is used, try to choose the same classification definition method for all walls in the same apartment type to ensure that the classification identification of walls in the same apartment type is not unified and affects the subsequent search processing.
[0050] Further, a ring search algorithm is used to search and process the marked wall edge. When the wall type is identified based on the ring search result, the ring search operation for the marked wall edge can be started, and any ring search algorithm is determined from the preset ring search algorithm, and the intersection of the line segments corresponding to the wall edge is obtained. Then, each line segment after the intersection is used as an edge, and a ring search is performed in a set direction with any vertex or intersection as the starting point to obtain a ring search result. The ring search result contains multiple ring search areas. If the ring search area is associated with a wall, the ring search area is determined to be a wall area. If the ring search area is not associated with a wall, the ring search area is determined to be a room area. In this specification, the wall types include: exterior walls, interior walls, and independent walls; a room area is determined in the ring search result; then, if only one of the two long wall sides of the wall is associated with the room area, the wall is determined to be an exterior wall; if both long wall sides of the wall are associated with the room area, the wall is determined to be an interior wall; if neither of the two long wall sides of the wall is associated with the room area, the wall is determined to be an independent wall. Among them, the preset ring search algorithm may include: a deep ring search algorithm, a directed ring search method, etc.
[0051] Specific reference Figure 3a As shown, assuming that the ring search process can be obtained as follows Figure 3aAmong the several search ring areas shown, area A and area B are not associated with the wall or intersect with it, so area A and area B are determined to be room areas, which can be specifically marked as room area a and room area b. Area 1, area 2, area 3, area 4, area 5, area 6, and area 7 are associated with or intersect with the wall, so these areas are determined to be wall areas, which can be specifically marked as wall 1, wall 2...wall 7.
[0052] In addition, refer to Figure 3b As shown, we can also get Figure 3b In the figure, region C is not associated with or intersected with the wall and is not a search ring area, so region C is determined to be an external wall area, specifically marked as external wall region C. Regions 8, 9, and 10 are associated with or intersected with the wall, so these regions are determined to be wall areas, specifically marked as wall 8, wall 9, and wall 10, respectively.
[0053] After determining the room area and the wall, the wall type can be determined based on the relationship between the two opposite sides of the wall and the room area. Figure 3a and Figure 3b For example, define the sides of the wall according to the directions in the figure, such as the left side of wall 1 is left-1, the right side is right-1, the front side is front-1, and the back side is back-1; the left side of wall 2 is left-2, the right side is right-2, the front side is front-2, and the back side is back-2; the left side of wall 10 is left-10, the right side is right-10, the front side is front-10, and the back side is back-10.
[0054] exist Figure 3a Among the walls of wall 1, only the right wall right-1 is associated with room area A, so wall 1 is determined to be an exterior wall; similarly, walls 3, 4, 5, 6, and 7 are also determined to be exterior walls. Among the walls of wall 2, the left wall left-2 is associated with room area A, and the right wall right-2 is associated with room area B, so wall 2 is determined to be an interior wall. Figure 3b In the example, the wall edges of wall 8, wall 9, and wall 10 are not associated with the room area but with the exterior wall area, so these walls are determined to be independent walls.
[0055] Therefore, the area enclosed by multiple rings is determined from the wall through the ring search method, and then the room area and the wall area are determined, and the wall type to which each wall belongs is accurately determined based on the determined room area.
[0056] Step 206: Determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type.
[0057] Among them, the wall centerline determination rule can be a determination method set for different wall types, for example, the exterior wall corresponds to wall centerline determination rule 1, the interior wall corresponds to wall centerline determination rule 2, and the independent wall corresponds to wall centerline determination rule 3. The specific wall centerline determination rule can be a specific wall centerline determination method, for example, using the center line between the two long sides of the current wall or one of the long sides as the wall centerline of the wall. For another example, the wall centerline of the wall is calculated by a specific offset formula. In this specification, if the wall is an exterior wall, the long wall side of the two long wall sides closer to the room area is taken as the inner wall line, and the position offset by half the set wall thickness in the direction of the other long wall side is taken as the wall centerline; if the wall is an interior wall or an independent wall, the centerline position between the two long wall sides is taken as the wall centerline.
[0058] Still refer to Figure 3a and Figure 3b For the wall structure shown, for an exterior wall, such as wall 1, only the right wall side right-1 is associated with the room area, then the right wall side right-1 of wall 1 close to the room area is used as the inner wall line of the wall, and is offset to the left by half the set wall thickness as the center line of the wall. For an interior wall, such as wall 2, both the right wall side right-2 and the left wall side left-2 are associated with the room area, then the center line of wall 2 is the center line of the rectangular area where the wall is located (along the direction of the long side extension). For an independent wall, such as wall 10, its center line is the center line of the rectangular area where the wall is located (along the direction of the long side extension).
[0059] Step 208: Generate a three-dimensional floor plan of the target apartment type according to the wall thickness, the wall centerline and wall data set for the target apartment type.
[0060] Considering that the centerline of the wall in the apartment can be determined through the above operation, the wall edge may not be accurate at this time and needs to be corrected later. After determining the centerline of the wall, the wall thickness is the key to determining the wall edge. The wall thickness is generally the standard thickness in the construction industry and meets certain thickness standards. Therefore, at this time, the wall thickness can be set according to industry standards or user needs, for example, 240mm thickness, or 300mm thickness. This is just an example and is not limited. It should be flexibly adjusted according to actual needs.
[0061] After the center line of the wall is determined, the three-dimensional floor plan of the target apartment can be automatically drawn by combining the scanned data such as the wall height in the wall data and setting the wall thickness.
[0062] Further, after determining the centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type, before generating the three-dimensional floor plan of the target apartment type according to the wall thickness set for the target apartment type, the wall centerline and wall data, that is, after step 206 and before step 208, the vertices of the key structural parts can be projected to the centerline of the wall where they are located based on the key structural parts data to obtain the centerline of the key structural parts, and the key structural parts data can be updated.
[0063] In specific implementation, the vertices of the key structural parts are not necessarily accurate. Since the center line of the wall is fixed at this time, all the vertices of the key structural parts are projected onto the center line of the wall. At this time, the center line of the key structural parts may be changed, so the corresponding vertex data in the key structural parts will also change. In short, the edge lines of the key structural parts should be adjusted and offset based on the updated center line of the key structural parts and the thickness of the key structural parts, so as to update the key structural parts data.
[0064] Correspondingly, when generating a three-dimensional floor plan of the target apartment type based on the wall thickness set for the target apartment type, the wall centerline and wall data, the three-dimensional floor plan of the target apartment type can be generated based on the wall thickness set for the target apartment type, the wall centerline, wall data and updated key structural component data.
[0065] The following is a specific process to introduce the generation plan of 3D floor plan. For details, please refer to Figure 4 The detailed process is as follows:
[0066] Step 402: Obtain model data of the target apartment type.
[0067] The model data may be a house type file in a usdz format obtained by scanning with a device having a scanning and modeling function.
[0068] Step 404: Parse the apartment file in the usdz format to generate structured wall and door and window opening data.
[0069] Specifically, the analysis and generation process of step 404 can refer to Figure 5 As shown, including:
[0070] Step 502: Determine the apartment file in the usdz format.
[0071] Step 504: traverse all walls based on the apartment file.
[0072] This is just an example. In actual implementation, not all walls may be traversed, and some walls may be traversed according to user needs.
[0073] Step 506: Extract the vertices of the wall and use the smallest vertical coordinate as the floor of the apartment.
[0074] The smallest vertical coordinate here is only an example. In specific implementation, the vertical coordinate of the threshold can be set as the floor of the apartment based on the vertical coordinates with the smallest distance according to user needs.
[0075] Step 508: Determine the data format; if it is in mesh format, execute step 510; if it is in cube format, execute step 514.
[0076] Step 510: extract triangular facets parallel to the floor of the apartment and project them to plane coordinates.
[0077] Step 512: perform joint calculation on the projections of the triangular facets to obtain the bottom surface contour loop of the wall.
[0078] Step 514: extract the cube surface contour that is parallel to the floor of the apartment and has the lowest height as the bottom surface contour loop of the wall.
[0079] Step 516: extract the height and ID of the wall and door and window openings, and output structured data.
[0080] Step 518: Determine the main body type to which the data belongs; if it belongs to a wall, execute step 520; if it belongs to a door or window opening, execute step 522.
[0081] Step 520: Output wall data {type, id, height, minz, loop}.
[0082] Step 522: Output door and window opening data {type, id, wallid, height, minz, loop}.
[0083] Step 406: Extract the bottom contours of all walls.
[0084] Based on the formatted data determined in step 404, the bottom rectangular outlines (loops) of all walls are collected, and then the four sides of the loops are classified, wherein the two short sides can be marked as front-id and back-id, respectively, the two long sides are marked as left-id and right-id, respectively, and the wall area is marked with id.
[0085] Step 408: Perform a search based on the wall data to identify inner walls, outer walls, and independent walls.
[0086] Based on the data prepared in step 406, all marked wall edges are searched, and the area associated with any wall area is determined to be the room area, and all areas associated with the wall ID are determined to be the wall area.
[0087] Step 410: Determine the wall type; if the wall type is an interior wall or an independent wall, execute step 412; if the wall type is an exterior wall, execute step 414.
[0088] Step 412: Extract the center line of the wall based on the adjacent long wall sides of the wall.
[0089] Based on the above search results, identify the wall line type (external wall, internal wall, independent wall). Internal wall: If the left and right sides of the wall are both associated with the room area, the wall type is internal wall, and the midline of the wall area parallel to the right side is calculated as the wall midline. Independent wall: If the left and right sides of the wall are not associated with the room area, the wall type is independent wall, and the midline of the wall area is taken as the wall midline for this type of wall.
[0090] Step 414: Calculate the center line of the wall based on the inner line offset of the wall.
[0091] External wall: If only one side of the left and right sides of the wall is associated with the room area, the wall type is external wall, and the associated side is identified as the inner line of the wall. The inner line of the wall is offset by half the wall thickness to obtain the center line of the wall.
[0092] Step 416: Determine the structural data of all walls.
[0093] Step 418: Project the edge lines of the door and window openings onto the center line of the wall to correct the outlines of the door and window openings.
[0094] The specific correction method is to project all vertices of the door and window openings onto the center line of the wall to obtain the center line data of the door and window openings. This data is the corrected center line of the door and window openings.
[0095] Step 420: Update the structured data of the door and window openings.
[0096] Step 422: directly generate a three-dimensional floor plan based on the structured data of walls and door and window openings.
[0097] By determining the model data to be processed and parsing the model data, wall data carrying the bottom surface contour of the wall is generated; based on the wall data, the bottom surface contour of the wall is searched to identify the wall type to which the wall belongs; according to the identified wall type and the wall centerline determination rule corresponding to the wall type, the wall centerline of the wall is determined; according to the wall thickness set for the target apartment type, the wall centerline and the wall data, a three-dimensional apartment type diagram of the target apartment type is generated. Thus, a three-dimensional apartment type diagram can be generated quickly and accurately, and the efficiency of apartment type generation is improved.
[0098] It should be noted that the user information (including but not limited to user apartment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0099] Embodiment 2
[0100] Reference Figure 6 As shown, a device for generating a three-dimensional floor plan provided in an embodiment of this specification may include:
[0101] The parsing module 602 is used to determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the bottom surface of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type;
[0102] An identification module 604 is used to search for the bottom surface contour of the wall based on the wall data, and identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules;
[0103] A determination module 606, configured to determine the wall centerline of the wall according to the identified wall type and a wall centerline determination rule corresponding to the wall type;
[0104] The generating module 608 is used to generate a three-dimensional floor plan of the target apartment type according to the wall thickness, the wall centerline and the wall data set for the target apartment type.
[0105] Optionally, as an embodiment, when the parsing module 602 parses the model data and generates wall data carrying the bottom surface contour of the wall, it is specifically used to determine the ground of the target apartment based on the vertex coordinates of the wall in the model data; determine the bottom surface contour of the wall based on a projection contour parallel to the ground; extract the wall height and wall identification from the model data, and generate the wall data together with the bottom surface contour.
[0106] In a specific implementation of the embodiments of the present specification, the parsing module 602 is specifically used to determine the data format of the model data when determining the bottom contour of the wall based on the projection contour parallel to the ground; if the data format is mesh, the triangular facets parallel to the ground are extracted, and the sum of the projection contours of the triangular facets projected onto the ground is calculated to obtain the bottom contour of the wall; if the data format is cube, the cube face contour that is parallel to the ground and has the lowest height is extracted as the bottom contour of the wall.
[0107] In another specific implementation of the embodiments of the present specification, the identification module 604 is specifically used to extract the bottom surface contour from the wall data and mark the wall edge based on the bottom surface contour when searching for the bottom surface contour of the wall based on the wall data to identify the wall type to which the wall belongs; a ring search algorithm is used to search and process the marked wall edge, and the wall type is identified based on the ring search result.
[0108] In another specific implementation of the embodiments of the present specification, when the identification module 604 uses a ring search algorithm to search for the marked wall edge, it is specifically used to start a ring search operation on the marked wall edge and find the intersection points of the line segments corresponding to the wall edge; after finding the intersection points, each line segment is used as an edge, and a ring search is performed in a set direction starting from any vertex or intersection point to obtain a ring search result.
[0109] In another specific implementation of the embodiments of the present specification, the wall types include: exterior walls, interior walls and independent walls; a room area is determined in the search ring result; then the identification module 604, when identifying the wall type based on the search ring result, is specifically used to determine that the wall is an exterior wall if only one of the two long wall sides of the wall is associated with the room area; if both long wall sides of the wall are associated with the room area, then the wall is determined to be an interior wall; if neither of the two long wall sides of the wall is associated with the room area, then the wall is determined to be an independent wall.
[0110] In another specific implementation of the embodiments of the present specification, when determining the wall centerline of the wall based on the identified wall type and the wall centerline determination rule corresponding to the wall type, the determination module 606 is specifically used to, if the wall is an exterior wall, use the long wall side of the two long wall sides closer to the room area as the inner line of the wall, and offset the position of half the set wall thickness toward the other long wall side as the wall centerline; if the wall is an interior wall or an independent wall, use the centerline position between the two long wall sides as the wall centerline.
[0111] In another specific implementation of the embodiments of the present specification, the apartment information records the association between the wall and the corresponding door and / or window on the wall; then the wall height and wall identification are extracted from the model data, and the wall data is generated together with the bottom surface contour. The parsing module 602 is also used to extract the door height and door identification and / or window height and window identification from the model data, and generate the door data and / or window data together with the corresponding wall identification and bottom surface contour.
[0112] In another specific implementation of the embodiments of the present specification, after determining the centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type, before generating the three-dimensional floor plan of the target apartment type according to the wall thickness set for the target apartment type, the wall centerline and wall data, the determination module 606 is also used to project the vertices of the door and / or window to the centerline of the wall where they are located based on the door data and / or window data, obtain the centerline of the door and / or window, and update the door data and / or window data.
[0113] By determining the model data to be processed and parsing the model data, wall data carrying the bottom surface contour of the wall is generated; based on the wall data, the bottom surface contour of the wall is searched to identify the wall type to which the wall belongs; according to the identified wall type and the wall centerline determination rule corresponding to the wall type, the wall centerline of the wall is determined; according to the wall thickness set for the target apartment type, the wall centerline and the wall data, a three-dimensional apartment type diagram of the target apartment type is generated. Thus, a three-dimensional apartment type diagram can be generated quickly and accurately, and the efficiency of apartment type generation is improved.
[0114] Embodiment 3
[0115] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Figure 7 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0116] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0117] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0118] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a three-dimensional floor plan generation device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0119] Determine the model data to be processed, and parse the model data to generate wall data carrying the bottom surface contour of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type; based on the wall data, search for the bottom surface contour of the wall to identify the wall type to which the wall belongs; wherein walls of different wall types correspond to different wall centerline determination rules; determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type; generate a three-dimensional apartment type diagram of the target apartment type according to the wall thickness set for the target apartment type, the wall centerline and the wall data.
[0120] The above is as in this manual Figure 1The method performed by the device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in one or more embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in one or more embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0121] The electronic device may also perform Figure 1 The method and the corresponding device are implemented in Figure 1 The functions of the illustrated embodiments will not be described in detail in the embodiments of this specification.
[0122] Of course, in addition to software implementation, the electronic device of the embodiments of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0123] Embodiment 4
[0124] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 1 The method of the embodiment shown is specifically used to perform the following method:
[0125] Determine the model data to be processed, and parse the model data to generate wall data carrying the bottom surface contour of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type; based on the wall data, search for the bottom surface contour of the wall to identify the wall type to which the wall belongs; wherein walls of different wall types correspond to different wall centerline determination rules; determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type; generate a three-dimensional apartment type diagram of the target apartment type according to the wall thickness set for the target apartment type, the wall centerline and the wall data.
[0126] In short, the above description is only a preferred embodiment of this specification and is not intended to limit the protection scope of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.
[0127] The systems, devices, modules or units described in one or more of the above embodiments may be implemented by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0128] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0129] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0130] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0131] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A method for generating a three-dimensional floor plan, comprising: Determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the bottom surface of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type; Searching for the bottom surface contour of the wall based on the wall data to identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules; Determine the wall centerline of the wall according to the identified wall type and a wall centerline determination rule corresponding to the wall type; A three-dimensional floor plan of the target apartment is generated according to the wall thickness, the wall centerline and the wall data set for the target apartment.
2. The method for generating a three-dimensional floor plan according to claim 1, wherein the model data is parsed to generate wall data carrying the contour of the bottom surface of the wall, comprising: Determining the ground of the target apartment based on the vertex coordinates of the wall in the model data; Determine the bottom surface profile of the wall based on the projection profile parallel to the ground; The wall height and the wall identification are extracted from the model data, and are used together with the bottom surface contour to generate wall data.
3. The method for generating a three-dimensional floor plan as described in claim 2 of the whole road, determining the bottom surface contour of the wall based on the projection contour parallel to the ground, comprising: If the data format of the model data is mesh, extract the triangular facets parallel to the ground, calculate the sum of the projection contours of the triangular facets projected onto the ground, and obtain the bottom contour of the wall; If the data format of the model data is cube, the contour of the cube face that is parallel to the ground and has the lowest height is extracted as the bottom contour of the wall.
4. The method for generating a three-dimensional floor plan according to claim 2, wherein searching for the bottom contour of a wall based on the wall data and identifying the wall type to which the wall belongs comprises: Extract the bottom surface contour from the wall data, and mark the wall edge based on the bottom surface contour; A ring search algorithm is used to search for the marked wall edges, and the wall type is identified based on the ring search results.
5. The method for generating a three-dimensional floor plan according to claim 4, wherein the ring search algorithm is used to search for the marked wall edges, comprising: Start the ring search operation for the marked wall edge and find the intersection point of the line segment corresponding to the wall edge; Take each line segment after the intersection as an edge, and search for a ring in the set direction starting from any vertex or intersection to obtain the ring search result.
6. The method for generating a three-dimensional floor plan according to claim 4 or 5, wherein the wall types include: External walls, internal walls and freestanding walls; The room area is determined in the ring search result; The wall type is identified based on the search results, including: If only one of the two long sides of the wall is associated with the room area, the wall is determined to be an exterior wall; If both long sides of the wall are associated with the room area, the wall is determined to be an interior wall; If both long sides of the wall are not associated with the room area, the wall is determined to be an independent wall.
7. The method for generating a three-dimensional floor plan according to claim 6, wherein the wall centerline of the wall is determined according to the identified wall type and the wall centerline determination rule corresponding to the wall type, comprising: If the wall is an exterior wall, the longer wall side closer to the room area is taken as the inner wall line, and the position offset by half the set wall thickness towards the other long wall side is taken as the center line of the wall; If the wall is an interior wall or an independent wall, the centerline between the two long wall sides is taken as the centerline of the wall.
8. The method for generating a three-dimensional floor plan according to claim 2, wherein the floor plan information records the association between the wall and the key structural components corresponding to the wall; after extracting the wall height and the wall mark from the model data and generating the wall data together with the bottom surface contour, the method further comprises: The height and identification of the key structural component are extracted from the model data, and the key structural component data are generated together with the corresponding wall identification and bottom surface contour.
9. The method for generating a three-dimensional floor plan according to claim 8, after determining the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type, and before generating the three-dimensional floor plan of the target floor plan according to the wall thickness set for the target floor plan, the wall centerline and the wall data, the method further comprises: Based on the key structural component data, the vertices of the key structural component are projected to the center line of the wall where the key structural component is located, the center line of the key structural component is obtained, and the key structural component data is updated.
10. The method for generating a three-dimensional floor plan according to claim 9, generating the three-dimensional floor plan of the target floor plan according to the wall thickness set for the target floor plan, the wall centerline and the wall data, comprising: A three-dimensional floor plan of the target apartment is generated according to the wall thickness set for the target apartment, the wall centerline, the wall data, and the updated key structural component data.
11. A device for generating a three-dimensional floor plan, comprising: A parsing module, used to determine the model data to be processed, and parse the model data to generate wall data carrying the contour of the bottom surface of the wall; wherein the model data is the apartment type information obtained by scanning the target apartment type; An identification module, used to search for the bottom surface contour of the wall based on the wall data, and identify the wall type to which the wall belongs; wherein different wall types correspond to different wall centerline determination rules; A determination module, used to determine the wall centerline of the wall according to the identified wall type and the wall centerline determination rule corresponding to the wall type; A generation module is used to generate a three-dimensional floor plan of the target apartment type according to the wall thickness, the wall centerline and wall data set for the target apartment type.
12. An electronic device comprising: processor; as well as A memory arranged to store computer executable instructions, which, when executed, cause the processor to execute the method for generating a three-dimensional floor plan as described in any one of claims 1-10.
13. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, enables the electronic device to execute the method for generating a three-dimensional floor plan as described in any one of claims 1 to 10.
Citation Information
Cited By
Building structure external thermal insulation design method, device and equipment and storage medium
CN120524579A
Automatic generation method and device for ventilation system of small power distribution room and medium
CN121118176A