HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_SurfaceDeform::SubdCapture Class Reference

#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
 

Detailed Description

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 361 of file GU_SurfaceDeform.h.

Member Function Documentation

void GU_SurfaceDeform::SubdCapture::init ( const GU_Detail &  restSurfaceGdp)

Copy rest surface and build ray intersect.

bool GU_SurfaceDeform::SubdCapture::isValid ( ) const
inline

Definition at line 419 of file GU_SurfaceDeform.h.

template<typename PA >
bool GU_SurfaceDeform::SubdCapture::project ( UT_IntArray &  coarseFace,
UT_FloatArray &  coarseU,
UT_FloatArray &  coarseV,
const PA &  positions 
)
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 373 of file GU_SurfaceDeform.h.

const GU_Detail& GU_SurfaceDeform::SubdCapture::restSurface ( ) const
inline

Definition at line 420 of file GU_SurfaceDeform.h.


The documentation for this class was generated from the following file: