Household type building method, computer device and computer-readable storage medium

By obtaining and processing the drawing instructions for the apartment type in three-dimensional space, building the apartment type in real time, solving the problems of high threshold for building the apartment type and 2D/3D splitting, realizing the intuitive and efficient apartment type construction process.

CN114972635BActive Publication Date: 2025-06-27SHENZHEN YUANXIANG INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210493646.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2025-06-27
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

In the prior art, there is a problem that the construction of 3D apartments has a high threshold for building 3D apartments and the separation of 3D apartments and 2D floor plans.

Method used

Provide a method for building a house type. By obtaining the drawing instructions for the target house type in a three-dimensional space, determining the basic wall line, performing preset processing and wall structure fitting processing, generating a wall, and determining whether a closed area is formed based on the wall, generating a floor or ceiling, so as to build a house type in real time.

Benefits of technology

Real-time building of WYSIWYG is achieved, lowering the threshold for building a house, making the construction process of 3D and 2D floor plans more intuitive and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114972635B_ABST
    Figure CN114972635B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of housing type construction, and provides a housing type construction method, a computer device, and a computer-readable storage medium. The method includes: in a three-dimensional space, obtaining a first drawing instruction of a target housing type, and determining a first basic wall line according to the first drawing instruction; performing a preset process on the first basic wall line according to at least one of the intersection points and overlapping parts of the first basic wall lines to obtain a second basic wall line; performing a wall structure fitting process on the second basic wall line to generate a wall; based on a preset wall closing judgment rule, judging whether a closed area is formed between the walls; if a closed area is formed between the walls, generating a floor or a ceiling inward between the walls forming the closed area; determining the target housing type according to at least one of the walls, the floor, and the ceiling. Thus, the walls in the target housing type are in real-time correspondence with the first drawing instruction in the three-dimensional space, so as to construct the housing type in real-time with what you see is what you get, and reduce the threshold of housing type construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of house type construction, and particularly relates to a house type construction method, a computer device, and a computer-readable storage medium. Background Art

[0002] Most traditional house type constructions still remain at the 2D drawing stage. With the development of computer modeling technology, some manufacturers have launched software that generates corresponding 3D house types based on the 2D house type data completed by tracing the structures such as walls, doors, and windows in 2D drawings and through defined conversion protocols. For example, Dabeinongjia and Kujiale. However, the tracing method adopted by this type of software makes the 2D house type drawing and the 3D house type have obvious fragmentation. The tracing of the 2D house type drawing is in a separate functional area with only a 2D viewport. For example, just traced a wall, but cannot directly visually see the traced wall in this viewport, and still depends on the imagination in the human brain like when looking at a 2D house type drawing. On the other hand, the realism of the 3D house type structures generated by existing software in the market still needs to be improved. On the one hand, it is related to the underlying engine on which the rendering depends. For example, it is relatively difficult for Web-based engines to construct a realistic style. On the other hand, if a high-level game engine is used, there are high entry thresholds and technical costs for designers and developers.

[0003] Based on such a current situation, in the field of house type construction, there are technical problems such as a relatively high threshold for 3D house type construction and the fragmentation between the 3D house type and the 2D house type drawing. Summary of the Invention

[0004] The main purpose of this application is to provide a house type construction method, a computer device, and a computer-readable storage medium, aiming to construct a house type in real time with what you see is what you get and reduce the threshold of house type construction.

[0005] In the first aspect, this application provides a house type construction method, and the house type construction method includes the following steps:

[0006] In a three-dimensional space, obtain a first drawing instruction for a target house type, and determine a first wall basic line according to the first drawing instruction;

[0007] Perform a preset process on the first wall basic line according to at least one of the intersection points and overlapping parts of the first wall basic line to obtain a second wall basic line;

[0008] Perform a wall structure fitting process on the second wall basic line to generate a wall;

[0009] Based on a preset wall closure judgment rule, judge whether a closed area is formed between the walls;

[0010] If a closed area is formed between the walls, generate a floor or a ceiling inward between the walls that form the closed area;

[0011] Determine a target housing type based on at least one of the wall, the floor, and the ceiling.

[0012] In a second aspect, the present application further provides a computer device, which includes a memory and a processor;

[0013] The memory is used to store a computer program;

[0014] The processor is used to execute the computer program and implement the housing type construction method as described above when executing the computer program.

[0015] In a third aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the housing type construction method as described above are implemented.

[0016] The present application provides a housing type construction method, a computer device, and a computer-readable storage medium. The housing type construction method includes: in a three-dimensional space, obtaining a first drawing instruction for a target housing type, and determining a first wall baseline according to the first drawing instruction; performing a preset process on the first wall baseline according to at least one of the intersection points and overlapping parts of the first wall baseline to obtain a second wall baseline; performing a wall structure fitting process on the second wall baseline to generate a wall; based on a preset wall closure judgment rule, determining whether a closed area is formed between the walls; if a closed area is formed between the walls, generating a floor or a ceiling inward between the walls forming the closed area; determining a target housing type based on at least one of the wall, the floor, and the ceiling. Thus, the walls in the target housing type correspond in real time to the first drawing instruction in the three-dimensional space, so as to construct the housing type in real time with what you see is what you get, and reduce the threshold of housing type construction. Description of the Drawings

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0018] Figure 1 It is a flowchart of a housing type construction method provided by an embodiment of the present application;

[0019] Figure 2 It is a schematic diagram of the wall structure fitting process involved in an embodiment of the present application;

[0020] Figure 3Schematic diagram of wall closure judgment according to an embodiment of the present application;

[0021] Figure 4 Schematic diagram of a target housing type and its two-dimensional illustration according to an embodiment of the present application;

[0022] Figure 5 Schematic diagram of a Gizmo component according to an embodiment of the present application;

[0023] Figure 6 Schematic block diagram of a computer device provided by an embodiment of the present application. Detailed implementation manners

[0024] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0025] The flowchart shown in the accompanying drawings is only an example, and does not necessarily include all the contents and operations / steps, nor does it necessarily need to be executed in the described order. For example, some operations / steps can also be decomposed, combined, or partially merged. Therefore, the actual execution order may be changed according to the actual situation.

[0026] An embodiment of the present application provides a housing type construction method, a computer device, and a computer-readable storage medium. Among them, the housing type construction method can be applied to a terminal device, and the terminal device can include at least one of the following: mobile phone, tablet computer, notebook computer, desktop computer.

[0027] Next, some embodiments of the present application will be described in detail in conjunction with the accompanying drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0028] Please refer to Figure 1 , Figure 1 Flowchart of a housing type construction method provided by an embodiment of the present application.

[0029] As Figure 1 shown, the housing type construction method includes steps S101 to S106.

[0030] Step S101, in a three-dimensional space, obtain a first drawing instruction of a target housing type, and determine a first wall basic line according to the first drawing instruction.

[0031] Exemplarily, a first drawing instruction for a target housing type can be obtained according to a user's operation on an input device. For example, the input device can include at least one of the following: a mouse, a keyboard, a digital pen, and a graphics tablet. For example, in a three-dimensional space, a first drawing instruction for a target housing type is determined by a user's click operation on the mouse, and a first wall baseline is determined according to the first drawing instruction. For another example, in a three-dimensional space, a first drawing instruction for a target housing type is determined by a user's operation of inputting position information on the keyboard, and a first wall baseline is determined according to the first drawing instruction.

[0032] Optionally, determining a first wall baseline according to the first drawing instruction includes: when the first drawing instruction is a line connection drawing instruction, determining a first wall baseline according to the line connection drawing instruction; when the first drawing instruction is a rectangle drawing instruction, determining four first wall baselines according to the rectangle drawing instruction, and the four first wall baselines enclose a rectangle.

[0033] In some embodiments, when the first drawing instruction is a line connection drawing instruction, a first wall baseline can be determined according to two adjacent line connection drawing instructions. For example, a first wall baseline can be determined according to every two adjacent mouse click operations. For another example, a first wall baseline can be determined according to the current mouse click operation and the previous mouse click operation, so that multiple first wall baselines that are connected end to end can be continuously generated.

[0034] In some embodiments, when the first drawing instruction is a rectangle drawing instruction, four first wall baselines can be determined according to two adjacent rectangle drawing instructions, and the four first wall baselines enclose a rectangle. For example, two diagonal vertices corresponding to the rectangle can be determined according to every two adjacent mouse click operations, and four first wall baselines that enclose the rectangle are generated according to the two diagonal vertices. For another example, two diagonal vertices corresponding to the rectangle can be determined according to the current mouse click operation and the previous mouse click operation, and four first wall baselines that enclose the rectangle are generated according to the two diagonal vertices, so that multiple rectangles with at least one vertex coinciding can be continuously generated.

[0035] Step S102: Perform a preset process on the first wall baseline according to at least one of the intersection points and overlapping parts of the first wall baseline to obtain a second wall baseline.

[0036] Optionally, perform a preset process on the first basic wall line based on at least one of the intersection points of the first basic wall line and the overlapping part to obtain a second basic wall line, including: dividing the first basic wall line into a first part and a second part according to the intersection points of the first basic wall line; truncating or retaining the first part according to the judgment result of the length of the first part and a preset length threshold, and truncating or retaining the second part according to the judgment result of the length of the second part and the preset length threshold, so as to obtain the second basic wall line.

[0037] For example, if the length of the first part is less than or equal to the preset length threshold, truncate the first part, or if the length of the first part is greater than the preset length threshold, retain the first part; and if the length of the second part is less than or equal to the preset length threshold, truncate the second part, or if the length of the second part is greater than the preset length threshold, retain the second part, so as to obtain the second basic wall line.

[0038] In some embodiments, the preset length threshold can be set to a preset wall thickness. Exemplarily, for the intersecting first basic wall lines, if the length of the first part of one of the first basic wall lines is less than or equal to the preset wall thickness, when performing wall structure fitting processing, the wall generated according to the first part will coincide with the wall generated according to the intersecting first basic wall line, which is equivalent to that the wall generated according to the first part will not be displayed. Therefore, the first part can be truncated, thereby reducing the workload of wall structure fitting processing and enabling the walls generated by the wall structure fitting processing to be all displayed.

[0039] Optionally, perform a preset process on the first basic wall line based on at least one of the intersection points of the first basic wall line and the overlapping part to obtain a second basic wall line, including: removing the overlapping part of the first basic wall line to obtain the second basic wall line.

[0040] Exemplarily, for the first basic wall line with an overlapping part, if wall structure fitting processing is performed on the overlapping part, the walls generated according to the overlapping part will still coincide with each other, which is equivalent to performing redundant wall structure fitting processing on the overlapping part. Therefore, the overlapping part can be removed, thereby reducing the workload of wall structure fitting processing.

[0041] In some embodiments, in a three-dimensional space, it is possible that the basic lines of the first wall intersect or overlap at a certain viewing angle. For example, if there are differences in the position information of multiple basic lines of the first wall in the vertical direction, corresponding processing can be performed. Exemplarily, the basic lines of the first wall can be parallel-projected onto a first plane, and based on at least one of the intersection points and overlapping parts of the projections of the basic lines of the first wall on the first plane, preset processing is performed on the basic lines of the first wall to obtain the basic lines of the second wall. It can be understood that the projections of the basic lines of the first wall on the first plane are all parallel to the first plane, thereby reflecting at least one of the intersection points and overlapping parts of the basic lines of the first wall.

[0042] Exemplarily, in a three-dimensional space, the viewing angle range for the user to determine the basic lines of the first wall next time can be assisted in judgment based on the viewing angle corresponding to the current basic lines of the first wall, so as to parallel-project the currently obtained basic lines of the first wall onto the first plane to ensure that the directions of the walls generated after the subsequent wall structure fitting process of the basic lines of the first wall are consistent.

[0043] Step S103: Perform wall structure fitting processing on the basic lines of the second wall to generate a wall.

[0044] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the wall structure fitting processing according to an embodiment of the present application.

[0045] Optionally, as Figure 2 shown, performing wall structure fitting processing on the basic lines of the second wall to obtain a wall includes: parallel-projecting the basic lines of the second wall onto the first plane; dividing the first plane into multiple regions according to the projections of the basic lines of the second wall on the first plane; translating the projections of the basic lines of the second wall towards the centers of the multiple regions by a first preset distance to obtain a first wall closed line; performing truncation processing on the first wall closed line according to the intersection points of the first wall closed line to obtain a second wall closed line; generating a first wall surface according to the basic lines of the second wall and the second wall closed line; and generating a wall in a three-dimensional space according to the first wall surface.

[0046] In some embodiments, the first preset distance may be dynamic. For example, when the projections of the basic lines of the second wall translate towards the centers of multiple regions respectively and the translation directions of the projections of the basic lines of the second wall are opposite, when the projection of the basic line of the second wall translates towards the center of the corresponding region, the first preset distance may vary dynamically according to the preset wall thickness. For example, the preset wall thickness is H meters. According to the projection of the basic line of the second wall on the first plane, the first plane is divided into a first region and a second region. The projection of the basic line of the second wall is translated x meters towards the center of the first region, and the projection of the basic line of the second wall is translated (H - x) meters towards the center of the second region to obtain the first wall closing line, where both H and x are positive real numbers.

[0047] In some embodiments, after translating the projections of the intersecting basic lines of the second wall by the first preset distance towards the center of any region, the obtained first wall closing lines intersect. At the same time, there are also corresponding intersection points between the first wall closing lines and the basic lines of the second wall. Exemplarily, the first wall closing line can be divided into a first part and a second part according to the intersection points of the first wall closing line. Determine whether the first part intersects with the basic line of the second wall. If it intersects, truncate the first part; determine whether the second part intersects with the basic line of the second wall. If it intersects, truncate the second part to obtain the second wall closing line. In some embodiments, if the first wall closing line is not truncated, it is equivalent to regenerating the wall in the part where the wall is generated, increasing the workload of wall generation. At the same time, it increases the complexity of subsequent judgment on whether a closed area is formed between the walls.

[0048] In some embodiments, according to the basic line of the second wall and the second wall closing line, a first wall surface is generated to fit the thickness of the wall, and the first wall surface is controlled to translate a second preset distance in a direction perpendicular to the first wall surface to generate a second wall surface to fit the height of the wall. For example, the second preset distance may be the preset wall height. Thus, the remaining wall surfaces can be generated according to the first wall surface and the second wall surface to fit the wall structure.

[0049] Step S104: Based on a preset wall closing judgment rule, determine whether a closed area is formed between the walls.

[0050] Optionally, based on a preset wall closing judgment rule, determining whether a closed area is formed between the walls includes: projecting the basic line of the second wall onto the first plane; in the first plane, if there are projections of multiple basic lines of the second wall intersecting in at least one of the following directions in sequence: clockwise direction, counterclockwise direction, determine that the area enclosed by the projections of the multiple basic lines of the second wall is a closed area to determine that a closed area is formed between the walls.

[0051] For example, on the first plane, select the projection of any second wall baseline as the starting line. Starting from the starting line, obtain the projections of multiple second wall baselines that intersect successively in the clockwise or counterclockwise direction until the projection of the last second wall baseline is determined. Among them, if the projection of the last second wall baseline also intersects the starting line, then determine the area enclosed by the projections of the multiple second wall baselines as a closed area, thereby determining that a closed area is formed between the walls. Exemplarily, if, starting from the starting line, the projections of multiple second wall baselines that intersect successively are obtained in the clockwise or counterclockwise direction until the projection of the last second wall baseline is determined, and then the projection of the last second wall baseline does not intersect the starting line, then determine the area enclosed by the projections of the multiple second wall baselines as a non-closed area, thereby determining that a non-closed area is formed between the walls.

[0052] Please refer to Figure 3 , Figure 3 which is a schematic diagram of wall closure determination according to an embodiment of the present application.

[0053] Since the wall has a certain wall thickness, different sides of the wall may respectively enclose a closed area with different wall sides. Therefore, after the second wall baseline is parallel-projected onto the first plane, two side lines can be respectively determined according to the projections of the respective second wall baselines, and the two side lines are on different sides of the projection of the second wall baseline to fit different sides of the wall, thereby obtaining the closed areas that different sides of the wall may enclose. Exemplarily, as Figure 3 shown, when arbitrarily selecting one side line of the projection of a second wall baseline as the starting line, starting from the starting line, obtain multiple side lines that intersect successively in the clockwise or counterclockwise direction until the last side line is determined, and moreover, if the last side line also intersects the starting line, then determine the area enclosed by the multiple side lines as a closed area, thereby determining that a closed area is formed between the walls.

