Building facade generation method, device, equipment and medium based on multi-type combination
By identifying and processing the facade information of the building block model, generating multiple types of facade combinations and giving them details, the problem of low efficiency in generating modular building facades is solved, and automated and efficient facade design is achieved.
Patent Information
- Application Number
- CN202510842893.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2045-06-23
AI Technical Summary
Existing architectural design software is inefficient in generating modular building facades. It is difficult to quickly achieve the intelligent generation of multi-type module combinations and facade units, resulting in a cumbersome and error-prone design process.
By identifying the facade information of the overall building block model, performing facade combination processing, generating multiple types of facade combinations, and assigning facade details, computer equipment and software are used to automatically process the facade generation process, including receiving, identifying, processing and generating the facade information of the module unit.
It improves the efficiency of facade generation, realizes the automation of facade combination and targeted detailing, ensures the retention of facade attributes and rapid iteration of design.
Smart Images

Figure CN120411405B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of modular building technology, and in particular to a method, device, equipment and medium for generating building facades based on multi-type combinations. Background Art
[0002] With the continued advancement of building industrialization, modular construction, with its significant advantages of high efficiency, environmental friendliness, and standardized production, has become a key development trend in modern architectural design. Within modular building systems, facade design is particularly crucial, not only shaping the building's exterior image but also directly impacting the efficiency of component manufacturing and installation. Therefore, improving facade generation efficiency while ensuring design rationality has become a critical issue in the architectural field.
[0003] In existing technologies, modular facades are typically constructed by stitching together multiple geometric units. Facade planning and assembly require comprehensive consideration of numerous factors, including building orientation, coplanarity, unit dimensions, and spatial arrangement. Although this phase is relatively early in the project, with ample margin for error, the numerous dimensions of information involved and the complex assembly methods often require significant time for analysis and solution adjustments, resulting in inefficient processing.
[0004] Taking the common architectural design software AutoCAD as an example, when dealing with large-scale modular combinations, if the size of a module needs to be adjusted, AutoCAD cannot automatically update the position and size of related modules. Instead, adjustments must be made one by one, a cumbersome and error-prone process. When dealing with multi-type modular combinations, the lack of automatic recognition and response capabilities for modular relationships makes it difficult to quickly classify facade units and intelligently generate combination patterns. This makes the entire process mechanical and repetitive, making it difficult to meet the needs of rapid design iteration. Summary of the Invention
[0005] In view of the above, it is necessary to provide a building facade generation method, device, equipment and medium based on multi-type combination, aiming to solve the problem of low efficiency of building facade generation.
[0006] A method for generating a building facade based on a multi-type combination, the method comprising:
[0007] In response to the building facade generation instruction, receiving an input of the overall building block model;
[0008] Identifying facade information of the overall building block model;
[0009] Performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information;
[0010] Generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information;
[0011] The overall building block model is processed by assigning facade details according to the multi-type facade combination to obtain the building facade of the overall building block model.
[0012] According to a preferred embodiment of the present invention, the overall building block model includes room module units and balcony module units, and the room module units and the balcony module units are distinguished according to layers or identifications.
[0013] According to a preferred embodiment of the present invention, identifying the facade information of the overall building block model includes:
[0014] For the room module unit, remove non-elevation faces whose normal vector z-axis component is not 0, and retain faces whose normal vector z-axis component is 0 as the outer side faces of the wall faces; wherein, perform a Boolean union operation on the overall building block model to obtain an overall model without internal faces, extract all face center points of the room module unit and the balcony module unit, calculate the closest distances from all face center points to each external face of the overall model, and determine the face to which the face center point with the closest distance being 0 belongs as the outer side face; wherein, the internal face includes the overlapping faces between the rooms in the room module unit;
[0015] Record the coplanarity between all lateral surfaces;
[0016] Comparing the normal vectors of all the outer side surfaces with the reference normal vector to obtain the orientations of all the outer side surfaces;
[0017] Calculate the coincidence relationship between the center point of each face of the balcony module unit and all the outer side faces to obtain the coincidence surface information between the room module unit and the balcony module unit; wherein, the face of the balcony module unit that coincides with the room module unit is determined as the inner side face of the balcony, and the side opposite to the inner side face of the balcony is determined as the outer side face of the balcony.
[0018] According to a preferred embodiment of the present invention, performing facade combination processing on the entire building block model according to the facade information to obtain the facade combination information includes:
[0019] Obtaining the vertical coordinate range and floor height threshold of the overall building block model;
[0020] Performing facade layering processing on the overall building block model according to the coordinate range and the layer height threshold to obtain multiple layers;
[0021] In each layer, determine the center point of each rectangular facade and fit the center point of each rectangular facade into a straight line segment;
[0022] The straight line segment is segmented according to the center points of each rectangular facade to obtain a plurality of sub-segments; wherein, starting from the starting point of the straight line segment, two adjacent center points of each rectangular facade are used as segmentation points in sequence; the end point of the previous sub-segment is used as the starting point of the next sub-segment;
[0023] The facades to which the two endpoints of each sub-line segment belong are determined as an adjacent facade combination;
[0024] Extract curve features based on the center points of each rectangular facade to obtain facade curve features;
[0025] Integrating adjacent facade combinations and facade curve features of each floor to obtain the facade combination information;
[0026] Among them, the facades that are not involved in the combination are determined as single independent facades.
[0027] According to a preferred embodiment of the present invention, extracting curve features based on the center points of each rectangular facade to obtain facade curve features includes:
[0028] Extracting the center points of each rectangular facade in the same direction to perform curve segmentation to obtain the facade curve features;
[0029] The center point of each rectangular facade is extracted only once, and the starting point or end point of the previous curve cannot be covered by the next curve.
[0030] According to a preferred embodiment of the present invention, generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information includes:
[0031] According to the facade information, all facades with the same coplanar characteristics in the overall building block model are divided into a group to obtain a coplanar facade combination of a single type; and / or
[0032] According to the facade information, all facades with the same orientation in the overall building block model are divided into a group to obtain a facade combination with a single orientation type; and / or
[0033] Obtaining each facade module combination according to the facade combination information, and determining the orientation of each facade module combination; comparing the orientation of each facade module combination with the orientation of each independent surface to obtain an orientation comparison result; and classifying the facade module combinations and independent surfaces having the same orientation into facade combinations of each orientation combination type according to the orientation comparison result; and / or
[0034] Obtaining each facade module combination according to the facade combination information, and determining a coplanar feature of each facade module combination; comparing the coplanar feature of each facade module combination with the coplanar feature of each independent surface to obtain a coplanar feature comparison result; and classifying the facade module combinations and independent surfaces having the same coplanar feature into facade combinations of each coplanar combination type according to the coplanar feature comparison result;
[0035] Among them, the coplanar single type facade combination, the single orientation type facade combination, the orientation combination type facade combination and the coplanar combination type facade combination all distinguish between the inner side of the balcony, the outer side of the balcony and the wall surface.
[0036] According to a preferred embodiment of the present invention, performing facade detail addition processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model includes:
[0037] For each type of facade combination, determine the reference surface and each reference surface to be processed;
[0038] Calculating the angle difference between the normal vector of the reference surface and each reference surface to be processed;
[0039] Calculating a movement vector of the reference surface relative to each reference surface to be processed;
[0040] Obtaining detailed elevation information of the reference surface;
[0041] According to the normal vector angle difference and the movement vector between the reference surface and each reference surface to be processed, the facade detail information of the reference surface is correspondingly added to each reference surface to be processed to obtain the building facade of the overall building block model.
[0042] A building facade generation device based on multiple types of combinations, comprising:
[0043] A receiving unit, configured to receive an input overall building block model in response to a building facade generation instruction;
[0044] an identification unit, configured to identify facade information of the overall building block model;
[0045] a processing unit, configured to perform facade combination processing on the entire building block model according to the facade information to obtain facade combination information;
[0046] A generating unit, configured to generate multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information;
[0047] The processing unit is further configured to perform facade detail assignment processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model.
[0048] A computer device, comprising:
[0049] a memory storing at least one instruction; and
[0050] The processor executes the instructions stored in the memory to implement the building facade generation method based on multi-type combination.
[0051] A computer-readable storage medium stores at least one instruction, which is executed by a processor in a computer device to implement the method for generating a building facade based on a multi-type combination.
[0052] It can be seen from the above technical solutions that the present invention is capable of identifying the facade information of the overall building block model, and performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information, thereby extracting the geometric features of the facade; generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information, and performing facade detail assignment processing on the overall building block model according to the multiple types of facade combinations to obtain the building facade of the overall building block model, thereby being able to automatically and specifically assign details to the facade according to the multiple types of facade combinations, while retaining the different attributes of the facade and also improving the facade generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of a preferred embodiment of the method for generating building facades based on multi-type combinations of the present invention;
[0054] Figure 2 It is a schematic diagram of the overall building block model of the present invention;
[0055] Figure 3 It is a schematic diagram of the outer side surface of the wall surface, the inner side surface of the balcony, and the outer side surface of the balcony of the present invention;
[0056] Figure 4 It is a schematic diagram of the multi-type facade combination of the present invention;
[0057] Figure 5 is a schematic diagram of the building facade of the present invention;
[0058] Figure 6 This is a functional module diagram of a preferred embodiment of the building facade generation device based on multi-type combination of the present invention;
[0059] Figure 7It is a structural diagram of a computer device for realizing a preferred embodiment of the method for generating building facades based on multi-type combinations according to the present invention. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0061] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of a method for generating building facades based on a combination of multiple types of buildings according to the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different requirements.
[0062] The method for generating building facades based on multi-type combinations is applied to one or more computer devices, wherein the computer device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.
[0063] The computer device may be any electronic product that can perform human-computer interaction with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.
[0064] The computer device may also include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.
[0065] The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0066] Among them, Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0067] Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interaction systems, and mechatronics. AI software technologies primarily encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0068] The network where the computer device is located includes but is not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.
[0069] S10 , in response to a building facade generation instruction, receiving an input of an overall building block model.
[0070] In this embodiment, the building facade generation instruction can be automatically triggered when it is detected that a model is uploaded to a designated interface or platform.
[0071] In this embodiment, the overall building block model includes room module units and balcony module units, and the room module units and the balcony module units are distinguished according to layers or identifications.
[0072] For example, the overall building block model can be a building model with a high degree of modularization, such as a centralized residence or a hotel. Figure 2 , which is a schematic diagram of the overall building block model of the present invention. The overall building block model in the figure may include multiple room module units (middle part) representing rooms and multiple balcony module units (side parts).
[0073] The room module units and the balcony module units can be distinguished by using layered layers, or by other reasonable forms, such as by assigning specific identification codes to different module units to distinguish them, so as to more clearly manage and identify different types of module units and facilitate subsequent processes.
[0074] S11, identifying the facade information of the overall building block model.
[0075] In this embodiment, identifying the facade information of the overall building block model includes:
[0076] For the room module unit, remove non-elevation faces whose normal vector z-axis component is not 0, and retain faces whose normal vector z-axis component is 0 as the outer side faces of the wall faces; wherein, perform a Boolean union operation on the overall building block model to obtain an overall model without internal faces, extract all face center points of the room module unit and the balcony module unit, calculate the closest distances from all face center points to each external face of the overall model, and determine the face to which the face center point with the closest distance being 0 belongs as the outer side face; wherein, the internal face includes the overlapping faces between the rooms in the room module unit;
[0077] Record the coplanarity between all lateral surfaces;
[0078] Comparing the normal vectors of all the outer side surfaces with the reference normal vector to obtain the orientations of all the outer side surfaces;
[0079] Calculate the coincidence relationship between the center point of each face of the balcony module unit and all the outer side faces to obtain the coincidence surface information between the room module unit and the balcony module unit; wherein, the face of the balcony module unit that coincides with the room module unit is determined as the inner side face of the balcony, and the side opposite to the inner side face of the balcony is determined as the outer side face of the balcony.
[0080] For example: See Figure 3 , which is a schematic diagram of the outer side surface of the wall surface, the inner side surface of the balcony, and the outer side surface of the balcony of the present invention. Figure 3 The figure includes a room module unit 1, an outer side surface 11 of a wall surface, a balcony module unit 2, an inner side surface 21 of a balcony, and an outer side surface 22 of a balcony. When there is no balcony module unit 2 outside the room module unit 1, the outer side surface 11 of the wall surface is displayed.
[0081] The non-elevation surfaces are the top surface and the bottom surface.
[0082] A two-dimensional array can be used to record the coplanarity between all external surfaces. Specifically, each row of the array represents an external surface, the first column records the serial number of the surface, and the second column records the serial numbers of other coplanar surfaces, so as to clearly record the coplanarity relationship.
[0083] The reference normal vector can be the default normal vector used by most software, which uses (0, 1, 0) as the north direction. By calculating the angle between the two vectors, the outer surfaces with an angle less than a certain threshold (such as 15°) are determined to have the same orientation.
[0084] Calculating the coincidence relationship between the center point of each face of the balcony module unit and all the outer side faces is to calculate the inclusion relationship between the point and the face. Specifically, the coordinates of the point can be substituted into the plane equation. If the plane equation is satisfied, the point is on the face.
[0085] Through the above embodiments, facade information can be identified, providing a basis for subsequent processing.
[0086] S12: performing facade combination processing on the entire building block model according to the facade information to obtain facade combination information.
[0087] In this embodiment, performing facade combination processing on the entire building block model according to the facade information to obtain the facade combination information includes:
[0088] Obtaining the vertical coordinate range and floor height threshold of the overall building block model;
[0089] Performing facade layering processing on the entire building block model according to the coordinate range and the floor height threshold to obtain multiple layers; for example, when the vertical coordinate range of the facade model is from 0 to 30 meters, with a floor height threshold of 3 meters as one layer, the facade can be divided into 10 layers;
[0090] Within each layer, determine the center points of each rectangular facade and fit them to straight line segments. For example, for a rectangular facade, the coordinates of its center point are ((x1 + x2) / 2, (y1 + y2) / 2), where (x1, y1) and (x2, y2) are the coordinates of the diagonal vertices of the rectangle. Furthermore, use the least squares method to fit the center points within the same layer to straight line segments. This method minimizes the sum of squared errors and finds the best function matching the data to obtain the straight line segments that best represent the distribution trend of these center points.
[0091] The straight line segment is segmented according to the center points of each rectangular facade to obtain a plurality of sub-segments; wherein, starting from the starting point of the straight line segment, two adjacent center points of each rectangular facade are used as segmentation points in sequence; the end point of the previous sub-segment is used as the starting point of the next sub-segment;
[0092] The facades to which the two endpoints of each sub-segment belong are determined as adjacent facade combinations. For example, starting from the starting point of the fitted straight line segment, the straight line segment is divided into several sub-segments using each center point as a segmentation point. The facades corresponding to the two endpoints of each sub-segment are a set of adjacent facade combinations. The purpose is to obtain a geometric representation of paired facade combinations.
[0093] Extract curve features based on the center points of each rectangular facade to obtain facade curve features;
[0094] Integrating adjacent facade combinations and facade curve features of each floor to obtain the facade combination information;
[0095] Among them, the facades that are not involved in the combination are determined as single independent facades.
[0096] During this process, the graphics are layered, and each layer is processed in a loop to obtain the facade combinations for each face. Facades not included in the combination are classified as individual faces. During this loop, a loop structure in a programming language (such as a for loop) can be used, starting from the first layer and processing each layer's facade combinations in turn. The results of each layer's combination are stored in a list data structure for subsequent unified analysis and processing.
[0097] The curve feature extraction is performed based on the center point of each rectangular facade to obtain the facade curve feature, which includes:
[0098] Extracting the center points of each rectangular facade in the same direction to perform curve segmentation to obtain the facade curve features;
[0099] The center point of each rectangular facade is extracted only once, and the starting point or end point of the previous curve cannot be covered by the next curve.
[0100] For example, curves are extracted in a single direction (from left to right or from right to left), one at a time, following the rule that each center point can only be selected once. This means that the start and end points of the previous curve cannot be covered by the next curve. This is how curve features are extracted from the graph. During the extraction process, if points overlap, the corresponding group is not selected. During actual extraction, a list can be used to record previously selected center points. Before each new curve is extracted, the current center point is checked to see if it is in the list. If so, it is skipped to ensure that each center point is only selected once.
[0101] Following this principle, when extracting curves, you can also increase the number of single extractions to complete the division of various surface unit combinations. For example, when processing a module with a complex surface, you can extract multiple curves simultaneously. By properly setting the starting and ending points of the curves, the surface can be divided into multiple parts for combined processing.
[0102] Through the above embodiment, the facade combination information can be determined, and the automatic processing of the facade combination is achieved to facilitate subsequent classification.
[0103] S13, generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information.
[0104] In this embodiment, generating the multi-type facade combinations of the overall building block model according to the facade information and the facade combination information includes:
[0105] According to the facade information, all facades with the same coplanar characteristics in the overall building block model are divided into a group to obtain a coplanar facade combination of a single type; and / or
[0106] According to the facade information, all facades with the same orientation in the overall building block model are divided into a group to obtain a facade combination with a single orientation type; and / or
[0107] Obtaining each facade module combination according to the facade combination information, and determining the orientation of each facade module combination; comparing the orientation of each facade module combination with the orientation of each independent surface to obtain an orientation comparison result; and classifying the facade module combinations and independent surfaces having the same orientation into facade combinations of each orientation combination type according to the orientation comparison result; and / or
[0108] Obtaining each facade module combination according to the facade combination information, and determining a coplanar feature of each facade module combination; comparing the coplanar feature of each facade module combination with the coplanar feature of each independent surface to obtain a coplanar feature comparison result; and classifying the facade module combinations and independent surfaces having the same coplanar feature into facade combinations of each coplanar combination type according to the coplanar feature comparison result;
[0109] Among them, the coplanar single type facade combination, the single orientation type facade combination, the orientation combination type facade combination and the coplanar combination type facade combination all distinguish between the inner side of the balcony, the outer side of the balcony and the wall surface.
[0110] Due to the different functions and structures of balconies and walls, distinguishing between the inner and outer sides of balconies and wall surfaces is important. Firstly, from a functional perspective, balconies are typically spaces for activities and leisure, with protective features such as railings, while walls primarily serve load-bearing and space separation. Secondly, from a geometric and physical perspective, the inner and outer sides of balconies differ in spatial location, orientation, and enclosure structure. Distinguishing between the inner and outer sides of balconies and wall surfaces ensures the correct classification of these modular surfaces with different functions and characteristics when grouping them on the same plane.
[0111] For example: See Figure 4 , which is a schematic diagram of the multi-type facade combination of the present invention. Figure 4 a in the equation is the coplanar single type facade combination, Figure 4 b in the above is the facade combination facing a single type. Figure 4 Where c is the facade combination of the orientation combination type. Figure 4d in the figure represents a coplanar combination of facades. Specifically, in a, there are two sets of facades, which are not coplanar; in b, there is a set of facades, all of which have the same orientation. Compared to b, c is divided not only by orientation but also by the module-level facade module combination. Therefore, as can be seen from the color difference on the side of c, it is not just like in b, where all facades with the same orientation are grouped together, but also by the module-level division (see the dark gray section on the side). Similarly, compared to a, d is also divided into different facade combinations because the outermost three facade combinations, although coplanar, do not belong to the same facade module combination (i.e., the module-level facade module combination division).
[0112] In the above embodiment, various geometric information such as facade serial number, coplanar information, orientation, area size, length, height, module combination, etc. can be determined based on the facade information and the facade combination information, and various types of facade combinations can be generated for different areas of the facade according to different characteristics, so that targeted processing can be performed subsequently according to different facade combinations.
[0113] S14, performing facade detail addition processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model.
[0114] In this embodiment, performing facade detail addition processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model includes:
[0115] For each type of facade combination, determine the reference surface and each reference surface to be processed;
[0116] Calculating the angle difference between the normal vector of the reference surface and each reference surface to be processed;
[0117] Calculating a movement vector of the reference surface relative to each reference surface to be processed;
[0118] Obtaining detailed elevation information of the reference surface;
[0119] According to the normal vector angle difference and the movement vector between the reference surface and each reference surface to be processed, the facade detail information of the reference surface is correspondingly added to each reference surface to be processed to obtain the building facade of the overall building block model.
[0120] The reference surface's dimensions are identical to those of all reference surfaces to which facade details are assigned. Furthermore, for geometric elements placed on the facade, such as doors, windows, and sunshades, the reference surface maintains a consistent relative position with each reference surface. The reference surface can be rectangular or other shapes. When selecting a reference surface, prioritize representative and easy-to-use surfaces, such as those on the main facade of a building that contain a large number of typical geometric elements.
[0121] The vector dot product formula may be used to calculate the angle difference between the normal vectors of the reference surface and each reference surface to be processed.
[0122] The positional relationship between the reference surface and the center points of each reference surface to be processed can be determined to calculate a motion vector for positioning, thereby reflecting the difference in spatial position between the reference surface and each reference surface. When calculating the motion vector, the coordinates of the two center points can be subtracted, and the resulting vector can be determined as the motion vector.
[0123] Pre-populated facade objects (such as doors, windows, and sunshades) on a reference surface can be precisely added to all other reference surfaces requiring design. This allows for a single design or adjustment of the reference surface to quickly assign information to other similar facades. When adding objects, objects on the reference surface can be rotated and translated based on calculated angle differences and movement vectors, ensuring they are accurately added to the reference surface. This allows for rapid addition of facade details without the need for individual copying, improving the efficiency of building facade generation.
[0124] For example: See Figure 5 , which is a schematic diagram of the building facade of the present invention. By giving facade details based on various facade combinations, the final building facade can be quickly generated.
[0125] In this embodiment, after obtaining the building facade of the overall building block model, the entire building model can be output to a designated terminal device or interface for modification and improvement, and then put into use.
[0126] It can be seen from the above technical solutions that the present invention is capable of identifying the facade information of the overall building block model, and performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information, thereby extracting the geometric features of the facade; generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information, and performing facade detail assignment processing on the overall building block model according to the multiple types of facade combinations to obtain the building facade of the overall building block model, thereby being able to automatically and specifically assign details to the facade according to the multiple types of facade combinations, while retaining the different attributes of the facade and also improving the facade generation efficiency.
[0127] like Figure 6The figure shows a functional block diagram of a preferred embodiment of a multi-type combination building facade generation device according to the present invention. The multi-type combination building facade generation device 11 comprises a receiving unit 110, an identification unit 111, a processing unit 112, and a generation unit 113. As used herein, a module / unit refers to a series of computer program segments that can be executed by a processor and perform fixed functions, and are stored in a memory. The functions of each module / unit in this embodiment will be described in detail in subsequent embodiments.
[0128] The receiving unit 110 is configured to receive an input overall building block model in response to a building facade generation instruction;
[0129] The identification unit 111 is used to identify the facade information of the overall building block model;
[0130] The processing unit 112 is configured to perform facade combination processing on the entire building block model according to the facade information to obtain facade combination information;
[0131] The generating unit 113 is configured to generate multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information;
[0132] The processing unit 112 is further configured to perform facade detail assignment processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model.
[0133] It can be seen from the above technical solutions that the present invention is capable of identifying the facade information of the overall building block model, and performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information, thereby extracting the geometric features of the facade; generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information, and performing facade detail assignment processing on the overall building block model according to the multiple types of facade combinations to obtain the building facade of the overall building block model, thereby being able to automatically and specifically assign details to the facade according to the multiple types of facade combinations, while retaining the different attributes of the facade and also improving the facade generation efficiency.
[0134] like Figure 7 FIG. 1 is a schematic diagram of the structure of a computer device for implementing a preferred embodiment of the method for generating building facades based on multi-type combinations according to the present invention.
[0135] The computer device 1 may include a memory 12, a processor 13 and a bus (the arrow in the figure represents the bus), and may also include a computer program stored in the memory 12 and executable on the processor 13, such as a building facade generation program based on a combination of multiple types.
[0136] Those skilled in the art will understand that the schematic diagram is merely an example of the computer device 1 and does not constitute a limitation on the computer device 1. The computer device 1 may have either a bus structure or a star structure. The computer device 1 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components. For example, the computer device 1 may also include input and output devices, network access devices, etc.
[0137] It should be noted that the computer device 1 is only an example. Other existing or future electronic products that are suitable for the present invention should also be included in the scope of protection of the present invention and included here by reference.
[0138] The memory 12 includes at least one type of readable storage medium, including flash memory, a removable hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 12 may be an internal storage unit of the computer device 1, such as a removable hard disk of the computer device 1. In other embodiments, the memory 12 may also be an external storage device of the computer device 1, such as a plug-in removable hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory 12 may include both an internal storage unit of the computer device 1 and an external storage device. The memory 12 can be used not only to store application software installed in the computer device 1 and various types of data, such as the code of a building facade generation program based on a multi-type combination, but also to temporarily store data that has been output or is about to be output.
[0139] In some embodiments, the processor 13 may be comprised of an integrated circuit, such as a single packaged integrated circuit or multiple packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 13 is the control core (control unit) of the computer device 1, connecting the various components of the entire computer device 1 using various interfaces and circuits. It executes programs or modules stored in the memory 12 (for example, a program for generating building facades based on a combination of multiple types) and accesses data stored in the memory 12 to perform various functions and process data.
[0140] The processor 13 executes the operating system of the computer device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the method for generating building facades based on multiple types of combinations, for example Figure 1 Steps shown.
[0141] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer-readable instruction segments capable of performing specific functions, which describe the execution process of the computer program in the computer device 1. For example, the computer program may be divided into a receiving unit 110, an identification unit 111, a processing unit 112, and a generating unit 113.
[0142] The above-mentioned integrated unit implemented in the form of a software functional module can be stored in a computer-readable storage medium. The above-mentioned software functional module stored in a storage medium includes a number of instructions for causing a computer device (which can be a personal computer, computing device, or network device, etc.) or a processor to execute the portion of the multi-type combination-based building facade generation method described in various embodiments of the present invention.
[0143] If the modules / units integrated in the computer device 1 are implemented as 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 present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing relevant hardware devices through a computer program. The computer program can be stored in a computer-readable storage medium. When executed by a processor, the computer program can implement the steps of each of the above-mentioned method embodiments.
[0144] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory, etc.
[0145] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0146] Blockchain, as used in this article, refers to a novel application model for computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks linked together using cryptographic methods. Each block contains information about a batch of online transactions, used to verify the validity of this information (to prevent counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, the platform product and service layer, and the application service layer.
[0147] The bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The figure shows that only one straight line is used, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13.
[0148] Although not shown, the computer device 1 may also include a power supply (such as a battery) to power various components. Preferably, the power supply can be logically connected to the at least one processor 13 via a power management device, thereby enabling functions such as charge management, discharge management, and power consumption management through the power management device. The power supply may also include one or more DC or AC power supplies, a recharging device, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components. The computer device 1 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be further described here.
[0149] Furthermore, the computer device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the computer device 1 and other computer devices.
[0150] Optionally, the computer device 1 may further include a user interface, which may be a display or an input unit (such as a keyboard). Optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display may also be appropriately referred to as a display screen or display unit, and is used to display information processed by the computer device 1 and to display a visual user interface.
[0151] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0152] It will be understood by those skilled in the art that Figure 7 The structure shown does not constitute a limitation on the computer device 1 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0153] Combine Figure 1 The memory 12 in the computer device 1 stores a plurality of instructions to implement a method for generating a building facade based on a multi-type combination, and the processor 13 can execute the plurality of instructions to implement:
[0154] In response to the building facade generation instruction, receiving an input of the overall building block model;
[0155] Identifying facade information of the overall building block model;
[0156] Performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information;
[0157] Generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information;
[0158] The overall building block model is processed by assigning facade details according to the multi-type facade combination to obtain the building facade of the overall building block model.
[0159] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0160] It should be noted that the data involved in this case were all obtained legally. The software tools or components not produced by our company that appear in the embodiments of this application are merely examples and do not represent actual use.
[0161] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.
[0162] The present invention can be used in a wide variety of general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communications network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0163] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0164] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.
[0165] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0166] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.
[0167] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices described in the present invention may also be implemented by a single unit or device through software or hardware. Terms such as first and second are used to indicate names and do not imply any particular order.
[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A building facade generation method based on multi-type combination, characterized in that: The method for generating building facades based on multi-type combination includes: In response to the building facade generation instruction, an input overall building block model is received; wherein the overall building block model includes room module units and balcony module units, and the room module units and the balcony module units are distinguished according to layers or identifiers; Identifying the facade information of the overall building block model includes: for the room module unit, removing non-facades whose z-axis component of the normal vector is not 0, and retaining the surface whose z-axis component of the normal vector is 0 as the outer surface of the wall surface; wherein, performing a Boolean union operation on the overall building block model to obtain an overall model without internal surfaces, extracting all surface center points of the room module unit and the balcony module unit, calculating the closest distances from all surface center points to each outer facade of the overall model, and determining the surface to which the surface center point with the closest distance being 0 belongs as the outer surface; wherein In the example, the internal surface includes the overlapping surfaces between the rooms in the room module unit; the coplanar features between all the external surfaces are recorded; the normal vectors of all the external surfaces are compared with the reference normal vectors to obtain the orientations of all the external surfaces; the overlapping relationship between the center point of each surface of the balcony module unit and all the external surfaces is calculated to obtain the overlapping surface information between the room module unit and the balcony module unit; wherein the surface of the balcony module unit that overlaps with the room module unit is determined as the inner surface of the balcony, and the side opposite to the inner surface of the balcony is determined as the outer surface of the balcony; Performing facade combination processing on the overall building block model according to the facade information to obtain facade combination information; Generating multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information; The overall building block model is processed by assigning facade details according to the multi-type facade combination to obtain the building facade of the overall building block model.
2. The method for generating building facades based on multi-type combination according to claim 1, characterized in that: The performing facade combination processing on the entire building block model according to the facade information to obtain the facade combination information includes: Obtaining the vertical coordinate range and floor height threshold of the overall building block model; Performing facade layering processing on the overall building block model according to the coordinate range and the layer height threshold to obtain multiple layers; In each layer, determine the center point of each rectangular facade and fit the center point of each rectangular facade into a straight line segment; The straight line segment is segmented according to the center points of each rectangular facade to obtain a plurality of sub-segments; wherein, starting from the starting point of the straight line segment, two adjacent center points of each rectangular facade are used as segmentation points in sequence; the end point of the previous sub-segment is used as the starting point of the next sub-segment; The facades to which the two endpoints of each sub-line segment belong are determined as an adjacent facade combination; Extract curve features based on the center points of each rectangular facade to obtain facade curve features; Integrating adjacent facade combinations and facade curve features of each floor to obtain the facade combination information; Among them, the facades that are not involved in the combination are determined as single independent facades.
3. The method for generating building facades based on multi-type combination according to claim 2, characterized in that: The curve feature extraction is performed based on the center point of each rectangular facade to obtain the facade curve feature, which includes: Extracting the center points of each rectangular facade in the same direction to perform curve segmentation to obtain the facade curve features; The center point of each rectangular facade is extracted only once, and the starting point or end point of the previous curve cannot be covered by the next curve.
4. The method for generating building facades based on multi-type combination according to claim 2, characterized in that: The generating of the multi-type facade combination of the overall building block model according to the facade information and the facade combination information comprises: According to the facade information, all facades with the same coplanar characteristics in the overall building block model are divided into a group to obtain a coplanar facade combination of a single type; and / or According to the facade information, all facades with the same orientation in the overall building block model are divided into a group to obtain a facade combination with a single orientation type; and / or Obtaining each facade module combination according to the facade combination information, and determining the orientation of each facade module combination; comparing the orientation of each facade module combination with the orientation of each independent surface to obtain an orientation comparison result; and classifying the facade module combinations and independent surfaces having the same orientation into facade combinations of each orientation combination type according to the orientation comparison result; and / or Obtaining each facade module combination according to the facade combination information, and determining a coplanar feature of each facade module combination; comparing the coplanar feature of each facade module combination with the coplanar feature of each independent surface to obtain a coplanar feature comparison result; and classifying the facade module combinations and independent surfaces having the same coplanar feature into facade combinations of each coplanar combination type according to the coplanar feature comparison result; Among them, the coplanar single type facade combination, the single orientation type facade combination, the orientation combination type facade combination and the coplanar combination type facade combination all distinguish between the inner side of the balcony, the outer side of the balcony and the wall surface.
5. The method for generating building facades based on multi-type combination according to claim 1, characterized in that: The performing facade detail addition processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model comprises: For each type of facade combination, determine the reference surface and each reference surface to be processed; Calculating the angle difference between the normal vector of the reference surface and each reference surface to be processed; Calculating a movement vector of the reference surface relative to each reference surface to be processed; Obtaining detailed elevation information of the reference surface; According to the normal vector angle difference and the movement vector between the reference surface and each reference surface to be processed, the facade detail information of the reference surface is correspondingly added to each reference surface to be processed to obtain the building facade of the overall building block model.
6. A building facade generation device based on multi-type combination, characterized in that: The building facade generation device based on multi-type combination includes: A receiving unit is configured to receive an input overall building block model in response to a building facade generation instruction; wherein the overall building block model includes room module units and balcony module units, and the room module units and the balcony module units are distinguished according to layers or identifiers; An identification unit is used to identify the facade information of the overall building block model, including: for the room module unit, removing non-facades whose z-axis component of the normal vector is not 0, and retaining the surface whose z-axis component of the normal vector is 0 as the outer surface of the wall surface; wherein, a Boolean union operation is performed on the overall building block model to obtain an overall model without internal surfaces, extracting all the surface center points of the room module unit and the balcony module unit, calculating the closest distance from all the surface center points to each facade of the overall model, and determining the surface to which the surface center point with the closest distance being 0 belongs as the outer surface surface; wherein the internal surface includes the overlapping surface between each room in the room module unit; record the coplanar features between all the external side surfaces; compare the normal vectors of all the external side surfaces with the reference normal vector to obtain the orientation of all the external side surfaces; calculate the coincidence relationship between the center point of each surface of the balcony module unit and all the external side surfaces to obtain the coincidence surface information between the room module unit and the balcony module unit; wherein, the surface of the balcony module unit that coincides with the room module unit is determined as the inner side surface of the balcony, and the side opposite to the inner side surface of the balcony is determined as the outer side surface of the balcony; a processing unit, configured to perform facade combination processing on the entire building block model according to the facade information to obtain facade combination information; A generating unit, configured to generate multiple types of facade combinations of the overall building block model according to the facade information and the facade combination information; The processing unit is further configured to perform facade detail assignment processing on the overall building block model according to the multi-type facade combination to obtain the building facade of the overall building block model.
7. A computer device, characterized in that: The computer device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the building facade generation method based on multi-type combination according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in a computer device to implement the method for generating a building facade based on multi-type combination according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and apparatus for generating an abstract texture for a building facade or model
US20190019324A1