Two-dimensional mask display method and device based on BIM model and medium

By identifying and sorting target elements in the BIM model and generating mask areas, the problem that traditional BIM software cannot automatically mask is solved, and efficient two-dimensional mask display is realized, which improves the practicality of BIM software.

CN120431202APending Publication Date: 2025-08-05深圳市斯维尔科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510490125.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-18
Publication Date
2025-08-05

AI Technical Summary

Technical Problem

Traditional BIM software cannot automatically solve the problem of object occlusion in the BIM model, resulting in the two-dimensional model not complying with the graph production specification.

Method used

By identifying the target elements in the BIM model, setting mask priority, generating mask areas using calculation logic, and drawing mask areas in priority order, automatic two-dimensional mask display is achieved.

Benefits of technology

It improves the practicality of BIM software, generates two-dimensional displays that meet the graph production specifications, and improves efficiency and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120431202A_ABST
    Figure CN120431202A_ABST
Patent Text Reader

Abstract

The invention relates to a BIM (Building Information Modeling)-based two-dimensional mask display method, equipment and medium, and the method comprises the steps: generating a BIM two-dimensional model based on BIM three-dimensional model conversion, and identifying all target elements in the model at the same time, the target elements satisfying that the BIM type belongs to any one of a line pipe, a bridge, an air duct and a regional component; recording the BIM type of each target element, and extracting a corresponding geometric attribute; calculating a corresponding mask area according to the geometric attribute of each target element; all the target elements are sorted according to a predefined mask priority, and the defined mask priority meets the following conditions: a region component gt; an air pipe gt; a bridge frame gt; a line pipe; and sequentially drawing mask areas on the BIM two-dimensional model according to a sequence from low priority to high priority, and then processing mask overlapping areas based on a principle that high priority covers low priority to obtain two-dimensional display with a mask effect. According to the invention, automatic two-dimensional mask display of the BIM model can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image display and recognition based on BIM models, and in particular to a two-dimensional mask display method, device and medium based on BIM models. Background Art

[0002] The drawing of 3D BIM models (i.e., Building Information Models) is a crucial step in BIM forward design. Most traditional BIM software (i.e., software systems that use Building Information Models as their data core and support 3D display) currently implements the conversion process of 3D models to 2D models by projection or cutting. However, the 2D models converted by these software fail to solve the problem of mutual occlusion of objects, such as the intersection of wire pipes, the intersection of bridges, and the overlap of cables and electrical equipment. These mutual occlusions are standard drawing specifications in the industry. For details, please refer to Figures 1 to 3 As shown, Figure 1 A comparison diagram shows the display state of the intersection of the first conduit 11 and the second conduit 12 in a two-dimensional model converted using traditional BIM software (i.e., the left figure) and the target display state that meets industry standards (i.e., the right figure). Figure 2 A comparison diagram shows the display state of the intersection of the first bridge 21 and the second bridge 22 in a two-dimensional model converted using traditional BIM software (i.e., the left figure) and the target state that meets industry standards (i.e., the right figure). Figure 3 A comparison chart shows the display state of the overlap between a cable conduit 32 and an electrical device 31 in a 2D model converted using traditional BIM software (left image) and the target display state that meets industry standards (right image). The chart shows that the intersection / overlap (i.e., the area circled by dashed circles) in the left image is not masked, while the corresponding area in the right image is masked, showing the occlusion effect between the two objects (this occlusion does not constitute a break), thereby expressing the upper and lower relationship between the two objects. Therefore, the 2D model converted using traditional BIM software does not meet the drawing standards.

[0003] Although the drawing software AutoCAD provides a mask command (wipeOut), which can be used to manually draw an area to form a mask, AutoCAD is a vector drawing software and cannot automatically form a mask based on the type and data of the BIM model itself. Summary of the Invention

[0004] In order to solve the above problems, the present invention provides a two-dimensional mask display method, device and medium based on the BIM model, which can realize automatic two-dimensional mask display of the BIM model, is efficient and more convenient, and improves the practicality of BIM software.

[0005] The present invention is implemented through the following scheme: a two-dimensional mask display method based on a BIM model, comprising the steps of:

[0006] S1. Generate a BIM two-dimensional model based on the BIM three-dimensional model conversion, and simultaneously identify all target elements in the BIM two-dimensional model, wherein the target elements satisfy their BIM type and belong to any one of wire pipe, bridge, air duct, and regional component;

[0007] S2. Setting a first mask area calculation logic based on the geometric characteristics of the wire duct, bridge, and air duct, setting a second mask area calculation logic based on the geometric characteristics of the area component, extracting a first geometric attribute from the data of the BIM three-dimensional model for a target element whose BIM type is any one of the wire duct, bridge, and air duct, and extracting a second geometric attribute for a target element whose BIM type is an area component;

[0008] S3. Predefine a mask priority, and sort all the target elements based on the mask priority, wherein the mask priority satisfies: area component > air duct > bridge > wire duct;

[0009] S4. Drawing mask areas on the BIM two-dimensional model in order from low priority to high priority, and when drawing the mask areas, calculating and generating corresponding mask areas based on the first geometric attribute and the first mask area calculation logic corresponding to the target element, or the second geometric attribute and the second mask area calculation logic;

[0010] S5. Processing the mask overlapping area based on the principle that high priority covers low priority to obtain a two-dimensional display with a mask effect.

[0011] A further improvement of the present invention is:

[0012] The first geometric attributes include the width, height, and start and end points of the center line of the corresponding target element;

[0013] The second geometric attribute includes a set of points that can be connected to form a boundary line of a corresponding target element or a contour line of a key area;

[0014] The first mask area calculation logic is: based on the line connecting the starting point and the end point of the center line, symmetrically expand outward by 1 / 2 of the width or 1 / 2 of the height in the width direction or the height direction to obtain a rectangular mask area;

[0015] The second mask area calculation logic is: connecting all points in the point set to obtain a polygonal mask area.

[0016] A further improvement of the present invention is:

[0017] Before executing step S4, the mask display properties are set based on the BIM type of the target element;

[0018] When executing step S4, the generated mask area is made to present corresponding mask display attributes.

[0019] A further improvement of the present invention is that the method for generating a BIM two-dimensional model based on the conversion of a BIM three-dimensional model is: using BIM software based on the data of the BIM three-dimensional model, obtaining the data of the BIM two-dimensional model by projection and cutting.

[0020] The present invention further provides an electronic device, comprising:

[0021] at least one processor; and

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the two-dimensional mask display method as described above.

[0024] The present invention further provides a computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a processor to implement the two-dimensional mask display method described above when executed.

[0025] The present invention can automatically generate mask areas and automatically adjust the mask order between related objects according to the type of objects in the BIM model, ultimately generating a two-dimensional display that meets the drawing specifications without the need for manual drawing, thereby improving efficiency and convenience. The present invention improves the display effect by distinguishing the color of the mask area according to the type of target element, and can further set color combinations based on the mask order to better present the hierarchical relationship. The present invention is of great significance to improving the practicality of BIM software forward design and promoting the use of BIM software. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A comparison chart shows the display status of the intersection of wire tubes and wire tubes in a 2D model converted using traditional BIM software and the target display status that meets industry standards.

[0027] Figure 2 A comparison chart shows the display status of the bridge and the intersection of the bridge in the two-dimensional model converted by traditional BIM software and the target display status that meets industry standards.

[0028] Figure 3A comparison chart shows the display status of the overlapping areas of cable conduits and electrical equipment in a two-dimensional model converted using traditional BIM software and the target display status that meets industry standards.

[0029] Figure 4 A flow chart of the two-dimensional mask display method of the present invention is shown. DETAILED DESCRIPTION

[0030] In order to solve the problem that traditional BIM software cannot realize two-dimensional mask display, the present invention provides a two-dimensional mask display method, device and medium based on the BIM model, which can realize automatic two-dimensional mask display of the BIM model, is efficient and more convenient, and improves the practicality of the BIM software.

[0031] The following further describes the BIM model-based two-dimensional mask display method, device, and medium with specific embodiments and accompanying drawings.

[0032] See Figure 4 As shown, a two-dimensional mask display method based on a BIM model includes the following steps:

[0033] Step S1: Generate a BIM two-dimensional model based on the BIM three-dimensional model conversion. Specifically, BIM software can be used to obtain the data of the BIM two-dimensional model through projection and cutting based on the data of the BIM three-dimensional model, and then generate a BIM two-dimensional model without a mask effect. While performing the model conversion, all elements in the BIM two-dimensional model are traversed to identify and record all target elements in the BIM two-dimensional model that need to generate a mask area. For BIM building models, components that need to be masked usually involve area components such as wire pipes, bridges, air ducts, and electrical equipment connected to cable pipes. Therefore, when identifying the target element, determine whether its BIM type belongs to any of wire pipes, bridges, air ducts, and area components. If so, it is determined to be the target element.