[0054] Step S105: If a closed area is formed between the walls, generate a floor or a ceiling inwardly between the walls that form the closed area.

[0055] In some embodiments, Green's theorem can be used to determine the inner boundary of the walls that form the closed area, so as to generate a floor or a ceiling inwardly between the walls that form the closed area. Exemplarily, the parameters of the generated floor or ceiling can be set in advance or set by the user himself / herself, and no limitation is made here.

[0056] Step S106: Determine the target house type according to at least one of the walls, the floor, and the ceiling.

[0057] In some embodiments, when a closed area is formed between walls and a floor or a ceiling is generated inwardly between the walls forming the closed area, the target house type can be determined based on the walls, the floor, and the ceiling. For example, when the user inputs a rectangular drawing instruction in the three-dimensional space, such as clicking two different positions in the three-dimensional space to indicate that the user expects to generate four walls, as well as a ceiling and a floor, four walls can be generated in real time according to the user's single rectangular drawing instruction, and a floor and a ceiling can be generated inwardly in the closed area formed by the four walls. Thus, the target house type generated in real time includes four walls, as well as a floor and a ceiling.

[0058] In other embodiments, when a closed area is not formed between walls, the target house type can be determined based on the walls. For example, when the user inputs a connection drawing instruction in the three-dimensional space, such as clicking two different positions in the three-dimensional space to indicate that the user expects to generate a single wall, a single wall can be generated in real time according to the user's connection drawing instruction. Thus, the target house type generated in real time includes a single wall.

[0059] Please refer to Figure 4 , Figure 4 which is a schematic diagram of the target house type and its two-dimensional illustration according to an embodiment of the present application.

[0060] As Figure 4 shown, the house type construction method further includes: generating at least one of the following two-dimensional illustrations above the target house type: walls, floor, ceiling; and, displaying at least one of the following dimensions on one side of the two-dimensional illustration: walls, floor, ceiling.

[0061] In some embodiments, the dimensions displayed on one side of the two-dimensional illustration can be directly modified to modify at least one of the dimensions of the walls, the floor, and the ceiling.

[0062] In some embodiments, at least one of the relevant elements of the walls, the floor, and the ceiling can be selected and / or adjusted. Exemplarily, the elements can include points, lines, and surfaces. For example, the points, lines, and surfaces included in at least one of the walls, the floor, and the ceiling can be displayed, so that the points, lines, and surfaces included in at least one of the walls, the floor, and the ceiling can be selected and / or adjusted. For example, a point mode, a line mode, and a surface mode are provided. In the point mode, the points included in at least one of the walls, the floor, and the ceiling can be selected and / or adjusted; in the line mode, the lines included in at least one of the walls, the floor, and the ceiling can be selected and / or adjusted; in the surface mode, the surfaces included in at least one of the walls, the floor, and the ceiling can be selected and / or adjusted.

[0063] Optionally, as Figure 4As shown, the household type construction method further includes: obtaining a second drawing instruction for a target household type, and generating components according to the second drawing instruction, where the components include at least one of doors, windows, beams, columns, and stairs; and / or obtaining a third drawing instruction for the target household type, and adjusting at least one of the following in terms of size and / or position: walls, floors, ceilings, doors, windows, beams, columns, and stairs.

[0064] In some embodiments, a selection interface for multiple components may be provided at the position corresponding to the second drawing instruction of the target household type, so that the user can select the generated components. For example, multiple models of any one of doors, windows, beams, columns, and stairs are provided for selection, and corresponding components are generated in real time at the position corresponding to the second drawing instruction according to the user's selection.

[0065] In some embodiments, according to the selected components, the possible placement positions of the components can be assisted in judgment by combining the position corresponding to the second drawing instruction and the placement rules of the components. For example, the placement rules of the components may include that doors or windows are usually embedded and penetrate the wall, beams and columns are usually embedded in the floor and ceiling and used to support the floor and ceiling, and stairs are generally placed on the floor. Exemplarily, according to the position corresponding to the second drawing instruction of the target household type, it can be judged whether at least one of the corresponding walls, ceilings, and floors exists within a preset range in combination with the placement rules to determine the placement position of the components, and at the same time, the structure of at least one of the walls, floors, and ceilings is updated. For example, when the selected component is a door and there is a corresponding wall within the preset range of the position corresponding to the second drawing instruction of the target household type, the door can be placed in the wall, and at the same time, the structure of the wall is updated, so as to present the effect that the door is embedded and penetrates the wall.

