MeshCore::SetOperations Class Reference

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...
 

Detailed Description

The MeshAlgorithm class provides algorithms base on meshes.

Member Enumeration Documentation

◆ OperationType

Enumerator
Union 
Intersect 
Difference 
Inner 
Outer 

Constructor & Destructor Documentation

◆ SetOperations()

SetOperations::SetOperations ( const MeshKernel cutMesh1,
const MeshKernel cutMesh2,
MeshKernel result,
OperationType  opType,
float  minDistanceToPoint = 1e-5f 
)

Construction.

◆ ~SetOperations()

SetOperations::~SetOperations ( )
virtual

Destruction.

Member Function Documentation

◆ Do()

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().


The documentation for this class was generated from the following files: