Building module arrangement method and device based on building plane layout

By extracting the axis data and outer contour information of the building plan and combining the wall grid lines for module arrangement, the problem of lack of efficient and accurate module arrangement methods based on building plan layout in the existing technology is solved, and efficient and accurate processing of building plan and the generation of modular building solutions is achieved.

CN119862623AActive Publication Date: 2025-04-22UNIV OF SCI & TECH BEIJING +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411781780.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-05
Publication Date
2025-04-22
Estimated Expiration
2044-12-05

AI Technical Summary

Technical Problem

The prior art lacks an efficient and accurate method of building module arrangement based on building plan layout and suitable for both modules, especially when considering building plan layout and compatible with two types of building modules.

Method used

By obtaining building floor plan information and building module information, the preset LISP code is used to traverse the wall objects, extract wall coordinates and central axis position information, extract the outer contour line, and extend the wall grid line, and combine the outer contour line and wall grid line information to perform module arrangement to generate a building module arrangement plan.

Benefits of technology

It realizes efficient and precise processing of building floor plans, generates a modular building solution that meets the design requirements, and can flexibly use modules of two shapes for arrangement, improving design efficiency and quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862623A_ABST
    Figure CN119862623A_ABST
Patent Text Reader

Abstract

The invention provides a building module arrangement method and device based on a building plane layout, and relates to the technical field of building module arrangement. The method comprises the steps that wall coordinates are extracted according to building plane drawing information, and starting point coordinates and end point coordinates of a wall are obtained; extracting central axis coordinates according to the starting point coordinates and the end point coordinates to obtain central axis position information; based on building plane drawing information, outer contour line extraction is carried out according to the starting point coordinates, the end point coordinates and the central axis position information, and outer contour line position information is obtained; on the basis of building plane drawing information, according to the starting point coordinates and the end point coordinates, an inner wall in the building layout is extended to the two ends, and wall body grid lines are obtained; based on the wall grid lines, module arrangement is conducted according to the outer contour line position information and the building module information, and a building module arrangement scheme is obtained. The invention relates to an efficient and accurate building module arrangement method based on building plane layout and suitable for two types of modules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of building module arrangement, and in particular to a building module arrangement method and device based on building plane layout. Background Art

[0002] As an innovative architectural concept, modular construction has been rapidly promoted and applied around the world in recent years. Its core is to split the building into several standardized modules and realize the rapid construction of the building through the prefabrication and assembly of modules.

[0003] Although modular buildings have many advantages, they still face some challenges in practical applications. For example, when determining the module division scheme based on the building plan, traditional methods basically rely on the designer's experience to manually divide the modules. It is difficult to divide and fill the modules efficiently and accurately, which affects the design efficiency and quality of modular buildings to a certain extent. Many building plans are complex and diverse. When arranging modules, it is necessary to minimize the types of modules while meeting the needs of building use. In addition, the size of each module also needs to consider the requirements of production, transportation, hoisting, force and other links. These multiple factors make the module layout of the building plan complicated, limiting its application in a wider range.

[0004] With the rapid development of computer technology, digitalization and intelligence have gradually become important development directions in the field of architectural design. Computer technology makes the design process more efficient and accurate. Designers can design modular building solutions more intuitively by using computer-aided design software, including three-dimensional modeling, simulation analysis, etc., so as to better predict and optimize the performance of buildings. The application of computer technology also makes it possible to automatically generate module division schemes based on building floor plans, greatly improving the efficiency of design.

[0005] At present, there are few intelligent design methods for modular building module arrangement. Combining genetic algorithm and full stress design method, a modular steel structure building apartment size optimization and intelligent structural design method is proposed given the topological relationship of a given apartment. Although this method takes into account the building layout, the apartment type is given and immutable. On the basis of the apartment type, the size of each module is optimized, which is suitable for optimizing a given building plan. An intelligent generative method based on genetic algorithm and plane paving algorithm is used to solve the optimal plane layout of modular steel structure buildings, but this method arranges rectangular modules of given module size in a feasible domain without considering the building plan layout. Both of the above methods only consider the module shape as a rectangle, and do not consider L-shaped modules.

[0006] In the prior art, there is a lack of an efficient and accurate building module arrangement method based on the building plan layout and applicable to two modules. Summary of the invention

[0007] In order to solve the technical problems of the prior art that the building plan layout is not considered and the two types of building modules are not compatible, the embodiment of the present invention provides a building module arrangement method and device based on the building plan layout. The technical solution is as follows:

[0008] On the one hand, a method for arranging building modules based on a building plan layout is provided, the method being implemented by a building module arrangement device, the method comprising:

[0009] Obtain building plan information and building module information;

[0010] According to the architectural plan drawing information, the wall object is traversed through the preset LISP code, and the wall coordinates are extracted to obtain the starting point coordinates and the end point coordinates of the wall; the central axis coordinates are extracted according to the starting point coordinates and the end point coordinates to obtain the central axis position information;

[0011] Based on the building plan drawing information, extract the outer contour line according to the starting point coordinates, the end point coordinates and the center axis position information to obtain the outer contour line position information;

[0012] Based on the architectural plan drawing information, according to the starting point coordinates and the end point coordinates, the inner wall in the architectural layout is extended to both ends to obtain wall grid lines;

[0013] Based on the wall grid lines, modules are arranged according to the outer contour line position information and the building module information to obtain a building module arrangement plan.

[0014] On the other hand, a building module arrangement device based on a building plan layout is provided, and the device is applied to a building module arrangement method based on a building plan layout, and the device comprises:

[0015] An information acquisition module is used to acquire building plan drawing information and building module information;

[0016] The central axis position acquisition module is used to traverse the wall object through the preset LISP code according to the architectural plan drawing information, and extract the wall coordinates to obtain the starting point coordinates and end point coordinates of the wall; extract the central axis coordinates according to the starting point coordinates and end point coordinates to obtain the central axis position information;

[0017] An outer contour line position acquisition module is used to extract the outer contour line based on the building plan drawing information according to the starting point coordinates, the end point coordinates and the central axis position information to obtain the outer contour line position information;

[0018] A wall grid line acquisition module is used to extend the inner wall in the building layout to both ends based on the building plan drawing information and the starting point coordinates and the end point coordinates to obtain the wall grid lines;

[0019] The building module arrangement module is used to arrange modules based on the wall grid lines, according to the outer contour line position information and the building module information, and obtain a building module arrangement plan.

[0020] On the other hand, a building module arrangement device is provided, the building module arrangement device comprising: a processor; a memory, the memory storing computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the above-mentioned building module arrangement methods based on building plan layout is implemented.

[0021] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement any one of the above-mentioned building module arrangement methods based on building plan layout.

[0022] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0023] The present invention proposes a method for arranging building modules based on the building plan layout. By extracting the axis data of the building plan and considering the building plan layout, the building plan is efficiently and accurately processed under the premise of a given module data set, and a modular building plan that meets the design requirements is generated. By storing the module and contour line information in a stack, the stack is pushed and popped to backtrack and correct the module arrangement process. The present invention is an efficient and accurate building module arrangement method based on the building plan layout and applicable to two modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0025] Figure 1 It is a flow chart of a method for arranging building modules based on a building plan layout provided by an embodiment of the present invention;

[0026] Figure 2 It is a schematic diagram of central axis extraction provided by an embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of p3 point selection provided by an embodiment of the present invention;

[0028] Figure 4 is a schematic diagram of outer contour line extraction provided by an embodiment of the present invention;

[0029] Figure 5 is a schematic diagram of a wall grid line provided by an embodiment of the present invention;

[0030] Figure 6 is a schematic diagram of a screening scheme 16 provided in an embodiment of the present invention;

[0031] Figure 7 is a schematic diagram of a screening scheme 24 provided in an embodiment of the present invention;

[0032] Figure 8 It is a block diagram of a building module arrangement device based on a building plane layout provided by an embodiment of the present invention;

[0033] Fig. 9 It is a structural schematic diagram of a building module arrangement device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0035] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0036] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0037] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0038] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0039] The embodiment of the present invention provides a method for arranging building modules based on a building plan layout, which can be implemented by a building module arrangement device, which can be a terminal or a server. Figure 1 The flowchart of the method for arranging building modules based on the building plan layout is shown in the figure. The processing flow of the method may include the following steps:

[0040] S1. Obtain building plan drawing information and building module information.

[0041] The building module information includes building module size and building module type; the building module type includes rectangular building module and L-shaped building module.

[0042] In a feasible implementation, the module shapes are rectangular and L-shaped. During the arrangement process, the rectangular modules can be arranged horizontally or vertically, and the L-shaped modules can be rotated 0°, 90°, 180°, and 270°.

[0043] S2. According to the architectural plan drawing information, the wall object is traversed through the preset LISP code, and the wall coordinates are extracted to obtain the starting point coordinates and the endpoint coordinates of the wall; the central axis coordinates are extracted according to the starting point coordinates and the endpoint coordinates to obtain the central axis position information.

[0044] In a feasible implementation, the present invention uses List Processing Language (LISP) to extract the axis data of the wall from the architectural plan drawing. LISP is suitable for processing list and tree structured data. Taking Auto CAD as an example, LISP language has been widely used in the secondary development of Auto CAD. Through LISP language, various custom functions and extended functions of CAD software can be realized. LISP language allows developers to directly access and operate objects in CAD drawings. By calling the API (application programming interface) provided by Auto CAD, LISP code can read the attributes of the object, query geometric characteristics, perform mathematical calculations, etc.

[0045] When extracting the central axis of the wall, the LISP code can traverse all wall objects in the drawing, identify objects with central axis attributes, and extract coordinate information. Extract the starting point X coordinate, starting point Y coordinate, endpoint X coordinate, and endpoint Y coordinate of all wall axis segments in the building plan into a CSV file, use the pandas library function in Python to read the data, and then use the matplotlib library to draw the read line segment information. The extraction result of the central axis is as follows: Figure 2 shown.

[0046] S3. Based on the architectural plan drawing information, the outer contour line is extracted according to the starting point coordinates, the end point coordinates and the center axis position information to obtain the outer contour line position information.

[0047] Optionally, based on the architectural plan drawing information, outer contour line extraction is performed according to the starting point coordinates, the end point coordinates and the center axis position information to obtain the outer contour line position information, including:

[0048] Determine the starting point coordinates and the endpoint coordinates as LineString objects;

[0049] Based on the LineString object, extract the point with the smallest horizontal coordinate value to obtain the filter point set;

[0050] In the screening point set, extract the point with the smallest vertical coordinate value to obtain the lower left corner point as the starting position;

[0051] Based on the architectural plan drawing information and the central axis position information, starting from the lower left corner point, according to the LineString object, the outer contour line segments are collected in a clockwise direction to obtain the outer contour line position information.

[0052] In a feasible implementation, the present invention processes the architectural plan drawing data read from the CSV file to facilitate the subsequent code writing. Shapely is a Python programming library that uses the Cartesian coordinate system to perform geometric shape operations and analysis. It can implement and operate some basic geometric objects such as points (Point), lines (LineSring) and polygons (Polygon). Extract the starting point X coordinate, starting point Y coordinate, endpoint X coordinate, and endpoint Y coordinate of all line segments and define them as LineString objects. In order to obtain the outer contour line data, it is necessary to traverse each central axis and collect the line segments that are the outer contour lines.

[0053] Optionally, based on the architectural plan drawing information and the central axis position information, starting from the lower left corner point, outer contour line segments are collected in a clockwise direction according to the LineString object to obtain outer contour line position information, including:

[0054] Determine the lower left corner point as point p1;

[0055] Based on the architectural plan drawing information and the central axis position information, obtain the first line segment position information corresponding to the point p1; and obtain another point p2 of the line segment according to the first line segment position information and the point p1;

[0056] Based on the architectural plan drawing information and the central axis position information, find a second line segment position information set with p2 as the endpoint;

[0057] Based on the first line segment position information, a calculation is performed according to the second line segment position information set to obtain a line segment angle set;

[0058] Based on the second line segment position information set, select the line segment corresponding to the minimum value in the line segment angle set as the second line segment position information; obtain another point p3 of the line segment according to the second line segment position information and the point p2;

[0059] Determine point p2 as point p1; determine point p3 as point p2; repeat the above steps until point p3 is the lower left corner point, and collect the second line segment position information obtained in each round of calculation to obtain the outer contour line position information.

[0060] In a feasible implementation, in this step, starting from a line segment at the lower left corner of the plane, the outermost line segments are collected in a clockwise direction. The point set with the smallest X coordinate is extracted, and the point with the smallest Y coordinate in the point set is called the lower left corner point. This point must be the endpoint of a line segment constituting the outer contour line. Then, one or more line segments with one endpoint being the lower left corner point are extracted, and the point with the smallest Y coordinate among the other endpoints of these line segments is found. The line segment formed by this point and the lower left corner point is the starting line segment.

[0061] The lower left corner of the starting line segment is set as point p1, and the other point is set as p2. Find other line segments with point p2 as the endpoint, and set the other endpoint as point p3. Calculate the clockwise angle between the vector from p2 to p3 and the vector from p2 to p1, and select the point p3 represented by the smallest angle. The schematic diagram is as follows Figure 3 As shown. Collect line segments with endpoints p2 and p3, assign P2 to p1, assign p3 to p2, and repeat until you return to the starting line segment. The collection of all collected line segments is the outer contour line data, as shown Figure 4 shown.

[0062] S4. Based on the architectural plan drawing information, according to the starting point coordinates and the end point coordinates, the inner walls in the architectural layout are extended to both ends to obtain wall grid lines.

[0063] In a feasible implementation, considering the building layout, the positions of the corner points of the modules should be arranged at the intersection of a wall or multiple walls, rather than at any position in the room. Here, the inner walls of the module arrangement area are extended to both ends. When all the horizontal and vertical walls are extended, the grid lines of the wall are obtained, and all the wall grid lines are divided from each other, such as Figure 5 shown.

[0064] S5. Arrange modules based on the wall grid lines, the outer contour line position information and the building module information to obtain a building module arrangement plan.

[0065] Optionally, based on the wall grid lines, modules are arranged according to the outer contour line position information and the building module information to obtain a building module arrangement scheme, including:

[0066] Based on the position information of the outer contour line, the upper left corner point of the outer contour line is used as the starting point;

[0067] According to the building module information, obtain the building module information of this round of arrangement;

[0068] Based on the starting point, the wall grid line and the information of the building modules arranged in this round, the building modules are arranged along the outer contour line according to the arrangement principle to obtain the arrangement result;

[0069] The information of the building modules arranged in this round is saved to the stack M information storage module;

[0070] Calculate according to the current round of building module arrangement information and the outer contour line position information to obtain new outer contour line position information; save the new outer contour line position information to the stack W information storage module;

[0071] When the outer contour is full of modules, the building module arrangement plan is output according to the stack M information storage module and the stack W information storage module.

[0072] In a feasible implementation, a stack is a linear data structure that manages data using the "first in, last out" principle. The process of adding an element is called "pushing into the stack" and the process of removing an element is called "popping out of the stack." Two stacks are established in the present invention. The first stack is used to store the type and arrangement position information of the module, and this stack is called "stack M." The second stack is used to store the information of the outer contour line updated after the module is arranged, and this stack is called "stack W."

[0073] The stack does not allow direct access to the bottom elements, but can only reach the bottom by removing the elements at the top one by one. The module arrangement scheme adopted in the present invention is to arrange the modules from the upper left of the outer contour line. Every time a module is successfully arranged, the module information is put into the stack M, and the outer contour lines of the remaining unarranged module areas are extracted, that is, the information of the outer contour lines updated is put into the stack W, and circulated in sequence. If all modules in the module data set cannot be arranged in a certain position, then the information of the top layer of stack M and stack W is pushed out, and the modules are arranged backward from the progress of the previous step, and the effect of backtracking is achieved, until the entire outer contour line is full of modules. Through the push and pop functions, all the module arrangement schemes under this given module data set can be generated at last.

[0074] Among them, the arrangement principles include the first principle and the second principle; the first principle is that the building module is within the outer contour line; the second principle is that the corner point of the building module coincides with the grid intersection point of the wall grid line.

[0075] In a feasible implementation manner, to determine whether a module can be arranged in a certain position, it is necessary to satisfy that all corner points of the module must be at the grid intersections of the wall grid lines, and all parts of the module must be within the outer contour line.

