Method, apparatus, storage medium and electronic device for rapid modeling
By automatically generating shear walls and beams in the frame selection operation in the architectural design drawings, the problems of inefficiency and error prone in the existing technology are solved, and fast and accurate structural design is achieved.
Patent Information
- Application Number
- CN202411135504.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2044-08-19
AI Technical Summary
In the prior art, structural engineers rely on manual operations when laying out structural components such as shear walls, beams and floor slabs, resulting in inefficiency and prone to errors.
By receiving the user's frame selection operation for the architectural design drawing, the drawing area is automatically determined, and structural components such as shear walls and house beams are generated based on the area, including adjusting the length of the local wall and dividing rectangular areas to generate shear walls that meet the integer multiple relationship, and optimizing the beam layout.
The efficiency of structural component layout is significantly improved, the errors caused by manual operation are reduced, and a fast and accurate structural design is achieved.
Smart Images

Figure CN118886102B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer-aided design, and more specifically, to a method, device, storage medium, and electronic device for rapid modeling. Background Art
[0002] Structural engineers, as professionals specializing in the analysis and design of building structures, ensure the safety and stability of building structures through precise calculations and careful material selection. In the current workflow, structural engineers are responsible for arranging structural components such as shear walls, beams, and floor slabs based on the architectural design drawings provided by the architect. This process primarily relies on visual inspection of the drawings, combined with personal expertise and extensive experience, to accurately locate the shear wall settings and the starting and ending points of the beams. Subsequently, the dimensions of the shear walls and beams, as well as their left and right eccentric positions, must be carefully adjusted based on the location and width of the building walls. The design of floor slabs also relies on the structural engineer's understanding of architectural diagrams or textual descriptions to set appropriate parameters for each floor slab.
[0003] However, existing technical implementation methods rely heavily on manual labor, and architectural floor plans are often subject to constant adjustment. This forces structural engineers to make numerous repetitive revisions, inevitably increasing the likelihood of errors. Therefore, improving the efficiency of structural component layout has become a key issue that needs to be addressed in the industry. Summary of the Invention
[0004] To overcome at least one of the deficiencies in the prior art, the present application provides a method, apparatus, storage medium, and electronic device for rapid modeling, specifically comprising:
[0005] In a first aspect, the present application provides a method for rapid modeling, comprising:
[0006] receiving and responding to a user's selection operation on the architectural design drawing, and determining a drawing area from the architectural design drawing;
[0007] A shear wall is generated according to the drawn area.
[0008] In conjunction with an optional implementation manner of the first aspect, generating a shear wall according to the drawn area includes:
[0009] Determining a local wall located in the drawing area from the architectural design drawing;
[0010] Based on the partial wall, a shear wall is generated that at least partially overlaps with the partial wall in the length direction.
[0011] Combined with the optional implementation of the first aspect, generating a shear wall that at least partially coincides with the local wall in the length direction according to the local wall includes:
[0012] For each segment of the local wall, obtain the length of the local wall;
[0013] If the relationship of an integer multiple is not satisfied between the length of the local wall and the shortest length of the shear wall, then use the start and end positions of the local wall as the initial start and end positions of the shear wall;
[0014] Adjust at least one of the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall, so that the relationship of an integer multiple is satisfied between the length of the shear wall and the shortest length;
[0015] Generate the shear wall according to the target start and end positions of the shear wall.
[0016] Combined with the optional implementation of the first aspect, adjusting at least one of the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall includes:
[0017] Determine the complete wall to which the local wall belongs;
[0018] If one of the initial start and end positions is aligned with one end of the complete wall, then adjust the unaligned position in the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall;
[0019] If the initial start and end positions are not aligned with any end of the complete wall, then adjust at least one of the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall.
[0020] Combined with the optional implementation of the first aspect, the method further includes:
[0021] Determine the rectangular areas and non-rectangular areas from the building design drawing, where the rectangular areas are the areas corresponding to rectangular rooms, and the non-rectangular areas are the areas corresponding to non-rectangular rooms;
[0022] Divide the non-rectangular areas into rectangular sub-areas, where the rectangular sub-areas divided from the non-rectangular areas include the largest rectangular area that the non-rectangular area can be divided into;
[0023] Take the rectangular areas and the rectangular sub-areas as the areas to be optimized respectively, and determine the dividing lines between the multiple areas to be optimized;
[0024] Generate roof beams along the dividing lines.
[0025] Combined with the optional implementation manner of the first aspect, generating a roof beam along the dividing line includes:
[0026] Regarding the multiple rectangular sub-regions and the rectangular region respectively as regions to be optimized;
[0027] Sorting each of the regions to be optimized in descending order of area to obtain a sorting result;
[0028] Generating a roof beam for the target dividing line of each of the regions to be optimized in sequence according to the sorting result, where the target dividing line represents a dividing line without a generated roof beam.
[0029] Combined with the optional implementation manner of the first aspect, the method further includes:
[0030] For each shear wall, if an end to be optimized is determined from both ends of the shear wall, then determine whether the distance between the end to be optimized and the adjacent wall is less than a span threshold, where there is no roof beam collinear with the shear wall or other shear walls at the end to be optimized, and the adjacent wall represents the wall closest to the end to be optimized along the length direction of the shear wall;
[0031] If it is less than the span threshold, then generate a roof beam that is connected to the shear wall and the adjacent wall along the length direction of the shear wall based on the end to be optimized.
[0032] Combined with the optional implementation manner of the first aspect, the method further includes:
[0033] For a non-rectangular floor slab in the architectural design drawing, obtain an outer circumscribed rectangle that tightly wraps the contour of the non-rectangular floor slab;
[0034] Determine the floor slab thickness of the non-rectangular floor slab according to the length-width ratio of the outer circumscribed rectangle.
[0035] In a second aspect, the present application provides a device for rapid modeling, and the device includes:
[0036] A region selection module, configured to receive and respond to a user's selection operation on an architectural design drawing, and determine a drawing region from the architectural design drawing;
[0037] An automatic drawing module, configured to generate shear walls according to the drawing region.
[0038] Combined with the optional implementation manner of the second aspect, the automatic drawing module is further specifically configured to:
[0039] Determine local walls located in the drawing region from the architectural design drawing;
[0040] Generate a shear wall that at least partially overlaps with the local wall in the length direction according to the local wall.
[0041] Combined with the optional implementation manner of the second aspect, the automatic drawing module is further specifically configured to:
[0042] For each segment of the local wall, obtain the length of the local wall;
[0043] If the relationship of an integer multiple is not satisfied between the length of the local wall and the shortest length of the shear wall, then use the start and end positions of the local wall as the initial start and end positions of the shear wall;
[0044] Adjust at least one of the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall, so that the relationship of an integer multiple is satisfied between the length of the shear wall and the shortest length;
[0045] Generate the shear wall according to the target start and end positions of the shear wall.
[0046] Combined with the optional implementation manner of the second aspect, the automatic drawing module is further specifically configured to:
[0047] Determine the complete wall to which the local wall belongs;
[0048] If one of the initial start and end positions is aligned with one end of the complete wall, then adjust the unaligned position in the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall;
[0049] If the initial start and end positions are not aligned with any end of the complete wall, then adjust at least one of the initial start and end positions in the length direction to obtain the target start and end positions of the shear wall.
[0050] Combined with the optional implementation manner of the second aspect, the automatic drawing module is further configured to:
[0051] Determine the rectangular areas and non-rectangular areas from the building design drawing, where the rectangular areas are the areas corresponding to rectangular rooms, and the non-rectangular areas are the areas corresponding to non-rectangular rooms;
[0052] Divide the non-rectangular area into rectangular sub-areas, where the rectangular sub-areas divided from the non-rectangular area include the largest rectangular area that the non-rectangular area can be divided into;
[0053] Take the rectangular areas and the rectangular sub-areas as the areas to be optimized respectively, and determine the dividing lines between the multiple areas to be optimized;
[0054] Generate a roof beam along the dividing line.
[0055] In combination with the optional implementation manner of the second aspect, the automatic drawing module is further specifically configured to:
[0056] Take the multiple rectangular sub-regions and the rectangular region as the regions to be optimized respectively;
[0057] Sort each of the regions to be optimized in descending order of area to obtain a sorting result;
[0058] Generate beams for the target dividing lines of each of the regions to be optimized in sequence according to the sorting result, where the target dividing line represents a dividing line without a generated beam.
[0059] In combination with the optional implementation manner of the second aspect, the automatic drawing module is further configured to:
[0060] For each shear wall, if a to-be-optimized end is determined from both ends of the shear wall, determine whether the distance between the to-be-optimized end and the adjacent wall is less than a span threshold, where there is no beam collinear with the shear wall or other shear walls at the to-be-optimized end, and the adjacent wall represents the wall closest to the to-be-optimized end along the length direction of the shear wall;
[0061] If it is less than the span threshold, generate a beam that is connected to the shear wall and the adjacent wall along the length direction of the to-be-optimized end.
[0062] In combination with the optional implementation manner of the second aspect, the automatic drawing module is further configured to:
[0063] For a non-rectangular floor slab in the building design drawing, obtain an externally tangent rectangle that tightly wraps the contour of the non-rectangular floor slab;
[0064] Determine the floor slab thickness of the non-rectangular floor slab according to the aspect ratio of the length to the width of the externally tangent rectangle.
[0065] In a third aspect, the present application further provides a storage medium storing a computer program, which, when executed by a processor, implements the method for rapid modeling.
[0066] In a fourth aspect, the present application further provides an electronic device including a processor and a memory, where the memory stores a computer program, which, when executed by the processor, implements the method for rapid modeling.
[0067] Compared with the prior art, the present application has the following beneficial effects:
[0068] This application provides a method, device, storage medium, and electronic device for rapid modeling. Among them, the electronic device receives and responds to the user's box selection operation on the architectural design drawing, and determines the drawing area from the architectural design drawing; and generates shear walls according to the drawing area. In this way, compared with structural designers who rely on professional knowledge and experience to draw shear walls one by one, automatically generating shear walls based on the box-selected drawing area greatly improves the drawing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] To more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required for the embodiments. It should be understood that the following drawings only show some embodiments of this application, and therefore should not be regarded as a limitation of the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.
[0070] Figure 1 One of the method flowcharts provided by the embodiments of this application;
[0071] Figure 2 Schematic diagram of the extraction of the drawing area provided by the embodiments of this application;
[0072] Figure 3 One of the schematic diagrams of the relationship between partial walls and complete walls provided by the embodiments of this application;
[0073] Figure 4 Another schematic diagram of the relationship between partial walls and complete walls provided by the embodiments of this application;
[0074] Figure 5 Another method flowchart provided by the embodiments of this application;
[0075] Figure 6 Schematic diagram of the room provided by the embodiments of this application;
[0076] Figure 7 Schematic diagram of the division of rectangular sub-regions provided by the embodiments of this application;
[0077] Figure 8 Schematic diagram of the highest ridge provided by the embodiments of this application;
[0078] Figure 9 Schematic diagram of the main space provided by the embodiments of this application;
[0079] Figure 10 Schematic diagram of the small-span beam provided by the embodiments of this application;
[0080] Figure 11 Optimized effect diagram of the small-span beam provided by the embodiments of this application;
[0081] Figure 12 Schematic diagram of the optimized position of the roof beam provided by the embodiment of the present application;
[0082] Figure 13 Schematic diagram of the optimized effect of the roof beam provided by the embodiment of the present application;
[0083] Figure 14 Schematic diagram of the floor slab provided by the embodiment of the present application;
[0084] Figure 15 Schematic diagram of the circumscribed rectangle provided by the embodiment of the present application;
[0085] Figure 16 Schematic diagram of the virtual device provided by the embodiment of the present application;
[0086] Figure 17 Schematic diagram of the electronic device provided by the embodiment of the present application. Detailed implementation manners
[0087] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some, but not all, of the embodiments of the present application. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.
[0088] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents the selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0089] It should be noted that: like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0090] In the description of the present application, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the inventive product is usually placed during use. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be construed as a limitation of the present application. In addition, the terms "first", "second", "third", etc. are only used for descriptive distinction and cannot be construed as indicating or implying relative importance.
[0091] In addition, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus 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 apparatus. Without further limitation, an element qualified by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
[0092] In addition, terms such as "horizontal", "vertical", "overhanging", etc. do not mean that the components are required to be absolutely horizontal or overhanging, but may be slightly inclined. For example, "horizontal" only means that its direction is more horizontal relative to "vertical", and does not mean that the structure must be completely horizontal, but may be slightly inclined.
[0093] Based on the above statements, as introduced in the background art, structural engineers rely on professional knowledge and experience to manually arrange building structure components, but this method is inefficient and error-prone due to frequent adjustments in building floor plans, and improving the arrangement efficiency has become an urgent need in the industry.
[0094] Based on the discovery of the above technical problems, the inventors have proposed the following technical solutions through creative labor to solve or improve the above problems. It should be noted that the defects existing in the above solutions in the prior art are the results obtained by the inventors through practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by the embodiments of the present application below for the above problems should be the contributions made by the inventors to the present application during the invention creation process, and should not be understood as the technical content known to those skilled in the art.
[0095] In view of this, this embodiment provides a method for rapid modeling. In this method, an electronic device receives and responds to a user's box selection operation on a building design drawing, and determines a drawing area from the building design drawing; and generates shear walls according to the drawing area. Thus, compared with structural designers relying on professional knowledge and experience to draw shear walls one by one, automatically generating shear walls based on the box-selected drawing area greatly improves the drawing efficiency.
[0096] It should be noted that the electronic device implementing this method can be, but is not limited to, a mobile terminal, a tablet computer, a laptop computer, a desktop computer, a server, etc. The server group can be centralized or distributed (for example, the server can be a distributed system). In some embodiments, the server can be local or remote relative to the user terminal. In some embodiments, the server can be implemented on a cloud platform; by way of example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof. In some embodiments, the server can be implemented on an electronic device having one or more components. When the electronic device is a server, the user terminal and the server are communicatively connected via a network, and a structural designer can access the server through the user terminal and design building structure components in the operation interface provided by the server. The user terminal can be, but is not limited to, a mobile terminal, a tablet computer, a laptop computer, etc. For example, the user terminal can be a laptop computer.
[0097] To make the solution provided in this embodiment clearer, the following takes the server as the electronic device implementing this method and elaborates on each step of the method in combination with Figure 1 However, it should be understood that when implementing this method through the server, the user terminal converts the user's drawing operation into an operation instruction and sends it to the server, so that the server can indirectly receive the user's drawing operation through the user terminal and respond. The operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship can be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application. As Figure 1 shown, the method includes:
[0098] S1, receiving and responding to the user's selection operation on the building design drawing, and determining a drawing area from the building design drawing.
[0099] It should be noted that the above building design drawing is pre-designed by an architect. The structural designer needs to design structural members on the basis of the building design drawing, such as shear walls, beams, floor slabs, etc. In this embodiment, the structural designer can use input devices such as a mouse, a touchpad, a touch screen, etc. to control the mouse pointer to determine a drawing area in the building design drawing. Exemplarily, as Figure 2 shown, the server provides an interface for displaying and editing the building design Figure 10 and it should be noted that due to area limitations, Figure 2Only a part of the complete building design drawing is shown. Based on this interface, the structural designer can move the mouse pointer 11 to the starting position 12 of the area in the building design Figure 10 where the area to be selected is desired, then press and hold the left mouse button, and at the same time slowly drag the mouse. The mouse pointer 11 will move along and draw a drawing area 13 on the interface. The size of the drawing area 13 will change synchronously with the movement of the mouse pointer 11. Therefore, continue to drag the mouse pointer 11 until the selection box covers the entire area required, and finally release the left mouse button to determine the required drawing area 13 from the building design Figure 10
[0100] In other alternative embodiments, the drawing area 13 can also be determined from the building design Figure 10 by inputting a command line or a script. For example, the coordinates of the upper left corner and the lower right corner of the drawing area 13 are specified through the command line, and based on the coordinates of the upper left corner and the lower right corner, the drawing area is determined.
[0101] Based on the introduction of the method for determining the drawing area in the above embodiments, continue to refer to Figure 1 , the method for rapid modeling provided in this embodiment further includes:
[0102] S2. Generate shear walls according to the drawing area.
[0103] It can be understood that the drawing area gives the approximate range for automatically generating shear walls, and it is necessary to use the drawing area as a reference to generate shear walls that meet the structural specifications. For this, the following alternative embodiments of step S2 are provided in this embodiment:
[0104] S2-1. Determine the local walls located in the drawing area from the building design drawing.
[0105] For this, continue to refer to Figure 2 , a part of the boundary of the drawing area will intersect with the building walls in the entire building design drawing, thereby intercepting the local walls located in the drawing area.
[0106] S2-2. Generate shear walls that at least partially overlap with the local walls in the length direction according to the local walls.
[0107] For the above embodiments, it should be understood that if multiple local walls are intercepted in the drawing area, it means that multiple shear walls can be drawn simultaneously. Compared with the prior art where the structural designer draws shear walls one by one, through the above embodiments, multiple shear walls can be drawn at one time, significantly improving the work efficiency of the structural designer.
[0108] It should be noted that the lengths of shear walls are basically integer multiples of 50 mm. However, for the partial walls intercepted in the drawing area selected by the structural designers, their lengths may not be integer multiples of 50 mm. Therefore, when generating shear walls, the lengths need to be adjusted. In this regard, in this embodiment, after deducting the pre-reserved door and window openings in the building design from the partial walls remaining within the selected range, the baseline is further rounded, and the shear walls are generated based on the rounded baseline and the left and right widths of the partial walls. The baseline in the above implementation is used to clarify the drawing reference of the building walls. In the building design phase, the designer first uses the mouse tool to draw a baseline. Subsequently, the server will automatically generate the corresponding building walls according to the pre-set left width and right width.
[0109] In the specific implementation, for each partial wall, the server obtains the length of the partial wall; if the length of the partial wall does not satisfy an integer multiple relationship with the shortest length of the shear wall, the start and end positions of the partial wall are used as the initial start and end positions of the shear wall; at least one of the initial start and end positions is adjusted along the length direction to obtain the target start and end positions of the shear wall, so that the length of the shear wall satisfies an integer multiple relationship with the shortest length; the shear wall is generated according to the target start and end positions of the shear wall.
[0110] Of course, if the length of the partial wall satisfies an integer multiple relationship with the shortest length of the shear wall, the start position of the shear wall is directly used as the target start and end position of the shear wall. It should be noted that the start and end positions in the above embodiments include two positions, namely the start position and the end position in the length direction.
[0111] Exemplarily, assume that the length of the partial wall is 1129 mm. Considering that the length of the shear wall is usually an integer multiple of 50 mm (this is based on the standard practice in the construction industry), the length of the partial wall does not satisfy an integer multiple relationship. Therefore, the start and end positions of the partial wall can be used as the initial start and end positions of the shear wall, and it can be appropriately extended or shortened to obtain the target start and end positions of the shear wall. For example, if the length of the partial wall is 1129 mm, the length of the shear wall can be 1100 mm or 1150 mm, so as to satisfy an integer multiple relationship with 50 mm. In addition, when extending or shortening, only one of the start and end positions can be adjusted along the length direction, or both positions can be adjusted along the length direction simultaneously.
[0112] In the practical process, it is found that except for the case where the drawing area intercepts a complete wall, the partial walls intercepted in the drawing area will show Figure 3 and Figure 4 two situations. In Figure 3 , the partial wall 22 is aligned with one end of the complete wall 21 to which it belongs, that is, the partial wall 22 includes an end point of the complete wall 21. And in Figure 4In it, neither end of the partial wall 22 is aligned with the two ends of the complete wall 21. Given that the length of some inclined building walls is not an integer itself, if the drawing area intercepts the complete wall, it does not need to satisfy an integer multiple relationship with the shortest length. For Figure 3 and Figure 4 shown in the two cases, different adjustment strategies need to be adopted to obtain the target start and end positions of the shear wall. For this, this embodiment also provides the following implementation manners:
[0113] The server determines the complete wall to which the partial wall belongs; if one of the initial start and end positions is aligned with one end of the complete wall, the unaligned position in the initial start and end positions is adjusted along the length direction to obtain the target start and end positions of the shear wall; if the initial start and end positions are not aligned with any end of the complete wall, at least one of the initial start and end positions is adjusted along the length direction to obtain the target start and end positions of the shear wall.
[0114] Exemplarily, continuing with the partial wall 22 in Figure 3 as an example, since Figure 3 one end of the partial wall 22 in it is aligned with one end of the complete wall, the position of the other end of the partial wall 22 can be adjusted to the left or to the right to obtain the target start and end positions of the shear wall.
[0115] For Figure 4 shown partial wall 22, since this partial wall 22 is located in the middle of the complete wall 21 and is not aligned with any end of the complete wall 21, the positions of both ends of the partial wall 22 can be adjusted simultaneously along the length direction, that is, adjusted simultaneously along the left and right sides in the figure, to obtain the target start and end positions of the shear wall; or the position of one end of the partial wall 22 is adjusted along the length direction to obtain the target start and end positions of the shear wall.
[0116] For example, taking the adjustment simultaneously on both the left and right sides as an example. For Figure 4 the complete wall 21 in it, the end closest to both ends of the partial wall 22 is used as the anchor point. Then, the position of the end of the partial wall 22 close to the anchor point is adjusted along the length direction so that the distance from the anchor point to the proximal end of the partial wall 22 is an integer multiple of 50 mm, and the position of the end of the partial wall 22 far from the anchor point is adjusted along the length direction to obtain the target start and end positions of the shear wall, so that the length of the generated shear wall is also an integer multiple of 50 mm.
[0117] It should be noted that when automatically drawing the shear wall through the above embodiments, if the baseline of the drawn shear wall coincides with the baseline of the existing beam in the architectural design drawing, the overlapping part of the existing beam is automatically cut off. When it coincides with the baseline of the existing shear wall, the overlapping part of this shear wall is automatically cut off, and the remaining new shear wall is drawn.
[0118] In addition, to facilitate the operation of designers, a preview effect of shear walls is provided for designers during the process of selecting the drawing area. As an optional implementation manner, when dragging the mouse pointer 11, a preset texture or color can also be synchronously assigned to the intercepted partial wall, and the length of the shear wall generated based on the intercepted partial wall is displayed, so as to facilitate designers to preview. For example, Figure 2 the actual length of a partial wall currently intercepted in [the figure] is 1129 mm, and the length of the shear wall generated based on this partial wall should be 1150 mm. Therefore, 1150 mm is displayed at a position close to this partial wall, and a texture different from the original wall is assigned to the intercepted partial wall to represent the shear wall. It should be noted that Figure 2 the marked 1129 mm in [the figure] is only for the convenience of understanding and is not displayed during the actual drawing process, but only 1150 mm obtained based on 1129 mm is displayed.
[0119] Based on the existing partition walls, shear walls, roof beams, etc. in the architectural design drawing, the rapid modeling method provided in this embodiment can also automatically generate new roof beams in the architectural design drawing. In this regard, as Figure 5 shown in [the figure], on the basis of Figure 1 this, the method further includes:
[0120] S3, determining rectangular areas and non-rectangular areas from the architectural design drawing.
[0121] Among them, the rectangular area is the area corresponding to a rectangular room, and the non-rectangular area is the area corresponding to a non-rectangular room.
[0122] S4, dividing the non-rectangular area into rectangular sub-areas.
[0123] Among them, the rectangular sub-areas divided from the non-rectangular area include the largest rectangular area that the non-rectangular area can be divided into. This largest rectangular area is also called the main space. In this way, it is avoided that there are beams inside the main space, making the interior look more beautiful. In addition, in an optional implementation manner, the rectangular sub-areas divided from the non-rectangular area need to include not only the largest rectangular area that the non-rectangular area can be divided into, but also ensure that the number of divided rectangular sub-areas is the least. In this way, it is avoided to generate unnecessary roof beams subsequently.
[0124] As Figure 6 shown in [the figure], in order to meet the requirements of functional diversity, spatial innovation and aesthetics, rooms 23 with various shapes are designed in the architectural design drawing. Some of these rooms are rectangular, while some are non-rectangular. For the non-rectangular areas, they need to be divided into rectangular sub-areas.
[0125] Exemplarily, continue to take a non-rectangular area in the architectural design drawing shown in Figure 6 as an example. AsFigure 7 As shown, the server can first determine a rectangular sub-region s1 as the main space from the Figure 7 non-rectangular region shown, and then divide the entire non-rectangular region into local regions through this rectangular sub-region s1. Since these local regions are all rectangular, they are all regarded as rectangular sub-regions divided from the non-rectangular region, and are respectively represented as s2, s3, s4. In this way, a total of 4 rectangular sub-regions can be obtained, and there are 3 dividing lines 41 between the 4 rectangular sub-regions. It should be noted, however, that in the actual implementation process, not all of the divided local regions are rectangular, but some local regions are non-rectangular. At this time, these non-rectangular local regions can be regarded as new non-rectangular regions, and then the above implementation method can be used for further division until all are divided into rectangular sub-regions.
[0126] In this embodiment, the StraightSkeleton algorithm is adopted when solving the rectangular sub-region as the main space. In this regard, continue to take the Figure 7 non-rectangular region shown as an example. As Figure 8 shown, this algorithm can calculate an offset line 42 similar to a contour line according to the contour of the non-rectangular region, and can also calculate the highest ridge 43 (the ridge line or pole farthest from the contour). As Figure 9 shown, the server generates a rectangular sub-region s1 as the main space according to the distance from the highest ridge 43 to the contour of the non-rectangular region, and then several other rectangular sub-regions s2, s3, s4 can be divided through this rectangular sub-region s1. Given that the StraightSkeleton algorithm is a relatively mature algorithm in this field, the details of this algorithm will not be elaborated in this embodiment.
[0127] S5. Take the rectangular region and the rectangular sub-regions as the regions to be optimized respectively, and determine the dividing lines between the multiple regions to be optimized.
[0128] It should be noted that in some implementation manners, the multiple regions to be optimized may include all the rectangular regions and rectangular sub-regions in the architectural design drawing. In other implementable manners, the multiple regions to be optimized may include some of the rectangular regions and rectangular sub-regions in the architectural design drawing. For the above two implementation manners, those skilled in the art can make an adaptive selection according to needs when implementing this solution.
[0129] S6. Generate roof beams along the dividing lines.
[0130] Among them, the rectangular region is the region corresponding to the rectangular room. It should be understood that for larger regions, more structured and key beam frame designs are required around them, so these beams should be arranged first. And when determining the width of the beam, in order to ensure that the roof beam does not skew in the larger region, it is also necessary to give priority to considering the larger region. However, asFigure 7 As shown, rectangular sub-regions of different sizes share the same dividing line, which means there is a conflict in the roof beams determined by two rectangular sub-regions of different sizes.
[0131] In response to this, when generating roof beams along the dividing line in this embodiment, the server can sort multiple regions to be optimized in descending order of area, and the sorting result among the multiple regions to be optimized; according to this sorting result, generate roof beams for the target dividing line of each region to be optimized in sequence, where the target dividing line refers to the dividing line where no roof beam has been generated.
[0132] Exemplarily, continue to take the Figure 7 four rectangular sub-regions shown as an example. For the convenience of distinction, the four rectangular sub-regions are denoted as s1, s2, s3, s4, and the sorting result according to the size is s1, s2, s3, s4. Therefore, first determine the target dividing line that encloses the rectangular sub-region s1, and then, according to the size of the rectangular sub-region s1, determine the height required for the roof beam generated by each target dividing line. Then, judge whether the rectangular sub-region s2 has a target dividing line. Since the dividing line between the rectangular sub-region s2 and the rectangular sub-region s1 has already generated a roof beam, then continue to check whether the rectangular sub-region s3 has a target dividing line. And so on, until roof beams are generated for each dividing line 41. However, it should be noted that Figure 7 merely for the convenience of explanation, the provided example only includes rectangular sub-regions divided from non-rectangular regions, and in the actual implementation process, it is also necessary to sort in combination with the rectangular regions of the rectangular rooms.
[0133] In addition, when generating roof beams along the target dividing line, the server first deducts the part that coincides with the baselines of the existing shear walls and roof beams from the target dividing line to form a beam structure. Therefore, in a smaller room, many sides may be deducted to zero, so there is no need to additionally construct roof beams. Then, the server also sets the corresponding beam height according to the region type where the target dividing line is located (that is, whether it is inside or outside the floor area). Specifically, for those located inside the outer contour of the floor area, the first height is adopted, while for those located outside the outer contour of the floor area, the second height is adopted, where the first height and the second height are preset by the structural designer.
[0134] Furthermore, during the process of generating roof beams, the server also needs to consider the following factors to determine the width of the roof beam:
[0135] For each target dividing line, the server first needs to check whether there is a shear wall or beam with the same drawing direction intersecting it. If there is an existing shear wall or beam intersecting, the left and right widths of the intersecting wall or beam will be used to determine the left and right widths required for the beam generated along the target dividing line. Specifically, if the drawing direction is the same as that of the existing wall or beam, its left and right widths are directly used; if the drawing directions are opposite, the left and right widths of the existing shear wall or beam are exchanged, that is, the left width of the existing shear wall or beam is used as the right width of the beam along the target dividing line, and the right width of the existing shear wall or beam is used as the left width of the beam along the target dividing line. It should be understood here that the width of the beam is determined by the left width and the right width on both sides of the baseline, and the left and right are defined relative to the drawing direction of the baseline. Therefore, when the drawing directions are different, the left width and the right width need to be exchanged.
[0136] If there is no existing shear wall or beam intersecting, the server needs to determine the width of the beam along the beam according to the width of the upper building wall. If the wall width is greater than 150 mm, the server directly uses the left and right widths of the wall as the width parameters of the beam along the target dividing line. Similarly to the above embodiment, if the directions are the same, the left and right widths of the upper building wall are directly taken; if the directions are opposite, the left and right widths of the upper building wall are exchanged.
[0137] If the wall width is not greater than 150 mm, the server also needs to further detect the structural elevation of the room and whether there is a hollow situation. If the structural elevation of the room is different from the default value, or there is a hollow phenomenon (the specific judgment basis is to view the building configuration of the currently processed floor and whether there is a wall structure connected to the common partition wall on the upper layer), a beam is constructed on this side. The width of the beam is set to 150 mm to ensure that the beam does not exceed the room boundary and avoid protruding into the room.
[0138] For other situations, no beam needs to be constructed on this side.
[0139] For the beams automatically generated through the above embodiments, the server further optimizes them to delete unnecessary beams. Specifically, the server determines all the floor slabs with short-span not greater than 1000 mm, and then analyzes each side of the floor slab. If there is no building partition wall on a certain side, or the height of the partition wall is less than the height threshold (for example, taking 500 mm as the height threshold) and it is not on the outer contour, the beam on this side is deleted.
[0140] Exemplarily, referring to Figure 10 the first partial area 31 of the shown architectural design drawing, two first beams 35A and two other second beams 35B are shown in the first partial area 31. Among them, the short-span corresponding to the two first beams 35A is less than the set threshold, and there is no partition wall above these two first beams 35A. Therefore, in Figure 11In the optimized architectural design drawing shown, these two first roof beams 35A are deleted; while there are partition walls above the other two second roof beams 35B, so they are retained.
[0141] In addition, the continuous beams formed by the shear walls are not considered in the above embodiments. In this regard, the method for rapid modeling provided in this embodiment can also automatically generate continuous beams at appropriate positions in the architectural design drawing. Therefore, this embodiment also provides an optional implementation manner to achieve this function:
[0142] For each shear wall, if the server determines the optimization ends from both ends of the shear wall, then it is determined whether the distance between the optimization end and the adjacent wall is less than the span threshold, where there is no roof beam or other shear wall collinear with the shear wall at the optimization end, and the adjacent wall refers to the wall closest to the optimization end along the length direction of the shear wall.
[0143] If it is less than the span threshold, the server generates a roof beam that connects with the shear wall and the adjacent wall along the length direction of the optimization end.
[0144] In the specific implementation manner, the server first finds all the shear walls inside the outer contour, and then, for each shear wall, checks whether there are roof beams connected and collinear with it at both ends of the shear wall; if so, no optimization is required. If none of the roof beams at one end of the shear wall are connected and collinear with it, the server takes this end of the shear wall as the optimization end, and calculates whether the distance between the optimization end and the adjacent wall is less than the span threshold. If it is less than the span threshold, a roof beam that connects with the shear wall and the adjacent wall along the length direction of the optimization end is generated. In this embodiment, the span threshold is set to 1600 mm.
[0145] Exemplarily, refer to Figure 12 the second partial area 32 of the architectural design drawing shown. For the shear wall 33 in the second partial area 32, there is no collinear roof beam or other shear wall at the right end of the shear wall 33, so the right end of the shear wall 33 is taken as the optimization end; and the distance between the optimization end and the adjacent wall 34 is also less than the span threshold. Therefore, as Figure 13 shown, a third roof beam 35C spanning between the optimization end of the shear wall 33 and the adjacent wall 34 can be generated. Figure 13 In order to facilitate distinction, the shear wall 33 and the generated third roof beam 35C are marked with different patterns respectively.
[0146] Based on the introduction of shear walls and roof beams in the above embodiments, it should also be understood that although a floor slab can be formed after the shear walls and roof beams are enclosed, it is not necessary to set a floor slab in every enclosed area. Therefore, in the structural design, it is also necessary to determine whether to set a floor slab according to the actual needs of the building. Specifically, the server will find the rooms located above, determine whether to hollow out, whether to lower the slab and the specific height of the slab lowering according to the room types to be borne, and obtain the load values for subsequent structural calculations.
[0147] Exemplarily, Figure 12 After the building design drawing shown is optimized by the above embodiments, the shear walls and roof beams enclose a floor slab 36 as shown in Figure 14 . However, Figure 14 In the positions such as the staircase 39, elevator shaft 38, air duct 40, etc. in, the corresponding rooms are required to be hollowed out, so no floor slab needs to be set in these positions. In addition, Figure 14 In the toilet 37 in, the corresponding room is required to lower the slab to achieve same-floor drainage. Therefore, it is necessary to lower the floor slab elevation for matching. In this regard, this embodiment also provides a room table of the building, which describes the information of each room regarding live load, hollowing out, floor slab elevation, etc., and briefly explains the hollowing out and slab lowering to seamlessly connect with the subsequent design link of the floor slab thickness. It should be noted, however, Figure 14 The floor slab 36 in is not limited to the marked part, but only part of the floor slabs are marked for the sake of the beauty of the drawings.
[0148] When determining the floor slab thickness, it is necessary to rely on the span of the floor slab. However, it is found in the practical process that although most of the floor slab contours are rectangular, there are also a small number of non-rectangular ones. For a rectangular floor slab, the long-span and short-span slab spans can be determined according to the length and width of the rectangle. For the non-rectangular floor slabs in the building design drawing, the server obtains the circumscribed rectangle tightly wrapped around the contour of the non-rectangular floor slab; and determines the floor slab thickness of the non-rectangular floor slab according to the length-width ratio of the circumscribed rectangle.
[0149] Exemplarily, as Figure 15 shown, for the contour 51 of the non-rectangular floor slab, a circumscribed rectangle 52 tightly wrapped around the contour 51 of the non-rectangular floor slab is constructed, and the length-width ratio of the circumscribed rectangle 52 is matched with a preset floor slab thickness table to obtain the floor slab thickness of the non-rectangular floor slab. It can be understood that the floor slab thickness table records the mapping relationship between the length-width ratio and the floor slab thickness. For example, the floor slab thickness table can record the following content:
[0150]
[0151] In addition, for the circumscribed rectangle 52 tightly wrapped around the contour 51 of the non-rectangular floor slab. Continue to refer to Figure 15In some embodiments, the outline 51 of the non-rectangular floor slab may be located within a circumscribed rectangle 52. In this case, the two outermost sides of the circumscribed rectangle, located on the same side of the non-rectangular floor slab, are parallel to each other and separated by a predetermined distance. Of course, if the predetermined distance is zero, the circumscribed rectangle 52 partially overlaps with the outline 51 of the non-rectangular floor slab.
[0152] The above embodiment introduces a quick construction method for shear walls, beams, and floor slabs. Based on the same inventive concept as the quick modeling method provided in this embodiment, this embodiment also provides a quick modeling device, which includes at least one software function module that can be stored in a memory or solidified in an electronic device in the form of software. The processor in the electronic device is used to execute the executable module stored in the memory. For example, the software function module and computer program included in the device. Please refer to Figure 16 Functionally, the device can include:
[0153] The area selection module 61 is configured to receive and respond to a user's selection operation on the architectural design drawing, and determine a drawing area from the architectural design drawing;
[0154] The automatic drawing module 62 is used to generate shear walls according to the drawing area.
[0155] In this embodiment, the area selection module 61 is used to implement the Figure 1 In step S1, the automatic drawing module 62 is used to implement Figure 1 Therefore, for a detailed description of each of the above modules, please refer to the specific implementation of the corresponding step. Given that the invention concept is the same as that of the rapid modeling method, the rapid modeling device can also implement other steps or sub-steps of the method through the above-mentioned existing modules or other modules, which will not be described in detail in this embodiment.
[0156] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0157] It should also be understood that if the above embodiments are implemented in the form of software function modules 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 application, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes 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 method described in each embodiment of the present application.
[0158] Therefore, this embodiment also provides a storage medium, which is a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the method for rapid modeling provided by this embodiment is implemented. Among them, the storage medium can be various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk, or an optical disc.
[0159] This embodiment provides an electronic device for implementing this method. As Figure 17 shown, the electronic device may include a processor 72 and a memory 71. Moreover, the memory 71 stores a computer program, and the processor realizes the method for rapid modeling provided by this embodiment by reading and executing the computer program corresponding to the above embodiments in the memory 71.
[0160] Continue to refer to Figure 17 , the electronic device further includes a communication unit 73. Each element of the memory 71, the processor 72, and the communication unit 73 is directly or indirectly electrically connected to each other through a system bus 74 to realize data transmission or interaction.
[0161] Among them, the memory 71 can be an information recording device based on any electronic, magnetic, optical or other physical principles for recording execution instructions, data, etc. In some embodiments, the memory 71 can be, but is not limited to, a volatile memory, a non-volatile memory, a storage drive, etc.
[0162] In some embodiments, the volatile memory can be a random access memory (Random Access Memory, RAM); in some embodiments, the non-volatile memory can be a read-only memory (Read Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), an erasable programmable read-only memory (Erasable Programmable Read-Only Memory, EPROM), an electrically erasable programmable read-only memory (Electric Erasable Programmable Read-Only Memory, EEPROM), a flash memory, etc.; in some embodiments, the storage drive can be a disk drive, a solid-state drive, any type of storage disk (such as an optical disc, a DVD, etc.), or a similar storage medium, or a combination thereof, etc.
[0163] The communication unit 73 is used to transmit and receive data via a network. In some embodiments, the network may include a wired network, a wireless network, an optical fiber network, a telecommunication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, etc., or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include a wired or wireless network access point, such as a base station and / or a network switching node, and one or more components of the service request processing system may be connected to the network via the access point to exchange data and / or information.
[0164] The processor 72 may be an integrated circuit chip with signal processing capabilities, and the processor may include one or more processing cores (e.g., a single-core processor or a multi-core processor). By way of example only, the above-mentioned processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction-set processor (ASIP), a graphics processing unit (GPU), a physics processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computing (RISC), or a microprocessor, etc., or any combination thereof.
[0165] It can be understood that Figure 17The structure shown is only schematic. The electronic device may also have more or fewer components than Figure 17 shown, or have a different configuration from that Figure 17 shown. Figure 17 Each component shown may be implemented by hardware, software, or a combination thereof.
[0166] It should be understood that the devices and methods disclosed in the above embodiments may also be implemented in other ways. The device embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of devices, methods, and computer program products according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
[0167] As described above, these are only various embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A rapid modeling method, characterized in that: The method comprises: receiving and responding to a user's selection operation on the architectural design drawing, and determining a drawing area from the architectural design drawing; Generate shear walls based on the drawn area, including: Determining a local wall located in the drawing area from the architectural design drawing; Based on the partial wall, a shear wall is generated that at least partially overlaps with the partial wall in the length direction.
2. The rapid modeling method according to claim 1, characterized in that: The step of generating, based on the partial wall, a shear wall that at least partially overlaps with the partial wall in a length direction includes: For each section of the partial wall, obtaining the length of the partial wall; If the length of the partial wall does not satisfy an integer multiple relationship with the shortest length of the shear wall, the starting and ending positions of the partial wall are used as the initial starting and ending positions of the shear wall; Adjusting at least one of the initial starting and ending positions along the length direction to obtain target starting and ending positions of the shear wall, so that the length of the shear wall satisfies an integer multiple relationship with the shortest length; The shear wall is generated according to the target start and end positions of the shear wall.
3. The rapid modeling method according to claim 2, characterized in that: The step of adjusting at least one of the initial starting and ending positions along the length direction to obtain the target starting and ending positions of the shear wall includes: Determining the complete wall to which the partial wall belongs; If one of the initial start and end positions is aligned with one end of the complete wall, the non-aligned position of the initial start and end positions is adjusted along the length direction to obtain the target start and end positions of the shear wall; If the initial start and end positions are not aligned with any end of the complete wall, at least one of the initial start and end positions is adjusted along the length direction to obtain the target start and end positions of the shear wall.
4. The rapid modeling method according to claim 1, characterized in that: The method further comprises: Determining a rectangular area and a non-rectangular area from the architectural design drawing, wherein the rectangular area is an area corresponding to a rectangular room, and the non-rectangular area is an area corresponding to a non-rectangular room; Divide the non-rectangular area into rectangular sub-areas, wherein the rectangular sub-areas divided from the non-rectangular area include the largest rectangular area that can be divided from the non-rectangular area; The rectangular area and the rectangular sub-area are respectively used as areas to be optimized, and dividing lines between multiple areas to be optimized are determined; The beams are generated along the dividing lines.
5. The rapid modeling method according to claim 4, characterized in that: Generating the beam along the dividing line includes: Sorting the plurality of regions to be optimized in descending order of area to obtain a sorting result among the plurality of regions to be optimized; Based on the sorting result, beams are generated for the target segmentation line of each area to be optimized in turn, wherein the target segmentation line represents a segmentation line without generated beams.
6. The rapid modeling method according to claim 1 or 4, characterized in that: The method further comprises: For each shear wall, if an end to be optimized is determined from both ends of the shear wall, then determine whether the distance between the end to be optimized and an adjacent wall is less than a span threshold, wherein there is no beam or other shear wall collinear with the end to be optimized, and the adjacent wall refers to the wall closest to the end to be optimized along the length direction of the shear wall; If it is less than the span threshold, a beam connected to the shear wall and the adjacent wall is generated based on the end to be optimized along the length direction of the shear wall.
7. The rapid modeling method according to claim 1 or 4, characterized in that: The method further comprises: For a non-rectangular floor slab in the architectural design drawing, obtaining a circumscribed rectangle that tightly wraps around the outline of the non-rectangular floor slab; The floor thickness of the non-rectangular floor is determined according to the length-to-width ratio of the circumscribed rectangle.
8. A rapid modeling device, characterized in that: The device comprises: an area selection module, configured to receive and respond to a user's selection operation on the architectural design drawing, and determine a drawing area from the architectural design drawing; An automatic drawing module is used to generate a shear wall according to the drawing area. The automatic drawing module is further used to: Determining a local wall located in the drawing area from the architectural design drawing; Based on the partial wall, a shear wall is generated that at least partially overlaps with the partial wall in the length direction.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the rapid modeling method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores a computer program, and when the computer program is executed by the processor, the rapid modeling method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Building wall generation method and device, computer equipment and storage medium
CN112287428A
Information display method and device and storage medium
CN114186311A