HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
GU_GuideCapture.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: GU Library (C++)
7
*
8
* COMMENTS: Guide Shape Interpolation capture — assigns guide curve
9
* influences to each groom curve based on spatial proximity
10
* and arc-length shape similarity.
11
*/
12
13
#ifndef __GU_GuideCapture_h__
14
#define __GU_GuideCapture_h__
15
16
#include "
GU_API.h
"
17
#include <
UT/UT_Array.h
>
18
#include <
UT/UT_VectorTypes.h
>
19
20
class
GU_Detail
;
21
22
/// Parameters for guide shape interpolation capture.
23
struct
GU_API
GU_GuideCaptureParms
24
{
25
int
max_candidates = 32;
26
float
search_radius = 0.2f;
27
int
nsamples = 20;
28
int
min_guides = 1;
29
int
max_guides = 8;
30
float
sigma_scale = 0.1f;
31
float
weight_threshold = 0.1f;
32
float
length_penalty_scale = 0.0f;
33
};
34
35
/// Capture groom curves against guide curves using arc-length shape similarity.
36
///
37
/// Outputs are in CSR (Compressed Sparse Row) format:
38
/// guidestarts — nprims+1 entries; guidestarts[i]..guidestarts[i+1] is curve i's range
39
/// guideindices — flat guide prim indices
40
/// guideweights — flat normalised weights (sum to 1 per curve)
41
///
42
/// Returns false if groom or guides have no primitives.
43
GU_API
bool
GU_GuideCaptureShape
(
44
UT_IntArray
&guidestarts,
45
UT_IntArray
&guideindices,
46
UT_FloatArray
&guideweights,
47
const
GU_Detail
&groom,
48
const
GU_Detail
&guides,
49
const
GU_GuideCaptureParms
&
parms
);
50
51
#endif // __GU_GuideCapture_h__
GU_GuideCaptureParms
Parameters for guide shape interpolation capture.
Definition:
GU_GuideCapture.h:23
UT_Array.h
UT_ValArray< int >
GU_GuideCaptureShape
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)
UT_VectorTypes.h
GU_API
#define GU_API
Definition:
GU_API.h:14
GA_Names::parms
GA_API const UT_StringHolder parms
GU_Detail
Definition:
GU_Detail.h:159
GU_API.h
GU
GU_GuideCapture.h
Generated on Sat Jul 18 2026 02:15:58 for HDK by
1.8.6