-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.h
67 lines (55 loc) · 1.18 KB
/
Utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#pragma once
#ifndef __Utils_h__
#define __Utils_h__
#include <UT/UT_Map.h>
#include <UT/UT_String.h>
class GA_ElementGroup;
class GU_RayIntersect;
namespace AKA
{
template<typename T>
struct MapPrimGroup
{
UT_Map<T, GA_PrimitiveGroup*> Map;
};
template<typename T>
struct MapRay
{
UT_Map<T, GU_RayIntersect*> Map;
};
struct Gdps
{
GU_Detail *Gdp = nullptr;
const GU_Detail *BaseGdp = nullptr;
const GU_Detail *RestGdp = nullptr;
const GU_Detail *DeformedGdp = nullptr;
};
struct CaptureAttributes
{
GA_Attribute *RestP = nullptr;
GA_Attribute *Prims = nullptr;
GA_Attribute *UVWs = nullptr;
GA_Attribute *Weights = nullptr;
GA_Attribute *Xform = nullptr;
};
struct CaptureAttributes_Info
{
bool CaptureMultiSamples = false;
fpreal32 CaptureMinDistThresh = 0.001f;
GA_RWHandleV3 RestP_H;
GA_RWHandleT<UT_ValArray<int32>> CapturePrims_H;
GA_RWHandleT<UT_ValArray<fpreal16>> CaptureUVWs_H;
GA_RWHandleT<UT_ValArray<fpreal16>> CaptureWeights_H;
bool XformRequired = false;
GA_RWHandleM3 Xform_H;
};
struct DriveAttrib_Info
{
bool Drive = false;
GA_ROHandleV3 RestNormal_H;
GA_ROHandleV3 RestUp_H;
GA_ROHandleV3 DeformedNormal_H;
GA_ROHandleV3 DeformedUp_H;
};
} // end AKA
#endif