A method, apparatus, and storage medium for updating a three-dimensional model of a pitched roof structure.

By automatically adjusting the elevation and slope of the pitched roof structural slab and adjusting the secondary structural components based on the target pitched roof structural slab, the problem of low efficiency and insufficient accuracy of existing 3D design software in pitched roof scenarios is solved, and efficient and accurate 3D model updates of pitched roof structures are achieved.

CN121118220BActive Publication Date: 2026-03-13GLODON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-12
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing 3D design software cannot simultaneously achieve efficient adjustment of the structural 3D model and planar display that meets domestic design requirements when dealing with pitched roof scenes, and its efficiency is relatively low.

Method used

By loading the architectural 3D model and the structural 3D model, the elevation and slope of the pitched roof structural slab are automatically adjusted, and the secondary structural components are adjusted based on the target pitched roof structural slab. The decision logic of geometric rules and projection area comparison is adopted to achieve efficient updating of the 3D model of the pitched roof structure.

Benefits of technology

It enables efficient adjustment and precise alignment of the 3D model of the pitched roof structure, ensuring consistency between the architectural and structural models and improving design efficiency and model quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121118220B_ABST
    Figure CN121118220B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, and storage medium for updating a three-dimensional model of a pitched roof structure. The method includes: loading an architectural three-dimensional model and a structural three-dimensional model of the pitched roof building; adjusting the elevation and slope of multiple pitched roof structural panels to be adjusted in the structural three-dimensional model to match the elevation and slope of the corresponding slopes in the architectural three-dimensional model, thereby obtaining multiple target pitched roof structural panels; wherein the architectural three-dimensional model includes multiple pitched roofs, each pitched roof includes multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes; and based on the target pitched roof structural panels, adjusting each secondary structural component in the structural three-dimensional model; wherein the secondary structural components are structurally used to support one or more of the target pitched roof structural panels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided design technology, and in particular to a method, apparatus and storage medium for updating a three-dimensional model of a pitched roof structure. Background Technology

[0002] Currently, 3D design software on the market mainly offers two solutions for structural pitched roof scenes. One solution is not to process the pitched roof scene separately; the other solution is to set the shape orientation of the sloping components of the pitched roof scene and then achieve its shape processing through clipping.

[0003] However, the inventors discovered that the first solution simply aligns the center points of beams, slabs, walls, and columns onto the pitched roof without making any adjustments. This method can roughly build a 3D model of the pitched roof, but the details of the connection reduction at the intersection of components and the planar 2D display cannot meet business requirements. The second solution is the method used by mainstream foreign 3D software, which mainly achieves fine adjustment of the 3D model by trimming the surfaces of the components. However, its 2D display does not meet the domestic expression requirements, and this solution is relatively slow.

[0004] There is currently no effective solution to the aforementioned problems with existing technologies. Summary of the Invention

[0005] The purpose of this invention is to provide a method, device, and storage medium for updating a three-dimensional model of a pitched roof structure, which enables the pitched roof scene to be implemented in three-dimensional design, achieves efficient adjustment of the three-dimensional structural model, and at the same time, the planar display meets the requirements of domestic structural design expression.

[0006] According to one aspect of the present invention, a method for updating a three-dimensional model of a pitched roof structure is provided, comprising:

[0007] Load the architectural and structural 3D models of the pitched roof building;

[0008] The elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model are respectively adjusted to the elevation and slope of the corresponding slope in the three-dimensional architectural model to obtain multiple target pitched roof structural panels; wherein, the three-dimensional architectural model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes;

[0009] Based on the target pitched roof structure panel, each secondary structural component in the three-dimensional model of the structure is adjusted; wherein, the secondary structural component is structurally used to support one or more of the target pitched roof structure panels.

[0010] Optionally, adjusting the elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model to match the elevation and slope of the corresponding slope in the three-dimensional architectural model to obtain multiple target pitched roof structural panels includes:

[0011] Calculate the first projection range of the sloping roof structure panel to be adjusted on the horizontal plane;

[0012] Obtain the first coverage area of ​​each pitched roof in the three-dimensional building model on the horizontal plane;

[0013] Determine the target pitched roof to which the first coverage area with the largest overlap with the first projection range belongs;

[0014] Obtain the second coverage area of ​​each slope in the target pitched roof on the horizontal plane;

[0015] Determine the target slope to which the second coverage area with the largest overlap with the first projection range belongs;

[0016] The elevation and slope of the sloping roof structure panel to be adjusted are adjusted to the elevation and slope of the target slope to obtain the target sloping roof structure panel.

[0017] Optionally, adjusting the various secondary structural components in the three-dimensional model of the structure based on the target pitched roof structural panel includes:

[0018] Each of the vertical structural components in the secondary structural components is attached to the target pitched roof structural slab that each vertical structural component supports in the structure.

[0019] Identify the target pitched roof structural slab supported by each structural beam in all secondary structural components, and align each structural beam with the target pitched roof structural slab supported by each structural beam according to a preset alignment reference; wherein, the alignment reference is used to define the geometric features on which the structural beam and the target pitched roof structural slab are aligned.

[0020] Identify all structural beams from all secondary structural members that intersect with any target pitched roof slab and whose shape partially protrudes from the target pitched roof slab, and cut off the portion of each structural beam that protrudes from the intersecting target pitched roof slab.

[0021] Optionally, attaching each of the vertical structural members among all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member includes:

[0022] Obtain the third coverage area of ​​the vertical structural member on the horizontal plane;

[0023] Determine whether the third coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0024] When the third coverage area overlaps with a second projection area, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the second projection area belongs.

[0025] Optionally, the step of attaching each of the vertical structural members among all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member further includes:

[0026] When the third coverage area overlaps with all M second projection areas, the target pitched roof structural slab to which each of the M second projection areas belongs is determined to obtain a set of structural slabs; where M is an integer greater than 1.

[0027] Determine whether the elevations of the target pitched roof structural panels in the set of structural panels are the same;

[0028] When the elevations of the target pitched roof structural panels in the set of structural panels are not the same, based on the entity meaning represented by the vertical structural member, it is determined whether it is necessary to determine the overlap direction of the overlapping area between the third coverage area and the M second projection ranges.

[0029] When it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in the length direction and one overlapping area in the thickness direction of the vertical structural member, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the overlapping area in the thickness direction belongs.

[0030] When it is not necessary to determine the overlap direction, or when it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in both the length and thickness directions of the vertical structural member, the top section of the vertical structural member is divided into multiple sub-sections, and each sub-section is attached to the bottom section of the corresponding target pitched roof structural panel in the structural panel set.

[0031] Optionally, determining the target pitched roof structural slab structurally supported by each structural beam in all secondary structural members includes:

[0032] Obtain the fourth coverage area of ​​the structural beam on the horizontal plane;

[0033] Determine whether the fourth coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0034] When the fourth coverage area overlaps with a second projection area, the target pitched roof structure to which the second projection area belongs is determined as the target pitched roof structure supported by the structural beam in the structure.

[0035] Optionally, determining the target pitched roof structural slab supported by each structural beam in all secondary structural members further includes:

[0036] When the fourth coverage area overlaps with all N second projection areas, the second projection area with the largest overlap with the fourth coverage area is determined from the N second projection areas; where N is an integer greater than 1.

[0037] When there is a second projection range with the largest overlapping area, the target pitched roof structural panel to which the second projection range with the largest overlapping area belongs is determined as the target pitched roof structural panel supported by the structural beam in the structure.

[0038] When there are multiple second projection ranges with the largest overlapping area, calculate the vertical distance between the top section of the structural beam and the top section of the target pitched roof structural panel to which each second projection range with the largest overlapping area belongs, and determine the target pitched roof structural panel corresponding to the smallest vertical distance.

[0039] When there exists a target pitched roof structure panel corresponding to a minimum vertical distance, the target pitched roof structure panel corresponding to the minimum vertical distance is determined as the target pitched roof structure panel supported by the structural beam in the structure.

[0040] When there are multiple target pitched roof structural panels corresponding to the minimum vertical distance, a target pitched roof structural panel is selected from these multiple target pitched roof structural panels based on the identifier of the target pitched roof structural panel, and is used as the target pitched roof structural panel supported by the structural beam in the structure.

[0041] Optionally, the step of cutting off the portion of each structural beam to be cut that protrudes beyond the intersecting target pitched roof structural slab includes:

[0042] A two-dimensional coordinate system is constructed by taking the baseline of the beam to be cut as the X-axis and rotating the X-axis counterclockwise by 90 degrees as the Y-axis.

[0043] The fourth coverage area of ​​the beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed coverage area;

[0044] The second projection range of the target pitched roof structural panel intersecting with the structural beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed projection range;

[0045] Determine the overlapping area between the transformed coverage area and the transformed projection area;

[0046] Obtain the minimum X value, maximum X value, minimum Y value, and maximum Y value of the overlapping region;

[0047] The minimum X value, the maximum X value, the minimum Y value, and the maximum Y value are respectively used as the minimum X value, maximum X value, minimum Y value, and maximum Y value to determine the rectangle.

[0048] The rectangular frame is back-projected onto the top section of the target pitched roof structural panel that intersects with the structural beam to be cut, after coordinate transformation. The back-projected rectangular frame is then stretched upward along a direction perpendicular to the top section of the target pitched roof structural panel until it overlaps with the top section of the structural beam to be cut.

[0049] The three-dimensional shell obtained by stretching is used as the part of the structural beam to be cut that protrudes from the target pitched roof structural plate, and this part is cut off from the structural beam to be cut.

[0050] To achieve the above objectives, the present invention further provides a device for updating a three-dimensional model of a pitched roof structure, comprising:

[0051] The loading module is used to load the architectural and structural 3D models of pitched roof buildings.

[0052] The first adjustment module is used to adjust the elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model to the elevation and slope of the corresponding slope in the three-dimensional building model, so as to obtain multiple target pitched roof structural panels; wherein, the three-dimensional building model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes.

[0053] The second adjustment module is used to adjust each secondary structural component in the three-dimensional model of the structure based on the target pitched roof structural panel; wherein, the secondary structural component is structurally used to support one or more of the target pitched roof structural panels.

[0054] To achieve the above objectives, the present invention also provides a computer device, the computer device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method for updating a three-dimensional model of a pitched roof structure described above.

[0055] To achieve the above objectives, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is used to implement the steps of the method for updating a three-dimensional model of a pitched roof structure described above.

[0056] The present invention provides a method, device, and storage medium for updating a 3D model of a pitched roof structure. It proposes a collaborative modeling method for pitched roof structure design. Its core lies in effectively improving the efficiency and accuracy problems of the traditional manual adjustment mode through rule-based and automated methods. It forms a pitched roof slope finding method that can maintain the accurate consistency between the building 3D model and the structural 3D model and can be updated in conjunction with design changes, thereby improving the overall quality and application value of BIM (Building Information Modeling) data. Attached Figure Description

[0057] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0058] Figure 1 A flowchart illustrating the method for updating the three-dimensional model of the pitched roof structure provided in Example 1;

[0059] Figure 2 A schematic diagram of the various alignment references provided in Embodiment 1;

[0060] Figure 3 This is a schematic diagram of the rectangular frame formed by the overlapping area of ​​the structural beam to be cut and the target pitched roof structural slab in the two-dimensional coordinate system provided in Example 1.

[0061] Figure 4 This is a schematic diagram of the update scheme for the three-dimensional model of the pitched roof structure provided in Example 1;

[0062] Figure 5 A block diagram of the device for updating the three-dimensional model of the pitched roof structure provided in Embodiment 2;

[0063] Figure 6 A block diagram of a computer device suitable for implementing a method for updating a three-dimensional model of a pitched roof structure, as provided in Embodiment 3. Detailed Implementation

[0064] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without inventive effort are within the scope of protection of this invention.

[0065] Example 1

[0066] This invention provides a method for updating a three-dimensional model of a pitched roof structure, such as... Figure 1 As shown, the method includes steps S1 to S3, wherein:

[0067] Step S1: Load the architectural 3D model and structural 3D model of the pitched roof building.

[0068] A pitched roof building is a building entity comprising multiple pitched roof entities, where a pitched roof entity refers to a building roof with a certain slope. The architectural 3D model is a 3D model of the pitched roof building in the architectural field, used to represent the building's appearance and function; the structural 3D model is a 3D model of the pitched roof building in the structural field, used to represent the structural load-bearing framework. The architectural 3D model contains multiple pitched roof components, simply referred to as pitched roofs. The structural 3D model includes multiple pitched roof structural panels, which structurally support the pitched roof, specifically supporting the corresponding slopes within the pitched roof.

[0069] The software loads the architectural and structural 3D models of the pitched roof building. The software supports editing the structural 3D model. The coordinates of all corresponding components in the loaded architectural and structural 3D models remain consistent.

[0070] Step S2: Adjust the elevation and slope of the multiple pitched roof structural panels to be adjusted in the three-dimensional structural model to the elevation and slope of the corresponding slopes in the three-dimensional architectural model, so as to obtain multiple target pitched roof structural panels; wherein, the three-dimensional architectural model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes.

[0071] This step defines how to collaboratively align the structural 3D model with the architectural 3D model, specifically how to align each pitched roof structural panel to be adjusted with its corresponding slope. The structural 3D model includes multiple pitched roof structural panels. When a pitched roof structural panel is not aligned with the slope it supports, that panel is designated as the pitched roof structural panel to be adjusted. Each aligned pitched roof structural panel is called the target pitched roof structural panel. Pitched roof structural panel alignment includes elevation alignment and slope alignment; that is, adjusting the elevation of the pitched roof structural panel to be adjusted to the elevation of the corresponding slope, and adjusting the slope of the pitched roof structural panel to the slope of the corresponding slope.

[0072] The following example demonstrates the specific alignment process in step S2, using the adjustment of the elevation and slope of a pitched roof structural slab to obtain the target pitched roof structural slab. The alignment process is identical for each pitched roof structural slab to be adjusted.

[0073] Optionally, step S2 includes:

[0074] Calculate the first projection range of the sloping roof structure panel to be adjusted on the horizontal plane;

[0075] Obtain the first coverage area of ​​each pitched roof in the three-dimensional building model on the horizontal plane;

[0076] Determine the target pitched roof to which the first coverage area with the largest overlap with the first projection range belongs;

[0077] Obtain the second coverage area of ​​each slope in the target pitched roof on the horizontal plane;

[0078] Determine the target slope to which the second coverage area with the largest overlap with the first projection range belongs;

[0079] The elevation and slope of the sloping roof structure panel to be adjusted are adjusted to the elevation and slope of the target slope to obtain the target sloping roof structure panel.

[0080] In traditional BIM design processes, structural engineers need to manually set the slope of the pitched roof structural slabs to ensure consistency with the slope of the roof created by the architectural team. This process becomes extremely tedious and error-prone when there are multiple pitched roofs within the projection area of ​​the structural slab, or when a single pitched roof contains multiple slopes with varying gradients. Engineers must manually determine the slope of each individual structural slab, which is inefficient and makes it difficult to quickly update the model when architectural plans change, severely impacting design efficiency and model quality.

[0081] To overcome the shortcomings of existing technologies, this step aims to provide an intelligent automatic slope-finding method for pitched roof structural panels. The core of this method lies in establishing a decision logic based on geometric spatial relationships and projection area comparisons. This allows the software system to automatically select the most suitable pitched roof as the alignment benchmark for each pitched roof structural panel to be adjusted, thereby achieving batch, accurate, and efficient automated processing. The decision-making process of this method is based on two core principles: first, prioritizing the judgment of the spatial projection relationship between pitched roofs; and second, making the optimal selection based on the principle of maximum projection overlap area. Specifically, when there is only one second coverage area with the largest overlap area, a target slope is determined; when there are multiple second coverage areas with the largest overlap areas, multiple target slopes are determined. When a target slope is determined, the elevation and slope of the pitched roof structural panel to be adjusted are adjusted to match the elevation and slope of the target slope to obtain the target pitched roof structural panel; when multiple target slopes are determined, the elevation and slope of the pitched roof structural panel to be adjusted are adjusted to match the elevation and slope of the target slope with the lowest elevation to obtain the target pitched roof structural panel.

[0082] This embodiment transforms the judgment process, which relies on human experience, into calculable and rigorous geometric rules through intelligent decision-making, reducing subjective errors. It achieves automated batch processing of slope finding for sloping roof structural panels in complex scenarios, reducing manual operations that used to take hours or days to minutes, greatly improving design efficiency. Based on precise geometric calculations, it ensures the accuracy of alignment results, reducing model errors at the source. The solution is logically complete, covering various complex engineering scenarios such as single-slope roofs with multiple faces and overlapping multi-slope roofs, and is highly adaptable, providing core algorithm support for the development of automated functions in BIM software.

[0083] Step S3: Based on the target pitched roof structure panel, adjust each of the secondary structural components in the three-dimensional model of the structure; wherein, the secondary structural components are structurally used to support one or more of the target pitched roof structure panels.

[0084] The target pitched roof structural slab is the pitched roof structural slab that has been aligned with the building's slope and is in its final correct state. Secondary structural components can be vertical structural members or structural beams; vertical structural members can be structural walls or structural columns. Here, structural beams are mostly structural beams with a certain slope. This embodiment uses the adjusted pitched roof structural slab as a reference to batch and automatically adjust all functionally related subordinate components, thereby completing the update of the structural 3D model.

[0085] This invention establishes a modeling rule that uses the architectural model as the sole and highest-priority three-dimensional spatial benchmark and the structural model as the subordinate object. This changes the traditional lagging work mode of modeling the structure and architecture independently and then performing collision checks. It can ensure the precise consistency between the three-dimensional structural model and the architectural design from the source, and achieve true one-to-one modeling and professional collaboration.

[0086] Optionally, step S3 includes:

[0087] Step S31: Attach each of the vertical structural members in all the secondary structural members to the target pitched roof structural plate that each vertical structural member supports in the structure.

[0088] Step S32: Determine the target pitched roof structural panel supported by each structural beam in all secondary structural components, and align each structural beam with the target pitched roof structural panel supported by each structural beam according to a preset alignment reference; wherein, the alignment reference is used to define the geometric features on which the structural beam and the target pitched roof structural panel are aligned.

[0089] Step S33: Identify all structural beams to be cut from all secondary structural members that intersect with any target pitched roof structural slab and whose shape partially protrudes from the target pitched roof structural slab, and cut off the portion of each structural beam that protrudes from the target pitched roof structural slab it intersects with.

[0090] Step S31 addresses the attachment rules for overlapping projections of columns / walls and slabs in structural engineering. Attachment types are categorized as full-section attachment and projected section attachment, automatically determined by the number and direction of intersections with the target pitched roof slab projection. Full-section attachment involves completely attaching the top section of the vertical structural member to the bottom section of the single target pitched roof slab it supports. Projected section attachment involves dividing the top section of the vertical structural member into multiple sub-sections and attaching each sub-section to the corresponding bottom section of each target pitched roof slab it supports. The system automatically calculates the intersection lines of the structural walls, columns, and each target pitched roof slab, attaching only the corresponding section portion of the member to the corresponding target pitched roof slab.

[0091] Optionally, the following section takes the attachment of a vertical structural member to the target pitched roof structural slab as an example to analyze the specific alignment process of step S31 in detail. The attachment process is the same for each vertical structural member.

[0092] Step S31 includes:

[0093] Obtain the third coverage area of ​​the vertical structural member on the horizontal plane;

[0094] Determine whether the third coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0095] When the third coverage area overlaps with a second projection area, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the second projection area belongs.

[0096] When the third coverage area overlaps with only one of the second projection areas, full-section attachment is adopted.

[0097] Optionally, step S31 further includes:

[0098] When the third coverage area overlaps with all M second projection areas, the target pitched roof structural slab to which each of the M second projection areas belongs is determined to obtain a set of structural slabs; where M is an integer greater than 1.

[0099] Determine whether the elevations of the target pitched roof structural panels in the set of structural panels are the same;

[0100] When the elevations of the target pitched roof structural panels in the set of structural panels are not the same, based on the entity meaning represented by the vertical structural member, it is determined whether it is necessary to determine the overlap direction of the overlapping area between the third coverage area and the M second projection ranges.

[0101] When it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in the length direction and one overlapping area in the thickness direction of the vertical structural member, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the overlapping area in the thickness direction belongs.

