#include <DetailSplitter.h>
|
| IE_CORE_DECLAREMEMBERPTR (DetailSplitter) |
|
| DetailSplitter (const GU_DetailHandle &handle, const std::string &key="name") |
|
const GU_DetailHandle | split (const std::string &value) |
|
void | values (std::vector< std::string > &result) |
| Fills the result vector with all valid values in the GU_Detail.
|
|
const GU_DetailHandle & | handle () const |
| Returns the handle held by the splitter.
|
|
| IE_CORE_DECLAREMEMBERPTR (RefCounted) |
|
void | addRef () const |
| Add a reference to the current object.
|
|
void | removeRef () const |
| Remove a reference from the current object.
|
|
RefCount | refCount () const |
| Returns the current reference count.
|
|
DetailSplitter is a convenience class for extracting select bits of geometry from a GU_Detail. It is intended to improve performance when making multiple calls to split the same detail. The default use is splitting based on the name attribute, but any primitive string attribute could be used.
IECoreHoudini::DetailSplitter::DetailSplitter |
( |
const GU_DetailHandle & |
handle, |
|
|
const std::string & |
key = "name" |
|
) |
| |
Create a DetailSplitter which will split the handle by the given key.
- Parameters
-
key | The name of a primitive string attribute on the GU_Detail. |
const GU_DetailHandle IECoreHoudini::DetailSplitter::split |
( |
const std::string & |
value | ) |
|
Creates and returns a handle to a new GU_Detail which contains only the primitives that match the value requested.
The documentation for this class was generated from the following file: