BIM model rendering method and device, medium and equipment
By calculating the degree of matching between building components and grid levels in the BIM model, filtering and building appropriate grid levels and tile collections, filtering target grid codes and generating rendering data, the problem of low efficiency of existing BIM model rendering methods is solved, and efficient and multi-level rendering effects are achieved.
Patent Information
- Application Number
- CN202510202400.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2045-02-24
AI Technical Summary
The existing BIM model rendering methods are inefficient when dealing with large-scale scenarios and complex models, resulting in obvious lags and delays when loading models, which cannot meet the construction industry's efficient rendering needs for BIM models.
By obtaining the vertex coordinates and preset grid data of the building components in the BIM model, the degree of matching between the building components and each initial grid level is calculated, the reference grid level set and the intermediate grid level set are filtered out, the first tile set and the second tile set are constructed, the target grid code is filtered, the grid triangle set is generated, and the target rendering data is finally obtained for rendering.
It improves the rendering efficiency of the BIM model, reduces data processing, avoids rendering lags and delays, meets the rendering needs of different levels, and realizes efficient and multi-level BIM model rendering.
Smart Images

Figure CN119693521A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building information modeling, and in particular to a BIM model rendering method, device, medium and equipment. Background Art
[0002] With the widespread application of Building Information Modeling (BIM) technology in the construction industry, efficient rendering of BIM models has become a key requirement of the construction industry. Existing rendering methods are usually based on tile pyramid technology, which divides spatial data into multiple resolution levels. The spatial data of each resolution level is divided into regular grid units, namely tiles. Each tile contains spatial data within a certain range, corresponding to different levels of detail. When dealing with large-scale scenes and complex BIM models, existing rendering methods need to pay attention to more details and a large amount of data, resulting in low rendering efficiency, and there are obvious freezes and delays when loading models, which cannot meet the construction industry's demand for efficient rendering of BIM models.
[0003] Therefore, how to improve the rendering efficiency of BIM models has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is a BIM model rendering method, which includes the following steps: S1, obtaining a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid.
[0005] S2, for any building component, according to the first vertex coordinate set corresponding to the current building component and the preset grid data, obtain the matching degree between the current building component and each initial grid level.
[0006] S3, according to the matching degree between the current building component and each initial grid level and the preset grid data, obtain a reference grid level set and an intermediate grid level set corresponding to the current building component, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0.
[0007] S4, according to the reference grid level set, the intermediate grid level set and the preset grid data, obtain a first tile set and a second tile set corresponding to the current building component, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes.
[0008] S5, according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data and a plurality of reference grid levels corresponding to each first tile, obtaining a target grid code set corresponding to the current building component under each first tile, wherein the target grid code set includes a plurality of target grid codes.
[0009] S6, according to the target grid code set and the grid range corresponding to each grid code, obtaining a grid triangle face set corresponding to the current building component under each first tile.
[0010] S7, acquiring target rendering data corresponding to the current building component according to the first tile set, the second tile set, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
[0011] The present invention also provides a BIM model rendering device, which includes: The data acquisition module is used to acquire a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid.
[0012] The matching degree acquisition module is used to acquire the matching degree between the current building component and each initial grid level according to the first vertex coordinate set corresponding to the current building component and the preset grid data for any building component.
[0013] The grid level screening module is used to obtain a reference grid level set and an intermediate grid level set corresponding to the current building component according to the matching degree between the current building component and each initial grid level and the preset grid data, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0.
[0014] The tile set acquisition module is used to acquire the first tile set and the second tile set corresponding to the current building component according to the reference grid level set, the intermediate grid level set and the preset grid data, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes.
[0015] The target grid code screening module is used to obtain the target grid code set corresponding to the current building component under each first tile according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data and several reference grid levels corresponding to each first tile, wherein the target grid code set includes several target grid codes.
[0016] The triangle surface acquisition module is used to acquire the grid triangle surface set corresponding to the current building component under each first tile according to the target grid code set and the grid range corresponding to each grid code.
[0017] The target rendering data acquisition module is used to acquire the target rendering data corresponding to the current building component according to the first tile set and the second tile set corresponding to the current building component, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
[0018] The present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or at least one program is loaded and executed by a processor to implement the above-mentioned BIM model rendering method.
[0019] The present invention also provides an electronic device, comprising a processor and the above-mentioned non-transitory computer-readable storage medium.
[0020] The present invention has at least the following beneficial effects: starting from the vertex coordinates of the building component, a bounding box is gradually constructed, the size of the bounding box is obtained, and the degree of matching with each initial grid level is finally determined; according to the degree of matching between the building component and each initial grid level and the preset grid data, two groups of key grid level sets are screened and determined, namely, a reference grid level set and an intermediate grid level set; the building component is divided and rendered from a relatively macroscopic perspective through the reference grid level set to show the overall outline, while avoiding excessive data processing and improving rendering efficiency; and finer details of the building component are presented through the intermediate grid level set to meet the rendering requirements in scenes where in-depth viewing of local details is required, and further based on the reference grid level set and the intermediate grid level set, the rendering of the building component is performed. The hierarchical set constructs the first tile set and the second tile set, which helps to realize the reasonable division and rendering of building components from different levels to meet diverse display needs, and selects the target grid code related to the building components in each first tile and the corresponding reference grid level from multiple grid codes, which is an important link in further refining data association and accurately locating the grid data related to the building components in the entire BIM model rendering process. Then, based on the target grid code set and grid range information, the grid triangle face set corresponding to the building components under each first tile is gradually constructed and integrated. While optimizing the amount of rendering data, the triangle face data used to render the outer surface of the building components is accurately determined, greatly improving the rendering efficiency while ensuring the rendering effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 A flowchart of a BIM model rendering method provided in Embodiment 1 of the present invention; Figure 2 A structural schematic diagram of a BIM model rendering device provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It is understood that, where appropriate, the above-mentioned terms used to distinguish similar objects can be interchanged so that the present invention can also implement other embodiments other than the above-mentioned illustrated embodiments or described embodiments. In addition, the terms "including" and "having" and any variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Embodiment 1, This embodiment provides a BIM model rendering method, which includes the following steps: Figure 1 As shown: S1, obtaining a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid.
[0026] Among them, in the BIM model, building components are the basic units that constitute the entire building model, such as walls, columns, beams, floor slabs and other physical elements. Through the corresponding model analysis technology or software interface, different types of building components can be identified and extracted. Because different building components have their own unique geometric shapes, spatial positions and other characteristics, they need to be considered separately to achieve high-quality rendering effects, laying a data foundation for the subsequent refined rendering-related processing for each specific component.
[0027] Each building component is represented by a geometric shape determined by multiple vertices in three-dimensional space. The first vertex coordinate set records the coordinate information of each vertex of the corresponding building component in three-dimensional space, which is used to accurately describe the position, shape and size of the corresponding building component in the three-dimensional space coordinate system of the entire BIM model. This facilitates the subsequent judgment of the degree of match between the building component and the preset grid, mesh division and other operations, and reasonably adapts it to the corresponding grid system based on the actual space occupied by the building component, thereby improving the accuracy of rendering. For example, the first vertex coordinate set corresponding to a rectangular column component contains the (x, y, z) coordinate values of each of the 8 vertices.
[0028] The preset grid system can be used to divide the three-dimensional space into layers, corresponding to multiple different initial grid levels. Among them, the high-level initial grid level corresponds to a smaller-scale spatial division, which is suitable for presenting the details of building components. The low-level initial grid level corresponds to a more detailed spatial division, which is suitable for presenting the overall outline of building components. There is a certain scale ratio between different levels, and all grids corresponding to each initial grid level, the grid code and grid range corresponding to each grid are clearly defined. For example, the preset grid system can be a grid system based on 3Dtiles settings.
[0029] The grid size corresponding to each initial grid level specifies the size of the space occupied by each grid at the initial grid level. The unique grid code corresponding to each grid is used to identify and distinguish different grids, and the grid range corresponding to each grid specifies the specific spatial area occupied by the grid in three-dimensional space.
[0030] As mentioned above, by collecting the basic data necessary for the subsequent BIM model rendering processing, including the geometric vertex information of the building components themselves and the preset grid system related data, data support is provided for the subsequent steps to achieve the reasonable matching of building components and grids and the final target rendering data generation.
[0031] S2, for any building component, according to the first vertex coordinate set corresponding to the current building component and the preset grid data, obtain the matching degree between the current building component and each initial grid level.
[0032] In a specific implementation, S2 includes the following steps: S21, for any building component, according to the first vertex coordinate set corresponding to the current building component, obtain a second vertex coordinate set of a bounding box corresponding to the current building component, wherein the second vertex coordinate set includes the coordinates of each vertex of the bounding box corresponding to the current building component.
[0033] S22, acquiring a bounding box size corresponding to the bounding box corresponding to the current building structure according to a second vertex coordinate set corresponding to the bounding box corresponding to the current building structure.
[0034] S23, obtaining a matching degree between the current building component and each initial grid level according to the grid size and bounding box size corresponding to each initial grid level.
[0035] Among them, the first vertex coordinate set includes the coordinate values of all vertices of the current building component in the three-dimensional space. The new second vertex coordinates are obtained according to the first vertex coordinate set to represent the minimum bounding box that can contain all vertices of the current building component, thereby intuitively reflecting the approximate occupation range of the current building component in the three-dimensional space.
[0036] According to the second vertex coordinate set of the bounding box, the size of the bounding box is obtained by calculating the difference in each dimension, which is used to measure the matching degree between the building component and the initial grid level. For example, in the x direction, the difference obtained by subtracting the minimum coordinate value from the maximum coordinate value in the x direction is the length size of the bounding box in the x direction.
[0037] By calculating the proportional relationship between the bounding box size and the grid size, or comparing the size proximity of the bounding box size and the grid size in each dimension, the matching degree between the current building component and each initial grid level is determined, and a quantitative evaluation of the matching degree between the building component and all initial grid levels is performed, providing a basis for subsequent operations such as selecting a suitable initial grid level.
[0038] In a specific implementation, S21 includes the following steps: S211, acquiring the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction according to the first vertex coordinate set.
[0039] S212: Acquire all second vertex coordinates corresponding to the current building component according to the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction.
[0040] S213: construct a bounding box corresponding to the current building component according to all second vertex coordinates corresponding to the current building component, and form a second vertex coordinate set of the bounding box corresponding to the current building component.
[0041] Among them, the maximum value information in each coordinate direction reflects the boundary conditions of the space range occupied by the current building component in each dimension. By combining the maximum value information in each coordinate direction, the new second vertex coordinates can be obtained, and then the minimum bounding box that can contain all the vertices of the current building component can be obtained.
[0042] For example, in three-dimensional space, a rectangular bounding box is composed of 8 vertices. Taking the x, y, and z directions as examples, the 8 second vertex coordinates can be determined by a combination of the minimum and maximum values, namely (minimum x value, minimum y value, minimum z value), (minimum x value, minimum y value, maximum z value), (minimum x value, maximum y value, minimum z value), (minimum x value, maximum y value, maximum z value), (maximum x value, minimum y value, minimum z value), (maximum x value, minimum y value, minimum z value), (maximum x value, minimum y value, maximum z value), (maximum x value, minimum y value, maximum z value), (maximum x value, maximum y value, minimum z value), (maximum x value, maximum y value, minimum z value), (maximum x value, maximum y value, minimum z value), (maximum x value, maximum y value, minimum
[0043] In a specific implementation, S23 includes the following steps: S231, for a grid size corresponding to any initial grid level, calculate a size ratio of a bounding box size to a current grid size in each direction.
[0044] S232, determining the absolute value of the difference between the size ratio in each direction and the preset value as the degree of difference between the bounding box size and the current grid size in each direction.
[0045] S233: Determine the reciprocal of the average value of the differences between the bounding box size and the current grid size in all directions as the matching degree between the bounding box size and the current grid size.
[0046] As mentioned above, starting from the vertex coordinates of the building components, gradually constructing the bounding box, obtaining the bounding box size, and finally determining the degree of matching with each initial grid level is an effective process for adapting and analyzing the actual space occupation of the building components and the preset grid system, which provides a basis for the rational advancement of the entire BIM model rendering process.
[0047] S3, according to the matching degree between the current building component and each initial grid level and the preset grid data, obtain a reference grid level set and an intermediate grid level set corresponding to the current building component, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0.
[0048] In a specific implementation, S3 includes the following steps: S31, comparing the matching degree between each initial grid level and the current building component with a preset matching degree threshold, and obtaining all network levels with the maximum matching degree and a degree greater than the preset matching degree threshold.
[0049] S32, determining the initial grid level corresponding to the maximum matching degree as the first reference grid level, and determining the initial grid level greater than a preset matching degree threshold as a candidate grid level.
[0050] S33 , among all candidate grid levels, the number of candidate grid levels corresponding to initial grid levels smaller than the initial grid level corresponding to the first reference grid level is determined as the number N of reference grid levels.
[0051] S34, for any candidate grid level, if the difference between the initial grid level corresponding to the 1st reference grid level and the initial grid level corresponding to the current candidate grid level is i-1, the current candidate grid level is determined as the i-th reference grid level, where i=2, 3, ..., N.
[0052] S35, for any initial grid level, if the difference between the current initial grid level and the initial grid level corresponding to the first reference level grid is j, the current initial grid level is determined as the jth intermediate grid level, where j=1, 2, ..., M, and M can be obtained by subtracting the difference between the initial grid level corresponding to the first reference level grid from the maximum value of the initial grid level.
[0053] The specific value of the preset matching degree threshold can be set by the implementer according to the actual situation.
[0054] The initial grid level corresponding to the maximum matching degree is the initial grid level that is closest to the size of the current building component, representing a key division scale that best fits the building component. The initial grid level corresponding to the maximum matching degree is determined as the first reference grid level, which serves as a reference point for subsequently determining other reference grid levels and the entire reference grid level set.
[0055] An initial grid level that is lower than the initial network level corresponding to the first reference grid level and whose corresponding matching degree is greater than a preset matching degree threshold is used as a reference grid level. Specifically, firstly, a batch of candidate grid levels with relatively high adaptability are screened out based on a preset matching degree threshold, and then an initial grid level lower than the network level corresponding to the first reference grid level is screened out from the candidate grid levels. This can further present the overall outline of the building components while retaining certain detail information, and will not completely lose the key features of the building components due to the large grid. It can reasonably characterize the main shape, general structure and other details of the building components from a macro perspective. Moreover, because the large grid covers a wide spatial range, the building components can be included with fewer grids. Compared with using a higher-level, smaller-grid, and finer initial grid level, selecting a relatively large grid level will greatly reduce the number of grids. In the subsequent links involving grid-based operations such as constructing tiles and generating rendering data, the amount of data to be processed will be significantly reduced, which greatly simplifies the model structure, reduces the computational complexity, and makes the rendering process more efficient. It is especially suitable for processing BIM models of large-scale and complex building components, avoiding rendering freezes and excessive resource usage due to too much data.
[0056] An initial grid level higher than the network level corresponding to the first reference grid level is used as an intermediate grid level. Specifically, the grid size of the intermediate grid level is smaller, and the grid division is finer, so that more and more subtle detail features of building components can be captured.
[0057] The combination of the intermediate grid level and the reference grid level can construct a set of tiles of different levels and degrees of refinement. For example, the high-level intermediate grid level tiles can be used in scenarios where users need to view the details of building components at close range or conduct detailed design reviews. The tiles corresponding to the reference grid level can be used to quickly browse the overall layout of the building and show the general effect.
[0058] As described above, based on the matching degree between the building components and each initial grid level and the preset grid data, two key grid level sets are screened and determined, namely the reference grid level set and the intermediate grid level set. The reference grid level set can divide and render the building components from a relatively macroscopic perspective, showing the overall outline, while avoiding excessive data processing and improving rendering efficiency. The intermediate grid level set can be used to present finer details of the building components, meeting the rendering requirements in scenarios where in-depth viewing of local details is required, and helping to achieve reasonable division and rendering of building components from different levels, meeting diverse display requirements, while taking into account rendering efficiency and data volume control.
[0059] S4, according to the reference grid level set, the intermediate grid level set and the preset grid data, obtain a first tile set and a second tile set corresponding to the current building component, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes.
[0060] In a specific implementation, S4 includes the following steps: S41, set the (k-1)×T+1th reference grid level to the k×Tth reference grid level as the kth first tile, where T refers to the preset number of initial grid levels included in each first tile and each second tile, T>1, k=1, 2,..., P, P refers to the number of first tiles, and NT<P×T≤N.
[0061] S42: Acquire a first tile set according to the P first tiles, the T reference grid levels corresponding to each first tile, and all grid codes included in each reference grid level.
[0062] S43, setting the (u-1)×T+1th intermediate grid level to the u×Tth intermediate grid level as the uth second tile, where u=1, 2, ..., Q, Q refers to the number of second tiles, and MT<Q×T≤M.
[0063] S44 , acquiring a second tile set according to the Q second tiles, the T intermediate grid levels corresponding to each second tile, and all grid codes included in each intermediate grid level.
[0064] The specific value of the preset number T of initial grid levels included in each first tile and each second tile can be set by the implementer according to actual conditions. For example, T=5.
[0065] By setting a preset number T, multiple reference grid levels and intermediate grid levels are regularly grouped, so that each first tile contains an appropriate number of reference grid levels, and each second tile contains an appropriate number of intermediate grid levels, which is convenient for subsequent data organization and management, and is also consistent with the overall rendering strategy, helping to achieve rendering effects at different levels.
[0066] Correspondingly, the first tile set is mainly used to display the overall outline of the building components from a macro perspective. When rendering, it can quickly present the shape and position relationship of the building components at a larger spatial scale, while the second tile set is based on a finer intermediate grid level and can be used to present the details of the building components. In the rendering process, by combining the two tile sets, an organic combination of macro and micro rendering is achieved to meet rendering requirements at different levels.
[0067] As described above, the first tile set and the second tile set are constructed based on the reference grid level set and the intermediate grid level set, which provides a solid data foundation for further generating target rendering data corresponding to building components and realizing efficient and multi-level BIM model rendering.
[0068] S5, according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data and a plurality of reference grid levels corresponding to each first tile, obtaining a target grid code set corresponding to the current building component under each first tile, wherein the target grid code set includes a plurality of target grid codes.
[0069] In a specific implementation, S5 includes the following steps: S51, for any grid code in any reference grid level corresponding to any first tile, compare the grid range corresponding to the current grid code and each first vertex coordinate in the first vertex coordinate set; if any first vertex coordinate is within the grid range corresponding to the current grid code, determine the current grid code as the target grid code.
[0070] S52, traversing all grid codes in the current reference grid level corresponding to the current first tile, and acquiring all target grid codes corresponding to the current building component in the current reference grid level corresponding to the current first tile.
[0071] S53, traversing all reference grid levels corresponding to the current first tile, and acquiring all target grid codes corresponding to the current building component at each reference grid level corresponding to the current first tile.
[0072] S54: Combine all target grid codes corresponding to the current building component at all reference grid levels corresponding to the current first tile to obtain a target grid code set corresponding to the current building component at the current first tile.
[0073] Among them, if the coordinates of any first vertex are within the grid range corresponding to the current grid code, it means that a part of the building component is located inside the current grid, that is, the grid range covers some vertices of the building component and some geometric shapes formed by connecting these vertices. Then, the current grid code is determined as the target grid code as the grid basis for rendering the building component, avoiding the processing of irrelevant grids in the entire three-dimensional space, effectively narrowing the rendering range, and thus reducing the amount of rendering data and calculation.
[0074] As mentioned above, target grid codes related to building components at each first tile and corresponding reference grid level are selected from multiple grid codes and integrated into a set, which serves as an important link in the entire BIM model rendering process to further refine data association and accurately locate grid data related to building components, laying a solid foundation for the subsequent generation of high-quality rendering data.
[0075] S6, according to the target grid code set and the grid range corresponding to each grid code, obtaining a grid triangle face set corresponding to the current building component under each first tile.
[0076] In a specific implementation, the grid range corresponding to each grid code includes the preset coordinates of each vertex of the corresponding grid, and S6 includes the following steps: S61, for any target grid code under any first tile, according to the grid range corresponding to the current target grid code, obtain a number of adjacent grid codes corresponding to the current target grid code, and common vertices between the current target grid code and each adjacent grid code.
[0077] S62, for any adjacent grid code corresponding to the current target grid code, if the current adjacent grid code does not belong to the target grid code in the target grid code set, construct a triangular face of the current target grid code relative to the current adjacent grid code according to the common vertices between the current grid code and the current adjacent grid code.
[0078] S63, traversing all adjacent grid codes corresponding to the current target grid code, and composing a grid triangle subset corresponding to the current target grid code according to all grid triangles corresponding to the current target grid code.
[0079] S64, traversing all target grid codes under the current first tile, and composing a grid triangle face set corresponding to the current building component under the current first tile according to a grid triangle face subset corresponding to each target grid code.
[0080] S65, traverse all first tiles to obtain a set of mesh triangle faces corresponding to the current building component under each first tile.
[0081] The grid code having common vertices with the current target grid code is determined as the adjacent grid code corresponding to the current target grid code.
[0082] If the adjacent grid code does not belong to the target grid code set, it means that the grid corresponding to the current target grid code is truly related to the current building component. In order to ensure the integrity of the rendering and improve the rendering effect, the outer surface of the grid corresponding to the target grid code needs to be rendered. If the adjacent grid code belongs to the target grid code set, it means that there is a duplicate surface between the grid corresponding to the current target grid code and the grid corresponding to the adjacent grid code. In order to reduce the amount of rendering data and improve rendering efficiency, the outer surface of the grid corresponding to the target grid code does not need to be rendered.
[0083] Therefore, the triangular face constructed in this embodiment can be used to reflect the outer surface part of the grid represented by the current target grid code, focusing only on the effective outer surface rendering of the building components and ignoring the invalid outer surface rendering. It can reduce unnecessary rendering data while ensuring the rendering effect, thereby greatly improving the rendering efficiency.
[0084] As described above, based on the target grid code set and grid range information, the grid triangle face set corresponding to the building components under each first tile is gradually constructed and integrated. While optimizing the amount of rendering data, the triangle face data used to render the outer surface of the building components is accurately determined, which greatly improves the rendering efficiency while ensuring the rendering effect.
[0085] S7, acquiring target rendering data corresponding to the current building component according to the first tile set, the second tile set, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
[0086] As described above, the first tile set, the second tile set, the target grid code set and the grid triangle face set are integrated to generate target rendering data, which realizes a comprehensive consideration of building components from the whole to the details, from spatial positioning to the construction of specific geometric shapes, so that the BIM model can present building components efficiently and with high quality during rendering, which not only meets the needs of displaying details of different levels of building models in different application scenarios, but also optimizes the amount of calculation and data processing in the rendering process through reasonable data organization and utilization, avoids unnecessary data redundancy and rendering errors, and improves the rendering efficiency while ensuring the practicability and accuracy of the entire BIM model rendering.
[0087] In the above, starting from the vertex coordinates of the building components, the bounding box is gradually constructed and the size of the bounding box is obtained, and finally the matching degree with each initial grid level is determined. According to the matching degree between the building components and each initial grid level and the preset grid data, two sets of key grid level sets are screened and determined, namely the reference grid level set and the intermediate grid level set. The building components are divided and rendered from a relatively macroscopic perspective through the reference grid level set to show the overall outline, while avoiding excessive data processing and improving rendering efficiency. The intermediate grid level set is used to present finer details of the building components to meet the rendering requirements in scenarios where in-depth viewing of local details is required. Further, based on the reference grid level set and the intermediate grid level set, the building components are constructed. The first tile set and the second tile set are generated, which is helpful to realize the reasonable division and rendering of building components from different levels to meet diverse display needs, and the target grid codes related to the building components at each first tile and the corresponding reference grid level are screened out from multiple grid codes, which is an important link in further refining data association and accurately locating the grid data related to the building components in the entire BIM model rendering process. Then, based on the target grid code set and grid range information, the grid triangle face set corresponding to the building components under each first tile is gradually constructed and integrated. While optimizing the amount of rendering data, the triangle face data used to render the outer surface of the building components is accurately determined, which greatly improves the rendering efficiency while ensuring the rendering effect.
[0088] Embodiment 2: The second embodiment provides a BIM model rendering device, the BIM model rendering device includes: Figure 2 As shown: The data acquisition module 21 is used to acquire a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid.
[0089] The matching degree acquisition module 22 is used to acquire the matching degree between the current building component and each initial grid level according to the first vertex coordinate set corresponding to the current building component and the preset grid data for any building component.
[0090] The grid level screening module 23 is used to obtain a reference grid level set and an intermediate grid level set corresponding to the current building component according to the matching degree between the current building component and each initial grid level and the preset grid data, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0.
[0091] The tile set acquisition module 24 is used to acquire the first tile set and the second tile set corresponding to the current building component according to the reference grid level set, the intermediate grid level set and the preset grid data, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes.
[0092] The target grid code screening module 25 is used to obtain the target grid code set corresponding to the current building component under each first tile according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data and the several reference grid levels corresponding to each first tile, wherein the target grid code set includes several target grid codes.
[0093] The triangle surface acquisition module 26 is used to acquire the mesh triangle surface set corresponding to the current building component under each first tile according to the target mesh code set and the mesh range corresponding to each mesh code.
[0094] The target rendering data acquisition module 27 is used to acquire the target rendering data corresponding to the current building component according to the first tile set and the second tile set corresponding to the current building component, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
[0095] In a specific implementation, the matching degree acquisition module 22 includes: The second vertex coordinate set acquisition submodule is used to acquire, for any building component, a second vertex coordinate set of a bounding box corresponding to the current building component based on the first vertex coordinate set corresponding to the current building component, wherein the second vertex coordinate set includes the coordinates of each vertex of the bounding box corresponding to the current building component.
[0096] The bounding box size acquisition submodule is used to acquire the bounding box size corresponding to the bounding box corresponding to the current building construction according to the second vertex coordinate set corresponding to the bounding box corresponding to the current building construction.
[0097] The matching degree acquisition submodule is used to acquire the matching degree between the current building component and each initial grid level according to the grid size and bounding box size corresponding to each initial grid level.
[0098] In a specific implementation, the second vertex coordinate set acquisition submodule includes: The maximum value acquisition unit is used to acquire the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction according to the first vertex coordinate set.
[0099] The second vertex coordinate acquisition unit is used to acquire all second vertex coordinates corresponding to the current building component according to the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction.
[0100] The second vertex coordinate set acquisition unit is used to construct a bounding box corresponding to the current building component according to all second vertex coordinates corresponding to the current building component, and form a second vertex coordinate set of the bounding box corresponding to the current building component.
[0101] In a specific implementation, the grid level screening module 23 includes: The matching degree comparison submodule is used to compare the matching degree between each initial grid level and the current building component with a preset matching degree threshold, and obtain all network levels with the maximum matching degree and greater than the preset matching degree threshold.
[0102] The candidate grid level acquisition submodule is used to determine the initial grid level corresponding to the maximum matching degree as the first reference grid level, and determine the initial grid level greater than a preset matching degree threshold as the candidate grid level.
[0103] The first number acquisition submodule is used to determine the number of candidate grid levels whose corresponding initial grid levels are smaller than the initial grid level corresponding to the first reference grid level among all candidate grid levels as the number N of reference grid levels.
[0104] The reference grid level acquisition submodule is used to determine the current candidate grid level as the i-th reference grid level for any candidate grid level if the difference between the initial grid level corresponding to the first reference grid level and the initial grid level corresponding to the current candidate grid level is i-1, where i=2, 3, ..., N.
[0105] The intermediate grid level acquisition submodule is used to determine the current initial grid level as the jth intermediate grid level for any initial grid level, if the difference between the current initial grid level and the initial grid level corresponding to the first reference level grid is j, where j=1, 2, ..., M, and M can be obtained by subtracting the difference between the initial grid level corresponding to the first reference level grid from the maximum value of the initial grid level.
[0106] In a specific implementation, the tile set acquisition module 24 includes: The first tile acquisition submodule is used to set the (k-1)×T+1th reference grid level to the k×Tth reference grid level as the kth first tile, wherein T refers to the preset number of initial grid levels included in each first tile and each second tile, T>1, k=1, 2, ..., P, P refers to the number of first tiles, and NT<P×T≤N.
[0107] The first tile set acquisition submodule is used to acquire the first tile set according to P first tiles, T reference grid levels corresponding to each first tile, and all grid codes included in each reference grid level.
[0108] The second tile acquisition submodule is used to set the (u-1)×T+1th intermediate grid level to the u×Tth intermediate grid level as the uth second tile, where u=1, 2,..., Q, Q refers to the number of second tiles, and MT<Q×T≤M.
[0109] The second tile set acquisition submodule is used to acquire the second tile set according to the Q second tiles, the T intermediate grid levels corresponding to each second tile, and all grid codes included in each intermediate grid level.
[0110] In a specific implementation, the target grid code screening module 25 includes: The target grid code acquisition submodule is used to compare the grid range corresponding to the current grid code with each first vertex coordinate in the first vertex coordinate set for any grid code in any reference grid level corresponding to any first tile. If any first vertex coordinate is within the grid range corresponding to the current grid code, the current grid code is determined as the target grid code.
[0111] The third traversal submodule is used to traverse all grid codes in the current reference grid level corresponding to the current first tile, and obtain all target grid codes corresponding to the current building component in the current reference grid level corresponding to the current first tile.
[0112] The fourth traversal submodule is used to traverse all reference grid levels corresponding to the current first tile, and obtain all target grid codes corresponding to the current building component at each reference grid level corresponding to the current first tile.
[0113] The target grid code set acquisition submodule is used to combine all target grid codes corresponding to the current building component at all reference grid levels corresponding to the current first tile, and acquire the target grid code set corresponding to the current building component at the current first tile.
[0114] In a specific implementation, the grid range corresponding to each grid code includes the preset coordinates of each vertex of the corresponding grid, and the triangular surface acquisition module 26 includes: The adjacent grid code acquisition submodule is used to acquire, for any target grid code under any first tile, several adjacent grid codes corresponding to the current target grid code and the common vertices between the current target grid code and each adjacent grid code according to the grid range corresponding to the current target grid code.
[0115] The triangular face construction submodule is used to construct a triangular face of the current target grid code relative to the current adjacent grid code based on the common vertices between the current grid code and the current adjacent grid code for any adjacent grid code corresponding to the current target grid code, if the current adjacent grid code does not belong to the target grid code in the target grid code set.
[0116] The fifth traversal submodule is used to traverse all adjacent grid codes corresponding to the current target grid code, and form a grid triangle subset corresponding to the current target grid code based on all grid triangles corresponding to the current target grid code.
[0117] The sixth traversal submodule is used to traverse all target grid codes under the current first tile, and form a grid triangle face set corresponding to the current building component under the current first tile according to the grid triangle face subset corresponding to each target grid code.
[0118] The seventh traversal submodule is used to traverse all the first tiles and obtain the mesh triangle face set corresponding to the current building component under each first tile.
[0119] It should be noted that the information interaction, execution process and other contents between the above modules are based on the same concept as the embodiment of the method of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0120] Embodiment 3, Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, and the at least one instruction or at least one program is loaded and executed by a processor to implement the steps: S1, obtaining a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid.
[0121] S2, for any building component, according to the first vertex coordinate set corresponding to the current building component and the preset grid data, obtain the matching degree between the current building component and each initial grid level.
[0122] S3, according to the matching degree between the current building component and each initial grid level and the preset grid data, obtain a reference grid level set and an intermediate grid level set corresponding to the current building component, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0.
[0123] S4, according to the reference grid level set, the intermediate grid level set and the preset grid data, obtain a first tile set and a second tile set corresponding to the current building component, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes.
[0124] S5, according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data and a plurality of reference grid levels corresponding to each first tile, obtaining a target grid code set corresponding to the current building component under each first tile, wherein the target grid code set includes a plurality of target grid codes.
[0125] S6, according to the target grid code set and the grid range corresponding to each grid code, obtaining a grid triangle face set corresponding to the current building component under each first tile.
[0126] S7, acquiring target rendering data corresponding to the current building component according to the first tile set, the second tile set, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
[0127] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0128] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0129] Embodiment 4: A fourth embodiment of the present invention provides an electronic device, which includes a processor and the non-transitory computer-readable storage medium in the third embodiment of the present invention.
[0130] The above are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not intended to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.
Claims
1. A BIM model rendering method, characterized in that: The BIM model rendering method comprises the following steps: S1, obtaining a plurality of building components in a BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid; S2, for any building component, obtaining a matching degree between the current building component and each initial grid level according to a first vertex coordinate set corresponding to the current building component and the preset grid data; S3, according to the matching degree between the current building component and each initial grid level and the preset grid data, obtaining a reference grid level set and an intermediate grid level set corresponding to the current building component, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0; S4, acquiring a first tile set and a second tile set corresponding to the current building component according to the reference grid level set, the intermediate grid level set and the preset grid data, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes; S5, acquiring a target grid code set corresponding to the current building component under each first tile according to the reference grid level set and the first vertex coordinate set corresponding to the current building component, the preset grid data, and a plurality of reference grid levels corresponding to each first tile, wherein the target grid code set includes a plurality of target grid codes; S6, acquiring a set of mesh triangle faces corresponding to the current building component under each first tile according to the target mesh code set and the mesh range corresponding to each mesh code; S7, acquiring target rendering data corresponding to the current building component according to the first tile set, the second tile set, and the target grid code set and grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
2. The BIM model rendering method according to claim 1, characterized in that: S2 includes the following steps: S21, for any building component, obtaining a second vertex coordinate set of a bounding box corresponding to the current building component according to a first vertex coordinate set corresponding to the current building component, wherein the second vertex coordinate set includes the coordinates of each vertex of the bounding box corresponding to the current building component; S22, acquiring a bounding box size corresponding to the bounding box corresponding to the current building structure according to a second vertex coordinate set corresponding to the bounding box corresponding to the current building structure; S23, obtaining a matching degree between the current building component and each initial grid level according to the grid size corresponding to each initial grid level and the bounding box size.
3. The BIM model rendering method according to claim 2, characterized in that: S21 includes the following steps: S211, acquiring the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction according to the first vertex coordinate set; S212, acquiring all second vertex coordinates corresponding to the current building component according to the maximum coordinate value and the minimum coordinate value of the current building component in each coordinate direction; S213: construct a bounding box corresponding to the current building component according to all second vertex coordinates corresponding to the current building component, and form a second vertex coordinate set of the bounding box corresponding to the current building component.
4. The BIM model rendering method according to claim 1, characterized in that: S3 includes the following steps: S31, comparing the matching degree between each initial grid level and the current building component with a preset matching degree threshold, and obtaining all network levels with the maximum matching degree and a degree greater than the preset matching degree threshold; S32, determining the initial grid level corresponding to the maximum matching degree as the first reference grid level, and determining the initial grid level greater than the preset matching degree threshold as the candidate grid level; S33, among all candidate grid levels, determining the number of candidate grid levels whose corresponding initial grid levels are smaller than the initial grid level corresponding to the first reference grid level as the number N of reference grid levels; S34, for any candidate grid level, if the difference between the initial grid level corresponding to the first reference grid level and the initial grid level corresponding to the current candidate grid level is i-1, the current candidate grid level is determined as the i-th reference grid level, where i=2, 3, ..., N; S35, for any initial grid level, if the difference between the current initial grid level and the initial grid level corresponding to the first reference level grid is j, the current initial grid level is determined as the jth intermediate grid level, where j=1, 2, ..., M, and M can be obtained by subtracting the difference between the initial grid level corresponding to the first reference level grid from the maximum value of the initial grid level.
5. The BIM model rendering method according to claim 4, characterized in that: S4 includes the following steps: S41, setting the (k-1)×T+1th reference grid level to the k×Tth reference grid level as the kth first tile, wherein T refers to a preset number of initial grid levels included in each first tile and each second tile, T>1, k=1, 2, ..., P, P refers to the number of first tiles, and NT<P×T≤N; S42, acquiring a first tile set according to the P first tiles, the T reference grid levels corresponding to each first tile, and all grid codes included in each reference grid level; S43, setting the (u-1)×T+1th intermediate grid level to the u×Tth intermediate grid level as the uth second tile, where u=1, 2, ..., Q, Q refers to the number of second tiles, and MT<Q×T≤M; S44 , acquiring a second tile set according to the Q second tiles, the T intermediate grid levels corresponding to each second tile, and all grid codes included in each intermediate grid level.
6. The BIM model rendering method according to claim 1, characterized in that: S5 includes the following steps: S51, for any grid code in any reference grid level corresponding to any first tile, compare the grid range corresponding to the current grid code with each first vertex coordinate in the first vertex coordinate set, and if any first vertex coordinate is within the grid range corresponding to the current grid code, determine the current grid code as the target grid code; S52, traversing all grid codes in the current reference grid level corresponding to the current first tile, and acquiring all target grid codes corresponding to the current building component in the current reference grid level corresponding to the current first tile; S53, traversing all reference grid levels corresponding to the current first tile, and acquiring all target grid codes corresponding to the current building component at each reference grid level corresponding to the current first tile; S54: Combine all target grid codes corresponding to the current building component at all reference grid levels corresponding to the current first tile to obtain a target grid code set corresponding to the current building component at the current first tile.
7. The BIM model rendering method according to claim 1, characterized in that: The grid range corresponding to each grid code includes the preset coordinates of each vertex of the corresponding grid, and S6 includes the following steps: S61, for any target grid code under any first tile, according to the grid range corresponding to the current target grid code, obtain a number of adjacent grid codes corresponding to the current target grid code, and a common vertex between the current target grid code and each adjacent grid code; S62, for any adjacent grid code corresponding to the current target grid code, if the current adjacent grid code does not belong to the target grid code in the target grid code set, constructing a triangular face of the current target grid code relative to the current adjacent grid code according to common vertices between the current grid code and the current adjacent grid code; S63, traversing all adjacent grid codes corresponding to the current target grid code, and forming a grid triangle subset corresponding to the current target grid code according to all grid triangles corresponding to the current target grid code; S64, traversing all target grid codes under the current first tile, and composing a grid triangle face set corresponding to the current building component under the current first tile according to a grid triangle face subset corresponding to each target grid code; S65, traverse all first tiles to obtain a set of mesh triangle faces corresponding to the current building component under each first tile.
8. A BIM model rendering device, characterized in that: The BIM model rendering device comprises: A data acquisition module, used to acquire a plurality of building components in the BIM model, a first vertex coordinate set corresponding to each building component, and preset grid data, wherein the first vertex coordinate set includes the coordinates of each vertex of the corresponding building component, and the preset grid data includes a plurality of initial grid levels, a grid size corresponding to each initial grid level, a plurality of grids corresponding to each initial grid level, and a grid code and a grid range of each grid; A matching degree acquisition module, for acquiring, for any building component, a matching degree between the current building component and each initial grid level according to a first vertex coordinate set corresponding to the current building component and the preset grid data; A grid level screening module, used for acquiring a reference grid level set and an intermediate grid level set corresponding to the current building component according to the matching degree between the current building component and each initial grid level and the preset grid data, wherein the reference grid level set includes N reference grid levels, the intermediate grid level set includes M intermediate grid levels, the initial grid level corresponding to the intermediate initial grid level is greater than the initial grid level corresponding to the reference initial grid level, and N and M are integers greater than 0; A tile set acquisition module, configured to acquire a first tile set and a second tile set corresponding to the current building component according to the reference grid level set, the intermediate grid level set and the preset grid data, wherein the first tile set includes a plurality of first tiles, a plurality of reference grid levels corresponding to each first tile and all grid codes, and the second tile set includes a plurality of second tiles, a plurality of intermediate grid levels corresponding to each second tile and all grid codes; A target grid code screening module is used to obtain a target grid code set corresponding to the current building component under each first tile according to a reference grid level set and a first vertex coordinate set corresponding to the current building component, the preset grid data and a plurality of reference grid levels corresponding to each first tile, wherein the target grid code set includes a plurality of target grid codes; A triangle face acquisition module, used to acquire a set of mesh triangle faces corresponding to the current building component under each first tile according to the target mesh code set and the mesh range corresponding to each mesh code; The target rendering data acquisition module is used to acquire the target rendering data corresponding to the current building component according to the first tile set and the second tile set corresponding to the current building component, and the target grid code set and the grid triangle face set corresponding to each first tile of the current building component, wherein the target rendering data is used to render the current building component.
9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the non-transitory computer-readable storage medium, characterized in that: The at least one instruction or the at least one program is loaded and executed by the processor to implement the BIM model rendering method as described in any one of claims 1 to 7.
10. An electronic device, characterized in that: The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.
Citation Information
Patent Citations
Building information model scene rendering method and device and computer equipment
CN112632679A
BIM model data optimization method and device, electronic equipment and storage medium
CN118429500A
Map processing method and device, equipment, medium and program product
CN119399398A
LOD-based BIM model lightweight construction and display method
WO2023124842A1
Cited By
BIM (Building Information Modeling) multi-level detail generation method
CN121074320A