3DE-based geological BIM model lightweight method, plug-in and FBX conversion tool

Through recursive algorithms and file parsing technology, the BIM model in 3DE is converted into FBX format, which solves the problem of data loss in the existing technology and realizes the complete information conversion and retention of the BIM model.

CN119942020APending Publication Date: 2025-05-06CHANGJIANG GEOTECHNICAL ENG CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411758811.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

When converting the BIM model to an open three-dimensional format, the existing technology cannot effectively retain the internal structure, color and attribute information of the model, resulting in data loss problems when applied on a general BIM application platform.

Method used

The BIM model in 3DE is traversed through the recursive algorithm, 3DB files are generated, and these files are parsed to read BIM component data, generate Vectors and Mesh, and finally convert it into a 3D model file in FBX format.

Benefits of technology

The conversion of geometric and attribute information of the BIM model to an open three-dimensional format is realized, ensuring the retention of the internal structure, color and attribute information of the model, thereby providing complete data support in BIM applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119942020A_ABST
    Figure CN119942020A_ABST
Patent Text Reader

Abstract

The invention discloses a geological BIM model lightweight method based on 3DE, and relates to the technical field of three-dimensional BIM application. The method comprises the following steps: step 1, traversing a BIM model in 3DE by using a recursive algorithm to obtain all components List; step 2, generating a 3DB file; and step 3, analyzing the 3DB file, reading data of each BIM component, generating Vectors and Mesh, and generating a three-dimensional model file in an FBX format according to the Vectors and the Mesh. According to the method, the problem of light weight of the geological model under the 3DE platform is solved, the geometric and attribute information of the geological BIM model can be converted into an open three-dimensional format through the method, and data support is provided for BIM application. The invention further relates to a lightweight plug-in of the geological BIM model lightweight method based on 3DE and an FBX conversion tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of three-dimensional BIM application technology, and more specifically, it is a 3DE-based geological BIM model lightweight method. The present invention also discloses a 3DE-based geological BIM model lightweight plug-in and an FBX conversion tool. Background Art

[0002] 3DEXPERIENCE Platform (3DE for short) is a product development software application platform program launched by Dassault Systèmes in 2014. It integrates many digital design simulation modules such as CATIA, ENOVIA, DELMIA and SIMULIA, and can realize 3D design, engineering, 3D CAD, modeling, simulation, data management and process management.

[0003] The traditional lightweight method of geological models is through the format conversion method provided by the official. Due to the relatively complex structure of geological models and other factors, the traditional conversion method has the following two problems:

[0004] (1) The BIM model needs to be converted into a commercial format. Since the commercial format is not open, it can only be used on commercial platforms and cannot be connected to general BIM application platforms;

[0005] (2) The official format conversion only targets the entire model, and loses the model's internal structure, color, attributes and other information, which are important information required for BIM applications.

[0006] Therefore, it is necessary to develop a lightweight method for geological BIM models based on 3DE, which can convert BIM models into an open three-dimensional format and retain the internal structure, color, attributes and other information of the model. Summary of the invention

[0007] The first purpose of the present invention is to overcome the shortcomings of the above-mentioned background technology and provide a lightweight method for geological BIM model based on 3DE.

[0008] The second purpose of the present invention is to provide a lightweight plug-in for the lightweight method of geological BIM model based on 3DE.

[0009] The third purpose of the present invention is to provide an FBX conversion tool for this 3DE-based geological BIM model lightweight method.

[0010] In order to achieve the above first purpose, the technical solution of the present invention is: a geological BIM model lightweight method based on 3DE, comprising the following steps:

[0011] Step 1: Use a recursive algorithm to traverse the BIM model in 3DE and obtain a list of all components;

[0012] Step 2: Traverse each component Model in the component List and generate a 3DB file;

[0013] Step 3: Parse the 3DB file, read each BIM component data, generate Vectors and Mesh, and generate a 3D model file in FBX format based on Vectors and Mesh.

[0014] In the above technical solution, the step 2 comprises the following steps:

[0015] Step 2.1: Get the ID of the component Model and create a DAT file named ID;

[0016] Step 2.2: Get all the two-dimensional faces of the component Model, and obtain the structural data of all the directions, points, triangles, stripes, and fans, and generate a DAT file;

[0017] Step 2.3: Get the color of the component model and write it into the DAT file in binary form;

[0018] Step 2.4: Read the geological attribute set Props of the component Model, and convert the geological attribute set Props into a JSON string STR, calculate the size N of STR, and write it into DAT in the format of N, STR;

[0019] Step 2.5: Compress all DAT files in ZIP format to generate the exchange file 3DB.

[0020] In the above technical solution, in step 2.2:

[0021] a: If the direction Side is equal to CATSideLeft, the DAT file is written in direction 1; if Side is equal to CATSideRight, the DAT file is written in direction 2;

[0022] b: Get the number of points N and write them into the DAT file; traverse the points and write them into the DAT file according to the x, y, and z coordinates;

[0023] c: Get the number of triangles and write them into the DAT file; traverse the triangles, set the IDs of the three vertices of each triangle to N1, N2, and N3, and write them into the DAT file in the order of 3, N1, N2, and N3;

[0024] d: Get the number of stripes and write them into the DAT file; traverse the stripes, assuming that the current stripe is Stripe, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn;

[0025] e: Get the number of fan fans and write them into the DAT file; traverse the fan fans, assuming that the current fan is Fan, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn.

[0026] In the above technical solution, in step 3, the steps of generating Vectors and Mesh are as follows:

[0027] Step 3.1, traverse points;

[0028] Step 3.2, traverse the triangle list;

[0029] Assume that the three vertices of a triangle are N1, N2, and N3;

[0030] If the direction Side is direction 2, generate triangle (N1, N2, N3);

[0031] If the direction Side is direction 1, generate triangle (N1, N3, N2);

[0032] Step 3.3, traverse the stripes information;

[0033] Assume that the N vertices of a strip are N1, N2, ...Nn;

[0034] If the direction Side is direction 2, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1).

[0035] If the direction Side is direction 1, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj).

[0036] Step 3.4, traverse the fan-shaped Fans information;

[0037] Assume that the N vertices of a sector are N1, N2, ...NN;

[0038] If the direction Side is direction 2, assume that N increases from 0 to N-2, and loop to generate the triangle (N0, Nj+1, Nj+2);

[0039] If the direction Side is direction 1, assuming N increases from 0 to N-2, the triangle (N0, Nj+2, Nj+1) is generated in a loop.

[0040] Step 3.5, create custom attribute information;

[0041] Step 3.6, add all the information to a node and add the node to the scenes;

[0042] Step 3.7, generate FBX format file.

[0043] In order to achieve the above-mentioned second purpose, the technical solution of the present invention is: a lightweight plug-in for a geological BIM model based on 3DE, characterized in that: the lightweight plug-in is used to store and execute steps 1-2 in claim 3.

[0044] In order to achieve the third purpose mentioned above, the technical solution of the present invention is: an FBX conversion tool, characterized in that: the FBX conversion tool is used to store and execute step 3 in claim 4.

[0045] Compared with the prior art, the present invention has the following advantages:

[0046] 1) The present invention proposes a lightweight method for 3DE geological BIM model, and based on this method, develops a lightweight plug-in and FBX conversion tool for the geological BIM model, which solves the problem of lightweight geological model under the 3DE platform. Through this method, the conversion of geological BIM model geometry and attribute information to an open three-dimensional format can be realized, providing data support for BIM applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flow chart of the present invention.

[0048] Figure 2 It is a standard diagram in the 3DB format of the present invention.

[0049] Figure 3 This is a diagram of the data format structure of Stripes.

[0050] Figure 4 This is the data format structure diagram for fan-shaped Fans.

[0051] Figure 5 A schematic diagram of a lightweight plug-in.

[0052] Figure 6 A diagram of the FBX conversion tool.

[0053] Figure 7 This is the effect diagram of the BIM model after being lightweighted by the present invention. DETAILED DESCRIPTION

[0054] The following detailed description of the implementation of the present invention is made in conjunction with the accompanying drawings, but they do not constitute a limitation of the present invention and are only given as examples. At the same time, the advantages of the present invention will become clearer and easier to understand through the description.

[0055] Referring to the accompanying drawings, a geological BIM model lightweight method based on 3DE is characterized by comprising the following steps:

[0056] Step 1: Use a recursive algorithm to traverse the BIM model in 3DE and obtain a list of all components;

[0057] Step 2: Traverse each component Model in the component List and generate a 3DB file;

[0058] Step 3: Parse the 3DB file, read each BIM component data, generate Vectors and Mesh, and generate a 3D model file in FBX format based on Vectors and Mesh.

[0059] The step 2 comprises the following steps:

[0060] Step 2.1: Get the ID of the component Model and create a DAT file named ID;

[0061] Step 2.2: Get all the two-dimensional faces of the component Model, and obtain the structural data of all the directions, points, triangles, stripes, and fans, and generate a DAT file;

[0062] Step 2.3: Get the color of the component model and write it into the DAT file in binary form;

[0063] Step 2.4: Read the geological attribute set Props of the component Model, and convert the geological attribute set Props into a JSON string STR, calculate the size N of STR, and write it into DAT in the format of N, STR;

[0064] Step 2.5: Compress all DAT files in ZIP format to generate the exchange file 3DB.

[0065] In step 2.2:

[0066] a: If the direction Side is equal to CATSideLeft, the DAT file is written in direction 1; if Side is equal to CATSideRight, the DAT file is written in direction 2;

[0067] b: Get the number of points N and write them into the DAT file; traverse the points and write them into the DAT file according to the x, y, and z coordinates;

[0068] c: Get the number of triangles and write them into the DAT file; traverse the triangles, set the IDs of the three vertices of each triangle to N1, N2, and N3, and write them into the DAT file in the order of 3, N1, N2, and N3;

[0069] d: Get the number of stripes and write them into the DAT file; traverse the stripes, assuming that the current stripe is Stripe, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn;

[0070] e: Get the number of fan fans and write them into the DAT file; traverse the fan fans, assuming that the current fan is Fan, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn.

[0071] In step 3, the steps to generate Vectors and Mesh are as follows:

[0072] Step 3.1, traverse points;

[0073] Step 3.2, traverse the triangle list;

[0074] Assume that the three vertices of a triangle are N1, N2, and N3;

[0075] If the direction Side is direction 2, generate triangle (N1, N2, N3);

[0076] If the direction Side is direction 1, generate triangle (N1, N3, N2);

[0077] Step 3.3, traverse the stripes information;

[0078] Assume that the N vertices of a strip are N1, N2, ...Nn;

[0079] If the direction Side is direction 2, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1).

[0080] If the direction Side is direction 1, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj).

[0081] Step 3.4, traverse the fan-shaped Fans information;

[0082] Assume that the N vertices of a sector are N1, N2, ...NN;

[0083] If the direction Side is direction 2, assume that N increases from 0 to N-2, and loop to generate the triangle (N0, Nj+1, Nj+2);

[0084] If the direction Side is direction 1, assuming N increases from 0 to N-2, the triangle (N0, Nj+2, Nj+1) is generated in a loop.

[0085] Step 3.5, create custom attribute information;

[0086] Step 3.6, add all the information to a node and add the node to the scenes;

[0087] Step 3.7, generate FBX format file.

[0088] A lightweight plug-in for a geological BIM model based on 3DE, the lightweight plug-in is used to store and execute steps 1 and 2 in claim 3; the lightweight plug-in has the functions of selecting nodes, setting granularity and selecting output folders.

[0089] A FBX conversion tool, the FBX conversion tool is used to store and execute step 3 in claim 4; the FBX conversion tool has the functions of selecting an input path and selecting an output file.

[0090] In actual use, after storing the lightweight plug-in and FBX conversion tool, open the geological BIM model in 3DE, open the lightweight plug-in, select the root node of the tree structure of the geological model, set the export discretization granularity and export file location, click OK, and export the structure of the BIM model to the 3DB file.

