| In the three-dimensional digital representation of geological bodies,the meshing step is very important,which realizes the discrete transformation from the solid continuous space to the numerical model.In the field of geology and reservoir engineering,the Corner Grid is the preferred method for discretizing geological bodies,and because of its ability to represent arbitrary cube shapes,the corner grid uniquely determines the geometry of each grid through the three-dimensional coordinates of the eight vertices.This characteristic not only enables it to simulate arbitrary shapes,but also is particularly suitable for the representation of complex strata and faults.However,corner grids require more storage space and higher computational complexity,which increases the challenge of visualization of geological models.In this paper,a three-dimensional geological model architecture with read-write separation is proposed.With reference to the widely used geological modeling software Petrel,the model files are analyzed and structured data is constructed in the database.Then,the server side based on Java,Jersey and Mybatis framework is developed to support the effective management and transmission of corner grid data.Finally,the 3D rendering of the model was realized in Unity 3D environment.The main contents of this study include:(1)Corner grid data management.In this study,the GRDECL file exported by Petrel software was analyzed in detail,and the three-dimensional coordinates of the vertices of the grid were successfully extracted from the one-dimensional data.In view of the computationally intensive characteristics of this process,C++ was used for algorithm development in this paper to ensure efficiency and performance.(2)Three-dimensional visualization of corner mesh model.In this study,Unity 3D was used as a 3D rendering tool,Mesh objects were used to display the geometric form of the model,and color rendering was carried out by attribute-driven method.In order to improve the rendering efficiency,the research also integrates the data filtering strategy to selectively present the grid data in the visual range during visualization.(3)Design and implementation of 3D visualization system.Based on the above research results,this paper constructs a 3D geological model visualization system using Java,C++,Postgre SQL and Unity 3D,which supports a complete workflow from data parsing to storage,filtering and visualization.The system also provides a human-computer interaction function,allowing users to translate,rotate and scale the model,switch different attribute views,in order to deeply analyze the shape and properties of the geological body. |