[0066] In some embodiments, at least one of the following two-dimensional diagrams may also be generated above the target household type: doors, windows, beams, columns, and stairs; and at least one of the following dimensions is displayed on one side of the two-dimensional diagram: doors, windows, beams, columns, and stairs.

[0067] For example, the dimensions of doors, windows, beams, and columns can be modified by directly modifying the dimensions displayed on one side of the two-dimensional diagram.

[0068] In some embodiments, at least one of the related elements of doors, windows, beams, columns, and stairs can be selected and / or adjusted.

[0069] In some embodiments, in the three-dimensional space, a Gizmo component can also be introduced, and the Gizmo component can be used to perform at least one of the following operations on at least one of the moving walls, floors, ceilings, doors, windows, beams, columns, and stairs: moving, scaling, and distance measurement.

[0070] Please refer to Figure 5 ,Figure 5 Schematic diagram of a Gizmo component according to an embodiment of the present application.

[0071] As Figure 5 shown, when the Gizmo component is placed at one of the positions on the floor, the distances between the position where the Gizmo component is placed and the multiple walls enclosing the floor can be automatically measured.

[0072] In some embodiments, the ability to undo and redo is also introduced, which allows users to preview or restore more conveniently and quickly.

[0073] In some embodiments, the user can introduce a 2D house plan in one of the planes of the three-dimensional space to assist in generating the target house plan. For example, by tracing the 2D house plan, the basic line of the first wall is determined, and based on at least one of the intersections and overlapping parts of the basic line of the first wall, a preset process is performed on the basic line of the first wall to obtain the basic line of the second wall. The basic line of the second wall is subjected to wall structure fitting processing to generate a wall. Based on a preset wall closing judgment rule, it is determined whether a closed area is formed between the walls. If a closed area is formed between the walls, a floor or a ceiling is generated inward between the walls forming the closed area. Based on at least one of the walls, the floor, and the ceiling, the target house plan is determined. For example, the three-dimensional space window and the 2D plane window can be displayed simultaneously. When the user traces the 2D house plan in the 2D plane window, the process of generating the target house plan in the three-dimensional space window can also be observed synchronously. For example, tracing the 2D house plan and generating the target house plan can also be performed synchronously in the three-dimensional space window. Similarly, the user can select and / or adjust the target house plan in the three-dimensional space, or select and / or adjust the target house plan in one of the planes of the three-dimensional space.

[0074] In some embodiments, the target house plan can also be rendered in real time. For example, the Unreal Engine is used to render the target house plan to provide users with a more intuitive and closer-to-real-life visual effect of the house plan.

[0075] The house type construction method provided by the above embodiments obtains a first drawing instruction of a target house type in a three-dimensional space, determines a first basic wall line according to the first drawing instruction; performs a preset process on the first basic wall line according to at least one of the intersections and overlapping parts of the first basic wall lines to obtain a second basic wall line, performs a wall structure fitting process on the second basic wall line to generate a wall, and based on a preset wall closure judgment rule, determines whether a closed area is formed between the walls. If a closed area is formed between the walls, a floor or a ceiling is generated inward between the walls forming the closed area, and the target house type is determined according to at least one of the walls, the floor, and the ceiling. Thus, the walls in the target house type correspond in real time to the first drawing instruction in the three-dimensional space, and the house type is constructed in real time with what you see is what you get, reducing the threshold for house type construction.

[0076] The method of the present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and so on. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0077] Exemplarily, the above method can be implemented in the form of a computer program, and the computer program can run on a computer device.

[0078] Please refer to Figure 6 , Figure 6 which is a schematic block diagram of the structure of a computer device provided by an embodiment of the present application.

[0079] As Figure 6 shown, the computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory can include a storage medium and an internal memory.

[0080] The storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any house type construction method.

[0081] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.

[0082] The internal memory provides an environment for the operation of a computer program in a storage medium. When the computer program is executed by a processor, the processor can be made to execute any one of the house type construction methods.

[0083] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 6 The structure shown in the figure is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0084] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0085] Among them, in one embodiment, the processor is used to run a computer program stored in the memory to implement the following steps:

[0086] In a three-dimensional space, obtain a first drawing instruction for a target house type, and determine a first wall basic line according to the first drawing instruction;

[0087] Perform a preset process on the first wall basic line according to at least one of the intersections and overlapping parts of the first wall basic line to obtain a second wall basic line;

[0088] Perform a wall structure fitting process on the second wall basic line to generate a wall;

[0089] Based on a preset wall closure judgment rule, judge whether a closed area is formed between the walls;

[0090] If a closed area is formed between the walls, generate a floor or a ceiling inward between the walls forming the closed area;

[0091] Determine the target house type according to at least one of the wall, the floor, and the ceiling.

[0092] In one embodiment, when the processor implements preset processing on the first basic wall line according to at least one of the intersection points and overlapping parts of the first basic wall line to obtain a second basic wall line, it is used to implement:

[0093] Divide the first basic wall line into a first part and a second part according to the intersection points of the first basic wall line;

[0094] Truncate or retain the first part according to the judgment result of the length of the first part and a preset length threshold, and truncate or retain the second part according to the judgment result of the length of the second part to obtain a second basic wall line.

[0095] In one embodiment, when the processor implements preset processing on the first basic wall line according to at least one of the intersection points and overlapping parts of the first basic wall line to obtain a second basic wall line, it is used to implement:

[0096] Remove the overlapping part of the first basic wall line to obtain a second basic wall line.

[0097] In one embodiment, when the processor implements wall structure fitting processing on the second basic wall line to obtain a wall, it is used to implement:

[0098] Project the second basic wall line parallelly onto a first plane;

[0099] Divide the first plane into multiple regions according to the projection of the second basic wall line on the first plane;

[0100] Control the projection of the second basic wall line to translate a first preset distance towards the center of each of the multiple regions to obtain a first wall closed line;

[0101] Perform truncation processing on the first wall closed line according to the intersection points of the first wall closed line to obtain a second wall closed line;

[0102] Generate a first wall surface according to the second basic wall line and the second wall closed line;

[0103] Generate a wall in three-dimensional space according to the first wall surface.

[0104] In one embodiment, when the processor implements judging whether a closed area is formed between walls based on a preset wall closing judgment rule, it is used to implement:

[0105] Project the second basic wall line parallelly onto a first plane;

[0106] On the first plane, if there are multiple projections of the second wall base lines that intersect successively along at least one of the following directions: clockwise direction, counterclockwise direction, determine the area enclosed by the projections of the multiple second wall base lines as a closed area, so as to determine that a closed area is formed between the walls.

[0107] In one embodiment, when the processor implements determining the first wall base line according to the first drawing instruction, it is configured to:

[0108] When the first drawing instruction is a connection drawing instruction, determine a first wall base line according to the connection drawing instruction;

[0109] When the first drawing instruction is a rectangle drawing instruction, determine four first wall base lines according to the rectangle drawing instruction, and the four first wall base lines enclose a rectangle.

[0110] In one embodiment, when the processor implements the house type building method, it is configured to:

[0111] Generate at least one of the following two-dimensional diagrams above the target house type: walls, floors, ceilings; and,

[0112] Display at least one of the following dimensions on one side of the two-dimensional diagram: walls, floors, ceilings.

[0113] In one embodiment, when the processor implements the house type building method, it is configured to:

[0114] Obtain a second drawing instruction of the target house type, and generate components according to the second drawing instruction, where the components include at least one of doors, windows, beams, columns, and stairs; and / or,

[0115] Obtain a third drawing instruction of the target house type, and adjust at least one of the following dimensions and / or positions: walls, floors, ceilings, doors, windows, beams, columns, stairs.

[0116] It should be noted that those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described house type building can refer to the corresponding process in the foregoing embodiments of the house type building method, and will not be elaborated here.

[0117] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program includes program instructions, and the method implemented when the program instructions are executed can refer to the various embodiments of the house type building method of the present application.