[0091] Import the generated 3DB file into the FBX conversion tool, select the output path, and click Start conversion. The FBX conversion tool will parse the 3DB file and generate Vectors and Mesh, and generate a 3D model file in FBX format based on the Vectors and Mesh.

[0092] The generated FBX file can be opened with Blender to view the structure tree information and 3D structure information of the model.

[0093] Other parts not described belong to the prior art.

Claims

1. A lightweight method for geological BIM model based on 3DE, characterized by: The following steps are involved: Step 1: Use a recursive algorithm to traverse the BIM model in 3DE and obtain a list of all components; Step 2: Traverse each component Model in the component List and generate a 3DB file; Step 3: Parse the 3DB file, read each BIM component data, generate Vectors and Mesh, and generate a 3D model file in FBX format based on Vectors and Mesh.

2. The lightweight method of geological BIM model based on 3DE according to claim 1 is characterized in that: The step 2 comprises the following steps: Step 2.1: Get the ID of the component Model and create a DAT file named ID; Step 2.2: Get all the two-dimensional faces of the component Model, and obtain the structural data of all the directions, points, triangles, stripes, and fans, and generate a DAT file; Step 2.3: Get the color of the component model and write it into the DAT file in binary form; Step 2.4: Read the geological attribute set Props of the component Model, and convert the geological attribute set Props into a JSON string STR, calculate the size N of STR, and write it into DAT in the format of N, STR; Step 2.5: Compress all DAT files in ZIP format to generate the exchange file 3DB.

3. The lightweight method of geological BIM model based on 3DE according to claim 2 is characterized in that: In step 2.2: a: If the direction Side is equal to CATSideLeft, the DAT file is written in direction 1; if Side is equal to CATSideRight, the DAT file is written in direction 2; b: Get the number of points N and write them into the DAT file; Traverse the points and write them into the DAT file according to the x, y, and z coordinates; c: Get the number of triangles and write them into the DAT file; traverse the triangles, set the IDs of the three vertices of each triangle to N1, N2, and N3, and write them into the DAT file in the order of 3, N1, N2, and N3; d: Get the number of stripes and write them into the DAT file; traverse the stripes, assuming that the current stripe is Stripe, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn; e: Get the number of fan fans and write them into the DAT file; traverse the fan fans, assuming that the current fan is Fan, its vertex format is N, and the vertices are N1, N2, ...Nn, and write them into the DAT file in the order of N, N1, N2, ...Nn.

4. The lightweight method of geological BIM model based on 3DE according to claim 3 is characterized in that: In step 3, the steps to generate Vectors and Mesh are as follows: Step 3.1, traverse points; Step 3.2, traverse the triangle list; Assume that the three vertices of a triangle are N1, N2, and N3; If the direction Side is direction 2, generate triangle (N1, N2, N3); If the direction Side is direction 1, generate triangle (N1, N3, N2); Step 3.3, traverse the stripes information; Assume that the N vertices of a strip are N1, N2, ...Nn; If the direction Side is direction 2, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1). If the direction Side is direction 1, assume that j increases from 2 to N. If j is divisible by 2, then loop to generate the triangle (Nj-2, Nj, Nj-1). If it is not divisible by 2, then loop to generate the triangle (Nj-2, Nj-1, Nj). Step 3.4, traverse the fan-shaped Fans information; Assume that the N vertices of a sector are N1, N2, ...NN; If the direction Side is direction 2, assume that N increases from 0 to N-2, and loop to generate the triangle (N0, Nj+1, Nj+2); If the direction Side is direction 1, assuming N increases from 0 to N-2, the triangle (N0, Nj+2, Nj+1) is generated in a loop. Step 3.5, create custom attribute information; Step 3.6, add all the information to a node and add the node to the scenes; Step 3.7, generate FBX format file.

5. A lightweight plug-in for geological BIM models based on 3DE, characterized by: The lightweight plug-in is used to store and execute step 1-step 2 in claim 3. 6.FBX conversion tool, featuring: The FBX conversion tool is used to store and execute step 3 in claim 4.