|
Graphite Version 3
An experimental 3D geometry processing program
|
A class to select subsets in an array. More...
#include <OGF/mesh/commands/filter.h>
Public Member Functions | |
| Filter (index_t size, const std::string &description, bool floating_point=false) | |
| Filter constructor. | |
| bool | test (index_t item) const |
| Tests an element. | |
| bool | test (double value) const |
| Tests an element by value. | |
Filter constructor.
Throws an exception if description cannot be parsed
| [in] | size | size of the array |
| [in] | description | description of the subset, as a ';'-separated list of selections:
|
| [in] | floating_point | if set, values to be tested are floating point values, else they are element indices. |
| bool OGF::Filter::test | ( | double | value | ) | const |
Tests an element by value.
| [in] | value | the element value to be tested |
| true | if the element is in the subset |
| false | otherwise |
Tests an element.
| [in] | item | the element to be tested |
| true | if the element is in the subset |
| false | otherwise |