Windowsill board generation method and system in building model

By providing a window sill generation method in the building model in BIM civil engineering calculation software, the window sill path is determined using the host relationship of the opening components and the midline overlap area, and a three-dimensional model is constructed based on user input and custom sections. The problem of inaccurate window sill generation in the existing software is solved, and the rapid and accurate window sill generation and architectural model integrity is achieved.

CN119885344AActive Publication Date: 2025-04-25PINMING TECH CO LTD

Patent Information

Application Number
CN202411859924.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-17
Publication Date
2025-04-25
Estimated Expiration
2044-12-17

AI Technical Summary

Technical Problem

The lack of a quick and accurate generation method of window sill sill sill sill sills in the existing civil engineering calculation software, which leads to complex operations and prone to calculation errors when processing window sill sills.

Method used

By providing a window sill generation method in the building model in BIM civil engineering calculation software, the host relationship of the hole members is used to determine the dependency wall members, the target wall members are determined through the midline overlap area to obtain the preset window sill path, and the path is improved according to the shelving length input by the user, and a three-dimensional model is constructed based on the user's selection or customization of the cross-section, spatial rotation matrix and vector stretching.

Benefits of technology

It realizes the rapid and accurate generation of window sills, ensures adaptability to the building structure, improves the accuracy and completeness of the building model, and provides reliable data support for architectural design, construction and operation management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119885344A_ABST
    Figure CN119885344A_ABST
Patent Text Reader

Abstract

The invention relates to a windowsill generation method and system in a building model, electronic equipment and a storage medium. The method comprises the following steps: determining an attached wall component by utilizing a host relationship of a hole component, and comparing a center line overlapping region to determine a target wall component so as to obtain a preset windowsill path; further, the path is perfected according to the shelving length set by the user; and constructing a three-dimensional model by utilizing a section selected or customized by a user in combination with a rotation matrix and vector stretching. According to the scheme, the problem of automatic generation of windowsill boards of different types of windows is solved, and the blank that windowsill board generation lacks a unified and efficient method is filled. The window sill is accurately generated, the adaptability with a building structure is ensured, the accuracy and integrity of a building model are realized, and reliable data support is provided for building design, construction and operation management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer graphics technology, and in particular to a method, system, computer device and computer-readable storage medium for generating window sills in a building model. Background Art

[0002] The window sill is a plate-like component located at the bottom of the window. It protects the wall from rain erosion and the collision and friction of the window opening and closing, and also has a decorative function. The materials include wood, which has a warm texture but needs to be moisture-proof; marble, which has high hardness and waterproof but has a cold texture and high price; artificial stone, which has many colors but has poor heat resistance and hardness.

[0003] In the related technology, there is no such special type of window sill component in the current civil engineering quantity calculation software, which makes it lack of targeted calculation and design functions when dealing with such components. This type of team building can only use ring beams and exterior wall nodes to replace the window sill. This replacement method is not only complicated to operate, but also prone to errors in the calculation process, because the properties of ring beams and exterior wall nodes are not exactly the same as those of window sills, which may lead to inaccurate calculation results.

[0004] At present, there is no effective solution to the problem of lack of fast and accurate generation method of window sills in civil engineering quantity calculation software in related technologies. Summary of the invention

[0005] The embodiments of the present application provide a method, system, computer device and computer-readable storage medium for generating window sills in a building model, so as to at least solve the problem of the lack of a method for quickly and accurately generating window sills in the related art.

[0006] In a first aspect, an embodiment of the present application provides a method for generating a window sill in a building model, which is applied to BIM civil engineering quantity calculation software, and the method includes:

[0007] In response to a user operation instruction, an opening component is selected, and a preset window sill path is determined according to the opening component and a target wall component to which it is attached;

[0008] The height above the ground is obtained based on the cache data of the opening component by a binary search algorithm, wherein the cache data adopts a red-black tree data structure;

[0009] Receive the shelf length of the window sill input by the user, determine the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determine the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path;

[0010] Initialize a reference section, create a space rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and construct a three-dimensional model of the window sill based on the space rotation matrix and the preset window sill path.

[0011] In some embodiments, determining the preset window sill path according to the overlapping area of ​​the center line of the opening component and the wall component to which it is attached includes:

[0012] According to the host relationship of the opening component cache, obtaining the connection relationship of the subsidiary entity corresponding to the opening component;

[0013] According to the connection relationship, a target wall component to which the opening component is attached is obtained, wherein, when there are multiple wall components to which the opening component is attached, the target wall component is determined from the multiple wall components by comparing the overlapping area of ​​the center lines of the opening component and the wall component;

[0014] The preset window sill path is determined according to the property of the target wall component.

[0015] In some of the embodiments, when the window sill is a double-sided door-and-window, the method further comprises:

[0016] According to the attribute information of the opening component, the lowest elevation in the area composed of multiple windows is obtained;

[0017] According to the elevation and the window sill height in the opening component property column, an initial height from the ground is obtained;

[0018] The legitimacy of the initial height from the ground is judged, and when the legitimacy judgment result indicates that it is correct, the initial height from the ground is defined as the height from the ground used to generate the window sill.

[0019] In some embodiments, determining the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width includes:

[0020] Determine the insertion point according to the family instance positioning information of the opening component;

[0021] After extending half of the preset window width in the left and right directions of the insertion point, and extending the shelf length, the left and right endpoints of the window sill are determined respectively, and the end point distance of the window sill is determined based on the left and right endpoints.

[0022] In some embodiments, determining the insertion endpoint based on the window sill endpoint distance and the preset window sill path includes:

[0023] On the preset window sill path, the left and right endpoints of the window sill are determined according to the window sill endpoint distance to obtain the insertion endpoint, wherein:

[0024] When the wall edge spacing of the wall component on the preset window plate path is smaller than the left and right end points of the window plate, it is determined whether there are adjacent wall components in the same direction of the preset window plate path. If so:

[0025] Determining the insertion endpoints in the wall component and the adjacent wall component based on the preset window panel path;

[0026] If not, the insertion endpoint is determined based on the distance between the preset window panel path and the wall edge.

[0027] In some embodiments, the reference cross section is a two-dimensional plane in the XY direction of the origin, and constructing the three-dimensional model of the window sill based on the spatial rotation matrix and the preset window sill path includes:

[0028] Rotating the reference section to a target position by using the rotation vector;

[0029] Based on the target position and the preset window sill path, a three-dimensional model of the window sill is constructed by using a vector stretching method.

[0030] In a second aspect, an embodiment of the present application provides a system for generating a window sill in a building model, the system comprising a preprocessing module, a path improvement module and a three-dimensional model generation module, wherein:

[0031] The preprocessing module is used to respond to the user's operation instruction, select the opening component, and determine the preset window sill path according to the opening component and the target wall component to which it is attached;

[0032] And, obtaining the height above the ground based on the cache data of the opening component through a binary search algorithm, wherein the cache data adopts a red-black tree data structure;

[0033] The path improvement module is used to receive the shelf length of the window sill input by the user, determine the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determine the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path;

[0034] The three-dimensional model generation module is used to initialize the reference section, create a spatial rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and construct a three-dimensional model of the window sill based on the spatial rotation matrix and the preset window sill path.

[0035] In some embodiments, the preprocessing module: acquires a connection relationship of an attached entity corresponding to the opening component according to a host relationship of the opening component cache;

[0036] According to the connection relationship, a target wall component to which the opening component is attached is obtained, wherein, when there are multiple wall components to which the opening component is attached, the target wall component is determined from the multiple wall components by comparing the overlapping area of ​​the center lines of the opening component and the wall component;

[0037] The preset window sill path is determined according to the property of the target wall component.

[0038] In a third aspect, an embodiment of the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect above when executing the computer program.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0040] Compared with the related art, the embodiment of the present application provides a method for generating window sills in a building model, which uses the host relationship of the opening component to determine the attached wall component, and compares the centerline overlapping area to determine the target wall component to obtain a preset window sill path; further, the path is improved according to the shelving length set by the user; and a three-dimensional model is constructed using user-selected or customized sections combined with rotation matrices and vector stretching. This solution solves the problem of automatic generation of window sills for different types of windows, and fills the gap in the lack of a unified and efficient method for generating window sills. Accurately generate window sills to ensure compatibility with building structures, achieve accuracy and integrity of building models, and provide reliable data support for building design, construction, and operation management. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 is a flow chart of a method for generating a window sill in a building model in a building model according to an embodiment of the present application;

[0043] Figure 2 is a schematic diagram of a user inputting an operation instruction according to an embodiment of the present application;

[0044] Figure 3 is a schematic diagram of a window sill generation method according to an embodiment of the present application;

[0045] Figure 4 is a schematic diagram of window sill arrangement information for special door and window configurations according to an embodiment of the present application;

[0046] Figure 5 is a structural block diagram of a window sill generation system in a building model according to an embodiment of the present application;

[0047] Figure 6 and Figure 7 They are schematic diagrams of a three-dimensional model of a window sill according to an embodiment of the present application;

[0048] Figure 8 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0050] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0051] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0052] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0053] There are many problems with the current civil engineering quantity calculation software. First of all, there is no such special type of window sill component in the software, which makes it lack of targeted calculation and design functions when dealing with such components. In some software, ring beams and exterior wall nodes are used to replace the drawing of window sills. This replacement method is not only complicated to operate, but also prone to errors in the calculation process, because the properties of ring beams and exterior wall nodes are not exactly the same as those of window sills, which may lead to inaccurate calculation results.

[0054] Furthermore, these softwares do not have the function of quickly generating window sills. When dealing with a large number of window sill drawing tasks, they can only be completed manually or in other more complicated ways, which greatly reduces work efficiency and increases the workload and design cycle of designers. Finally, the software does not support the calculation of window sill reinforcement.

[0055] In view of this, an embodiment of the present application provides a method for generating window sills in a building model, which is applied to BIM civil engineering quantity calculation software. Figure 1 is a flow chart of a method for generating a window sill in a building model in an embodiment of the present application, such as Figure 1 As shown, the process includes the following steps:

[0056] S101, responding to a user operation instruction to select an opening component, and determining a preset window sill path according to the opening component and the target wall component to which it is attached;

[0057] The user operation instruction is an instruction for instructing to generate window sills. In this embodiment, two generation modes are supported: batch selection generation and generation by floor. Figure 2 It is a schematic diagram of a user inputting an operation instruction according to an embodiment of the present application.

[0058] Among them, after the opening component is selected, the host link information can be obtained by using its own cached host relationship, and then the attached entity connection relationship can be queried to obtain the attached wall component, and then the centerline overlapping area of ​​the opening component and the wall component can be compared (select the appropriate wall for the arrangement of doors and windows across multiple walls), so as to preliminarily obtain the preset window sill path.

[0059] It should be noted that in the building model, the position relationship between the opening component and the window sill is closely related. Determining the preset window sill path based on the opening component can make the generation of the window sill match the position of the opening in the wall, ensure that the layout of the window sill is reasonable and in line with the overall logic of the building model, and provide an important basis for the subsequent accurate generation of the window sill in the appropriate position, thereby ensuring the accuracy and rationality of the building model in the window sill related parts.

[0060] Specifically, this step includes the following subdivision steps:

[0061] Step 1, according to the host relationship of the opening component cache, obtain the connection relationship of the subsidiary entity corresponding to the opening component;

[0062] Among them, after selecting the opening component, the host link information is obtained with the help of its own cached host relationship, which is the starting point of the whole process. The host relationship is the inherent association information in the BIM software, which associates the opening component with other parts in the building model. By parsing the host link information, the connection relationship of the attached entities can be deeply queried, so as to obtain the position relationship network of the opening component in the building structure, and provide clues for the subsequent determination of the attached wall components. For example, the building module or structural unit to which the opening belongs may be found through the host link information, and then other entities associated with the opening may be determined.

[0063] Step 2, according to the connection relationship, obtain the wall component to which the opening component is attached, wherein, when there are multiple attached wall components, determine the target wall component from the multiple wall components by comparing the overlapping area of ​​the center lines of the opening component and the wall component;

[0064] Furthermore, based on the queried connection relationship, the wall component to which the opening component is attached can be accurately obtained. In actual building scenarios, an opening may be associated with multiple wall components, especially in complex situations where doors and windows are arranged across multiple walls. In this embodiment, comparing the overlapping areas of the centerlines of the opening component and the wall component becomes a key method for screening. Through this comparison, the wall component that best matches the opening in spatial position and is most suitable as the basis for the attachment of the window sill, that is, the wall component that best meets the conditions, can be identified. This ensures that there is a reasonable and accurate wall foundation for the subsequent determination of the preset window sill path, avoiding the problem of unreasonable window sill position due to improper selection of wall components.

[0065] Step 3, determine the preset window sill path according to the attribute information of the target component wall component.

[0066] After determining the wall component that best meets the conditions, the preset window sill path can be preliminarily obtained. The characteristics of the wall components (such as the direction and length of the wall, whether there is an outer edge of the exterior wall, etc.) have an important impact on the window sill path. For example, if the wall has an outer edge of the exterior wall, the window sill component may be generated according to the outer edge of the exterior wall; if not, it will be generated according to the built-in direction. By combining these properties of the wall components, the approximate direction and range of the window sill on the wall can be planned, laying the foundation for further improving the generation parameters of the window sill (such as height, cross-sectional shape, etc.) and finally generating an accurate window sill model.

[0067] In addition, it should be noted that after determining the wall components of the window sill, make a judgment based on the outer edge of the wall. Figure 3 is a schematic diagram of a window sill generation method according to an embodiment of the present application, such as Figure 3 As shown in the figure, if the wall has an outer edge of the exterior wall, the window sill component is generated according to the outer edge of the exterior wall. If the wall does not have an outer edge of the exterior wall, then

[0068] Generates sills according to built-in directions.

[0069] Through the above step S101, the associated information of the opening component is retrieved, the target wall component to which it belongs is determined, and the preset window sill path is determined based on the target wall component, which provides direction and position information for the accurate generation of the window sill and provides basic guidance for the subsequent generation of the window sill model.

[0070] S102, using a binary search algorithm, obtaining the height above the ground from cache data of the opening component, wherein the cache data adopts a red-black tree data structure;

[0071] In order to efficiently and accurately obtain the required data from the basic properties stored in the opening component itself, in this embodiment, a red-black tree data structure is used in combination with a binary search algorithm.

[0072] It should be noted that the red-black tree is a self-balancing binary search tree, which has good balance and can ensure high efficiency in insertion, deletion and search operations. The binary search algorithm takes advantage of the orderliness of data and quickly locates the target value by continuously reducing the search interval by half.

[0073] During the search process, the direction of movement is determined based on the size relationship between the target value and the current node value. If the target value is less than the current node value, move to the left subtree of the current node; if it is greater than the current node value, move to the right subtree of the current node, and repeat this process until the target value is found or the current node is an empty node. In this way, the required data can be accurately and efficiently retrieved from the component's own cache, and the height above the ground in the actual properties of the opening component can be obtained.

[0074] Specifically, under normal circumstances, the height of the opening component from the ground can more accurately reflect the appropriate starting height position of the window sill, so that the height setting of the window sill meets the basic logic and actual needs of architectural design. Therefore, for general opening components, the height from the ground obtained is directly used to synchronize the height position generated by the window sill;

[0075] In some special cases, the corresponding calculation method can also be adaptively set; in the case of a single-sided door and window, the window position and related height parameters are obtained by separating the door and window information, and the window sill at the corresponding position is generated according to the window information, in which the shelf length at the end close to the door is set to 0;

[0076] In the case of double-sided door and window, the height information between the windows and the length of the window sill required to be generated are different, and the window sill needs to be arranged according to the specific situation. For example, obtain the elevations of the left and right windows respectively, and then select the lowest elevation. Considering that the structure of the double-sided door and window is relatively complex, the elevations of the left and right windows may be different. In order to ensure that the position of the window sill under the entire door and window is reasonable and can function normally, it is more appropriate to use the lowest elevation as the basis. After that, add this lowest elevation to the window sill height in the property bar to get the final height of the window sill.

[0077] Figure 4 It is a schematic diagram of window sill layout information configured for special doors and windows according to an embodiment of the present application.

[0078] In addition, in actual building scenarios, the installation position of the window sill will be affected by many factors. After obtaining the final height of the window sill, it is necessary to judge the legality of this height. For example, there may be concrete components such as railings and node ring beams under the window, and the existence of these components will limit the installation space of the window sill. In addition, the brick wall space under the window may not meet the requirements for the thickness of the window sill. If these factors are not considered, the window sill cannot be installed normally or the overall appearance and function of the building will be affected after installation.

[0079] By performing a legality check after obtaining the height from the ground, building designers or construction workers can promptly understand existing problems so that they can take corresponding measures, such as adjusting the design height of the window sill, modifying the building structure layout, etc.; thereby ensuring the reasonable installation and normal use of the window sill in the building.

[0080] S103, receiving the shelf length of the window sill input by the user, determining the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determining the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path;

[0081] Among them, the shelf length mainly considers the length required for the shelf part of the window sill on the wall, which is crucial to ensure the stability and functionality of the window sill installation.

[0082] Furthermore, the insertion point can be obtained through the family instance positioning information of the opening component, and the insertion point is equivalent to the reference point. In this embodiment, the insertion point of the window sill uniformly uses the insertion point of the opening component, which provides a clear starting reference for the subsequent determination of the specific position and range of the window sill, so that the window sill and the opening component can accurately correspond in spatial position.

[0083] Specifically, the calculation of the distance between the left and right endpoints of the window sill and the insertion point (i.e., the distance between the window sill endpoints) includes: taking the insertion point of the opening component as the basis, extending the left and right sides by half the window width plus the shelf length, so as to obtain the distance between the left and right endpoints of the window sill and the insertion point in an ideal state. It should be noted that the extension of half the window width here is to enable the window sill to cover both sides of the window opening to ensure its adaptability to the window in the width direction; plus the shelf length, the shelf requirements of the window sill on the wall are further considered, thereby comprehensively determining the reasonable distance range of the left and right endpoints relative to the insertion point.

[0084] After obtaining the distances between the left and right endpoints and the insertion point, find the corresponding left and right endpoints of the window sill on the preliminarily preset window sill path. The preliminarily preset window sill path in step S101 has provided a rough direction and range framework for the position of the window sill. By applying the calculated distance to this path, the specific positions of the left and right endpoints of the window sill can be accurately determined while considering factors such as the wall layout, so that the generation of the window sill conforms to the overall design concept of the building.

[0085] Among them, for some special cases, this solution provides the following countermeasures: For example, when the left and right ends of the wall are not long enough, the window sill will be generated at the end of the wall. Because in actual building scenes, the wall length may be limited and cannot meet the requirements of the left and right end points of the window sill calculated according to conventional calculations. Generating the window sill at the end of the wall can ensure that the window sill is generated within the range of the wall, avoiding the situation where the window sill exceeds the wall boundary and is inconsistent with the building structure or cannot be installed.

[0086] At the same time, if there is an adjacent wall with the same vector direction as this path, the window sill can also be extended to the adjacent wall. The same vector direction here means that the direction of the adjacent wall is consistent with the direction of the current window sill preset path. In this case, allowing the window sill to extend to the adjacent wall can make full use of the space of the adjacent wall, making the generation path of the window sill more continuous and complete, further adapting to different building layouts, and improving the flexibility and adaptability of window sill generation to better meet the needs of architectural design and actual use.

