![]() |
KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Utilities to compute the minimum error point in a 3D voxel intersected by a triangle mesh This implementation is based on the algorithm explained here: https://www.mattkeeter.com/projects/qef/. More...
#include <qef_utility.h>
Public Member Functions | |
Operators | |
| QuadraticErrorFunction () | |
| Default constructor. More... | |
| virtual | ~QuadraticErrorFunction () |
| Destructor. More... | |
Static Public Member Functions | |
Operations | |
| static array_1d< double, 3 > | QuadraticErrorFunctionPoint (const GeometryType &rVoxel, const GeometryArrayType &rTriangles) |
| Finds the QuadraticErrorFunction point of a voxel. More... | |
| static array_1d< double, 3 > | QuadraticErrorFunctionPoint (const BoundingBox< Point > &rBox, const std::vector< GeometricalObject * > &rTriangles) |
| Finds the QuadraticErrorFunction point of a voxel. More... | |
| static array_1d< double, 3 > | CalculateNormal (const GeometryType &rTriangle) |
| Calculates the normal vector to the surface of a 3D triangle. More... | |
Type Definitions | |
| using | NodeType = Node |
| using | NodePtrType = Node::Pointer |
| using | GeometryType = Geometry< NodeType > |
| using | GeometryPtrType = GeometryType::Pointer |
| using | GeometryArrayType = GeometryType::GeometriesArrayType |
| using | PointsArrayType = GeometryType::PointsArrayType |
| KRATOS_CLASS_POINTER_DEFINITION (QuadraticErrorFunction) | |
| Pointer definition of VoxelInsideVolume. More... | |
Utilities to compute the minimum error point in a 3D voxel intersected by a triangle mesh This implementation is based on the algorithm explained here: https://www.mattkeeter.com/projects/qef/.
function)
| using Kratos::QuadraticErrorFunction::GeometryPtrType = GeometryType::Pointer |
| using Kratos::QuadraticErrorFunction::NodePtrType = Node::Pointer |
|
inline |
Default constructor.
|
inlinevirtual |
Destructor.
|
static |
Calculates the normal vector to the surface of a 3D triangle.
| rTriangle | reference to the triangle |
| Kratos::QuadraticErrorFunction::KRATOS_CLASS_POINTER_DEFINITION | ( | QuadraticErrorFunction | ) |
Pointer definition of VoxelInsideVolume.
|
static |
Finds the QuadraticErrorFunction point of a voxel.
| rVoxel | references to the voxel whose x-point will be calculated |
| rTriangles | references to the triangles which intersect the voxel at some edge. |
|
static |
Finds the QuadraticErrorFunction point of a voxel.
| rVoxel | references to the voxel whose x-point will be calculated |
| rTriangles | references to the triangles which intersect the voxel at some edge. |