[0076] In a feasible implementation, the present invention generates 25 schemes based on actual building data. Among them, the modular building layout scheme should minimize the number of module types and modules, and there is no strong correlation between the two. The specific selection can be based on the actual situation. The selected schemes are as follows: Figure 6 , Figure 7 As shown. Among them, Scheme 16 uses 14 modules and 7 types of modules; Scheme 24 uses 16 modules and 6 types of modules. Through the above technical solutions and methods, the building layout is fully considered, and two shapes of modules can be flexibly arranged to achieve efficient and accurate processing of the building plan, and generate a modular building plan that meets the design requirements.

[0077] The present invention proposes a method for arranging building modules based on the building plan layout. By extracting the axis data of the building plan and considering the building plan layout, the building plan is efficiently and accurately processed under the premise of a given module data set, and a modular building plan that meets the design requirements is generated. By storing the module and contour line information in a stack, the stack is pushed and popped to backtrack and correct the module arrangement process. The present invention is an efficient and accurate building module arrangement method based on the building plan layout and applicable to two modules.

[0078] Figure 8 is a block diagram of a building module arrangement device based on a building plan layout according to an exemplary embodiment, wherein the device is used in a building module arrangement method based on a building plan layout. Figure 8 The device includes an information acquisition module 810, a central axis position acquisition module 820, an outer contour position acquisition module 830, a wall grid line acquisition module 840 and a building module arrangement module 850. Among them:

[0079] The information acquisition module 810 is used to acquire building plan drawing information and building module information;

[0080] The central axis position acquisition module 820 is used to traverse the wall object according to the architectural plan drawing information through a preset LISP code, and extract the wall coordinates to obtain the starting point coordinates and the end point coordinates of the wall; extract the central axis coordinates according to the starting point coordinates and the end point coordinates to obtain the central axis position information;

[0081] The outer contour line position acquisition module 830 is used to extract the outer contour line based on the building plan drawing information according to the starting point coordinates, the end point coordinates and the center axis position information to obtain the outer contour line position information;

[0082] The wall grid line acquisition module 840 is used to extend the inner wall in the building layout to both ends based on the building plan drawing information and the starting point coordinates and the end point coordinates to obtain the wall grid lines;

[0083] The building module arrangement module 850 is used to arrange modules based on the wall grid lines, the outer contour line position information and the building module information to obtain a building module arrangement plan.

[0084] The building module information includes building module size and building module type; the building module type includes rectangular building module and L-shaped building module.

[0085] Optionally, the outer contour line position acquisition module 830 is further used to:

[0086] Determine the starting point coordinates and the endpoint coordinates as LineString objects;

[0087] Based on the LineString object, extract the point with the smallest horizontal coordinate value to obtain the filter point set;

[0088] In the screening point set, extract the point with the smallest vertical coordinate value to obtain the lower left corner point as the starting position;

[0089] Based on the architectural plan drawing information and the central axis position information, starting from the lower left corner point, according to the LineString object, the outer contour line segments are collected in a clockwise direction to obtain the outer contour line position information.

[0090] Optionally, the outer contour line position acquisition module 830 is further used to:

[0091] Determine the lower left corner point as point p1;

[0092] Based on the architectural plan drawing information and the central axis position information, obtain the first line segment position information corresponding to the point p1; and obtain another point p2 of the line segment according to the first line segment position information and the point p1;

[0093] Based on the architectural plan drawing information and the central axis position information, find a second line segment position information set with p2 as the endpoint;

[0094] Based on the first line segment position information, a calculation is performed according to the second line segment position information set to obtain a line segment angle set;

[0095] Based on the second line segment position information set, select the line segment corresponding to the minimum value in the line segment angle set as the second line segment position information; obtain another point p3 of the line segment according to the second line segment position information and the point p2;

[0096] Determine point p2 as point p1; determine point p3 as point p2; repeat the above steps until point p3 is the lower left corner point, and collect the second line segment position information obtained in each round of calculation to obtain the outer contour line position information.

[0097] Optionally, the building module arrangement module 850 is further used to:

[0098] Based on the position information of the outer contour line, the upper left corner point of the outer contour line is used as the starting point;

[0099] According to the building module information, obtain the building module information of this round of arrangement;

[0100] Based on the starting point, the wall grid line and the information of the building modules arranged in this round, the building modules are arranged along the outer contour line according to the arrangement principle to obtain the arrangement result;

[0101] The information of the building modules arranged in this round is saved to the stack M information storage module;

