Building house type drawing generation method and device, computer equipment and storage medium

By obtaining architectural layer and room information in architectural design and generating architectural floor plan, the problem of designers frequently performing mechanized and repetitive actions in the adjustment of floor layout is solved, and the effect of improving design efficiency and project advancement speed is achieved.

CN120217494APending Publication Date: 2025-06-27ZHUBO DESIGN CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510263233.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

During the residential design process, designers need to frequently adjust the layout of the apartment, resulting in a large number of mechanized and repetitive actions, resulting in inefficient design and affecting the speed of project progress.

Method used

By obtaining building layer and room information, drawing a single-line floor plan, correcting the number of line segments, generating axes, creating double-line walls and doors and windows, arranging furniture ingots according to preset strategies, and generating a building core cylinder, finally obtaining a complete building floor plan.

Benefits of technology

This method can accurately output drawings of the depth of the apartment large sample plan, reduce duplicate operations, improve design efficiency, and improve project advancement speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120217494A_ABST
    Figure CN120217494A_ABST
Patent Text Reader

Abstract

The invention discloses a building floor plan generation method and device, computer equipment and a storage medium, and the method comprises the steps: obtaining building layer information and room information, and drawing a single line plan according to the building layer information and the room information; correcting the broken number of line segments in the single-line plane graph; generating an axis net based on the corrected single-line plane graph, generating a double-line wall and door and window graphic element according to the axis net, and obtaining a corresponding double-line plane graph; furniture primitives are arranged on the double-line planar graph; and generating a building core tube to obtain a final building house type image. According to the method, the single-line planar graph is drawn by obtaining the building layer and room information, the axis net is generated after the broken number of the line segments is corrected, then the wall and door and window primitives are generated according to the axis net to form the double-line planar graph, finally the furniture primitives are arranged according to the preset strategy, the core tube is further generated, and finally the complete building house type graph is obtained. In this way, the drawing of the house type large sample scheme depth can be accurately output, and therefore the production efficiency of house type products is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of architectural design, and particularly to a method, device, computer device and storage medium for generating architectural floor plans. Background Art

[0002] In the early stage of residential design, designers need to carry out single-line drawing work according to project requirements in the "bubble diagram" mode of the floor plan. During this process, designers will repeatedly deliberate on the floor plan layout to make it more reasonable. At this stage, the single-line drawing of the "bubble diagram" becomes a key means to explore the possibilities of the floor plan and construct the design prototype. After the basic layout of the plan is determined, it enters the subsequent detailed drawing and index testing links. Designers need to manually convert the previously drawn single-line into a double-line drawing of Tianzheng walls, draw doors and windows according to the room layout rules, and arrange furniture by finding matching CAD furniture legends according to different room layouts. In addition, designers will use Excel tables to test the corresponding floor plan indicators to comprehensively evaluate the feasibility and rationality of the design plan.

[0003] However, the above working mode exposes obvious drawbacks in the scheme design stage. Due to the high frequency of modifications in the scheme design stage, there are a large number of mechanized and repetitive operations in the early stage of "bubble diagram" layout adjustment and the subsequent links such as wall, door, window and furniture layout and index testing. For example, every adjustment of the floor plan layout may trigger a series of repeated operations such as wall and door / window drawing and furniture layout, resulting in extremely low design efficiency, greatly affecting the project progress speed, and also restricting designers from investing more energy in creative design and optimization work. Summary of the Invention

[0004] Embodiments of the present invention provide a method, device, computer device and storage medium for generating architectural floor plans, aiming to improve the production efficiency of floor plan products.

[0005] In a first aspect, embodiments of the present invention provide a method for generating an architectural floor plan, including:

[0006] Obtaining building layer information and room information, and drawing a single-line floor plan according to the building layer information and room information;

[0007] Correcting the number of line segments in the single-line floor plan;

[0008] Generating an axis network based on the corrected single-line floor plan, and generating double-line wall and door / window primitives according to the axis network to obtain a corresponding double-line floor plan;

[0009] Arranging furniture primitives on the double-line floor plan according to a preset strategy;

[0010] After completing the layout of home furnishing elements, a building core tube is generated based on the double-line floor plan, and the final building floor plan is obtained by combining the double-line floor plan and the building core tube.

[0011] In a second aspect, an embodiment of the present invention provides a device for generating a building floor plan, including:

[0012] A single-line drawing unit, configured to obtain building layer information and room information, and draw a single-line floor plan according to the building layer information and the room information;

[0013] A line segment correction unit, configured to correct the number of line segment breaks in the single-line floor plan;

[0014] A double-line generation unit, configured to generate an axis network based on the corrected single-line floor plan, and generate double-line wall and door / window elements according to the axis network to obtain a corresponding double-line floor plan;

[0015] A furniture layout unit, configured to perform the layout of home furnishing elements on the double-line floor plan according to a preset strategy;

[0016] A combination generation unit, configured to generate a building core tube based on the double-line floor plan after completing the layout of home furnishing elements, and obtain the final building floor plan by combining the double-line floor plan and the building core tube.

[0017] In a third aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for generating a building floor plan as described in the first aspect is implemented.

[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for generating a building floor plan as described in the first aspect is implemented.

[0019] An embodiment of the present invention provides a method, apparatus, computer device, and storage medium for generating a building floor plan. The method includes: obtaining building layer information and room information, and drawing a single-line floor plan based on the building layer information and room information; correcting the line breaks in the single-line floor plan; generating an axis network based on the corrected single-line floor plan, and generating double-line wall and door / window primitives according to the axis network to obtain a corresponding double-line floor plan; arranging furniture primitives on the double-line floor plan according to a preset strategy; after completing the arrangement of furniture primitives, generating a building core tube based on the double-line floor plan, and combining the double-line floor plan and the building core tube to obtain a final building floor plan. By obtaining building layer and room information in the embodiment of the present invention to draw a single-line floor plan, generating an axis network after correcting the line breaks, then generating wall and door / window primitives based on the axis network to form a double-line floor plan, finally arranging furniture primitives according to a preset strategy, and further generating a building core tube, a complete building floor plan is ultimately obtained. In this way, drawings with the depth of a detailed floor plan solution can be accurately output, thereby greatly improving the production efficiency of floor plan products. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 It is a schematic flowchart of a method for generating a building floor plan provided by an embodiment of the present invention;

[0022] Figure 2 It is a schematic block diagram of an apparatus for generating a building floor plan provided by an embodiment of the present invention;

[0023] Figure 3 It is an example diagram of a single-line floor plan in a method for generating a building floor plan provided by an embodiment of the present invention;

[0024] Figure 4 It is a schematic diagram of base point selection in a method for generating a building floor plan provided by an embodiment of the present invention;

[0025] Figure 5 It is an example diagram of a double-line floor plan in a method for generating a building floor plan provided by an embodiment of the present invention;

[0026] Figure 6 It is an example diagram of door / window generation in a method for generating a building floor plan provided by an embodiment of the present invention;

[0027] Figure 7An example diagram of bedroom furniture layout in a building floor plan generation method provided by an embodiment of the present invention;

[0028] Figure 8 An example diagram of bathroom furniture layout in a building floor plan generation method provided by an embodiment of the present invention;

[0029] Figure 9 An example diagram of dining room furniture layout in a building floor plan generation method provided by an embodiment of the present invention;

[0030] Figure 10 An example diagram of living room furniture layout in a building floor plan generation method provided by an embodiment of the present invention;

[0031] Figure 11 An example diagram of kitchen furniture layout in a building floor plan generation method provided by an embodiment of the present invention;

[0032] Figure 12 An example diagram of the building core tube in a building floor plan generation method provided by an embodiment of the present invention. Detailed implementation manners

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

[0034] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprise" indicate the presence of the described features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

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

[0036] It should be further understood that the term " / and / or" used in this specification of the present invention 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.

[0037] Next, please refer to Figure 1, a method for generating an architectural floor plan provided by an embodiment of the present invention specifically includes: steps S101 to S105.

[0038] Step S101, obtain architectural layer information and room information, and draw a single-line floor plan according to the architectural layer information and room information;

[0039] Step S102, correct the number of line segments in the single-line floor plan;

[0040] Step S103, generate an axis network based on the corrected single-line floor plan, and generate double-line wall and door / window primitives according to the axis network to obtain a corresponding double-line floor plan;

[0041] Step S104, arrange furniture primitives on the double-line floor plan according to a preset strategy;

[0042] Step S105, after completing the arrangement of furniture primitives, generate an architectural core tube based on the double-line floor plan, and combine the double-line floor plan and the architectural core tube to obtain the final architectural floor plan.

[0043] In this embodiment, a single-line floor plan is drawn by obtaining architectural layers and room information. After correcting the number of line segments, an axis network is generated. Then, based on the axis network, wall and door / window primitives are generated to form a double-line floor plan. Finally, furniture primitives are arranged according to a preset strategy, and an architectural core tube is further generated to finally obtain a complete architectural floor plan. In this way, drawings with the depth of the large-scale floor plan of the house type can be accurately output, thereby greatly improving the production efficiency of house type products.

[0044] In an actual application scenario, the single-line floor plan can be pre-drawn according to architectural layer information and room information. In this way, when house type design is required, the corresponding single-line floor plan can be directly called, and then by identifying the single-line floor plan and room names that conform to the corresponding rules, relevant CAD primitives such as walls, doors, windows, and furniture can be automatically called for automatic drawing, thereby accurately outputting drawings with the depth of the large-scale floor plan of the house type and improving production efficiency.

[0045] In one embodiment, the obtaining of architectural layer information and room information, and drawing a single-line floor plan according to the architectural layer information and room information includes:

[0046] Determine the room area according to the architectural layer information and room information; wherein, the room area includes single-line walls, bay windows, and balconies;

[0047] Use different layers to distinguish and draw different room areas to obtain the single-line floor plan.

[0048] Such as Figure 3As shown in the figure, when drawing a single-line floor plan in this embodiment, first determine the room area for which the single-line floor plan is to be generated. This room area may include areas such as walls, bay windows, and balconies. After each room area is defined, different layers are used for differentiation. Further, the following naming requirements are set for the room areas:

[0049] Public areas: living room, dining room, living and dining room, entrance hall, corridor;

[0050] Private areas: master bedroom, bedroom, bedroom (elderly room), elderly room, children's room, study;

[0051] Wet areas: kitchen, bathroom, public bathroom, private bathroom;

[0052] Other modules: balcony, utility balcony;

[0053] Window module: bay window.

[0054] In this way, the names of each area can be marked in the drawn single-line floor plan.

[0055] In one embodiment, the correction of the number of segments in the single-line floor plan includes:

[0056] Select a corner point as the origin in the single-line floor plan;

[0057] Take the corner point as the base point, and verify the length of each line segment in the single-line floor plan based on the base point to obtain the line segment length verification result;

[0058] Cancel the fractional part in the line segment length verification result of each line segment and perform rounding correction processing.

[0059] In this embodiment, by selecting a corner point as the base point on the single-line floor plan to verify the length of each line segment and performing rounding correction, the line segments of the single-line floor plan can be made neat and uniform, avoiding interference from fractional parts, and improving the accuracy and aesthetics of the drawing.

[0060] In an actual application scenario, as Figure 4 shown, a corner point origin ( Figure 4 the yellow dot in the figure) can be customized in the upper right corner of the single-line floor plan, and starting from this corner point origin as the base point, verify the length of each line segment, cancel the fractional part, and automatically correct and round. The line segment length can only be limited to end with 00 or 50 (if it cannot be achieved, round to the nearest integer), and the line segment angle is 0°, 90°, or 180° to ensure the standardization and consistency of the drawing. By this method, not only the design efficiency is improved, but also the professionalism and readability of the drawing are guaranteed, further optimizing the house type design process.

[0061] In one embodiment, generating an axis network based on the corrected single-line floor plan, and generating double-line wall and door / window elements according to the axis network to obtain a corresponding double-line floor plan, including:

[0062] Extracting the exterior wall line and the interior wall line based on the single-line floor plan;

[0063] Generating an axis range based on the exterior wall line according to a preset compensation range;

[0064] Within the axis range, obtaining the corner points of the exterior wall line, and extending outward based on the corner points to generate the first axis;

[0065] Generating the second axis towards the proximal end according to the intersection line with the exterior wall line in the intersection direction;

[0066] Generating the interior wall line into short axes;

[0067] Combining the first axis, the second axis and the short axes to generate the axis network of the single-line floor plan.

[0068] As Figure 5 shown, during the process of generating the axis network, since there may be some problematic positions, such as the intersection of the kitchen and the public toilet, the shared wall between adjacent bedrooms, and the wall lines where the balcony intersects with the living room and the bedroom, etc., therefore, in this embodiment, an axis range is first generated based on the exterior wall line, for example, an axis range is generated by compensating 2000 mm according to the longest side distance of the exterior wall line, and then along the corner points of the exterior wall line (including the balcony but not including the bay window), extending outward respectively along the X-axis and Y-axis directions to generate the first axis, and at the same time, making the lines intersecting with the exterior wall line generate the second axis towards the proximal end in the intersection direction, and then directly generating the interior wall lines into short axes, so that a complete and accurate axis network layout can be formed, ensuring that the positions of each axis are reasonable, avoiding errors, providing a solid foundation for the subsequent generation of double-line wall and door / window elements, and thus improving the overall design quality and construction efficiency. During the generation process, dimension markings can also be generated accordingly to ensure that the subsequent axis network can be accurately aligned with elements such as walls and doors / windows, thereby further improving the production accuracy of the product.

[0069] In one embodiment, generating an axis network based on the corrected single-line floor plan, and generating double-line wall and door / window elements according to the axis network to obtain a corresponding double-line floor plan, further including:

[0070] Generating double-line walls for the single-line floor plan according to a preset wall generation principle;

[0071] On the basis of the double-line walls, using short vertical lines to position the doors and windows;

[0072] Generating door elements according to a preset door-opening principle, and generating window elements according to a preset window-opening principle.

[0073] Combined with Figure 6 , in this embodiment, based on the single-line floor plan containing the axis network, the corresponding wall and door / window elements can be generated with one key, and the accurate alignment of each part can be ensured. By presetting parameters, the wall thickness and door / window sizes are automatically adjusted to generate a double-line floor plan that complies with the design specifications. Specifically, when generating the double-line walls, the outer walls are generated with a thickness of 200 mm according to the outermost contour (except for the areas connected to the bay window lines), and the inner walls are generated in the following order: master bedroom - bedroom - bay window - wet area - public area - balcony. The generated wall lines do not change following the generation of subsequent wall lines. Among them, in the bedroom, the master bedroom generates wall lines with a thickness of 200 mm, no wall is generated adjacent to the bay window, and a viewing line is generated with a thickness of 100 mm inward along the boundary of the bay window. The remaining bedrooms generate wall lines with a thickness of 200 mm outside the range line. If two bedrooms are connected, the wall is offset to either side (verification is required to ensure that the net width of each side of the bedroom is ≥ 2000); the part of the bay window that does not coincide with the wall line is defaulted to a wall with a thickness of 200 mm, and the default wall thickness at the connection position of the bay window and the bay window is 200 mm; in the wet area, the kitchen and bathroom are set with an offset of 100 mm thickness outside the functional area; in the public area, the living room entrance hall, etc. are set with an offset of 100 mm thickness inward; for the balcony railing drawing, the viewing line is set with a thickness of 200 mm, and the viewing line with a thickness of 50 mm inward offset from the midline is used as the standard.

[0074] When generating the door unit, the preset door-opening principles are as follows:

[0075] (1) Each functional door opens into the functional range;

[0076] (2) Open the door on the side with the shorter line segment. Different widths of door piers are reserved according to different functional rooms, as shown in Table 1 below:

[0077] Classification Width (mm) Door pier (mm) Entrance door 1100 50 Bedroom door 900 50 Kitchen door (single leaf) 850 100 Kitchen door (double leaf) 1600 100 Bathroom door 800 100 Balcony door 850 -

[0078] Table 1

[0079] Based on Table 1, it can be seen that the default width of the entrance door is 1100mm and the door stack width is 50mm. If the net width of the door opening wall section is less than 1200mm, a cloud line needs to be circled to indicate that the door stack is insufficient. For living balconies or balcony doors, if the outline width of the door opening section is less than 1500mm, it should be set to an 850mm wide door; if the width is greater than 1500mm, a sliding door is used by default, and 400mm (center line) wall stacks are reserved on both sides and arranged in the center. The setting of the kitchen door is: if the net width of the door opening wall section is less than 1800mm, the door width is 850mm and the door stack is 100mm; if the net width of the wall section is greater than or equal to 1800mm, a 1600mm wide sliding door is used and a 100mm door stack is maintained. The default width of the bathroom door is 800mm and the door stack is 100mm. The default width of the bedroom door is 900mm and the door stack is 50mm.

[0080] When generating door units, the preset window opening principle is: all deduction distances are calculated according to the wall axis. Among them, when designing ordinary windows, 400mm is deducted from both sides of the wall on the window side of the kitchen to determine the net width of the window. If the window opening width is less than or equal to 650mm, the window opening width is 650mm and set in the center. If the window opening width is greater than 650mm, the window width should be set in the center after deducting 400mm from both sides of the wall on the window side. For bathrooms, ordinary windows are set in the center by default according to the 650mm width of the window opening. For other ordinary windows, 400mm is deducted from both sides of the wall on the window side and set in the center by default. For bay windows, 400mm is deducted from both sides of the wall on the window side by default.

[0081] Preferably, the door and window numbers can also be automatically generated according to the door and window plug-in principle. Of course, when generating the door and window numbers, it is necessary to enter information such as the window height (including the flat window height and the bay window height) to ensure that the generated door and window numbers are accurate and reliable and will not cause confusion.

[0082] Furthermore, in a specific embodiment, the obtained double-line plan can also automatically generate area lines for it. The area line of the suite is generated according to the center line of the exterior wall (excluding the bay window and balcony); the area line of the room is generated according to the floor area of ​​the room (the bay window range must be deducted); the area line of the balcony area is generated according to the contour line range of the adjacent exterior wall line of the balcony and divided by 2. The balcony rate calculation rule can be built-in for selection in the later stage.

[0083] In one embodiment, the arranging furniture elements on the double-line plan according to a preset strategy includes:

[0084] Determine the room function and the room width and depth type according to the building layer information and the room information;

[0085] Select corresponding furniture graphic elements according to the room function and the room width and depth type;

[0086] Arrange the furniture graphic elements at the corresponding positions in the double-line floor plan to obtain the building apartment layout plan.

[0087] Combined with Figure 7 - Figure 11 , in this embodiment, after generating the double-line floor plan, the furniture graphic elements can be arranged according to the room function and the room width-depth type, so as to obtain the final building apartment layout plan. As Figure 7 shown, when arranging furniture in the bedroom, different types of furniture arrangements can be selected according to the room width-depth type. For another example, Figure 8 the furniture arrangement in the bathroom shown, the washbasin, toilet and shower can be arranged in a circular shape to form a diamond-shaped arrangement, or can be arranged in a straight line from the outside to the inside. For another example, Figure 9 the furniture arrangement in the dining room shown, a square table for four or six people can be used, or a round table can be used, etc.

[0088] Generally speaking, in this embodiment, the corresponding furniture graphic elements (such as beds, sofas, dining tables, cabinets, etc.) can be selected according to the functions of the rooms (such as bedrooms, living rooms, kitchens, etc.). At the same time, according to the room width-depth type, the size and layout of the furniture graphic elements are adjusted to match the room size, avoiding space waste or a crowded feeling caused by being too large or too small. When arranging the furniture graphic elements, the spatial relationship and usability between the furniture also need to be considered. For example, the sofa and coffee table should be placed in a suitable position in the living room for people to communicate and rest; the bed should be placed in a suitable position in the bedroom to ensure the comfort and privacy of sleep; the cabinet and dining table should be placed in suitable positions in the kitchen and dining room for cooking and dining. By arranging the furniture graphic elements on the double-line floor plan in the above manner, the final building apartment layout plan can be obtained. This building apartment layout plan not only contains the layout and structural information of the rooms, but also shows the arrangement and placement of the furniture, providing an important reference basis for subsequent interior design and decoration.

[0089] In one embodiment, the arranging the furniture graphic elements on the double-line floor plan according to a preset strategy further includes:

[0090] Respond to the furniture adjustment instruction, and determine the replacement furniture graphic element and the replaced furniture graphic element according to the furniture adjustment instruction;

[0091] Remove the replaced furniture graphic element from the double-line floor plan, and update the replacement furniture graphic element to the double-line floor plan.

[0092] In this embodiment, when arranging furniture primitives, the arranged furniture primitives can be adjusted according to the received adjustment instructions. For example, the size, style, and position information of the furniture primitive to be replaced can be obtained through instruction recognition to ensure that the replaced furniture primitive is consistent with the overall layout and style of the room. At the same time, the user can also adjust the position and angle of the replaced furniture primitive through simple dragging operations to meet personalized space requirements. In addition, a rich furniture primitive library can be provided, including furniture of different styles, materials, and colors, enabling the user to select according to personal preferences and actual needs, thereby making the final building floor plan more in line with personal expectations.

[0093] In addition, during the process of arranging furniture primitives, functions such as rotation, mirroring, and scaling of furniture primitives can also be provided to enable the user to fine-tune the furniture primitives according to actual needs. For example, for rooms with certain special shapes, the user can rotate the furniture primitive to better adapt to the room layout. Or, for rooms that require emphasizing symmetrical beauty, the user can use the mirroring function to quickly generate symmetrical furniture arrangements. At the same time, the system also supports scaling of furniture primitives to meet the needs of different room sizes. The provision of these functions enables the user to be more flexible and convenient when arranging furniture primitives, thus easily and efficiently creating a building floor plan that is both practical and beautiful.

[0094] In one embodiment, when generating a building core tube, different layers are used to distinguish wall lines, doors, and windows. For example:

[0095] Wall: T-wall;

[0096] Door: T-door;

[0097] Ordinary window: T-window;

[0098] Room function name: T-room;

[0099] Doors and ordinary window lines are drawn using vertical short lines. When drawing the door line, the door line needs to be arranged close to the door pier side, as Figure 12 shown. At the same time, combined with Figure 12 , when generating a building core tube, the room names cannot be repeated, and suffixes 1 and 2 can be used for distinction. The specific names and corresponding codes of the building core tube are shown in

[0100] Table 2 below:

[0101]

[0102] Table 2

[0103] Figure 2 FIG. 200 is a schematic block diagram of a building floor plan generating device 200 provided by an embodiment of the present invention. The device 200 includes:

[0104] A single-line drawing unit 201 for obtaining building layer information and room information, and drawing a single-line floor plan according to the building layer information and the room information;

[0105] A line segment correction unit 202 for correcting the fragmentation of line segments in the single-line floor plan;

[0106] A double-line generation unit 203 for generating an axis network based on the corrected single-line floor plan, and generating double-line wall and door / window primitives according to the axis network to obtain a corresponding double-line floor plan;

[0107] A furniture layout unit 204 for arranging furniture primitives on the double-line floor plan according to a preset strategy;

[0108] A combination generation unit 205 for generating a building core tube based on the double-line floor plan after the furniture primitives are arranged, and combining the double-line floor plan and the building core tube to obtain a final building floor plan.

[0109] In one embodiment, the single-line drawing unit 201 includes:

[0110] A region determination unit for determining a room region according to the building layer information and the room information; wherein, the room region includes single-line walls, bay windows and balconies;

[0111] A differentiated drawing unit for differentiating and drawing different room regions using different layers to obtain the single-line floor plan.

[0112] In one embodiment, the line segment correction unit 202 includes:

[0113] An origin selection unit for selecting a corner point as the origin in the single-line floor plan;

[0114] A length verification unit for using the corner point as the base point and verifying the length of each line segment in the single-line floor plan based on the base point to obtain a line segment length verification result;

[0115] A fragmentation cancellation unit for canceling the fragmentation in the line segment length verification result of each line segment and performing rounding correction processing.

[0116] In one embodiment, the double-line generation unit 203 includes:

[0117] A wall line extraction unit for extracting outer wall lines and inner wall lines based on the single-line floor plan;

[0118] A range generation unit for generating an axis range based on the outer wall lines according to a preset compensation range;

[0119] A first generation unit, configured to obtain corner points of the exterior wall line within the axis range and generate a first axis by extending outward based on the corner points;

[0120] A second generation unit, configured to generate a second axis in the proximal direction according to the intersection line with the exterior wall line in the intersection direction;

[0121] A third generation unit, configured to generate the interior wall line into a short axis;

[0122] An axis combination unit, configured to combine the first axis, the second axis and the short axis to generate an axis network of the single-line floor plan.

[0123] In an embodiment, the double-line generation unit 203 further includes:

[0124] A wall generation unit, configured to generate double-line walls for the single-line floor plan according to a preset wall generation principle;

[0125] A door and window positioning unit, configured to position the doors and windows using short vertical lines on the basis of the double-line walls;

[0126] A door and window generation unit, configured to generate door graphic elements according to a preset door opening principle and generate window graphic elements according to a preset window opening principle.

[0127] In an embodiment, the furniture layout unit 204 includes:

[0128] A room determination unit, configured to determine the room function and the room width-depth type according to the building layer information and the room information;

[0129] A furniture selection unit, configured to select corresponding furniture graphic elements according to the room function and the room width-depth type;

[0130] A plane layout unit, configured to arrange the furniture graphic elements at corresponding positions in the double-line floor plan.

[0131] In an embodiment, the furniture layout unit 204 further includes:

[0132] An instruction response unit, configured to respond to a furniture adjustment instruction and determine a replacement furniture graphic element and a replaced furniture graphic element according to the furniture adjustment instruction;

[0133] A furniture adjustment unit, configured to remove the replaced furniture graphic element from the double-line floor plan and update the replacement furniture graphic element to the double-line floor plan.

[0134] Since the embodiments of the apparatus part correspond to the embodiments of the method part, for the embodiments of the apparatus part, please refer to the description of the embodiments of the method part, which will not be elaborated here for the time being.

[0135] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0136] An embodiment of the present invention further provides a computer device, which may include a memory and a processor. When the processor calls the computer program stored in the memory, the steps provided in the above embodiment can be implemented. Of course, the computer device may further include various network interfaces, power supplies, and other components.

[0137] The various embodiments in the specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part. It should be noted that for those of ordinary skill in the art in the technical field of the present application, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

[0138] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the existence of another identical element in the process, method, article or device comprising the element.

Claims

1. A method for generating a building floor plan, characterized in that: include: Acquire building layer information and room information, and draw a single-line plan according to the building layer information and room information; Correcting the number of line segments in the single-line plan; Generate an axis grid based on the corrected single-line plan, and generate double-line wall and door and window elements according to the axis grid to obtain a corresponding double-line plan; Arrange furniture elements on the double-line plan according to a preset strategy; After the home element arrangement is completed, the building core tube is generated based on the double-line plan, and the final building floor plan is obtained by combining the double-line plan and the building core tube.

2. The method for generating a building floor plan according to claim 1, characterized in that: The obtaining of building layer information and room information, and drawing of a single-line plan according to the building layer information and room information, includes: Determine a room area according to the building layer information and the room information; wherein the room area includes a single-line wall, a bay window and a balcony; Different room areas are distinguished and drawn using different layers to obtain the single-line plan.

3. The method for generating a building floor plan according to claim 1, characterized in that: The step of correcting the number of line segments in the single-line plan includes: Select a corner point as the origin in the single-line plan; The corner point is positioned at the origin as a base point, and the length of each line segment in the single-line plan is verified based on the base point to obtain a line segment length verification result; The fractional numbers in the line segment length verification result of each line segment are cancelled and rounded to an integer.

4. The method for generating a building floor plan according to claim 1, characterized in that: The step of generating an axis grid based on the corrected single-line plan view, and generating double-line wall and door and window elements according to the axis grid to obtain a corresponding double-line plan view includes: Based on the single-line plan, extract the exterior wall lines and interior wall lines; According to a preset compensation range, an axis range is generated based on the exterior wall line; Within the axis range, obtaining the corner point of the outer wall line, and generating a first axis by extending outward based on the corner point; According to the intersection line with the outer wall line, a second axis is generated toward the proximal end along the intersection direction; generating the inner wall line as a short axis line; The first axis, the second axis and the segment axis are combined to generate an axis grid of the single-line plan.

5. The method for generating a building floor plan according to claim 1, characterized in that: The method of generating an axis grid based on the corrected single-line plan view, and generating double-line wall and door and window graphic elements according to the axis grid to obtain a corresponding double-line plan view, further includes: Generate double-line walls for the single-line plan according to a preset wall generation principle; On the basis of the double-line wall, short vertical lines are used to locate the doors and windows; The door graphics are generated according to the preset door opening principle, and the window graphics are generated according to the preset window opening principle.

6. The method for generating a building floor plan according to claim 1, characterized in that: Arranging furniture graphic elements on the double-line plan according to a preset strategy includes: Determine the room function and the room width and depth type according to the building layer information and the room information; Select corresponding furniture graphic elements according to the room function and the room width and depth type; The furniture graphics elements are arranged at corresponding positions in the double-line plan.

7. The method for generating a building floor plan according to claim 1, characterized in that: The step of arranging furniture elements on the double-line plan according to a preset strategy also includes: In response to the furniture adjustment instruction, determining the replacement furniture graphic element and the replaced furniture graphic element according to the furniture adjustment instruction; The replaced furniture graphic element is removed from the two-line plan view, and the replaced furniture graphic element is updated to the two-line plan view.

8. A building floor plan generating device, characterized in that: include: A single-line drawing unit, used to obtain building layer information and room information, and draw a single-line plan according to the building layer information and room information; A line segment correction unit, used for correcting the number of line segments in the single-line plane diagram; A double-line generating unit is used to generate an axis grid based on the corrected single-line plan, and to generate double-line wall and door and window elements according to the axis grid to obtain a corresponding double-line plan; A furniture arrangement unit, used for arranging furniture elements on the double-line plan according to a preset strategy; A combined generation unit is used to generate a building core tube based on the double-line plan after completing the layout of home graphic elements, and to obtain a final building floor plan by combining the double-line plan and the building core tube.

9. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for generating a building floor plan as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for generating a building floor plan according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Wall recognition modeling method based on two-dimensional CAD drawing

    CN121074939A