HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_GuideCapture.h File Reference
#include "GU_API.h"
#include <UT/UT_Array.h>
#include <UT/UT_VectorTypes.h>
+ Include dependency graph for GU_GuideCapture.h:

Go to the source code of this file.

Classes

struct  GU_GuideCaptureParms
 Parameters for guide shape interpolation capture. More...
 

Functions

GU_API bool GU_GuideCaptureShape (UT_IntArray &guidestarts, UT_IntArray &guideindices, UT_FloatArray &guideweights, const GU_Detail &groom, const GU_Detail &guides, const GU_GuideCaptureParms &parms)
 

Function Documentation

GU_API bool GU_GuideCaptureShape ( UT_IntArray guidestarts,
UT_IntArray guideindices,
UT_FloatArray guideweights,
const GU_Detail groom,
const GU_Detail guides,
const GU_GuideCaptureParms parms 
)

Capture groom curves against guide curves using arc-length shape similarity.

Outputs are in CSR (Compressed Sparse Row) format: guidestarts — nprims+1 entries; guidestarts[i]..guidestarts[i+1] is curve i's range guideindices — flat guide prim indices guideweights — flat normalised weights (sum to 1 per curve)

Returns false if groom or guides have no primitives.