[0034] Step S2: Since wire pipes, bridges, and air ducts all belong to the pipeline category, they have the same geometric characteristics, that is, long components with the center line as the axis, while area components belong to the equipment category, which often have irregular shapes. Therefore, two different calculation logics can be used to calculate the mask area. Specifically, the first mask area calculation logic is set based on the geometric characteristics of the pipeline category, and the second mask area calculation logic is set based on the geometric characteristics of the equipment category. Accordingly, the first geometric attribute for calculation by the first mask area calculation logic is extracted from the data of the BIM three-dimensional model for the target element with the BIM type of any one of wire pipes, bridges, and air ducts, and the second geometric attribute for calculation by the second mask area calculation logic is extracted from the data of the BIM three-dimensional model for the target element with the BIM type of area components. Among them: the first geometric attribute includes the width, height and starting point and end point of the center line of the corresponding target element; the second geometric attribute includes a set of points that can be connected to form the boundary line of the corresponding target element or the contour line of the key area; the first mask area calculation logic is to symmetrically expand 1 / 2 width or 1 / 2 height outward along the width direction or height direction based on the connection line of the starting point and end point of the center line to obtain a rectangular mask area; the second mask area calculation logic is to connect all points in the point set to obtain a polygonal mask area.

[0035] Step S3: To display the occlusion relationships between intersecting or partially overlapping target elements, a masking priority is predefined based on the occlusion patterns between different BIM component types. Specifically, the masking priority is defined to satisfy the following order: area component > air duct > cable tray > wire conduit. Based on this masking priority, all target elements are sorted in order of priority, either high to low or low to high, and a masking order list is generated.

[0036] Step S4: Mask regions are drawn sequentially on the BIM 2D model in ascending order of priority. When drawing the mask regions, the mask regions are calculated based on the first geometric attributes and first mask region calculation logic, or the second geometric attributes and second mask region calculation logic, corresponding to each target element, and corresponding mask surface objects are generated. The generated mask surface objects are then superimposed on other parts of the BIM 2D model to create a masking effect.

[0037] The following is a specific calculation example to illustrate the calculation of two types of mask areas:

[0038] (1) For any target element of BIM type, such as wire duct, cable tray, or air duct, the first mask area calculation logic is adopted. For example, width expansion is used as an example: the width of the target element in the corresponding geometric attribute is w, the starting point of the center line is P1 (x1, y1, z1), and the end point is P2 (x2, y2, z2). The center line is the straight line connecting P1 and P2. When calculating the mask area, the center line is used as the reference and expanded to both sides along the width direction by w / 2 to form a rectangular area.

[0039] The calculation method of the coordinates of the four vertices of the rectangular area is: Based on P1 and P2, the direction vector of the center line can be obtained By dividing the direction vector of the center line Rotate 90 degrees and calculate the direction vector perpendicular to the center line Normalize the vertical direction vector and multiply it by w / 2 to calculate the extended vector Based on P1, P2 and The coordinates of the four vertices P3, P4, P5, and P6 of the rectangular area can be calculated:

[0040]

[0041] Generates a rectangular mask surface object based on four vertex coordinates.

[0042] (2) For the target element whose BIM type is an area component: the second mask area calculation logic is used to directly use the coordinates of all points in the point set {Pi(xi,yi,zi)} (where i = 1, 2, ..., n) as the vertex coordinates to generate a polygonal mask surface object.

[0043] Step S5, based on the principle of high priority covering low priority, the overlapping areas of each mask surface object are processed to obtain a two-dimensional display with a mask effect. Specifically, the mask sequence list is traversed to check the overlapping relationship between the mask areas, and for each mask area, its geometric intersection with the subsequent mask area is checked. The overlapping areas are processed according to the above-mentioned priority covering rules. For example: if the mask area of the air duct overlaps with the mask area of the bridge, the mask area of the air duct should cover the overlapping part of the mask area of the bridge, and the final display area of each mask area is recorded, and finally the final drawing effect is generated. The masks can also be drawn in sequence from low priority to high priority according to the mask sequence list: low priority masks (such as wire pipes and bridges) are drawn first, and then high priority masks (such as air ducts and area components) are drawn.