[0102] When it is not necessary to determine the overlap direction, or when it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in both the length and thickness directions of the vertical structural member, the top section of the vertical structural member is divided into multiple sub-sections, and each sub-section is attached to the bottom section of the corresponding target pitched roof structural panel in the structural panel set.

[0103] Specifically, when the third coverage area overlaps with all M second projection areas, the prerequisite for performing the attachment condition judgment is that the elevations of the target pitched roof structural panels in the structural panel set are all different. When the elevations of the target pitched roof structural panels in the structural panel set are the same, an alarm is triggered, and the attachment process for that vertical structural member is stopped.

[0104] When the vertical structural member is a structural wall, the overlap direction needs to be determined; when the vertical structural member is a structural column, the overlap direction does not need to be determined. When the vertical structural member is a structural wall, and the overlap direction indicates that there are multiple overlapping areas in the length direction and one overlapping area in the thickness direction of the structural wall, full-section attachment is used. When the vertical structural member is a structural column, or when the vertical structural member is a structural wall and the overlap direction indicates that there are multiple overlapping areas in both the length and thickness directions of the structural wall, projected section attachment is used.

[0105] The step of dividing the top section of the vertical structural member into multiple sub-sections and attaching each sub-section to the bottom section of the corresponding target pitched roof structural panel in the structural panel set includes:

[0106] When it is not necessary to determine the overlapping direction, calculate the first intersection line between the third coverage area and each of the M second projection areas, and divide the top section of the vertical structural member into M first sub-sections based on each first intersection line, and attach each first sub-section to the bottom section of the corresponding target pitched roof structural panel in the structural panel set.

[0107] When it is necessary to determine the overlap direction and the overlap direction represents the existence of multiple overlapping areas in both the length and thickness directions of the vertical structural member, the second intersection line between the third coverage area and each of the Q second projection ranges is calculated, and the top section of the vertical structural member is divided into Q second sub-sections based on each second intersection line. Each second sub-section is then attached to the bottom section of the target pitched roof structural panel to which each of the Q second projection ranges belongs. Here, Q is the number of overlapping areas in the thickness direction of the vertical structural member, and Q is an integer greater than 1 and less than M.

[0108] The number of first intersection lines is M-1, and the number of second intersection lines is Q-1.

[0109] This embodiment introduces horizontal projection analysis, overlap direction judgment, and decision logic based on the meaning of component entities to realize a fully automatic attachment algorithm that can adaptively handle the spatial relationship between vertical structural components and multiple target pitched roof structural panels and irregular pitched roofs. It solves the long-standing technical problem in BIM collaborative design where model accuracy and efficiency cannot be achieved simultaneously at complex nodes. It ensures that the connection position between the target pitched roof structural panel and the vertical structural component forms a complete and continuous connection surface, guaranteeing the simplicity and aesthetics of the model, and is applicable to most standard situations.

[0110] Step S32 aims to solve the automatic alignment problem when the structural beams and target pitched roof structural slabs overlap in projection. It establishes a complete judgment logic and decision-making process to ensure the rationality of the beam-slab relationship and the accuracy of the modeling. For each identified structural beam, the target pitched roof structural slab supported by the beam is determined from the obtained target pitched roof structural slabs, and then the structural beam is aligned to the target pitched roof structural slab. The alignment datum includes beam edge alignment, beam center alignment, or slab edge alignment; details can be found in [reference needed]. Figure 2 Examples. Among them, Figure 2 The blue part is a schematic diagram projected from the top section of the structural beam to the bottom section, and the gray part is a schematic diagram projected from the target pitched roof structural slab in the same projection direction as the structural beam.

[0111] Beam edge alignment: Vertically adjust the position of the structural beam upwards or downwards until the long side of the top section of the structural beam aligns with the top section of the target pitched roof slab and the top section of the structural beam does not protrude from the top section of the target pitched roof slab, or the long side of the bottom section of the beam aligns with the bottom section of the target pitched roof slab and the bottom section of the structural beam does not protrude from the bottom section of the target pitched roof slab. Specifically, when aligning the top of the beam with the top of the slab, selecting this parameter will prevent the top surface of the beam from protruding from the top surface of the slab; when aligning the bottom of the beam with the bottom of the slab, selecting this parameter will prevent the bottom surface of the beam from protruding from the bottom surface of the slab.

[0112] Beam alignment: Adjust the position of the structural beam vertically upwards or downwards until the centerline of the top section of the structural beam, which is parallel to the long side of the top section, is aligned with the top section of the target pitched roof structural slab.

[0113] Slab edge alignment: Adjust the position of the structural beam vertically upwards or downwards until the long side of the top section of the target pitched roof structural slab aligns with the top section of the structural beam. If the pre-selected alignment reference is slab edge alignment, it is necessary to determine how many edge lines of the target pitched roof structural slab are parallel to the trajectory line of the structural beam. Only if there is only one edge line is the slab edge alignment reference allowed; if there are multiple edge lines, the selected alignment reference should be changed to beam center alignment.

[0114] It should be noted that the target pitched roof structural slab was mentioned multiple times in the above description of the alignment benchmark. Each time the target pitched roof structural slab was mentioned, it referred to the target pitched roof structural slab supported by the structural beam being aligned.

[0115] Furthermore, after adjusting the structural beams based on the alignment benchmark, the slope of the structural beams is adjusted to the slope of the target pitched roof structural slab that the structural beams support.

[0116] The core judgment principle for selecting the target pitched roof structural slab aligned with the structural beam is as follows: First, priority is given to the projected overlap area: select the target pitched roof structural slab with the largest overlap area with the beam; second, the elevation difference is second best: when the overlap areas are the same, select the target pitched roof structural slab with the smallest elevation difference; finally, ID determination: when all the above conditions are the same, the ID of the target pitched roof structural slab shall be used for determination.

[0117] Optionally, the following section uses the selection of a target pitched roof structural slab to be aligned with a structural beam as an example to analyze the specific selection process in step S32 in detail. The processing procedure for selecting the target pitched roof structural slab to be aligned with each structural beam is the same.

[0118] Step S32, which involves determining the target pitched roof slab structurally supported by each structural beam in all secondary structural members, includes:

[0119] Obtain the fourth coverage area of ​​the structural beam on the horizontal plane;

[0120] Determine whether the fourth coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0121] When the fourth coverage area overlaps with a second projection area, the target pitched roof structure to which the second projection area belongs is determined as the target pitched roof structure supported by the structural beam in the structure.

[0122] Specifically, if only one target sloping roof structural panel is detected overlapping with the structural beam within its projection range, whether it is a complete overlap or a partial overlap, the target sloping roof structural panel is determined as the target sloping roof structural panel that the structural beam needs to align with.

[0123] Optionally, the step S32 of determining the target pitched roof structural slab structurally supported by each structural beam in all secondary structural members further includes:

[0124] When the fourth coverage area overlaps with all N second projection areas, the second projection area with the largest overlap with the fourth coverage area is determined from the N second projection areas; where N is an integer greater than 1.

[0125] When there is a second projection range with the largest overlapping area, the target pitched roof structural panel to which the second projection range with the largest overlapping area belongs is determined as the target pitched roof structural panel supported by the structural beam in the structure.

[0126] When there are multiple second projection ranges with the largest overlapping area, calculate the vertical distance between the top section of the structural beam and the top section of the target pitched roof structural panel to which each second projection range with the largest overlapping area belongs, and determine the target pitched roof structural panel corresponding to the smallest vertical distance.

[0127] When there exists a target pitched roof structure panel corresponding to a minimum vertical distance, the target pitched roof structure panel corresponding to the minimum vertical distance is determined as the target pitched roof structure panel supported by the structural beam in the structure.

[0128] When there are multiple target pitched roof structural panels corresponding to the minimum vertical distance, a target pitched roof structural panel is selected from these multiple target pitched roof structural panels based on the identifier of the target pitched roof structural panel, and is used as the target pitched roof structural panel supported by the structural beam in the structure.

[0129] First, an overlap area comparison stage is performed. The projected overlap area between each target pitched roof structural panel and the corresponding structural beam is calculated. The target pitched roof structural panel with the largest overlap area is selected as a candidate. If the target pitched roof structural panel with the largest overlap area is unique, it is directly determined as the alignment target. If the target pitched roof structural panel with the largest overlap area is not unique, an elevation difference comparison stage is performed. The vertical elevation difference between the top section of the structural beam and the top section of the target pitched roof structural panel is calculated, and the target pitched roof structural panel with the smallest absolute elevation difference is selected. This step considers structural rationality, prioritizing target pitched roof structural panels that are spatially closer. When the target pitched roof structural panel with the smallest absolute elevation difference is unique, it is directly determined as the alignment target. When the target pitched roof structural panel with the smallest absolute elevation difference is not unique, the ID ranking of the target pitched roof structural panels is used for decision-making. For example, the target pitched roof structural panel with the smallest ID is selected as the alignment target, or the target pitched roof structural panel with the largest ID is selected as the alignment target, etc.

[0130] This embodiment selects the target pitched roof structural slab that the structural beams need to be aligned with through a three-level progressive decision-making mechanism. This transforms professional decision-making logic into a stable and reliable automated algorithm, reducing manual intervention, improving modeling efficiency, and avoiding the blindness caused by randomly selecting alignment targets when the same results are produced under the same circumstances.

[0131] In pitched roof construction, to achieve complex shapes such as ridge lines and sloping ridges, structural beams (such as sloping beams and edge beams) often need to intersect with the pitched roof slab (sloping plate) at a specific angle. Since the cross-sectional height of the structural beam may be greater than the thickness of the pitched roof slab, a portion of the beam's top or side may protrude from the upper surface of the slab. This protrusion is architecturally unnecessary, as it may affect interior space or roof construction. Therefore, it needs to be trimmed in the model to make the top surface of the structural beam flush with the upper surface of the target pitched roof slab, thereby ensuring model accuracy and construction feasibility. Step S33 mainly consists of two parts: one is determining whether the structural beam is the one to be trimmed; the other is how to trim the structural beam based on the target pitched roof slab.

[0132] The first part involves determining whether each structural beam in all secondary structural components is a beam to be cut. The core idea is to eliminate unnecessary cutting scenarios that pose structural risks or model problems, provided that the basic cutting conditions are met (i.e., the structural beam has part of its shape protruding from the target pitched roof slab). This greatly enhances the intelligence, safety, and reliability of the cutting function, enabling it to handle various complex boundary conditions in engineering practice.

[0133] Specifically, step S33 involves identifying all structural beams to be cut from all secondary structural members that intersect with any target pitched roof structural slab and whose partial shape protrudes beyond the target pitched roof structural slab, including:

[0134] Identify all candidate structural beams from all secondary structural members that intersect with any target pitched roof slab and whose partial shape protrudes beyond the target pitched roof slab;

[0135] Eliminate structural beams that cannot be cut from all candidate structural beams;

[0136] Each remaining candidate structural beam is treated as a structural beam to be cut.

[0137] The process of eliminating non-cuttable structural beams from all candidate beams involves: determining whether each candidate beam can be cut; if not, eliminating that candidate beam. The steps for determining whether a candidate beam can be cut include:

[0138] When the ratio of the height of the protruding part of the candidate structural beam to the total height of the candidate structural beam exceeds the preset ratio threshold, the candidate structural beam is determined not to be cut. In this case, it may indicate that the relationship is not a simple envelopment relationship, but a special structural construction, such as a support beam at a height difference. Forcibly cutting it may misunderstand the design intent and incorrectly weaken the model representation of the beam, which may lead to the risk of structural information distortion.

[0139] When the protruding part of the candidate structural beam intersects with the pre-reserved beam opening on the target pitched roof structural slab, it is determined that the candidate structural beam cannot be cut. In this case, it indicates that this area is where the beam passes through the slab. Cutting this area will destroy the beam-opening relationship and cause model errors. Preserving the original beam body can more accurately reflect the beam-through-slab structure.

[0140] When a candidate structural beam intersects with multiple target pitched roof structural panels, and the projections of these multiple target pitched roof structural panels onto the top section of the candidate structural beam form a preset quadrilateral opening, the candidate structural beam is determined not to be trimmed, in order to avoid trimming problems caused by modeling errors.

[0141] The second part involves trimming the protruding portion of each structural beam to be trimmed. The core idea is to transform the 3D beam-slab intersection problem into processing the contour on a 2D plane, and then backtracking it to generate a precise trimming body in 3D. This method is generally faster and less error-prone than directly performing Boolean operations on 3D solids. The entire process can be divided into three stages: the first stage is data preparation and coordinate transformation: simplifying the problem from the world coordinate system to the local planar coordinate system of the structural beam; the second stage is 2D contour analysis and trimming body generation: calculating the trimming range on the 2D plane and generating a 3D trimming body; the third stage is Boolean operation to perform the trimming: finally completing the cutting of the geometric shape.

[0142] Optionally, the following section uses the cutting of a structural beam to be cut as an example to analyze the specific cutting process of step S33 in detail. The cutting process is the same for each structural beam to be cut.

[0143] Step S33, which involves cutting off the portion of each structural beam protruding from the target pitched roof structural slab that intersects with it, includes:

[0144] A two-dimensional coordinate system is constructed by taking the baseline of the beam to be cut as the X-axis and rotating the X-axis counterclockwise by 90 degrees as the Y-axis.

[0145] The fourth coverage area of ​​the beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed coverage area;

[0146] The second projection range of the target pitched roof structural panel intersecting with the structural beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed projection range;

[0147] Determine the overlapping area between the transformed coverage area and the transformed projection area;

[0148] Obtain the minimum X value, maximum X value, minimum Y value, and maximum Y value of the overlapping region;

[0149] The minimum X value, the maximum X value, the minimum Y value, and the maximum Y value are respectively used as the minimum X value, maximum X value, minimum Y value, and maximum Y value to determine the rectangle.

[0150] The rectangular frame is back-projected onto the top section of the target pitched roof structural panel that intersects with the structural beam to be cut, after coordinate transformation. The back-projected rectangular frame is then stretched upward along a direction perpendicular to the top section of the target pitched roof structural panel until it overlaps with the top section of the structural beam to be cut.

[0151] The three-dimensional shell obtained by stretching is used as the part of the structural beam to be cut that protrudes from the target pitched roof structural plate, and this part is cut off from the structural beam to be cut.

[0152] like Figure 3 As shown, the red rectangle represents the transformation coverage area, and the purple triangle represents the transformation projection area. A rectangle is determined based on the overlapping area of ​​the transformation coverage area and the transformation projection area; this rectangle is the smallest rectangle enclosing the overlapping area. This rectangle is then projected backwards onto the top section of the target pitched roof slab that intersects with the structural beam to be cut, and a three-dimensional shell is determined through extrusion. This three-dimensional shell is the protruding part of the structural beam to be cut. Cutting this three-dimensional shell from the structural beam completes the cutting task of the structural beam to be cut.

[0153] After the main slope is found, the system can automatically identify the structural beams that intersect with the target sloping roof structural slab and protrude from the top / bottom section of the target sloping roof structural slab, and provide a trimming function to achieve precise collision-free combination of the beam and slab model. This solution solves the complex three-dimensional spatial processing problem of structural beams in sloping roofs after they are arranged with the slope and the edge of the target sloping roof structural slab, and achieves model refinement and construction drawing-level accuracy.

[0154] It should be noted that the optimal component processing sequence in slope finding for pitched roofs is as follows: first, batch align the pitched roof structural panels to establish a reference plane; then, batch attach the vertical structural components so that they change with the top elevation of the target pitched roof structural panel; finally, batch align the structural beams. This specific sequence avoids mutual interference between components and ensures the feasibility and accuracy of batch operations.

[0155] The following is based on Figure 4 Taking an example, a specific embodiment of the present invention will be described in detail.

[0156] In the structural modeling software, preset parameters are set, including setting the alignment reference for structural beams. The canvas selection for batch processing components includes selecting the pitched roof, selecting the pitched roof structural slab to be adjusted, and selecting secondary structural components. Alternatively, the software can automatically identify the pitched roof structural slab to be adjusted, the pitched roofs on which each slab depends, and secondary structural components. Taking manual selection of these components by the user as an example, the system determines whether the user has selected the pitched roof structural slab. If not, the alignment process ends; otherwise, it determines whether the user has selected the pitched roof. When the user has selected the pitched roof, the alignment process between the structural slab to be adjusted and the pitched roof is executed; otherwise, the structural slab is not adjusted. Further, it determines whether vertical structural components need to be attached to the target pitched roof structural slab. If so, the attachment operation is performed; otherwise, it continues to determine whether structural beams need to be aligned to the target pitched roof structural slab. If structural beams need to be aligned to the target pitched roof structural slab, the alignment operation between the structural beams and the target pitched roof structural slab they support is performed; otherwise, the operation ends. Optionally, after aligning the structural beams, it can be further determined whether the structural beams need to be trimmed, and the trimming process can be executed based on the requirements.

[0157] The primary step of this invention is to establish data-driven rules, that is, to establish a driving mechanism based on the Building Information Model (BIM), enabling the structural model to automatically coordinate with the architectural design and reducing data inconsistencies between disciplines. The core step is to optimize the processing sequence, that is, to clarify the efficient component processing sequence of pitched roof structural slabs, vertical structural components, and structural beams, and to transform it into a stable automated process, which significantly improves the accuracy and efficiency of batch operations. Finally, a pitched roof slope finding method is formed that can maintain the model's accuracy and consistency and can be updated in conjunction with design changes, thereby improving the overall quality and application value of BIM model data.

[0158] Example 2

[0159] This invention provides a device for updating a three-dimensional model of a pitched roof structure, such as... Figure 5 As shown, the updating device 50 for the three-dimensional model of the pitched roof structure specifically includes the following components:

[0160] Loading module 501 is used to load the architectural 3D model and structural 3D model of the pitched roof building;

[0161] The first adjustment module 502 is used to adjust the elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model to the elevation and slope of the corresponding slope in the three-dimensional building model, so as to obtain multiple target pitched roof structural panels; wherein, the three-dimensional building model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes.

[0162] The second adjustment module 503 is used to adjust each secondary structural component in the three-dimensional model of the structure based on the target pitched roof structural panel; wherein, the secondary structural component is structurally used to support one or more of the target pitched roof structural panels.

[0163] Optionally, the first adjustment module is specifically used for:

[0164] Calculate the first projection range of the sloping roof structure panel to be adjusted on the horizontal plane;

[0165] Obtain the first coverage area of ​​each pitched roof in the three-dimensional building model on the horizontal plane;

[0166] Determine the target pitched roof to which the first coverage area with the largest overlap with the first projection range belongs;

[0167] Obtain the second coverage area of ​​each slope in the target pitched roof on the horizontal plane;

[0168] Determine the target slope to which the second coverage area with the largest overlap with the first projection range belongs;

[0169] The elevation and slope of the sloping roof structure panel to be adjusted are adjusted to the elevation and slope of the target slope to obtain the target sloping roof structure panel.

[0170] Optionally, the second adjustment module is specifically used for:

[0171] Each of the vertical structural components in the secondary structural components is attached to the target pitched roof structural slab that each vertical structural component supports in the structure.

[0172] Identify the target pitched roof structural slab supported by each structural beam in all secondary structural components, and align each structural beam with the target pitched roof structural slab supported by each structural beam according to a preset alignment reference; wherein, the alignment reference is used to define the geometric features on which the structural beam and the target pitched roof structural slab are aligned.

[0173] Identify all structural beams from all secondary structural members that intersect with any target pitched roof slab and whose shape partially protrudes from the target pitched roof slab, and cut off the portion of each structural beam that protrudes from the intersecting target pitched roof slab.

[0174] Optionally, when the second adjustment module performs the action of attaching each of the vertical structural members among all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member, it is specifically used for:

[0175] Obtain the third coverage area of ​​the vertical structural member on the horizontal plane;

[0176] Determine whether the third coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0177] When the third coverage area overlaps with a second projection area, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the second projection area belongs.

[0178] Optionally, when the second adjustment module performs the action of attaching each of the vertical structural members among all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member, it is further specifically used for:

[0179] When the third coverage area overlaps with all M second projection areas, the target pitched roof structural slab to which each of the M second projection areas belongs is determined to obtain a set of structural slabs; where M is an integer greater than 1.

[0180] Determine whether the elevations of the target pitched roof structural panels in the set of structural panels are the same;

