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. More... | |
SetOperations (const MeshKernel &cutMesh1, const MeshKernel &cutMesh2, MeshKernel &result, OperationType opType, float minDistanceToPoint=1e-5f) | |
Construction. More... | |
virtual | ~SetOperations () |
Destruction. More... | |
The MeshAlgorithm class provides algorithms base on meshes.
SetOperations::SetOperations | ( | const MeshKernel & | cutMesh1, |
const MeshKernel & | cutMesh2, | ||
MeshKernel & | result, | ||
OperationType | opType, | ||
float | minDistanceToPoint = 1e-5f |
||
) |
Construction.
|
virtual |
Destruction.
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
References Difference, Inner, Intersect, Outer, MeshCore::MeshDefinitions::SetMinPointDistance(), and Union.
Referenced by Mesh::SetOperations::execute(), Mesh::MeshObject::inner(), Mesh::MeshObject::intersect(), Mesh::MeshObject::outer(), Mesh::MeshObject::subtract(), and Mesh::MeshObject::unite().