OGS
|
Definition in file AddFaultToVoxelGrid.cpp.
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include <tclap/CmdLine.h>
#include "GeoLib/AABB.h"
#include "InfoLib/GitInfo.h"
#include "MathLib/Point3d.h"
#include "MeshLib/Elements/Element.h"
#include "MeshLib/IO/VtkIO/VtuInterface.h"
#include "MeshLib/IO/readMeshFromFile.h"
#include "MeshLib/Mesh.h"
#include "MeshLib/Node.h"
Go to the source code of this file.
Functions | |
bool | testAABBIntersectingPlane (Eigen::Vector3d const &aabb_centre, Eigen::Vector3d const &aabb_extent, Eigen::Vector3d const &plane_normal, double const pd) |
bool | testTriangleIntersectingAABB (MeshLib::Node const &n0, MeshLib::Node const &n1, MeshLib::Node const &n2, Eigen::Vector3d const &c, Eigen::Vector3d const &e) |
void | markFaults (MeshLib::Mesh &mesh, MeshLib::Mesh const &fault, int const fault_id, std::array< double, 3 > half_cell_size) |
bool | isVoxelGrid (MeshLib::Mesh const &mesh) |
int | main (int argc, char *argv[]) |
Variables | |
static std::string | mat_name = "MaterialIDs" |
bool isVoxelGrid | ( | MeshLib::Mesh const & | mesh | ) |
Definition at line 161 of file AddFaultToVoxelGrid.cpp.
References ERR(), and MeshLib::Mesh::getElements().
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 191 of file AddFaultToVoxelGrid.cpp.
References MaterialPropertyLib::c, ERR(), MeshLib::getCenterOfGravity(), isVoxelGrid(), markFaults(), MeshLib::materialIDs(), GitInfoLib::GitInfo::ogs_version, MeshLib::IO::readMeshFromFile(), and MeshLib::IO::VtuInterface::writeToFile().
void markFaults | ( | MeshLib::Mesh & | mesh, |
MeshLib::Mesh const & | fault, | ||
int const | fault_id, | ||
std::array< double, 3 > | half_cell_size | ||
) |
Definition at line 95 of file AddFaultToVoxelGrid.cpp.
References MaterialPropertyLib::c, GeoLib::AABB::containsPoint(), MeshLib::getCenterOfGravity(), MeshLib::Mesh::getElements(), GeoLib::AABB::getMaxPoint(), GeoLib::AABB::getMinPoint(), MeshLib::Mesh::getNodes(), MeshLib::Mesh::getNumberOfElements(), MeshLib::Mesh::getProperties(), MeshLib::Properties::getPropertyVector(), mat_name, MeshLib::QUAD, and testTriangleIntersectingAABB().
Referenced by main().
bool testAABBIntersectingPlane | ( | Eigen::Vector3d const & | aabb_centre, |
Eigen::Vector3d const & | aabb_extent, | ||
Eigen::Vector3d const & | plane_normal, | ||
double const | pd | ||
) |
Definition at line 31 of file AddFaultToVoxelGrid.cpp.
References MathLib::r.
Referenced by testTriangleIntersectingAABB().
bool testTriangleIntersectingAABB | ( | MeshLib::Node const & | n0, |
MeshLib::Node const & | n1, | ||
MeshLib::Node const & | n2, | ||
Eigen::Vector3d const & | c, | ||
Eigen::Vector3d const & | e | ||
) |
Definition at line 43 of file AddFaultToVoxelGrid.cpp.
References MaterialPropertyLib::c, MathLib::TemplatePoint< T, DIM >::getCoords(), MathLib::p, MathLib::r, and testAABBIntersectingPlane().
Referenced by markFaults().
|
static |
Definition at line 27 of file AddFaultToVoxelGrid.cpp.
Referenced by markFaults().