[0181] When the elevations of the target pitched roof structural panels in the set of structural panels are not the same, based on the entity meaning represented by the vertical structural member, it is determined whether it is necessary to determine the overlap direction of the overlapping area between the third coverage area and the M second projection ranges.

[0182] When it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in the length direction and one overlapping area in the thickness direction of the vertical structural member, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the overlapping area in the thickness direction belongs.

[0183] When it is not necessary to determine the overlap direction, or when it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in both the length and thickness directions of the vertical structural member, the top section of the vertical structural member is divided into multiple sub-sections, and each sub-section is attached to the bottom section of the corresponding target pitched roof structural panel in the structural panel set.

[0184] Optionally, when performing the process of determining the target pitched roof structural slab supported by each structural beam in all secondary structural members, the second adjustment module is specifically used for:

[0185] Obtain the fourth coverage area of ​​the structural beam on the horizontal plane;

[0186] Determine whether the fourth coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane;

[0187] When the fourth coverage area overlaps with a second projection area, the target pitched roof structure to which the second projection area belongs is determined as the target pitched roof structure supported by the structural beam in the structure.

[0188] Optionally, when performing the process of determining the target pitched roof structural slab supported by each structural beam in all secondary structural members, the second adjustment module is further configured to:

[0189] When the fourth coverage area overlaps with all N second projection areas, the second projection area with the largest overlap with the fourth coverage area is determined from the N second projection areas; where N is an integer greater than 1.

[0190] When there is a second projection range with the largest overlapping area, the target pitched roof structural panel to which the second projection range with the largest overlapping area belongs is determined as the target pitched roof structural panel supported by the structural beam in the structure.

[0191] When there are multiple second projection ranges with the largest overlapping area, calculate the vertical distance between the top section of the structural beam and the top section of the target pitched roof structural panel to which each second projection range with the largest overlapping area belongs, and determine the target pitched roof structural panel corresponding to the smallest vertical distance.

[0192] When there exists a target pitched roof structure panel corresponding to a minimum vertical distance, the target pitched roof structure panel corresponding to the minimum vertical distance is determined as the target pitched roof structure panel supported by the structural beam in the structure.

[0193] When there are multiple target pitched roof structural panels corresponding to the minimum vertical distance, a target pitched roof structural panel is selected from these multiple target pitched roof structural panels based on the identifier of the target pitched roof structural panel, and is used as the target pitched roof structural panel supported by the structural beam in the structure.

[0194] Optionally, when the second adjustment module performs the process of cutting off the portion of each structural beam to be cut that protrudes beyond the intersecting target pitched roof structural slab, it is specifically used for:

[0195] A two-dimensional coordinate system is constructed by taking the baseline of the beam to be cut as the X-axis and rotating the X-axis counterclockwise by 90 degrees as the Y-axis.

[0196] The fourth coverage area of ​​the beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed coverage area;

[0197] The second projection range of the target pitched roof structural panel intersecting with the structural beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed projection range;

[0198] Determine the overlapping area between the transformed coverage area and the transformed projection area;

[0199] Obtain the minimum X value, maximum X value, minimum Y value, and maximum Y value of the overlapping region;

[0200] The minimum X value, the maximum X value, the minimum Y value, and the maximum Y value are respectively used as the minimum X value, maximum X value, minimum Y value, and maximum Y value to determine the rectangle.

[0201] The rectangular frame is back-projected onto the top section of the target pitched roof structural panel that intersects with the structural beam to be cut, after coordinate transformation. The back-projected rectangular frame is then stretched upward along a direction perpendicular to the top section of the target pitched roof structural panel until it overlaps with the top section of the structural beam to be cut.

[0202] The three-dimensional shell obtained by stretching is used as the part of the structural beam to be cut that protrudes from the target pitched roof structural plate, and this part is cut off from the structural beam to be cut.

[0203] Example 3

[0204] This embodiment also provides a computer device, such as a smartphone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server, or cabinet server (including a standalone server or a server cluster composed of multiple servers), etc., capable of executing programs. Figure 6 As shown, the computer device 60 in this embodiment includes, but is not limited to, a memory 601 and a processor 602 that are communicatively connected to each other via a system bus. It should be noted that... Figure 6 Only a computer device 60 with components 601-602 is shown; however, it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0205] In this embodiment, the memory 601 (i.e., the readable storage medium) includes flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 601 may be an internal storage unit of the computer device 60, such as the hard disk or memory of the computer device 60. In other embodiments, the memory 601 may also be an external storage device of the computer device 60, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the computer device 60. Of course, the memory 601 may include both the internal storage unit and the external storage device of the computer device 60. In this embodiment, the memory 601 is typically used to store the operating system and various application software installed on the computer device 60. In addition, the memory 601 may also be used to temporarily store various types of data that have been output or will be output.

[0206] In some embodiments, processor 602 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chip. This processor 602 is typically used to control the overall operation of computer device 60.

[0207] Specifically, in this embodiment, the processor 602 is used to execute a program for updating the three-dimensional model of the pitched roof structure stored in the memory 601.

[0208] For a detailed description of the above method steps, please refer to Example 1. This example will not be repeated here.

[0209] Example 4

[0210] This embodiment also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, server, App application store, etc., which stores a computer program. When the computer program is executed by a processor, it is used to implement the steps of the method for updating the three-dimensional model of the pitched roof structure.

[0211] For a detailed description of the above method steps, please refer to Example 1. This example will not be repeated here.

[0212] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0213] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0214] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method.

[0215] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A method for updating a three-dimensional model of a pitched roof structure, characterized in that, include: Load the architectural and structural 3D models of the pitched roof building; The elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model are respectively adjusted to the elevation and slope of the corresponding slope in the three-dimensional architectural model to obtain multiple target pitched roof structural panels; wherein, the three-dimensional architectural model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes; Based on the target pitched roof structure panel, each secondary structural component in the three-dimensional model of the structure is adjusted; wherein, the secondary structural components are structurally used to support one or more of the target pitched roof structure panels; The step of adjusting the elevation and slope of multiple pitched roof structural panels in the three-dimensional structural model to match the elevation and slope of the corresponding slope in the three-dimensional architectural model, to obtain multiple target pitched roof structural panels, includes: Calculate the first projection range of the sloping roof structure panel to be adjusted on the horizontal plane; Obtain the first coverage area of ​​each pitched roof in the three-dimensional building model on the horizontal plane; Determine the target pitched roof to which the first coverage area with the largest overlap with the first projection range belongs; Obtain the second coverage area of ​​each slope in the target pitched roof on the horizontal plane; Determine the target slope to which the second coverage area with the largest overlap with the first projection range belongs; The elevation and slope of the sloping roof structure panel to be adjusted are adjusted to the elevation and slope of the target slope to obtain the target sloping roof structure panel.

