|
HDK
|
#include <GU_SurfaceDeform.h>
Public Member Functions | |
| void | init (const GU_Detail &restSurfaceGdp) |
| Copy rest surface and build ray intersect. More... | |
| template<typename PA > | |
| bool | project (UT_IntArray &coarseFace, UT_FloatArray &coarseU, UT_FloatArray &coarseV, const PA &positions) |
| bool | isValid () const |
| const GU_Detail & | restSurface () const |
CPU-side capture for subdivision surface deformation. Copies the rest surface and projects positions onto it via ray intersection. The GT topology building and ptex conversion must be performed externally (GT symbols can't link from GU).
Definition at line 340 of file GU_SurfaceDeform.h.
Copy rest surface and build ray intersect.
|
inline |
Definition at line 398 of file GU_SurfaceDeform.h.
|
inline |
Project positions onto the rest surface coarse mesh. Outputs per-position: coarse face index (prim index into rest gdp), barycentric u/v. Face index is -1 if the point was not captured. PA must support operator[](int) -> UT_Vector3 and size() -> int. Returns false on hard errors (invalid state).
Definition at line 352 of file GU_SurfaceDeform.h.
|
inline |
Definition at line 399 of file GU_SurfaceDeform.h.