HDK
|
#include <openvdb/openvdb.h>
#include <openvdb/tools/PointIndexGrid.h>
#include <openvdb/points/PointDataGrid.h>
#include "UT_API.h"
#include "UT_Assert.h"
#include "UT_BoundingBox.h"
#include "UT_Matrix4.h"
#include "UT_Matrix3.h"
#include "UT_Matrix2.h"
#include <SYS/SYS_Math.h>
Go to the source code of this file.
Classes | |
struct | UT_VDBMath< T > |
struct | UT_VDBMath< bool > |
Namespaces | |
UT_VDBUtils | |
Macros | |
#define | UT_VDB_CALL(GRIDT, RETURN, FNAME, GRIDBASE,...) |
#define | UT_VDB_DECL_PROCESS_TYPED_GRID(GRID_BASE_T) |
Utility function that, given a generic grid pointer, calls a functor on the fully-resolved grid. More... | |
#define | UTvdbCallRealType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallScalarType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallVec3Type(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallPointType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallBoolType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallAllType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbCallAllTopology(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnRealType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnScalarType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnVec3Type(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnPointType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnBoolType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnAllType(TYPE, FNAME, GRIDBASE,...) |
#define | UTvdbReturnAllTopology(TYPE, FNAME, GRIDBASE,...) |
Enumerations | |
enum | UT_VDBType { UT_VDB_INVALID, UT_VDB_FLOAT, UT_VDB_DOUBLE, UT_VDB_INT32, UT_VDB_INT64, UT_VDB_BOOL, UT_VDB_VEC3F, UT_VDB_VEC3D, UT_VDB_VEC3I, UT_VDB_POINTINDEX, UT_VDB_POINTDATA } |
Functions | |
UT_API size_t | format (char *buffer, size_t buffer_size, const UT_VDBType &v) |
UT_API const char * | UTvdbType (UT_VDBType t) |
UT_API UT_VDBType | UTvdbType (const char *n) |
void | UTvdbInitialize () |
Calls openvdb::initialize() More... | |
UT_VDBType | UTvdbGetGridType (const openvdb::GridBase &grid) |
Find the UT_VDBType from a grid. More... | |
const char * | UTvdbGetGridTypeString (const openvdb::GridBase &grid) |
Return the string representation of a grid's underlying value type. More... | |
int | UTvdbGetGridTupleSize (UT_VDBType type) |
Returns the tuple size of a grid given its value type. More... | |
int | UTvdbGetGridTupleSize (const openvdb::GridBase &grid) |
Returns the tuple size of a grid. More... | |
template<typename GridType , typename OpType , typename GridBaseType > | |
void | UT_VDBUtils::callTypedGrid (GridBaseType &grid, OpType &op) |
UT_BoundingBoxD | UTvdbConvert (const openvdb::CoordBBox &bbox) |
Bounding box conversion from openvdb to UT. More... | |
openvdb::math::CoordBBox | UTvdbConvert (const UT_BoundingBoxI &bbox) |
Bounding box conversion from openvdb to UT. More... | |
openvdb::math::Transform::Ptr | UTvdbCreateTransform (const UT_Vector3 &orig, const UT_Vector3 &voxsize) |
template<typename T > | |
openvdb::math::Vec4< T > | SYSabs (const openvdb::math::Vec4< T > &v1) |
template<typename T > | |
openvdb::math::Vec3< T > | SYSabs (const openvdb::math::Vec3< T > &v1) |
template<typename T > | |
openvdb::math::Vec2< T > | SYSabs (const openvdb::math::Vec2< T > &v1) |
template<typename T > | |
openvdb::math::Vec4< T > | SYSmin (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2) |
template<typename T > | |
openvdb::math::Vec4< T > | SYSmax (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2) |
template<typename T > | |
openvdb::math::Vec4< T > | SYSmin (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2, const openvdb::math::Vec4< T > &v3) |
template<typename T > | |
openvdb::math::Vec4< T > | SYSmax (const openvdb::math::Vec4< T > &v1, const openvdb::math::Vec4< T > &v2, const openvdb::math::Vec4< T > &v3) |
template<typename T > | |
openvdb::math::Vec3< T > | SYSmin (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2) |
template<typename T > | |
openvdb::math::Vec3< T > | SYSmax (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2) |
template<typename T > | |
openvdb::math::Vec3< T > | SYSmin (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2, const openvdb::math::Vec3< T > &v3) |
template<typename T > | |
openvdb::math::Vec3< T > | SYSmax (const openvdb::math::Vec3< T > &v1, const openvdb::math::Vec3< T > &v2, const openvdb::math::Vec3< T > &v3) |
template<typename T > | |
openvdb::math::Vec2< T > | SYSmin (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2) |
template<typename T > | |
openvdb::math::Vec2< T > | SYSmax (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2) |
template<typename T > | |
openvdb::math::Vec2< T > | SYSmin (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2, const openvdb::math::Vec2< T > &v3) |
template<typename T > | |
openvdb::math::Vec2< T > | SYSmax (const openvdb::math::Vec2< T > &v1, const openvdb::math::Vec2< T > &v2, const openvdb::math::Vec2< T > &v3) |
template<typename GridType > | |
const GridType * | UTvdbGridCast (const openvdb::GridBase *grid) |
template<typename GridType > | |
GridType * | UTvdbGridCast (openvdb::GridBase *grid) |
template<typename GridType > | |
const GridType & | UTvdbGridCast (const openvdb::GridBase &grid) |
template<typename GridType > | |
GridType & | UTvdbGridCast (openvdb::GridBase &grid) |
template<typename GridType > | |
GridType::ConstPtr | UTvdbGridCast (openvdb::GridBase::ConstPtr grid) |
template<typename GridType > | |
GridType::Ptr | UTvdbGridCast (openvdb::GridBase::Ptr grid) |
template<typename S > | |
UT_Matrix4T< S > | UTvdbConvert (const openvdb::math::Mat4< S > &src) |
Matrix conversion from openvdb to UT. More... | |
template<typename S > | |
UT_Matrix3T< S > | UTvdbConvert (const openvdb::math::Mat3< S > &src) |
Matrix conversion from openvdb to UT. More... | |
template<typename S > | |
UT_Matrix2T< S > | UTvdbConvert (const openvdb::math::Mat2< S > &src) |
Matrix conversion from openvdb to UT. More... | |
template<typename S > | |
openvdb::math::Mat4< S > | UTvdbConvert (const UT_Matrix4T< S > &src) |
Matrix conversion from UT to openvdb. More... | |
template<typename S > | |
openvdb::math::Mat3< S > | UTvdbConvert (const UT_Matrix3T< S > &src) |
Matrix conversion from UT to openvdb. More... | |
template<typename S > | |
openvdb::math::Mat2< S > | UTvdbConvert (const UT_Matrix2T< S > &src) |
Matrix conversion from UT to openvdb. More... | |
template<typename S > | |
UT_Vector4T< S > | UTvdbConvert (const openvdb::math::Vec4< S > &src) |
Vector conversion from openvdb to UT. More... | |
template<typename S > | |
UT_Vector3T< S > | UTvdbConvert (const openvdb::math::Vec3< S > &src) |
Vector conversion from openvdb to UT. More... | |
template<typename S > | |
UT_Vector2T< S > | UTvdbConvert (const openvdb::math::Vec2< S > &src) |
Vector conversion from openvdb to UT. More... | |
template<typename S > | |
openvdb::math::Vec4< S > | UTvdbConvert (const UT_Vector4T< S > &src) |
Vector conversion from UT to openvdb. More... | |
template<typename S > | |
openvdb::math::Vec3< S > | UTvdbConvert (const UT_Vector3T< S > &src) |
Vector conversion from UT to openvdb. More... | |
template<typename S > | |
openvdb::math::Vec2< S > | UTvdbConvert (const UT_Vector2T< S > &src) |
Vector conversion from UT to openvdb. More... | |
#define UT_VDB_CALL | ( | GRIDT, | |
RETURN, | |||
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Definition at line 356 of file UT_VDBUtils.h.
#define UT_VDB_DECL_PROCESS_TYPED_GRID | ( | GRID_BASE_T | ) |
Utility function that, given a generic grid pointer, calls a functor on the fully-resolved grid.
false
if the grid type is unknown or unhandled. Definition at line 243 of file UT_VDBUtils.h.
#define UTvdbCallAllTopology | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 411 of file UT_VDBUtils.h.
#define UTvdbCallAllType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 407 of file UT_VDBUtils.h.
#define UTvdbCallBoolType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 403 of file UT_VDBUtils.h.
#define UTvdbCallPointType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 397 of file UT_VDBUtils.h.
#define UTvdbCallRealType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 376 of file UT_VDBUtils.h.
#define UTvdbCallScalarType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 382 of file UT_VDBUtils.h.
#define UTvdbCallVec3Type | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
Definition at line 389 of file UT_VDBUtils.h.
#define UTvdbReturnAllTopology | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 471 of file UT_VDBUtils.h.
#define UTvdbReturnAllType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 467 of file UT_VDBUtils.h.
#define UTvdbReturnBoolType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 463 of file UT_VDBUtils.h.
#define UTvdbReturnPointType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 457 of file UT_VDBUtils.h.
#define UTvdbReturnRealType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 436 of file UT_VDBUtils.h.
#define UTvdbReturnScalarType | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 442 of file UT_VDBUtils.h.
#define UTvdbReturnVec3Type | ( | TYPE, | |
FNAME, | |||
GRIDBASE, | |||
... | |||
) |
Macro to invoke the correct type of grid. Use like:
to invoke
via:
Definition at line 449 of file UT_VDBUtils.h.
enum UT_VDBType |
Enumerator | |
---|---|
UT_VDB_INVALID | |
UT_VDB_FLOAT | |
UT_VDB_DOUBLE | |
UT_VDB_INT32 | |
UT_VDB_INT64 | |
UT_VDB_BOOL | |
UT_VDB_VEC3F | |
UT_VDB_VEC3D | |
UT_VDB_VEC3I | |
UT_VDB_POINTINDEX | |
UT_VDB_POINTDATA |
Definition at line 25 of file UT_VDBUtils.h.
UT_API size_t format | ( | char * | buffer, |
size_t | buffer_size, | ||
const UT_VDBType & | v | ||
) |
|
inline |
Definition at line 618 of file UT_VDBUtils.h.
|
inline |
Definition at line 626 of file UT_VDBUtils.h.
|
inline |
Definition at line 633 of file UT_VDBUtils.h.
|
inline |
Definition at line 648 of file UT_VDBUtils.h.
|
inline |
Definition at line 664 of file UT_VDBUtils.h.
|
inline |
Definition at line 679 of file UT_VDBUtils.h.
|
inline |
Definition at line 693 of file UT_VDBUtils.h.
|
inline |
Definition at line 706 of file UT_VDBUtils.h.
|
inline |
Definition at line 718 of file UT_VDBUtils.h.
|
inline |
Definition at line 640 of file UT_VDBUtils.h.
|
inline |
Definition at line 656 of file UT_VDBUtils.h.
|
inline |
Definition at line 672 of file UT_VDBUtils.h.
|
inline |
Definition at line 686 of file UT_VDBUtils.h.
|
inline |
Definition at line 700 of file UT_VDBUtils.h.
|
inline |
Definition at line 712 of file UT_VDBUtils.h.
UT_Matrix4T<S> UTvdbConvert | ( | const openvdb::math::Mat4< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 486 of file UT_VDBUtils.h.
UT_Matrix3T<S> UTvdbConvert | ( | const openvdb::math::Mat3< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 496 of file UT_VDBUtils.h.
UT_Matrix2T<S> UTvdbConvert | ( | const openvdb::math::Mat2< S > & | src | ) |
Matrix conversion from openvdb to UT.
Definition at line 505 of file UT_VDBUtils.h.
openvdb::math::Mat4<S> UTvdbConvert | ( | const UT_Matrix4T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 516 of file UT_VDBUtils.h.
openvdb::math::Mat3<S> UTvdbConvert | ( | const UT_Matrix3T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 525 of file UT_VDBUtils.h.
openvdb::math::Mat2<S> UTvdbConvert | ( | const UT_Matrix2T< S > & | src | ) |
Matrix conversion from UT to openvdb.
Definition at line 533 of file UT_VDBUtils.h.
UT_Vector4T<S> UTvdbConvert | ( | const openvdb::math::Vec4< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 544 of file UT_VDBUtils.h.
UT_Vector3T<S> UTvdbConvert | ( | const openvdb::math::Vec3< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 550 of file UT_VDBUtils.h.
UT_Vector2T<S> UTvdbConvert | ( | const openvdb::math::Vec2< S > & | src | ) |
Vector conversion from openvdb to UT.
Definition at line 556 of file UT_VDBUtils.h.
openvdb::math::Vec4<S> UTvdbConvert | ( | const UT_Vector4T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 566 of file UT_VDBUtils.h.
openvdb::math::Vec3<S> UTvdbConvert | ( | const UT_Vector3T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 572 of file UT_VDBUtils.h.
openvdb::math::Vec2<S> UTvdbConvert | ( | const UT_Vector2T< S > & | src | ) |
Vector conversion from UT to openvdb.
Definition at line 578 of file UT_VDBUtils.h.
|
inline |
Bounding box conversion from openvdb to UT.
Definition at line 587 of file UT_VDBUtils.h.
|
inline |
Bounding box conversion from openvdb to UT.
Definition at line 595 of file UT_VDBUtils.h.
|
inline |
Utility method to construct a Transform that lines up with a cell-centered Houdini volume with specified origin and voxel size.
Definition at line 605 of file UT_VDBUtils.h.
|
inline |
Returns the tuple size of a grid given its value type.
Definition at line 114 of file UT_VDBUtils.h.
|
inline |
Returns the tuple size of a grid.
Definition at line 142 of file UT_VDBUtils.h.
|
inline |
Find the UT_VDBType from a grid.
Definition at line 49 of file UT_VDBUtils.h.
|
inline |
Return the string representation of a grid's underlying value type.
Definition at line 83 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 167 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 172 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 177 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 182 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 187 of file UT_VDBUtils.h.
|
inline |
Helpers for downcasting to a specific grid type
Definition at line 192 of file UT_VDBUtils.h.
|
inline |
Calls openvdb::initialize()
Definition at line 45 of file UT_VDBUtils.h.
UT_API const char* UTvdbType | ( | UT_VDBType | t | ) |
UT_API UT_VDBType UTvdbType | ( | const char * | n | ) |