HDK
|
Minimal interface to Bfr (base-face representation) More...
#include <GT_OSD3.h>
Public Types | |
using | Surface = OpenSubdiv::Bfr::Surface< fpreal32 > |
Public Member Functions | |
GT_OSDBfrSurfaces (const GT_OSDTopology &topology) | |
~GT_OSDBfrSurfaces () | |
exint | getMemoryUsage () const |
Minimum. The actual usage may be far greater. More... | |
const int * | getPtexMap () const |
Get Ptex to base face mapping. More... | |
GT_DataArrayHandle | preparePatchPoints (const GT_DataArrayHandle &attrdata) const |
GT_DataArrayHandle | preparePatchPointsFV (const GT_DataArrayHandle &attrdata) const |
template<typename T > | |
void | evaluate (T *result, T *du, T *dv, int ptexid, float u, float v, const GT_DataArrayHandle &patchpoints) const |
template<typename T > | |
void | evaluateFV (T *result, T *du, T *dv, int ptexid, float u, float v, const GT_DataArrayHandle &patchpoints) const |
using GT_OSDBfrSurfaces::Surface = OpenSubdiv::Bfr::Surface<fpreal32> |
GT_OSDBfrSurfaces::GT_OSDBfrSurfaces | ( | const GT_OSDTopology & | topology | ) |
GT_OSDBfrSurfaces::~GT_OSDBfrSurfaces | ( | ) |
|
inline |
Evaluate attribute and its derivs at specified coordinate. T must be a float type (accepts 64-bit but beware that it'll be interpolated in 32-bit). The tuple count in result array must match the tuple count in patchpoints. du and dv may be nullptr if not needed.
|
inline |
Evaluate attribute and its derivs at specified coordinate. T must be a float type (accepts 64-bit but beware that it'll be interpolated in 32-bit). The tuple count in result array must match the tuple count in patchpoints. du and dv may be nullptr if not needed.
exint GT_OSDBfrSurfaces::getMemoryUsage | ( | ) | const |
Minimum. The actual usage may be far greater.
|
inline |
|
inline |
Calculate patch points for all surfaces to pass to evaluate functions. Input attrdata must be of float typpe. Returns GT_DANumeric of same type. It's up to the caller to store and manage the returned data for reuse. May return nullptr if invalid (eg surfaces don't exist or the input attrdata is unsupported type)
|
inline |
Calculate patch points for all surfaces to pass to evaluate functions. Input attrdata must be of float typpe. Returns GT_DANumeric of same type. It's up to the caller to store and manage the returned data for reuse. May return nullptr if invalid (eg surfaces don't exist or the input attrdata is unsupported type)