House type graphic generation method, house type graphic generation device, medium and equipment
By determining the door and wall types in the three-dimensional building model and generating two-dimensional door graphics, the automated generation of three-dimensional to two-dimensional house patterns is realized, which solves the problems of low efficiency and insufficient accuracy in the existing technology, and reduces labor costs. cost and improves the readability of graphics.
Patent Information
- Application Number
- CN202111614433.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-12-27
AI Technical Summary
The existing technology is inefficient when generating house layout graphics and requires manual drawing and adjustment of elements, resulting in high costs and insufficient accuracy.
By judging the door and wall types in the three-dimensional building model, the door type is determined, and a two-dimensional door graphic is generated based on this, thereby realizing the automated generation process from three-dimensional to two-dimensional house graphics.
It improves the efficiency of house layout graphic generation, reduces labor costs, and enhances the accuracy and readability of graphics.
Smart Images

Figure CN114297758B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for generating a floor plan graphic, a floor plan graphic generating device, a computer-readable medium, and an electronic device. Background Art
[0002] A floor plan is a floor plan of a house, that is, a diagram that describes the use function, corresponding position, and size of each independent space. Floor plans can usually intuitively show the direction and layout of the house. Generally speaking, floor plans contain elements for representing doors. In order to achieve higher accuracy, it is usually necessary to draw elements manually or adjust the size and position of elements manually to obtain a more accurate floor plan. However, this method has the problem of low efficiency.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a method for generating a floor plan diagram, a floor plan diagram generating device, a computer-readable medium and an electronic device. By determining the type of the wall containing the door, the type of the door can be determined, and then the corresponding two-dimensional door graphic can be determined according to the type of the door. Then, a two-dimensional floor plan diagram can be generated based on the two-dimensional door graphic, thereby realizing an automated generation process from a three-dimensional building model to a two-dimensional floor plan diagram. The generation efficiency of the floor plan diagram can be improved while ensuring the accuracy of the floor plan diagram, thereby reducing labor costs.
[0005] According to a first aspect of an embodiment of the present application, a method for generating a floor plan diagram is provided, comprising:
[0006] Obtaining a target three-dimensional apartment graphic from a three-dimensional building model to be processed;
[0007] Determine the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic;
[0008] Determine the two-dimensional door graphics of each door according to the type of each door;
[0009] A target two-dimensional floor plan graphic including each two-dimensional door graphic is generated according to the target three-dimensional floor plan graphic.
[0010] In an exemplary embodiment of the present application, obtaining a target three-dimensional apartment graphic from a three-dimensional building model to be processed includes:
[0011] Obtain the 3D building model to be processed from the preset file;
[0012] Obtaining a three-dimensional layer type map of each layer in a three-dimensional building model based on a specific viewing angle;
[0013] The three-dimensional floor plan of each household on each floor is obtained according to the three-dimensional floor plan of each floor; wherein the target three-dimensional floor plan is any one of the three-dimensional floor plan of each household on each floor.
[0014] In an exemplary embodiment of the present application, obtaining a target three-dimensional apartment graphic from a three-dimensional building model to be processed includes:
[0015] Obtain the 3D building model to be processed from the preset file;
[0016] When a user setting operation is detected, obtaining setting information corresponding to the user setting operation;
[0017] Acquire a three-dimensional layer type diagram of a specific layer in a three-dimensional building model at a specific viewing angle according to the setting information;
[0018] A target three-dimensional floor plan that meets the setting information is obtained according to the three-dimensional floor plan of a specific floor.
[0019] In an exemplary embodiment of the present application, determining the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic includes:
[0020] Identify each door in the target three-dimensional apartment graphic according to the preset three-dimensional door model, and determine the type of the wall containing each door; wherein the type at least includes an inner wall, an outer wall and a partition wall;
[0021] If the type is an interior wall, the type of the door corresponding to the interior wall is determined to be an indoor door;
[0022] If the type is an exterior wall, the type of the door corresponding to the exterior wall is determined to be an entrance door;
[0023] If the type is a partition wall, the type of the door corresponding to the partition wall will be determined as an entrance door.
[0024] In an exemplary embodiment of the present application, the method further includes:
[0025] If it is detected that there is a specific door among the doors that is not included in any wall, the specific door is discarded.
[0026] In an exemplary embodiment of the present application, generating a target two-dimensional floor plan graphic including two-dimensional door graphics according to the target three-dimensional floor plan graphic includes:
[0027] Generate a two-dimensional main frame diagram based on the target three-dimensional apartment diagram;
[0028] Each two-dimensional door graphic is merged with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic.
[0029] In an exemplary embodiment of the present application, each two-dimensional door graphic is merged with a two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic, including:
[0030] Adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include a drawing ratio for representing the door and the wall;
[0031] The adjusted two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
[0032] In an exemplary embodiment of the present application, after fusing each two-dimensional door graphic with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic, the method further includes:
[0033] Determine the target gate belonging to the target type according to the type of each gate;
[0034] The two-dimensional door graphic corresponding to the target door in the target two-dimensional apartment graphic is hidden.
[0035] In an exemplary embodiment of the present application, determining a two-dimensional door graphic of each door according to the type of each door includes:
[0036] Determine the shape to be drawn corresponding to each door according to the type of each door;
[0037] The two-dimensional door graphics of each door that meet the shape to be drawn are determined according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the preset width.
[0038] In an exemplary embodiment of the present application, after generating a target two-dimensional floor plan graphic including two-dimensional door graphics according to the target three-dimensional floor plan graphic, the method further includes:
[0039] Generate description information corresponding to the target two-dimensional apartment graphic;
[0040] Obtain a two-dimensional layer type map corresponding to a three-dimensional layer type map containing a target three-dimensional floor plan graphic;
[0041] Generate the attached drawings to be output according to the target two-dimensional floor plan, description information and two-dimensional layer type diagram and output the attached drawings to be output.
[0042] According to a second aspect of the embodiment of the present application, a device for generating a floor plan diagram is provided, comprising:
[0043] A three-dimensional apartment type graphics acquisition unit, used to acquire a target three-dimensional apartment type graphics from a three-dimensional building model to be processed;
[0044] A type determination unit, used to determine the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic;
[0045] A graphic determination unit, used to determine a two-dimensional door graphic of each door according to the type of each door;
[0046] The two-dimensional house type graphic generating unit is used to generate a target two-dimensional house type graphic including each two-dimensional door graphic according to the target three-dimensional house type graphic.
[0047] In an exemplary embodiment of the present application, the three-dimensional apartment type graphics acquisition unit acquires a target three-dimensional apartment type graphics from a three-dimensional building model to be processed, including:
[0048] Obtain the 3D building model to be processed from the preset file;
[0049] Obtaining a three-dimensional layer type map of each layer in a three-dimensional building model based on a specific viewing angle;
[0050] The three-dimensional floor plan of each household on each floor is obtained according to the three-dimensional floor plan of each floor; wherein the target three-dimensional floor plan is any one of the three-dimensional floor plan of each household on each floor.
[0051] In an exemplary embodiment of the present application, the three-dimensional apartment type graphics acquisition unit acquires a target three-dimensional apartment type graphics from a three-dimensional building model to be processed, including:
[0052] Obtain the 3D building model to be processed from the preset file;
[0053] When a user setting operation is detected, obtaining setting information corresponding to the user setting operation;
[0054] Acquire a three-dimensional layer type diagram of a specific layer in a three-dimensional building model at a specific viewing angle according to the setting information;
[0055] A target three-dimensional floor plan that meets the setting information is obtained according to the three-dimensional floor plan of a specific floor.
[0056] In an exemplary embodiment of the present application, the type determination unit determines the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic, including:
[0057] Identify each door in the target three-dimensional apartment graphic according to the preset three-dimensional door model, and determine the type of the wall containing each door; wherein the type at least includes an inner wall, an outer wall and a partition wall;
[0058] If the type is an interior wall, the type of the door corresponding to the interior wall is determined to be an indoor door;
[0059] If the type is an exterior wall, the type of the door corresponding to the exterior wall is determined to be an entrance door;
[0060] If the type is a partition wall, the type of the door corresponding to the partition wall will be determined as an entrance door.
[0061] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0062] The element discarding unit is used for discarding the specific door when it is detected that there is a specific door among the doors that is not contained in any wall.
[0063] In an exemplary embodiment of the present application, the two-dimensional floor plan graphic generating unit generates a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic, including:
[0064] Generate a two-dimensional main frame diagram based on the target three-dimensional apartment diagram;
[0065] Each two-dimensional door graphic is merged with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic.
[0066] In an exemplary embodiment of the present application, the two-dimensional floor plan graphic generation unit merges each two-dimensional door graphic with the two-dimensional main frame graphic to obtain a target two-dimensional floor plan graphic including the two-dimensional door graphic, including:
[0067] Adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include a drawing ratio for representing the door and the wall;
[0068] The adjusted two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
[0069] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0070] The element hiding unit is used to fuse each two-dimensional door graphic with the two-dimensional main frame graphic in the two-dimensional apartment graphic generation unit to obtain a target two-dimensional apartment graphic containing the two-dimensional door graphic, and then determine the target door belonging to the target type according to the type of each door; and hide the two-dimensional door graphic corresponding to the target door in the target two-dimensional apartment graphic.
[0071] In an exemplary embodiment of the present application, the graphic determination unit determines the two-dimensional door graphic of each door according to the type of each door, including:
[0072] Determine the shape to be drawn corresponding to each door according to the type of each door;
[0073] The two-dimensional door graphics of each door that meet the shape to be drawn are determined according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the preset width.
[0074] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0075] The illustration generation unit is used to generate description information corresponding to the target two-dimensional house type graphic after the two-dimensional house type graphic generation unit generates a target two-dimensional house type graphic including each two-dimensional door graphic according to the target three-dimensional house type graphic; obtain a two-dimensional layer type diagram corresponding to the three-dimensional layer type diagram including the target three-dimensional house type graphic; generate the drawings to be output according to the target two-dimensional house type graphic, the description information and the two-dimensional layer type diagram, and output the drawings to be output.
[0076] According to a third aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method for generating a house type graphic as described in the first aspect of the above embodiment is implemented.
[0077] According to the fourth aspect of the embodiments of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, which, when the one or more programs are executed by one or more processors, enables the one or more processors to implement the housing type graphics generation method as described in the first aspect of the above embodiments.
[0078] According to a fifth aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0079] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0080] In the technical solutions provided in some embodiments of the present application, a target three-dimensional apartment type graphic can be obtained from a three-dimensional building model to be processed; the type of each door in the target three-dimensional apartment type graphic can be determined according to the type of the wall containing the door in the target three-dimensional apartment type graphic; the two-dimensional door graphic of each door can be determined according to the type of each door; and the target two-dimensional apartment type graphic containing each two-dimensional door graphic can be generated according to the target three-dimensional apartment type graphic. In the implementation of the embodiment of the present application, the type of the door can be determined by determining the type of the wall containing the door, and then the corresponding two-dimensional door graphic can be determined according to the type of the door, and then the two-dimensional apartment type graphic can be generated based on the two-dimensional door graphic, so as to realize the automatic generation process from the three-dimensional building model to the two-dimensional apartment type graphic, and the generation efficiency of the apartment type graphic can be improved on the basis of ensuring the accuracy of the apartment type graphic, and the labor cost can be reduced. In addition, since the two-dimensional door graphic of each door can be determined according to the type of each door, the corresponding relationship between the type of the door and the two-dimensional door graphic can be strengthened, so that the user can intuitively understand the type of the door based on the two-dimensional door graphic of the two-dimensional apartment type graphic, and the readability of the two-dimensional apartment type graphic is improved.
[0081] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0083] Figure 1 A schematic diagram schematically shows an exemplary system architecture of a method for generating a floor plan diagram and a device for generating a floor plan diagram to which the embodiments of the present application can be applied;
[0084] Figure 2 A flowchart of a method for generating a floor plan graphic according to an embodiment of the present application is schematically shown;
[0085] Figure 3 A schematic diagram of a three-dimensional building model according to an embodiment of the present application is schematically shown;
[0086] Figure 4 A schematic diagram of a condition selection interface according to an embodiment of the present application is schematically shown;
[0087] Figure 5 Schematically shows a three-dimensional layer diagram in one embodiment of the present application;
[0088] Figure 6 A schematic diagram of a two-dimensional door graphic in one embodiment of the present application is schematically shown;
[0089] Figure 7 A schematic diagram of a two-dimensional main frame according to an embodiment of the present application is shown;
[0090] Figure 8 A schematic diagram of a target three-dimensional apartment graphic according to an embodiment of the present application is shown schematically;
[0091] Fig. 9 Schematically shows a two-dimensional layer diagram in one embodiment of the present application;
[0092] Fig.10 A schematic diagram of a drawing to be output according to an embodiment of the present application is schematically shown;
[0093] Fig.11 A flowchart of a method for generating a floor plan graphic according to an embodiment of the present application is schematically shown;
[0094] Fig.12 The structure block diagram of a device for generating a house type graphic according to an embodiment of the present application is schematically shown;
[0095] Fig.13 The structure diagram of a computer system suitable for implementing an electronic device of an embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0096] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present application will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.
[0097] In addition, the accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0098] Figure 1 A schematic diagram of the system architecture of an exemplary application environment of a method for generating a floor plan graphic and a device for generating a floor plan graphic in accordance with an embodiment of the present application is shown.
[0099] like Figure 1 As shown, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc. The terminal devices 101, 102, 103 may be various electronic devices with display screens, including but not limited to desktop computers, portable computers, smart phones, tablet computers, etc. It should be understood that Figure 1 The number of terminal devices, networks and servers in the example are only illustrative. Any number of terminal devices, networks and servers may be provided as required. For example, server 105 may be a server cluster composed of multiple servers. For example, server 105 may be used to execute: obtaining a target three-dimensional apartment type graphic from a three-dimensional building model to be processed; determining the type of each door in the target three-dimensional apartment type graphic according to the type of the wall containing the door in the target three-dimensional apartment type graphic; determining a two-dimensional door graphic of each door according to the type of each door; and generating a target two-dimensional apartment type graphic containing each two-dimensional door graphic according to the target three-dimensional apartment type graphic.
[0100] This example embodiment provides a method for generating a floor plan graphic. Figure 2 As shown, the method for generating a floor plan diagram may include the following steps S210 to S240, specifically:
[0101] Step S210: Acquire a target three-dimensional apartment building graphic from the three-dimensional building model to be processed.
[0102] Step S220: Determine the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic.
[0103] Step S230: Determine the two-dimensional door graphics of each door according to the type of each door.
[0104] Step S240: generating a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic.
[0105] It can be seen that implementation Figure 2 The method shown can determine the type of door by judging the type of the wall containing the door, and then determine the corresponding two-dimensional door graphic according to the type of the door, and then generate a two-dimensional apartment graphic based on the two-dimensional door graphic, thereby realizing the automatic generation process from the three-dimensional building model to the two-dimensional apartment graphic, and can improve the efficiency of apartment graphic generation on the basis of ensuring the accuracy of the apartment graphic, and reduce labor costs. In addition, since the two-dimensional door graphic of each door can be determined according to the type of each door, the correspondence between the type of the door and the two-dimensional door graphic can be strengthened, and then it can be convenient for users to intuitively understand the type of the door based on the two-dimensional door graphic of the two-dimensional apartment graphic, thereby improving the readability of the two-dimensional apartment graphic.
[0106] The above steps are explained in detail below.
[0107] In step S210, a target three-dimensional apartment building graphic is obtained from the three-dimensional building model to be processed.
[0108] Specifically, the three-dimensional building model can be a building model exported from the building design software. Figure 3 As shown, the number of three-dimensional building models can be one or more. If there are multiple three-dimensional building models, any three-dimensional building model in the multiple three-dimensional building models is used as the three-dimensional building model to be processed in step S210. In addition, the target three-dimensional apartment type graphic can be the apartment type graphic of any household in the three-dimensional building model. The three-dimensional building model can include one or more layers, and each layer includes one or more households, which is not limited in the embodiment of the present application. The target three-dimensional apartment type graphic can be a household in the three-dimensional building model specified by the user operation.
[0109] As an implementation method of step S210, obtaining a target three-dimensional apartment type graphic from the three-dimensional building model to be processed includes: obtaining the three-dimensional building model to be processed from a preset file; obtaining a three-dimensional layer type diagram of each layer in the three-dimensional building model based on a specific perspective; obtaining a three-dimensional apartment type graphic of each household on each floor according to the three-dimensional layer type diagram of each layer; wherein the target three-dimensional apartment type graphic is any one of the three-dimensional apartment type graphics of each household on each floor.
[0110] Specifically, the preset file is used to save the 3D building model to be processed, and one or more 3D building models may be stored in the preset file, which is not limited in the embodiment of the present application. Based on this, obtaining the 3D building model to be processed from the preset file includes: according to the 3D building model identifier (such as ID, string, text information, etc.) defined by the preset operation, determining the 3D building model corresponding to the 3D building model identifier from the preset file as the 3D building model to be processed.
[0111] like Figure 4 As shown, a conditional selection interface of the target two-dimensional floor plan graphics to be generated can be displayed to the user, which can include the generation of target two-dimensional floor plan graphics for floor plans, shops, and storage rooms. For the generation of target two-dimensional floor plan graphics for floor plans, the property units (such as F01, F02, F03, etc.) for which contract drawings need to be generated, the generation method (such as generating drawing views by floor plan, generating drawing views by household, generating drawing views by layer, one drawing per layer when cross-layer property units appear, merging multiple layers into one drawing when cross-layer property units appear, etc.), household view template settings (such as household details, household case reference drawings, drawing size, etc.) and the contract drawings to be generated (such as 1-101-contract drawings, 1-102-contract drawings, 12101-contract drawings, 2-102-contract drawings, etc.) can be provided. It should be noted that the above-mentioned contract drawings include target two-dimensional floor plan graphics, Figure 4 The condition selection interface shown is only an example. In actual application, one or more of the above selection conditions may be included, and other Figure 4 One or more selection conditions not shown in the embodiment of the present application are not limited.
[0112] Furthermore, a 3D layer type map of each layer in a 3D building model can be obtained based on a specific viewing angle, including: determining a specific viewing angle according to a user operation, or determining a specific viewing angle according to preset viewing angle setting information; obtaining a 3D layer type map of each layer in a 3D building model based on a specific viewing angle; wherein the specific viewing angle can be any viewing angle specified by a user operation (e.g., a top-down viewing angle), and the 3D layer type maps of each layer can be the same or different, which is not limited in the embodiments of the present application. In addition, the 3D layer type map can be specifically displayed as follows Figure 5 Layer diagram shown.
[0113] It can be seen that the implementation of this optional implementation method can realize the automatic generation of two-dimensional floor plan graphics for any household in the three-dimensional building model without the need for manual drawing of graphic elements, which can improve the generation efficiency of two-dimensional floor plan graphics and reduce labor costs.
[0114] As another implementation of step S210, obtaining a target three-dimensional apartment type graphic from a three-dimensional building model to be processed includes: obtaining the three-dimensional building model to be processed from a preset file; when a user setting operation is detected, obtaining setting information corresponding to the user setting operation; obtaining a three-dimensional layer type diagram of a specific layer in the three-dimensional building model at a specific viewing angle according to the setting information; and obtaining a target three-dimensional apartment type graphic that conforms to the setting information according to the three-dimensional layer type diagram of the specific layer.
[0115] Specifically, the setting information may include: Figure 4 At least one of the selection conditions shown. In addition, the setting information may also be other information such as input text content, which is not limited in the embodiments of the present application.
[0116] It can be seen that by implementing this optional implementation, the target three-dimensional apartment graphics can be determined through the setting information corresponding to the user setting operation, thereby improving the personalization of the target three-dimensional apartment graphics.
[0117] In step S220, the type of each door in the target three-dimensional apartment graphic is determined according to the type of the wall containing the door in the target three-dimensional apartment graphic.
[0118] Specifically, the target three-dimensional apartment graphics may include one or more doors, and the number of each door may be one or more. The doors in the target three-dimensional apartment graphics may be displayed as three-dimensional primitives, and different types of doors may correspond to different three-dimensional primitives, and the same type of doors may correspond to the same three-dimensional primitives. In addition, the types of walls in the target three-dimensional apartment graphics may also be one or more, and the number of each type of wall may be one or more. The walls in the target three-dimensional apartment graphics may be displayed as three-dimensional primitives, and different types of walls may correspond to different three-dimensional primitives, and the same type of walls may correspond to the same three-dimensional primitives. It should be noted that the three-dimensional primitives of doors and walls are different. In addition to the primitives of doors and walls, the target three-dimensional apartment graphics may also include other primitives, such as the primitives of stairs, the primitives of windows, etc., which are not limited in the embodiments of the present application.
[0119] As another implementation method of step S220, the type of each door in the target three-dimensional house type is determined according to the type of the wall containing the door in the target three-dimensional house type, including: identifying each door in the target three-dimensional house type according to a preset three-dimensional door model, and determining the type of the wall containing each door; wherein the types include at least interior walls, exterior walls and partition walls; if the type is interior walls, the type of the door corresponding to the interior walls is determined as an indoor door; if the type is exterior walls, the type of the door corresponding to the exterior walls is determined as an entrance door; if the type is partition walls, the type of the door corresponding to the partition walls is determined as an entrance door.
[0120] Specifically, the interior wall can be understood as the wall used to separate the indoor space, the exterior wall can be understood as the wall used to separate the outdoor space and the indoor space, and the partition wall can be understood as the wall used to separate two types of households.
[0121] It can be seen that by implementing this optional implementation, the doors on the inner walls, outer walls and partition walls can be judged separately, which is beneficial to improving the generation accuracy of the target two-dimensional apartment graphics.
[0122] As an optional implementation, the method further includes: if it is detected that there is a specific door among the doors that is not included in any wall, the specific door is discarded.
[0123] Specifically, the number of the specific gates may be one or more, which is not limited in the embodiment of the present application, and the specific gate may be an erroneously detected primitive.
[0124] It can be seen that by implementing this optional implementation, the accuracy of generating the target two-dimensional apartment graphics can be improved by discarding the specific doors that are detected incorrectly.
[0125] In step S230, a two-dimensional door graphic of each door is determined according to the type of each door.
[0126] Specifically, the two-dimensional door graphics of a door (such as a fan shape) can be interpreted as a special-shaped viewport, which is used to represent the corresponding type of door at a specified position. Different types of doors can correspond to the same type of two-dimensional door graphics or different types of two-dimensional door graphics.
[0127] As another implementation of step S230, the two-dimensional door graphics of each door are determined according to the type of each door, including: determining the shape to be drawn corresponding to each door according to the type of each door; determining the two-dimensional door graphics of each door that satisfies the shape to be drawn according to the drawing position of each door corresponding to the two-dimensional main frame diagram and a preset width.
[0128] Specifically, the shape to be drawn may be a pre-stored shape, a shape obtained according to a user selection operation, or a shape obtained according to a user drawing operation. Figure 6 , Figure 6 The schematic diagram of the two-dimensional door graphic in one embodiment of the present application is shown schematically. The two-dimensional main frame diagram can be a two-dimensional house type diagram including a two-dimensional wall diagram. For details, please refer to Figure 7 , Figure 7 A schematic diagram of a two-dimensional main frame according to an embodiment of the present application is shown. Figure 7In the figure, the outer frame of the house type graphic can be understood as the above-mentioned two-dimensional main frame. The drawing position of each door corresponding to the two-dimensional main frame diagram can be the position where the shape to be drawn of each door is to be inserted, and the preset width can be the width of the shape to be drawn, or can be used to represent the width of the door. Different doors correspond to different preset widths, or different types of doors correspond to different preset widths.
[0129] It can be seen that by implementing this optional implementation method, the shape to be drawn corresponding to each door can be determined according to the type of each door, and then the two-dimensional door graphics of each door that satisfy the shape to be drawn can be determined according to the drawing position and the preset width. In this way, a more accurate two-dimensional door graphic can be determined, thereby improving the accuracy of the target two-dimensional apartment graphic.
[0130] In step S240, a target two-dimensional floor plan graphic including each two-dimensional door graphic is generated according to the target three-dimensional floor plan graphic. Specifically, the target two-dimensional floor plan graphic including each two-dimensional door graphic can be as follows: Figure 8 As shown, Figure 8 The schematic diagram of the target three-dimensional floor plan diagram in one embodiment of the present application is schematically shown. In addition, after step S240, the above method may further include: determining at least one target two-dimensional floor plan diagram belonging to the same layer, generating a two-dimensional floor plan diagram according to the at least one target two-dimensional floor plan diagram, and specifically, the two-dimensional floor plan diagram may be as follows: Fig. 9 shown.
[0131] As another implementation of step S240, a target two-dimensional floor plan including two-dimensional door graphics is generated based on the target three-dimensional floor plan, including: generating a two-dimensional main frame diagram based on the target three-dimensional floor plan; and fusing each two-dimensional door graphics with the two-dimensional main frame diagram to obtain a target two-dimensional floor plan including two-dimensional door graphics.
[0132] Specifically, each two-dimensional door graphic is merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic containing the two-dimensional door graphic, including: each two-dimensional door graphic is embedded in the two-dimensional main frame diagram according to its corresponding preset position to obtain a target two-dimensional apartment graphic containing the two-dimensional door graphic.
[0133] It can be seen that by implementing this optional implementation, the two-dimensional main frame diagram can be generated to achieve the fusion of each two-dimensional door graphic and the two-dimensional main frame diagram, so as to determine a more accurate target two-dimensional apartment graphic.
[0134] As a further optional implementation, each two-dimensional door graphic is merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics, including: adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include a drawing ratio for characterizing the door and the wall; and merging each adjusted two-dimensional door graphic with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
[0135] Specifically, the size of each two-dimensional door graphic is adjusted according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram, including: determining the insertion position of the two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram, determining the center point position and width of the two-dimensional door graphic in the wall according to the drawing parameters corresponding to the two-dimensional main frame diagram (such as, offset 1 / 2w), and adjusting the size of each two-dimensional door graphic according to the center point position and width. For example, the center point position of the two-dimensional door graphic in the wall can be determined, and a preset width w is extended to both sides parallel to the wall according to the offset, and the position of each vertex of the two-dimensional door graphic is determined based on the shape of the two-dimensional door graphic, the center point position, and the preset width w; wherein the drawing position of each door corresponding to the two-dimensional main frame diagram can be expressed as a coordinate.
[0136] It can be seen that by implementing this optional implementation method, the size of the two-dimensional door graphic can be adjusted by drawing parameters so that the two-dimensional door graphic integrated with the two-dimensional main frame graphic has higher accuracy, thereby enabling the target two-dimensional apartment graphic to proportionally restore the target three-dimensional apartment graphic.
[0137] As a further optional implementation, after merging each two-dimensional door graphic with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic, the method further includes: determining a target door of the target type according to the type of each door; and hiding the two-dimensional door graphic corresponding to the target door in the target two-dimensional apartment graphic.
[0138] Specifically, the target type may include one or more types, such as indoor doors.
[0139] It can be seen that by implementing this optional implementation, the simplicity of the target two-dimensional apartment graphic can be improved by hiding the two-dimensional door graphic of the target door.
[0140] As an optional embodiment, after generating a target two-dimensional floor plan including two-dimensional door graphics based on the target three-dimensional floor plan, the method further includes: generating descriptive information corresponding to the target two-dimensional floor plan; obtaining a two-dimensional layer type diagram corresponding to the three-dimensional layer type diagram including the target three-dimensional floor plan; generating an output drawing based on the target two-dimensional floor plan, the descriptive information and the two-dimensional layer type diagram and outputting the output drawing.
[0141] Specifically, see Fig.10 , Fig.10 Schematically shows a schematic diagram of a figure to be output in an embodiment of the present application. Fig.10 As shown, the attached drawing to be output may include a target two-dimensional apartment type graphic 1010, a two-dimensional layer type diagram 1020, and description information 1030; wherein the description information 1030 may include a legend display area 1031 and a description information display area 1032. The legend display area 1031 is used to display at least one legend, such as a load-bearing wall, a single air conditioner position, a double air conditioner position, a glass railing, a blind, a flue, a railing, etc., which is not limited in the embodiment of the present application. The description information display area 1032 is used to display other explanatory information, such as the size, quantity and opening method of the doors and windows shown in this figure are for illustration only; this figure does not show indoor doors, which are installed by the owner after moving in; the wall position and type shown in this figure are for reference only; the position and size of the position, flue, and pipe well in this figure are for illustration only, and the vertical pipe is not reflected; the shaded part in the household position diagram in this figure only represents the relative position of the apartment type; the diagram is for reference only, and the specific information shall be subject to the delivery of the house.
[0142] It can be seen that implementing this optional implementation manner can improve the content richness of the drawings to be output.
[0143] See also Fig.11 , Fig.11 The flowchart of the method for generating a floor plan diagram according to an embodiment of the present application is schematically shown. Fig.11 As shown, the method for generating apartment layout graphics may include: steps S1110 to S1190.
[0144] Step S1110: obtaining a three-dimensional building model to be processed from a preset file; and obtaining a three-dimensional layer type map of each layer in the three-dimensional building model based on a specific viewing angle.
[0145] Step S1120: When a user setting operation is detected, the setting information corresponding to the user setting operation is obtained, and a three-dimensional layer type diagram of a specific layer in the three-dimensional building model at a specific viewing angle is obtained according to the setting information, and then a target three-dimensional apartment type graphic that meets the setting information can be obtained according to the three-dimensional layer type diagram of the specific layer.
[0146] Step S1130: Identify each door in the target three-dimensional apartment figure according to the preset three-dimensional door model, and determine the type of the wall containing each door. If it is detected that there is a specific door among the doors that is not contained in any wall, the specific door will be discarded; wherein the types include at least interior walls, exterior walls and partition walls.
[0147] Step S1140: If the type is an interior wall, the type of the door corresponding to the interior wall is determined as an indoor door; if the type is an exterior wall, the type of the door corresponding to the exterior wall is determined as an entrance door; if the type is a partition wall, the type of the door corresponding to the partition wall is determined as an entrance door.
[0148] Step S1150: Determine the two-dimensional door graphics of each door according to the type of each door, and generate a two-dimensional main frame diagram according to the target three-dimensional apartment graphics.
[0149] Step S1160: adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include the drawing ratio used to characterize the relationship between the door and the wall.
[0150] Step S1170: Merge the adjusted two-dimensional door graphics with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
[0151] Step S1180: determining a target door of a target type according to the type of each door; and hiding the two-dimensional door graphic corresponding to the target door in the target two-dimensional apartment graphic.
[0152] Step S1190: Generate descriptive information corresponding to the target two-dimensional floor plan, and obtain a two-dimensional layer type diagram corresponding to the three-dimensional layer type diagram containing the target three-dimensional floor plan, and then generate the output drawing according to the target two-dimensional floor plan, the descriptive information and the two-dimensional layer type diagram and output the output drawing.
[0153] It should be noted that steps S1110 to S1190 are Figure 2 The steps and their embodiments shown correspond to each other. For the specific implementation of steps S1110 to S1190, please refer to Figure 2 The steps and embodiments shown are not described in detail here.
[0154] It can be seen that implementation Fig.11The method shown can determine the type of door by judging the type of the wall containing the door, and then determine the corresponding two-dimensional door graphic according to the type of the door, and then generate a two-dimensional apartment graphic based on the two-dimensional door graphic, thereby realizing the automatic generation process from the three-dimensional building model to the two-dimensional apartment graphic, and can improve the efficiency of apartment graphic generation on the basis of ensuring the accuracy of the apartment graphic, and reduce labor costs. In addition, since the two-dimensional door graphic of each door can be determined according to the type of each door, the correspondence between the type of the door and the two-dimensional door graphic can be strengthened, and then it can be convenient for users to intuitively understand the type of the door based on the two-dimensional door graphic of the two-dimensional apartment graphic, thereby improving the readability of the two-dimensional apartment graphic.
[0155] See also Fig.12 , Fig.12 The structure block diagram of the device for generating a house type graphic according to an embodiment of the present application is schematically shown. Fig.12 As shown, the apartment pattern generating device 1200 may include:
[0156] The three-dimensional apartment type graphics acquisition unit 1201 is used to acquire a target three-dimensional apartment type graphics from the three-dimensional building model to be processed;
[0157] A type determination unit 1202 is used to determine the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic;
[0158] A graphic determination unit 1203 is used to determine a two-dimensional door graphic of each door according to the type of each door;
[0159] The two-dimensional floor plan graphic generating unit 1204 is used to generate a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic.
[0160] It can be seen that implementation Fig.12 The device shown can determine the type of door by judging the type of the wall containing the door, and then determine the corresponding two-dimensional door graphic according to the type of the door, and then generate a two-dimensional apartment graphic based on the two-dimensional door graphic, thereby realizing the automatic generation process from the three-dimensional building model to the two-dimensional apartment graphic, and can improve the efficiency of apartment graphic generation on the basis of ensuring the accuracy of the apartment graphic, and reduce labor costs. In addition, since the two-dimensional door graphic of each door can be determined according to the type of each door, the correspondence between the type of the door and the two-dimensional door graphic can be strengthened, and then it can be convenient for users to intuitively understand the type of the door based on the two-dimensional door graphic of the two-dimensional apartment graphic, thereby improving the readability of the two-dimensional apartment graphic.
[0161] In an exemplary embodiment of the present application, the three-dimensional apartment type graphics acquisition unit 1201 acquires a target three-dimensional apartment type graphics from a three-dimensional building model to be processed, including:
[0162] Obtain the 3D building model to be processed from the preset file;
[0163] Obtaining a three-dimensional layer type map of each layer in a three-dimensional building model based on a specific viewing angle;
[0164] The three-dimensional floor plan of each household on each floor is obtained according to the three-dimensional floor plan of each floor; wherein the target three-dimensional floor plan is any one of the three-dimensional floor plan of each household on each floor.
[0165] It can be seen that the implementation of this optional implementation method can realize the automatic generation of two-dimensional floor plan graphics for any household in the three-dimensional building model without the need for manual drawing of graphic elements, which can improve the generation efficiency of two-dimensional floor plan graphics and reduce labor costs.
[0166] In an exemplary embodiment of the present application, the three-dimensional apartment type graphics acquisition unit 1201 acquires a target three-dimensional apartment type graphics from a three-dimensional building model to be processed, including:
[0167] Obtain the 3D building model to be processed from the preset file;
[0168] When a user setting operation is detected, obtaining setting information corresponding to the user setting operation;
[0169] Acquire a three-dimensional layer type diagram of a specific layer in a three-dimensional building model at a specific viewing angle according to the setting information;
[0170] A target three-dimensional floor plan that meets the setting information is obtained according to the three-dimensional floor plan of a specific floor.
[0171] It can be seen that by implementing this optional implementation, the target three-dimensional apartment graphics can be determined through the setting information corresponding to the user setting operation, thereby improving the personalization of the target three-dimensional apartment graphics.
[0172] In an exemplary embodiment of the present application, the type determination unit 1202 determines the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic, including:
[0173] Identify each door in the target three-dimensional apartment graphic according to the preset three-dimensional door model, and determine the type of the wall containing each door; wherein the type at least includes an inner wall, an outer wall and a partition wall;
[0174] If the type is an interior wall, the type of the door corresponding to the interior wall is determined to be an indoor door;
[0175] If the type is an exterior wall, the type of the door corresponding to the exterior wall is determined to be an entrance door;
[0176] If the type is a partition wall, the type of the door corresponding to the partition wall will be determined as an entrance door.
[0177] It can be seen that by implementing this optional implementation, the doors on the inner walls, outer walls and partition walls can be judged separately, which is beneficial to improving the generation accuracy of the target two-dimensional apartment graphics.
[0178] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0179] The element discarding unit (not shown) is used to discard the specific door when it is detected that there is a specific door among the doors that is not included in any wall.
[0180] It can be seen that by implementing this optional implementation, the accuracy of generating the target two-dimensional apartment graphics can be improved by discarding the specific doors that are detected incorrectly.
[0181] In an exemplary embodiment of the present application, the two-dimensional floor plan graphic generating unit 1204 generates a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic, including:
[0182] Generate a two-dimensional main frame diagram based on the target three-dimensional apartment diagram;
[0183] Each two-dimensional door graphic is merged with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphic.
[0184] It can be seen that by implementing this optional implementation, the two-dimensional main frame diagram can be generated to achieve the fusion of each two-dimensional door graphic and the two-dimensional main frame diagram, so as to determine a more accurate target two-dimensional apartment graphic.
[0185] In an exemplary embodiment of the present application, the two-dimensional floor plan graphic generation unit 1204 merges each two-dimensional door graphic with the two-dimensional main frame graphic to obtain a target two-dimensional floor plan graphic including the two-dimensional door graphic, including:
[0186] Adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include a drawing ratio for representing the door and the wall;
[0187] The adjusted two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
[0188] It can be seen that by implementing this optional implementation method, the size of the two-dimensional door graphic can be adjusted by drawing parameters so that the two-dimensional door graphic integrated with the two-dimensional main frame graphic has higher accuracy, thereby enabling the target two-dimensional apartment graphic to proportionally restore the target three-dimensional apartment graphic.
[0189] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0190] An element hiding unit (not shown) is used to fuse each two-dimensional door graphic with the two-dimensional main frame graphic in the two-dimensional floor plan generation unit 1204 to obtain a target two-dimensional floor plan including the two-dimensional door graphic, and then determine the target door of the target type according to the type of each door; and hide the two-dimensional door graphic corresponding to the target door in the target two-dimensional floor plan.
[0191] It can be seen that by implementing this optional implementation, the simplicity of the target two-dimensional apartment graphic can be improved by hiding the two-dimensional door graphic of the target door.
[0192] In an exemplary embodiment of the present application, the graphic determining unit 1203 determines the two-dimensional door graphic of each door according to the type of each door, including:
[0193] Determine the shape to be drawn corresponding to each door according to the type of each door;
[0194] The two-dimensional door graphics of each door that meet the shape to be drawn are determined according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the preset width.
[0195] It can be seen that by implementing this optional implementation method, the shape to be drawn corresponding to each door can be determined according to the type of each door, and then the two-dimensional door graphics of each door that satisfy the shape to be drawn can be determined according to the drawing position and the preset width. In this way, a more accurate two-dimensional door graphic can be determined, thereby improving the accuracy of the target two-dimensional apartment graphic.
[0196] In an exemplary embodiment of the present application, the above-mentioned device further includes:
[0197] The illustration generation unit (not shown) is used to generate description information corresponding to the target two-dimensional floor plan graphic after the two-dimensional floor plan generation unit 1204 generates a target two-dimensional floor plan graphic including each two-dimensional door graphic based on the target three-dimensional floor plan graphic; obtain a two-dimensional layer type diagram corresponding to the three-dimensional layer type diagram including the target three-dimensional floor plan graphic; generate the drawings to be output based on the target two-dimensional floor plan graphic, the description information and the two-dimensional layer type diagram, and output the drawings to be output.
[0198] It can be seen that implementing this optional implementation manner can improve the content richness of the drawings to be output.
[0199] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0200] Since the various functional modules of the apartment layout graphic generation device in the example embodiment of the present application correspond to the steps of the example embodiment of the apartment layout graphic generation method described above, for details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the apartment layout graphic generation method described above in the present application.
[0201] See also Fig.13 , Fig.13 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Fig.13 The computer system 1300 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0202] like Fig.13 As shown, the computer system 1300 includes a central processing unit (CPU) 1301, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1302 or the program loaded from the storage part 1308 to the random access memory (RAM) 1303. In the (RAM) 1303, various programs and data required for system operation are also stored. The (CPU) 1301, the (ROM) 1302 and the (RAM) 1303 are connected to each other through a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.
[0203] The following components are connected to the (I / O) interface 1305: an input section 1306 including a keyboard, a mouse, etc.; an output section 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1308 including a hard disk, etc.; and a communication section 1309 including a network interface card such as a LAN card, a modem, etc. The communication section 1309 performs communication processing via a network such as the Internet. A drive 1310 is also connected to the (I / O) interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that a computer program read therefrom is installed into the storage section 1308 as needed.
[0204] In particular, according to an embodiment of the present application, the process described below with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1309, and / or installed from a removable medium 1311. When the computer program is executed by a central processing unit (CPU) 1301, various functions defined in the method and apparatus of the present application are executed.
[0205] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0206] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0207] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not constitute limitations on the units themselves in some cases.
[0208] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being installed in the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiment. For example, the electronic device may implement the following method. Figure 2 The various steps shown, etc.
[0209] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0210] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for generating a house type graphic, characterized in that: include: Obtaining a target three-dimensional apartment graphic from a three-dimensional building model to be processed; Determining the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic; Determining a two-dimensional door graphic of each door according to the type of each door; Generate a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic; Wherein, the method further comprises: Displaying a conditional selection interface for the target two-dimensional apartment type graphic; wherein the conditional selection interface includes the property unit, generation method, apartment view template settings, and contract drawings of the contract drawings; wherein the generation method includes generating drawing views by apartment type, generating drawing views by household, generating drawing views by layer, generating one drawing per layer when cross-layer property units appear, and merging multiple layers into one drawing when cross-layer property units appear; The step of obtaining a target three-dimensional apartment type graphic from the three-dimensional building model to be processed includes: Obtaining a three-dimensional building model to be processed from a preset file; wherein the three-dimensional building model includes at least one layer, and each layer includes at least one household; When a user setting operation is detected, obtaining setting information corresponding to the user setting operation; Acquire a three-dimensional layer type diagram of a specific layer in the three-dimensional building model at a specific viewing angle according to the setting information; Acquire a target three-dimensional apartment type graphic that conforms to the setting information according to the three-dimensional layer type diagram of the specific layer; wherein the target three-dimensional apartment type graphic is a household in the three-dimensional building model specified by a user operation; Wherein, determining the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic comprises: Identify each door in the target three-dimensional apartment graphic according to a preset three-dimensional door model, and determine the type of the wall containing each door; wherein the type includes at least an inner wall, an outer wall, and a partition wall; If the type is an interior wall, the type of the door corresponding to the interior wall is determined to be an indoor door; If the type is an exterior wall, the type of the door corresponding to the exterior wall is determined to be an entrance door; If the type is a partition wall, the type of the door corresponding to the partition wall is determined as an entrance door.
2. The method according to claim 1, characterized in that The method further comprises: If it is detected that there is a specific door among the doors that is not included in any wall, the specific door is discarded.
3. The method according to claim 1, characterized in that Generating a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic, including: Generate a two-dimensional main frame diagram according to the target three-dimensional apartment diagram; The two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
4. The method according to claim 3, characterized in that The two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics, including: Adjusting the size of each two-dimensional door graphic according to the drawing position of each door corresponding to the two-dimensional main frame diagram and the drawing parameters corresponding to the two-dimensional main frame diagram; wherein the drawing parameters at least include a drawing ratio for representing the door and the wall; The adjusted two-dimensional door graphics are merged with the two-dimensional main frame diagram to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics.
5. The method according to claim 3, characterized in that: After fusing the two-dimensional door graphics with the two-dimensional main frame graphic to obtain a target two-dimensional apartment graphic including the two-dimensional door graphics, the method further includes: Determine a target door belonging to a target type according to the types of the doors; The two-dimensional door graphic corresponding to the target door in the target two-dimensional apartment graphic is hidden.
6. The method according to claim 3, characterized in that Determining the two-dimensional door graphics of each door according to the type of each door includes: Determine the shape to be drawn corresponding to each door according to the type of each door; The two-dimensional door graphics of each door that meet the shape to be drawn are determined according to the drawing positions of each door corresponding to the two-dimensional main frame diagram and the preset width.
7. The method according to any one of claims 1 to 6, characterized in that: After generating a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic, the method further comprises: Generate description information corresponding to the target two-dimensional house type graphic; Obtaining a two-dimensional layer type diagram corresponding to a three-dimensional layer type diagram including the target three-dimensional floor plan graphic; Generate a drawing to be output according to the target two-dimensional floor plan, the description information and the two-dimensional floor plan, and output the drawing to be output.
8. A device for generating a house type graphic, characterized in that: include: A three-dimensional apartment type graphics acquisition unit, used to acquire a target three-dimensional apartment type graphics from a three-dimensional building model to be processed; A type determination unit, configured to determine the type of each door in the target three-dimensional apartment layout according to the type of the wall containing the door in the target three-dimensional apartment layout; A graphic determination unit, configured to determine a two-dimensional door graphic of each door according to the type of each door; A two-dimensional floor plan graphic generating unit, configured to generate a target two-dimensional floor plan graphic including each two-dimensional door graphic according to the target three-dimensional floor plan graphic; Wherein, the device is also used for: Displaying a conditional selection interface for the target two-dimensional apartment type graphic; wherein the conditional selection interface includes the property unit, generation method, apartment view template settings, and contract drawings of the contract drawings; wherein the generation method includes generating drawing views by apartment type, generating drawing views by household, generating drawing views by layer, generating one drawing per layer when cross-layer property units appear, and merging multiple layers into one drawing when cross-layer property units appear; The three-dimensional apartment type graphics acquisition unit acquires the target three-dimensional apartment type graphics from the three-dimensional building model to be processed, including: Obtaining a three-dimensional building model to be processed from a preset file; wherein the three-dimensional building model includes at least one layer, and each layer includes at least one household; When a user setting operation is detected, obtaining setting information corresponding to the user setting operation; Acquire a three-dimensional layer type diagram of a specific layer in the three-dimensional building model at a specific viewing angle according to the setting information; Acquire a target three-dimensional apartment type graphic that conforms to the setting information according to the three-dimensional layer type diagram of the specific layer; wherein the target three-dimensional apartment type graphic is a household in the three-dimensional building model specified by a user operation; The type determination unit determines the type of each door in the target three-dimensional apartment graphic according to the type of the wall containing the door in the target three-dimensional apartment graphic, including: Identify each door in the target three-dimensional apartment graphic according to a preset three-dimensional door model, and determine the type of the wall containing each door; wherein the type includes at least an inner wall, an outer wall, and a partition wall; If the type is an interior wall, the type of the door corresponding to the interior wall is determined to be an indoor door; If the type is an exterior wall, the type of the door corresponding to the exterior wall is determined to be an entrance door; If the type is a partition wall, the type of the door corresponding to the partition wall is determined as an entrance door.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for generating a floor plan diagram according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the apartment type graphics generation method as described in any one of claims 1 to 7.