[0102] Calculate according to the current round of building module arrangement information and the outer contour line position information to obtain new outer contour line position information; save the new outer contour line position information to the stack W information storage module;

[0103] When the outer contour is full of modules, the building module arrangement plan is output according to the stack M information storage module and the stack W information storage module.

[0104] Among them, the arrangement principles include the first principle and the second principle; the first principle is that the building module is within the outer contour line; the second principle is that the corner point of the building module coincides with the grid intersection point of the wall grid line.

[0105] The present invention proposes a method for arranging building modules based on the building plan layout. By extracting the axis data of the building plan and considering the building plan layout, the building plan is efficiently and accurately processed under the premise of a given module data set, and a modular building plan that meets the design requirements is generated. By storing the module and contour line information in a stack, the stack is pushed and popped to backtrack and correct the module arrangement process. The present invention is an efficient and accurate building module arrangement method based on the building plan layout and applicable to two modules.

[0106] Fig. 9 is a structural schematic diagram of a building module arrangement device provided by an embodiment of the present invention, such as Fig. 9 As shown, the building module arrangement equipment may include the above Figure 8The building module arrangement device based on the building plan layout is shown. Optionally, the building module arrangement device 910 may include a first processor 2001.

[0107] Optionally, the building module arrangement device 910 may further include a memory 2002 and a transceiver 2003 .

[0108] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0109] Combine the following Fig. 9 The various components of the building module arrangement device 910 are specifically introduced:

[0110] The first processor 2001 is the control center of the building module arrangement device 910, and can be a processor or a general term for multiple processing elements. For example, the first processor 2001 is one or more central processing units (CPUs), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs).

[0111] Optionally, the first processor 2001 can perform various functions of the building module arrangement device 910 by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002.

[0112] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Fig. 9 CPU0 and CPU1 are shown in FIG.

[0113] In a specific implementation, as an embodiment, the building module arrangement device 910 may also include multiple processors, such as Fig. 9 The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0114] The memory 2002 is used to store the software program for executing the solution of the present invention, and is controlled to be executed by the first processor 2001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0115] Optionally, the memory 2002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2002 may be integrated with the first processor 2001, or may exist independently and access the first processor 2001 through the interface circuit ( Fig. 9 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0116] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0117] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Fig. 9 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0118] Optionally, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently and be connected to the interface circuit ( Fig. 9 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0119] It should be noted that Fig. 9 The structure of the building module arrangement device 910 shown in the figure does not constitute a limitation on the router, and the actual knowledge structure recognition device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0120] In addition, the technical effects of the building module arrangement device 910 can refer to the technical effects of the building module arrangement method based on the building plane layout described in the above method embodiment, and will not be repeated here.

[0121] It should be understood that the first processor 2001 in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0122] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0123] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0124] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0125] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0126] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0127] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0128] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0129] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0130] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0132] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0133] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for arranging building modules based on building plan layout, characterized in that: The method comprises: Obtain building plan information and building module information; According to the architectural plan drawing information, the wall object is traversed through the preset LISP code, and the wall coordinates are extracted to obtain the starting point coordinates and the end point coordinates of the wall; the central axis coordinates are extracted according to the starting point coordinates and the end point coordinates to obtain the central axis position information; Based on the building plan drawing information, extract the outer contour line according to the starting point coordinates, the end point coordinates and the center axis position information to obtain the outer contour line position information; Based on the building plan drawing information, according to the starting point coordinates and the end point coordinates, the inner wall in the building layout is extended to both ends to obtain the wall grid lines; Based on the wall grid lines, modules are arranged according to the outer contour line position information and the building module information to obtain a building module arrangement plan.

2. The method for arranging building modules based on building plan layout according to claim 1, characterized in that: The building module information includes building module size and building module type; the building module type includes rectangular building modules and L-shaped building modules.

3. The method for arranging building modules based on building plan layout according to claim 1, characterized in that: The extracting of the outer contour line based on the architectural plan drawing information according to the starting point coordinates, the end point coordinates and the central axis position information to obtain the outer contour line position information includes: Determine the starting point coordinates and the endpoint coordinates as LineString objects; Based on the LineString object, extract the point with the smallest horizontal coordinate value to obtain a screening point set; In the screening point set, extract the point with the smallest vertical coordinate value to obtain the lower left corner point as the starting position; Based on the building plan drawing information and the central axis position information, starting from the lower left corner point, outer contour line segments are collected in a clockwise direction according to the LineString object to obtain outer contour line position information.