2. The method for updating the three-dimensional model of a pitched roof structure according to claim 1, characterized in that, The step of adjusting each secondary structural component in the three-dimensional model of the structure based on the target pitched roof structural panel includes: Each of the vertical structural components in the secondary structural components is attached to the target pitched roof structural slab that each vertical structural component supports in the structure. Identify the target pitched roof structural slab supported by each structural beam in all secondary structural components, and align each structural beam with the target pitched roof structural slab supported by each structural beam according to a preset alignment reference; wherein, the alignment reference is used to define the geometric features on which the structural beam and the target pitched roof structural slab are aligned. Identify all structural beams from all secondary structural members that intersect with any target pitched roof slab and whose shape partially protrudes from the target pitched roof slab, and cut off the portion of each structural beam that protrudes from the intersecting target pitched roof slab.

3. The method for updating the three-dimensional model of a pitched roof structure according to claim 2, characterized in that, The process of attaching each of the vertical structural members in all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member includes: Obtain the third coverage area of ​​the vertical structural member on the horizontal plane; Determine whether the third coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane; When the third coverage area overlaps with a second projection area, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the second projection area belongs.

4. The method for updating the three-dimensional model of a pitched roof structure according to claim 3, characterized in that, The method of attaching each of the vertical structural members in all the secondary structural members to the target pitched roof structural slab supported by each vertical structural member also includes: When the third coverage area overlaps with all M second projection areas, the target pitched roof structural slab to which each of the M second projection areas belongs is determined to obtain a set of structural slabs; where M is an integer greater than 1. Determine whether the elevations of the target pitched roof structural panels in the set of structural panels are the same; When the elevations of the target pitched roof structural panels in the set of structural panels are not the same, based on the entity meaning represented by the vertical structural member, it is determined whether it is necessary to determine the overlap direction of the overlapping area between the third coverage area and the M second projection ranges. When it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in the length direction and one overlapping area in the thickness direction of the vertical structural member, the top section of the vertical structural member is attached to the bottom section of the target pitched roof structural panel to which the overlapping area in the thickness direction belongs. When it is not necessary to determine the overlap direction, or when it is necessary to determine the overlap direction and the overlap direction represents that there are multiple overlapping areas in both the length and thickness directions of the vertical structural member, the top section of the vertical structural member is divided into multiple sub-sections, and each sub-section is attached to the bottom section of the corresponding target pitched roof structural panel in the structural panel set.

5. The method for updating the three-dimensional model of a pitched roof structure according to claim 2, characterized in that, The determination of the target pitched roof structural slab supported by each structural beam in all secondary structural members includes: Obtain the fourth coverage area of ​​the structural beam on the horizontal plane; Determine whether the fourth coverage area overlaps with the second projection area of ​​one or more of the target pitched roof structural panels on the horizontal plane; When the fourth coverage area overlaps with a second projection area, the target pitched roof structure to which the second projection area belongs is determined as the target pitched roof structure supported by the structural beam in the structure.

6. The method for updating the three-dimensional model of a pitched roof structure according to claim 5, characterized in that, The determination of the target pitched roof structural slab supported by each structural beam in all secondary structural components also includes: When the fourth coverage area overlaps with all N second projection areas, the second projection area with the largest overlap with the fourth coverage area is determined from the N second projection areas; where N is an integer greater than 1. When there is a second projection range with the largest overlapping area, the target pitched roof structural panel to which the second projection range with the largest overlapping area belongs is determined as the target pitched roof structural panel supported by the structural beam in the structure. When there are multiple second projection ranges with the largest overlapping area, calculate the vertical distance between the top section of the structural beam and the top section of the target pitched roof structural panel to which each second projection range with the largest overlapping area belongs, and determine the target pitched roof structural panel corresponding to the smallest vertical distance. When there exists a target pitched roof structure panel corresponding to a minimum vertical distance, the target pitched roof structure panel corresponding to the minimum vertical distance is determined as the target pitched roof structure panel supported by the structural beam in the structure. When there are multiple target pitched roof structural panels corresponding to the minimum vertical distance, a target pitched roof structural panel is selected from these multiple target pitched roof structural panels based on the identifier of the target pitched roof structural panel, and is used as the target pitched roof structural panel supported by the structural beam in the structure.

7. The method for updating the three-dimensional model of a pitched roof structure according to claim 2, characterized in that, The process of cutting off the portions of each structural beam that protrude beyond the intersecting target pitched roof structural slab includes: A two-dimensional coordinate system is constructed by taking the baseline of the beam to be cut as the X-axis and rotating the X-axis counterclockwise by 90 degrees as the Y-axis. The fourth coverage area of ​​the beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed coverage area; The second projection range of the target pitched roof structural panel intersecting with the structural beam to be cut on the horizontal plane is transformed to the two-dimensional coordinate system to obtain the transformed projection range; Determine the overlapping area between the transformed coverage area and the transformed projection area; Obtain the minimum X value, maximum X value, minimum Y value, and maximum Y value of the overlapping region; The minimum X value, the maximum X value, the minimum Y value, and the maximum Y value are respectively used as the minimum X value, maximum X value, minimum Y value, and maximum Y value to determine the rectangle. The rectangular frame is back-projected onto the top section of the target pitched roof structural panel that intersects with the structural beam to be cut, after coordinate transformation. The back-projected rectangular frame is then stretched upward along a direction perpendicular to the top section of the target pitched roof structural panel until it overlaps with the top section of the structural beam to be cut. The three-dimensional shell obtained by stretching is used as the part of the structural beam to be cut that protrudes from the target pitched roof structural plate, and this part is cut off from the structural beam to be cut.

8. A device for updating a three-dimensional model of a pitched roof structure, characterized in that, include: The loading module is used to load the architectural and structural 3D models of pitched roof buildings. The first adjustment module is used to adjust the elevation and slope of multiple pitched roof structural panels to be adjusted in the three-dimensional structural model to the elevation and slope of the corresponding slope in the three-dimensional building model, so as to obtain multiple target pitched roof structural panels; wherein, the three-dimensional building model includes multiple pitched roofs, the pitched roofs include multiple slopes, and the target pitched roof structural panels are structurally used to support the corresponding slopes. The second adjustment module is used to adjust each secondary structural component in the three-dimensional model of the structure based on the target pitched roof structural panel; wherein, the secondary structural components are structurally used to support one or more of the target pitched roof structural panels; The first adjustment module is specifically used for: Calculate the first projection range of the sloping roof structure panel to be adjusted on the horizontal plane; Obtain the first coverage area of ​​each pitched roof in the three-dimensional building model on the horizontal plane; Determine the target pitched roof to which the first coverage area with the largest overlap with the first projection range belongs; Obtain the second coverage area of ​​each slope in the target pitched roof on the horizontal plane; Determine the target slope to which the second coverage area with the largest overlap with the first projection range belongs; The elevation and slope of the sloping roof structure panel to be adjusted are adjusted to the elevation and slope of the target slope to obtain the target sloping roof structure panel.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it is used to implement the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Building model normalization method based on Revit platform

    CN108920769A

  • Two-dimensional drawing three-dimensional reconstruction method and system for pitched roof and medium

    CN110837666A