The MeshAlgorithm class provides algorithms base on meshes. More...
#include <SetOperations.h>
Public Types | |
enum | OperationType { Union, Intersect, Difference, Inner, Outer } |
Public Member Functions | |
void | Do () |
Cut this mesh with another one. | |
SetOperations (const MeshKernel &cutMesh1, const MeshKernel &cutMesh2, MeshKernel &result, OperationType opType, float minDistanceToPoint=1e-5f) | |
Construction. | |
virtual | ~SetOperations (void) |
Destruction. | |
Protected Attributes | |
const MeshKernel & | _cutMesh0 |
const MeshKernel & | _cutMesh1 |
Mesh for set operations source 1. | |
float | _minDistanceToPoint |
Set Operation Type. | |
OperationType | _operationType |
Result mesh. | |
MeshKernel & | _resultMesh |
Mesh for set operations source 2. | |
float | _saveMinMeshDistance |
Minimal distance to facet corner points. |
The MeshAlgorithm class provides algorithms base on meshes.
Definition at line 54 of file SetOperations.h.
Definition at line 57 of file SetOperations.h.
SetOperations::SetOperations | ( | const MeshKernel & | cutMesh1, | |
const MeshKernel & | cutMesh2, | |||
MeshKernel & | result, | |||
OperationType | opType, | |||
float | minDistanceToPoint = 1e-5f | |||
) |
Construction.
Definition at line 53 of file SetOperations.cpp.
SetOperations::~SetOperations | ( | void | ) | [virtual] |
Destruction.
Definition at line 62 of file SetOperations.cpp.
void SetOperations::Do | ( | void | ) |
Cut this mesh with another one.
The result is a list of polylines If the distance of the polyline to one of the points is less than minDistanceToPoint the polyline goes direct to the point
Definition at line 66 of file SetOperations.cpp.
References _cutMesh0, _cutMesh1, MeshCore::MeshDefinitions::_fMinPointDistance, _minDistanceToPoint, _operationType, _resultMesh, MeshCore::MeshKernel::Clear(), MeshCore::MeshKernel::CountFacets(), Difference, SketcherExample::f, MeshCore::MeshKernel::GetFacet(), Inner, Intersect, MeshCore::MeshKernel::Merge(), Outer, MeshCore::MeshDefinitions::SetMinPointDistance(), boost::numeric::bindings::atlas::swap(), and Union.
Referenced by Mesh::MeshObject::inner(), Mesh::MeshObject::intersect(), Mesh::MeshObject::outer(), Mesh::MeshObject::subtract(), and Mesh::MeshObject::unite().
const MeshKernel& MeshCore::SetOperations::_cutMesh0 [protected] |
Definition at line 72 of file SetOperations.h.
Referenced by Do().
const MeshKernel& MeshCore::SetOperations::_cutMesh1 [protected] |
Mesh for set operations source 1.
Definition at line 73 of file SetOperations.h.
Referenced by Do().
float MeshCore::SetOperations::_minDistanceToPoint [protected] |
OperationType MeshCore::SetOperations::_operationType [protected] |
MeshKernel& MeshCore::SetOperations::_resultMesh [protected] |
Mesh for set operations source 2.
Definition at line 74 of file SetOperations.h.
Referenced by Do().
float MeshCore::SetOperations::_saveMinMeshDistance [protected] |
Minimal distance to facet corner points.
Definition at line 77 of file SetOperations.h.