#include <AttributeGroup.h>
Definition at line 101 of file AttributeGroup.h.
using openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::Ptr = std::shared_ptr<GroupWriteHandle> |
using openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::UniquePtr = std::unique_ptr<GroupWriteHandle> |
bool openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::collapse |
( |
bool |
on | ) |
|
Set membership for the whole array and attempt to collapse.
- Parameters
-
on | True or false for inclusion in group |
- Note
- This method guarantees that all attributes will have group membership changed according to the input bool, however compaction will not be performed if other groups that share the same underlying array are non-uniform. The return value indicates if the group array ends up being uniform.
bool openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::compact |
( |
| ) |
|
Compact the existing array to become uniform if all values are identical.
void openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::set |
( |
Index |
n, |
|
|
bool |
on |
|
) |
| |
Set on at the given index n.
void openvdb::OPENVDB_VERSION_NAME::points::GroupWriteHandle::setUnsafe |
( |
Index |
n, |
|
|
bool |
on |
|
) |
| |
Set on at the given index n (assumes in-core and non-uniform)
The documentation for this class was generated from the following file: