This code was development at Natural Resources Canada (Geological Survey of Canada) by Michael Hillier, Eric de Kemp, and Ernst Schetselaar for the purposes of 3D structural geological modelling particularly in sparse data environments.
- This is a library for the SURFE algorithm that implements generalized interpolation using multivariate and scattered structural geologic constraints. It accepts 4 types of constraints: inequalities, interface, planar, and tangent points. It computes an interpolant/approximate for the constraints and evaluates that function at the user supplied points.
-
Summary of set up
- To setup a visual studio project to compile you must get cmake (https://cmake.org/). In cmake you will setup the compiler and dependences.
-
Dependencies
-
Optional Dependencies(for visualization and simple QT interface for parameter selection and data loading)
-
CMake Instructions on Windows:
- Fill in required fields for:
- EIGEN3_INCLUDE_DIR
- PYTHON_EXECUTABLE
- For optional visualization and data loading features:
- Qt5_DIR
- VTK_DIR
-
How can I use this library
- Use python terminal
- Use native C++ code See code examples in the test project; main.cpp
- Link the generated lib/so files in your own application with the corresponding dll's
-
Algorithm Pipeline
- Set modelling paramters
- Set input constraints: inequality, interface, planar, tangent (Note: Algorithm requires at least 1 planar constraint be given)
- Compute interpolant (To obtain a structural model)
- Evaluated interpolant at point or set of points.
-
Optional features for surface extraction and visualization.
- Build a grid upon which the interpolant is evaluated
- Extract Isosurfaces (To obtain surfaces representing iso-contours or structural interfaces)
-
How do I specify the modelling parameters and constraints
-
What file types are supported by optional QT interface?
- csv files
- vtk/vtp files
Developers can also easily expand on the support file types by deriving from the ConstraintFileReader and the corresponding subclasses. See read_input_files for reference.
-
Default property names for constraint types
- Inequality: x, y, z, level
- Interface: x, y, z, level
- Planar: x, y, z, dip, strike, azimuth, polarity, normal, nx, ny, nz Note: for orientational data not all of the properties have to be specified. Multiple situations: {dip, strike, polarity}, {dip, azimuth, polarity}, {normal (a 3 component vector)}, {nx, ny, nz}
- Tangent: x, y, z, vector, vx, vy, vz Note: for orientational data not all of the properties have to be specified. Two situations: {vector (a 3 component vector)}, {vx, vy, vz}
-
Current GUI limitations: At this time, it is assumed that default properties names are used in the input constraint files. However the ConstraintFileReader class is able to read the property names from the files (not necessarily the default property names) and individual property names can be manually set.
-
Optional 3D visualization API provides users the ability to easily visualize both their data and generated models. VTK is used for the visualization needs.
-
Model and Data File export
- Models and Data can be exported to vtp (VTK File Format).
- Michael Hillier - Michael.Hillier@canada.ca