[0087] Through the above step S103, a complete window sill generation path is obtained, from considering the shelf length, determining the insertion point, calculating the distance between the left and right endpoints and the insertion point, to determining the endpoints on the preliminary preset path, and coping with insufficient wall length and using adjacent wall extension. The complete generation path provides an accurate data basis for the subsequent generation of an accurate window sill model (such as by determining the cross-sectional shape, performing vector stretching and other operations), ensuring that the window sill is accurately positioned in the building model, has a reasonable layout, and can meet the functional requirements of actual use.

[0088] S104, initializing the reference section, creating a space rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and constructing a three-dimensional model of the window sill based on the space rotation matrix and the preset window sill path.

[0089] In this embodiment, when generating a window sill, the user has two options to determine the cross section, namely, selecting an existing window sill cross section VecterID or making a user-defined reference cross section. The initialization operation of the reference cross section is to set the cross section to a two-dimensional plane in the XY direction at the origin (0,0,0); this provides a unified starting state that is easy to calculate and process for subsequent operations.

[0090] Further, after the section is initialized, a spatial calculation rotation matrix is ​​created by the left endpoint of the window sill and the direction of the generated path. This rotation matrix can be a 3x3 matrix, where the rows and columns of the matrix are orthogonal unit vectors. The matrix composed of these orthogonal unit vectors can accurately define a new coordinate system.

[0091] In addition, it should be noted that when a vector is multiplied by a rotation matrix, the coordinates of the vector in the new coordinate system are actually calculated. Through this matrix operation, vectors originally in the initial coordinate system (such as the vertex vectors of the initialization section, etc.) can be converted to the new coordinate system defined by the rotation matrix. This realizes the transformation of the initialization section from its initial state to a state that is more in line with the actual window sill position to be generated.

[0092] Preferably, the initialization section can be changed to the actual position to be generated through matrix operations in linear algebra. Specifically, the above-mentioned rotation matrix can be used to perform matrix multiplication operations on each vertex vector of the initialization section. Through these operations, each vertex vector will be repositioned according to the new coordinate system defined by the rotation matrix, so that the entire section is moved and rotated in three-dimensional space to a place that meets the actual window sill position requirements.

[0093] Finally, after adjusting the section to the actual position to be generated, the geometric model of the three-dimensional window sill is established by vector stretching. The vector stretching is performed on the determined section and generation path. Specifically, based on the section with the adjusted position, the two-dimensional section is gradually extended into a three-dimensional shape by performing vector stretching on the section along the direction of the generation path. In this process, the length, direction and other parameters of the vector stretching will be set according to the specific situation of the generation path and the design requirements of the window sill.

[0094] Optionally, after generating the window sill, you can also set the attribute data of the window sill, for example: set the steel bar type selection, thickness, height, starting shelving length, end shelving length and other parameters of the window sill on the attribute data of the window sill component to realize batch generation of window sills.

[0095] Through the above step S104, through the above series of steps, from the selection and initialization of the section, to the creation and application of the rotation matrix, to the change of the section position and finally to the establishment of a three-dimensional geometric model through vector stretching, the window sill is successfully generated.

[0096] In addition, an exemplary interactive process for generating window sills in the BIM civil engineering quantity calculation software is as follows:

[0097] Step 1 Select the window to be generated. You can choose "Window (Ordinary Window)", "Bay Window", "Wall Hole", "Door-Linked Window", or "Strip Window";

[0098] Step 2 Select the location to be generated, you can choose "Masonry Inner Wall" or "Masonry Outer Wall";

[0099] Step 3: Select whether to generate only on the outer edge of the exterior wall;

[0100] Step 4: Set the width of the window sill "B", which can be entered manually or generated according to the wall thickness;

[0101] Step5: Set the width of the window sill "H", which can be entered manually;

[0102] Step 6: Set the shelf length of the window sill (the length of the window sill extending out of the window component): the starting shelf length and the end shelf length can be entered manually;

[0103] Step 7: Select the type of windowsill: two types are supported, that is, two types of reinforcement;