[0044] The present invention obtains the two-dimensional form of the model through step S1, and masks the two-dimensional form through steps S2 to S5, ultimately generating a two-dimensional drawing that meets industry standards. The present invention can automatically generate mask areas based on the types of objects in the BIM model and automatically adjust the masking order between related objects, ultimately generating a two-dimensional display that meets drawing specifications without the need for manual drawing, thereby improving efficiency and convenience.

[0045] Preferably, before executing step S4, the mask display properties can be set based on the BIM type of the target element, including the color or style of the mask area. For example, regional components use translucent red, air ducts use translucent blue, cable trays use translucent green, and wire conduits use translucent gray. When executing step S4, the generated mask area is made to present the corresponding mask display properties. By differentiating the color of the mask area according to the type of the target element, the display effect is improved. The color matching can also be further set in combination with the mask order to better present the hierarchical relationship.

[0046] Based on the above-mentioned two-dimensional mask display method, an electronic device can be provided, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned two-dimensional mask display method.

[0047] Based on the above two-dimensional mask display method, a computer-readable storage medium may be provided. The computer-readable storage medium stores computer instructions. The computer instructions are used to enable a processor to implement the above two-dimensional mask display method when executed.

[0048] The present invention is of great significance for improving the practicability of BIM software forward design and promoting the use of BIM software.

[0049] The present invention has been described in detail above with reference to the embodiments of the accompanying drawings. A person skilled in the art can make various modifications to the present invention based on the above description. Therefore, certain details in the embodiments should not be construed as limiting the present invention. The scope of protection of the present invention shall be determined by the scope defined in the appended claims.

Claims

1. A two-dimensional mask display method based on a BIM model, characterized in that: Including steps: S1. Generate a BIM two-dimensional model based on the BIM three-dimensional model conversion, and simultaneously identify all target elements in the BIM two-dimensional model, wherein the target elements satisfy their BIM type and belong to any one of wire pipe, bridge, air duct, and regional component; S2. Setting a first mask area calculation logic based on the geometric characteristics of the wire duct, bridge, and air duct, setting a second mask area calculation logic based on the geometric characteristics of the area component, extracting a first geometric attribute from the data of the BIM three-dimensional model for a target element whose BIM type is any one of the wire duct, bridge, and air duct, and extracting a second geometric attribute for a target element whose BIM type is an area component; S3. Predefine a mask priority, and sort all the target elements based on the mask priority, wherein the mask priority satisfies: area component > air duct > bridge > wire duct; S4. Drawing mask areas on the BIM two-dimensional model in order from low priority to high priority, and when drawing the mask areas, calculating and generating corresponding mask areas based on the first geometric attribute and the first mask area calculation logic corresponding to the target element, or the second geometric attribute and the second mask area calculation logic; S5. Processing the mask overlapping area based on the principle that high priority covers low priority to obtain a two-dimensional display with a mask effect.

2. The two-dimensional mask display method based on the BIM model according to claim 1, characterized in that: The first geometric attributes include the width, height, and start and end points of the center line of the corresponding target element; The second geometric attribute includes a set of points that can be connected to form a boundary line of a corresponding target element or a contour line of a key area; The first mask area calculation logic is: based on the line connecting the starting point and the end point of the center line, symmetrically expand outward by 1 / 2 of the width or 1 / 2 of the height in the width direction or the height direction to obtain a rectangular mask area; The second mask area calculation logic is: connecting all points in the point set to obtain a polygonal mask area.

3. The two-dimensional mask display method based on the BIM model according to claim 1, characterized in that: Before executing step S4, the mask display properties are set based on the BIM type of the target element; When executing step S4, the generated mask area is made to present corresponding mask display attributes.

4. The two-dimensional mask display method based on the BIM model according to claim 1, characterized in that: The method for generating a BIM two-dimensional model based on BIM three-dimensional model conversion is: using BIM software based on the data of the BIM three-dimensional model, and obtaining the data of the BIM two-dimensional model through projection and cutting.

5. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the two-dimensional mask display method according to any one of claims 1 to 4.

6. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the two-dimensional mask display method according to any one of claims 1 to 4 when executed.