ViennaLS
|
This class is used to perform boolean operations on two level sets and write the resulting level set into the first passed level set. When the boolean operation is set to CUSTOM, a comparator must be set using setBooleanOperationComparator. This comparator returns one value generated from the level set value supplied by each level set. E.g.: for a union, the comparator will always return the smaller of the two values. The function signature for the comparator is defined in the public ComparatorType. More...
#include <lsBooleanOperation.hpp>
Public Types | |
using | ComparatorType = std::pair<T, bool> (*)(const T &, const T &) |
Public Member Functions | |
BooleanOperation () | |
BooleanOperation (SmartPointer< Domain< T, D > > passedlsDomain, BooleanOperationEnum passedOperation=BooleanOperationEnum::INVERT) | |
BooleanOperation (SmartPointer< Domain< T, D > > passedlsDomainA, SmartPointer< Domain< T, D > > passedlsDomainB, BooleanOperationEnum passedOperation=BooleanOperationEnum::INTERSECT) | |
void | setLevelSet (SmartPointer< Domain< T, D > > passedlsDomain) |
Set which level set to perform the boolean operation on. | |
void | setSecondLevelSet (SmartPointer< Domain< T, D > > passedlsDomain) |
Set the level set which will be used to modify the first level set. | |
void | setBooleanOperation (BooleanOperationEnum passedOperation) |
Set which of the operations of BooleanOperationEnum to perform. | |
void | setBooleanOperationComparator (ComparatorType passedOperationComp) |
Set the comparator to be used when the BooleanOperation is set to CUSTOM. | |
void | setUpdatePointData (bool update) |
Set whether to update the point data stored in the LS during this algorithm. Defaults to true. | |
void | setPruneResult (bool pR) |
Set whether the resulting level set should be pruned. Defaults to true. | |
void | apply () |
Perform operation. | |
This class is used to perform boolean operations on two level sets and write the resulting level set into the first passed level set. When the boolean operation is set to CUSTOM, a comparator must be set using setBooleanOperationComparator. This comparator returns one value generated from the level set value supplied by each level set. E.g.: for a union, the comparator will always return the smaller of the two values. The function signature for the comparator is defined in the public ComparatorType.
using viennals::BooleanOperation< T, D >::ComparatorType = std::pair<T, bool> (*)(const T &, const T &) |
|
inline |
|
inline |
|
inline |
|
inline |
Perform operation.
|
inline |
Set which of the operations of BooleanOperationEnum to perform.
|
inline |
Set the comparator to be used when the BooleanOperation is set to CUSTOM.
|
inline |
Set which level set to perform the boolean operation on.
|
inline |
Set whether the resulting level set should be pruned. Defaults to true.
|
inline |
Set the level set which will be used to modify the first level set.
|
inline |
Set whether to update the point data stored in the LS during this algorithm. Defaults to true.