[0104] Step8 Select the generation method: Support the options of "Select component to generate" and "Select floor to generate".

[0105] Through the above steps S101 to S104, the host relationship of the opening component is used to determine the attached wall component, and the target wall component is determined by comparing the centerline overlap area to obtain the preset window sill path; further, the path is improved according to the shelving length set by the user; and the three-dimensional model is constructed by combining the rotation matrix and vector stretching with the user-selected or customized section. This solution solves the problem of automatic generation of window sills for different types of windows and fills the gap of the lack of a unified and efficient method for window sill generation. Accurately generate window sills to ensure compatibility with building structures, achieve accuracy and integrity of building models, and provide reliable data support for building design, construction and operation management.

[0106] At the same time, this solution is universal in that it determines the connection relationship to find the attached wall components and obtain the height from the ground. There is also flexibility in the preset path generation and the improvement of the path according to the shelving length. The same is true for model building using sections, rotation matrices, and vector stretching. However, special windows such as bay windows may require special treatment, and different window types may have different design requirements, so corresponding adjustments and optimizations can be made according to user needs. In general, after adjustment and optimization, the automatic generation function of independent or unified window sills for different types of windows (such as ordinary windows, bay windows, wall holes, door-linked windows, and strip windows) can be realized.

[0107] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0108] This embodiment also provides a system for generating window sills in a building model. Figure 5 is a structural block diagram of a window sill generation system in a building model according to an embodiment of the present application, such as Figure 5 As shown, the system is applied to BIM civil engineering quantity calculation software, and the system includes: a pre-processing module 50, a path improvement module 51 and a three-dimensional model generation module 52, wherein:

[0109] The preprocessing module 50 is used to respond to the user's operation instruction, select the opening component, determine the preset window sill path according to the opening component and the target wall component to which it is attached; and obtain the height from the ground based on the cache data of the opening component through a binary search algorithm, wherein the cache data adopts a red-black tree data structure;

[0110] The path improvement module 51 is used to receive the shelf length of the window sill input by the user, determine the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determine the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path;

[0111] The three-dimensional model generation module 52 is used to initialize the reference section, create a space rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and construct a three-dimensional model of the window sill based on the space rotation matrix and the preset window sill path.

[0112] Figure 6 and Figure 7 They are schematic diagrams of three-dimensional models of window sills according to embodiments of the present application, such as Figure 6 and Figure 7 As shown in the figure, the system uses the host relationship of the opening component to determine the attached wall component, and compares the centerline overlap area to determine the target wall component to obtain the preset window sill path; further, the path is improved according to the shelving length set by the user; the three-dimensional model is constructed by combining the user-selected or customized section with the rotation matrix and vector stretching. This solution solves the problem of automatic generation of window sills for different types of windows and fills the gap of the lack of a unified and efficient method for window sill generation. Accurately generate window sills to ensure compatibility with building structures, achieve accuracy and integrity of building models, and provide reliable data support for building design, construction and operation management.

[0113] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for generating a window sill based on a building model is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0114] In one embodiment, Figure 8 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 8 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 8 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a window sill generation method in a building model, and the database is used to store data.

[0115] Those skilled in the art will understand that Figure 8 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0117] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a window sill in a building model, characterized in that: Applied to BIM civil engineering quantity calculation software, the method includes: In response to a user operation instruction, an opening component is selected, and a preset window sill path is determined according to the opening component and a target wall component to which it is attached; The height above the ground is obtained based on the cache data of the opening component by a binary search algorithm, wherein the cache data adopts a red-black tree data structure; Receive the shelf length of the window sill input by the user, determine the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determine the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path; Initialize a reference section, create a space rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and construct a three-dimensional model of the window sill based on the space rotation matrix and the preset window sill path.

2. The method according to claim 1, characterized in that Determining the preset window sill path according to the overlapping area of ​​the center line of the opening component and the wall component to which it is attached includes: According to the host relationship of the opening component cache, obtaining the connection relationship of the subsidiary entity corresponding to the opening component; According to the connection relationship, a target wall component to which the opening component is attached is obtained, wherein, when there are multiple wall components to which the opening component is attached, the target wall component is determined from the multiple wall components by comparing the overlapping area of ​​the center lines of the opening component and the wall component; The preset window sill path is determined according to the property of the target wall component.

3. The method according to claim 1, characterized in that In the case where the window sill is a double-sided door-and-window, the method further comprises: According to the attribute information of the opening component, the lowest elevation in the area composed of multiple windows is obtained; According to the elevation and the window sill height in the opening component property column, an initial height from the ground is obtained; The legitimacy of the initial height from the ground is judged, and when the legitimacy judgment result indicates that it is correct, the initial height from the ground is defined as the height from the ground used to generate the window sill.

4. The method according to claim 1, characterized in that: Determining the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width includes: Determine the insertion point according to the family instance positioning information of the opening component; After extending half of the preset window width in the left and right directions of the insertion point, and extending the shelf length, the left and right endpoints of the window sill are determined respectively, and the end point distance of the window sill is determined based on the left and right endpoints.

5. The method according to claim 4, characterized in that Determining the insertion endpoint based on the window sill endpoint distance and the preset window sill path includes: On the preset window sill path, the left and right endpoints of the window sill are determined according to the window sill endpoint distance to obtain the insertion endpoint, wherein: When the wall edge spacing of the wall component on the preset window plate path is smaller than the left and right end points of the window plate, it is determined whether there are adjacent wall components in the same direction of the preset window plate path. If so: Determining the insertion endpoints in the wall component and the adjacent wall component based on the preset window panel path; If not, the insertion endpoint is determined based on the distance between the preset window panel path and the wall edge.

6. The method according to claim 1, characterized in that The reference cross section is a two-dimensional plane in the XY direction at the origin. Based on the space rotation matrix and the preset window sill path, constructing the three-dimensional model of the window sill includes: Rotating the reference cross section to a target position by using the rotation vector; Based on the target position and the preset window sill path, a three-dimensional model of the window sill is constructed by using a vector stretching method.

7. A window sill generation system in a building model, characterized in that: The system is used for BIM civil engineering quantity calculation software, including: a pre-processing module, a path improvement module and a three-dimensional model generation module, wherein: The preprocessing module is used to respond to the user's operation instruction, select the opening component, and determine the preset window sill path according to the opening component and the target wall component to which it is attached; And, obtaining the height above the ground based on the cache data of the opening component through a binary search algorithm, wherein the cache data adopts a red-black tree data structure; The path improvement module is used to receive the shelf length of the window sill input by the user, determine the window sill endpoint distance according to the insertion point of the opening component, the shelf length and the preset window width, and determine the insertion endpoint in the preset window sill path based on the window sill endpoint distance to obtain a complete window sill path; The three-dimensional model generation module is used to initialize the reference section, create a spatial rotation matrix according to the left endpoint of the inserted endpoints and the complete window sill path, and construct a three-dimensional model of the window sill based on the spatial rotation matrix and the preset window sill path.

8. The system according to claim 7, characterized in that The preprocessing module: acquires the connection relationship of the subordinate entity corresponding to the opening component according to the host relationship of the opening component cache; According to the connection relationship, a target wall component to which the opening component is attached is obtained, wherein, when there are multiple wall components to which the opening component is attached, the target wall component is determined from the multiple wall components by comparing the overlapping area of ​​the center lines of the opening component and the wall component; The preset window sill path is determined according to the property of the target wall component.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Door and window model arrangement method and device, computer equipment and storage medium

    CN112464327A

  • Revit model-based high-rise housing hanging plate automatic design method and device

    CN112836271A

  • BIM (Building Information Modeling)-based residence modular design method and computer storage medium

    CN114036619A

  • Method for manufacturing oxide thin film transistor according to gas flow rate and oxide thin film transistor manufactured by the manufacturing method

    KR102297581B1

Cited By

  • Refined building model generation method based on space intelligence and graph semantic driving

    CN121543175A