4. The method for arranging building modules based on building plan layout according to claim 1, characterized in that: The method of collecting outer contour line segments in a clockwise direction based on the architectural plan drawing information and the central axis position information from the lower left corner point according to the LineString object to obtain the outer contour line position information includes: Determine the lower left corner point as point p1; Based on the building plan drawing information and the central axis position information, obtain the first line segment position information corresponding to the point p1; and obtain another point p2 of the line segment according to the first line segment position information and the point p1; Based on the building plan drawing information and the central axis position information, find a second line segment position information set with p2 as an endpoint; Based on the first line segment position information, calculation is performed according to the second line segment position information set to obtain a line segment angle set; Based on the second line segment position information set, select the line segment corresponding to the minimum value in the line segment angle set as the second line segment position information; and obtain another line segment point p3 according to the second line segment position information and the point p2; Determine the point p2 as point p1; determine the point p3 as point p2; repeat the above steps until point p3 is the lower left corner point, and collect the second line segment position information obtained in each round of calculation to obtain the outer contour line position information.

5. The method for arranging building modules based on building plan layout according to claim 1, characterized in that: The step of arranging modules based on the wall grid lines, according to the outer contour line position information and the building module information, and obtaining a building module arrangement scheme includes: Based on the outer contour line position information, taking the upper left corner point of the outer contour line as the starting point; According to the building module information, obtain the building module information of this round of arrangement; Based on the starting point, the wall grid line and the information of the building modules arranged in this round, the building modules are arranged along the outer contour line according to the arrangement principle to obtain an arrangement result; The information of the building modules arranged in this round is saved in the stack M information storage module; Calculate according to the current round of arranged building module information and the outer contour line position information to obtain new outer contour line position information; save the new outer contour line position information to the stack W information storage module; When the outer contour is fully filled with modules, the building module arrangement plan is output according to the stack M information storage module and the stack W information storage module.

6. The method for arranging building modules based on building plan layout according to claim 5, characterized in that: The arrangement principles include a first principle and a second principle; the first principle is that the building modules are within the outer contour line; the second principle is that the corner points of the building modules coincide with the grid intersections of the wall grid lines.

7. A building module arrangement device based on a building plan layout, the building module arrangement device based on a building plan layout is used to implement the building module arrangement method based on a building plan layout as claimed in any one of claims 1 to 6, characterized in that: The device comprises: An information acquisition module is used to acquire building plan drawing information and building module information; The central axis position acquisition module is used to traverse the wall object through the preset LISP code according to the architectural plan drawing information, and extract the wall coordinates to obtain the starting point coordinates and end point coordinates of the wall; extract the central axis coordinates according to the starting point coordinates and end point coordinates to obtain the central axis position information; An outer contour line position acquisition module is used to extract the outer contour line based on the building plan drawing information according to the starting point coordinates, the end point coordinates and the central axis position information to obtain the outer contour line position information; A wall grid line acquisition module is used to extend the inner wall in the building layout to both ends based on the building plan drawing information and the starting point coordinates and the end point coordinates to obtain the wall grid lines; The building module arrangement module is used to arrange modules based on the wall grid lines, according to the outer contour line position information and the building module information, and obtain a building module arrangement plan.

8. The building module arrangement device based on building plan layout according to claim 7, characterized in that: The outer contour line position acquisition module is further used for: Determine the starting point coordinates and the endpoint coordinates as LineString objects; Based on the LineString object, extract the point with the smallest horizontal coordinate value to obtain a screening point set; In the screening point set, extract the point with the smallest vertical coordinate value to obtain the lower left corner point as the starting position; Based on the building plan drawing information and the central axis position information, starting from the lower left corner point, outer contour line segments are collected in a clockwise direction according to the LineString object to obtain outer contour line position information.

9. A building module arrangement device, characterized in that: The building module arrangement device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Building information model construction method and system

    CN114925433A

  • Generation method and device of room arrangement scheme

    CN115203812A

  • Generation method, device and equipment of modular steel structure model and medium

    CN117195383A

  • Room arrangement method and device, electronic equipment and storage medium

    CN118779940A