[0118] Among them, the computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiments, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device.

[0119] It should be understood that the terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. As used in the specification of this application and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include the plural forms.

[0120] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations. It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.

[0121] The serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments. The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for building a housing type, characterized in that, The described house type building method includes: In a three-dimensional space, obtain a first drawing instruction for a target house type, and determine a first wall basic line according to the first drawing instruction; Perform a preset process on the first wall basic line according to at least one of the intersections and overlapping parts of the first wall basic line to obtain a second wall basic line; Perform a wall structure fitting process on the second wall basic line to generate a wall; Based on a preset wall closing judgment rule, judge whether a closed area is formed between the walls; If a closed area is formed between the walls, generate a floor or a ceiling inward between the walls forming the closed area; Determine the target house type according to at least one of the wall, the floor, and the ceiling; The performing a wall structure fitting process on the second wall basic line to obtain a wall includes: Parallel-project the second wall basic line onto a first plane; Divide the first plane into multiple regions according to the projection of the second wall basic line on the first plane; Translate the projections of the second wall basic line to the centers of the multiple regions by a first preset distance respectively to obtain a first wall closing line; the first preset distance is determined according to a preset wall thickness; Perform a truncation process on the first wall closing line according to the intersections of the first wall closing line to obtain a second wall closing line; Generate a first wall surface according to the second wall basic line and the second wall closing line; In a three-dimensional space, control the first wall surface to translate in a direction perpendicular to the first wall surface by a second preset distance to generate a second wall surface, and generate a wall according to the first wall surface and the second wall surface; the second preset distance is determined according to a preset wall surface height.

2. The method for building a housing type according to claim 1, wherein The performing a preset process on the first wall basic line according to at least one of the intersections and overlapping parts of the first wall basic line to obtain a second wall basic line includes: Divide the first wall basic line into a first part and a second part according to the intersections of the first wall basic line; Truncate or retain the first part according to the judgment result of the length of the first part and a preset length threshold, and truncate or retain the second part according to the judgment result of the length of the second part and the preset length threshold to obtain a second wall basic line.

3. The house type construction method according to claim 1, characterized in that The performing a preset process on the first wall basic line according to at least one of the intersections and overlapping parts of the first wall basic line to obtain a second wall basic line includes: Remove the overlapping part of the first wall basic line to obtain a second wall basic line.

4. The housing type building method according to claim 1, characterized in that, The judging whether a closed area is formed between the walls based on a preset wall closing judgment rule includes: Parallel-project the second wall basic line onto a first plane; In the first plane, if there are projections of multiple second wall basic lines intersecting in at least one of the following directions in sequence: clockwise direction, counterclockwise direction, determine that the area enclosed by the projections of the multiple second wall basic lines is a closed area to determine that a closed area is formed between the walls.

5. The housing type construction method according to claim 1, characterized in that The determining a first wall basic line according to the first drawing instruction includes: When the first drawing instruction is a connection drawing instruction, determine a first basic wall line according to the connection drawing instruction; When the first drawing instruction is a rectangle drawing instruction, determine four first basic wall lines according to the rectangle drawing instruction, and the four first basic wall lines enclose a rectangle.

6. The house type building method according to any one of claims 1 to 5, characterized in that It further includes: Generate at least one of the following two-dimensional diagrams above the target house type: wall, floor, ceiling; And, Display at least one of the following dimensions on one side of the two-dimensional diagram: wall, floor, ceiling.

7. The house type building method according to any one of claims 1 to 5, characterized in that It further includes: Obtain a second drawing instruction for the target house type, and generate components according to the second drawing instruction, where the components include at least one of doors, windows, beams, columns, and stairs; and / or, Obtain a third drawing instruction for the target house type, and adjust at least one of the following dimensions and / or positions: wall, floor, ceiling, door, window, beam, column, stair.

8. A computer device, the computer device includes a memory and a processor; The memory is used to store a computer program; It is characterized in that The processor is used to execute the computer program and implement the house type building method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the house type building method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Modeling method for quickly constructing house type structure, electronic equipment and storage medium

    CN112837395A

  • House type model construction method and device, electronic equipment and storage medium

    CN114255318A