forked from kmammou/v-hacd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathammo.idl
148 lines (133 loc) · 3.85 KB
/
ammo.idl
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// interface VHACD {
// // [Const] IVHACD CreateVHACD();
// // [Const] IVHACD CreateVHACD_ASYNC();
// [Const] VHACDImpl CreateVHACD();
// [Const] VHACDImpl CreateVHACD_ASYNC();
// };
[Prefix="VHACD::"]
interface IVHACD {
// boolean Compute(
// double[] points,
// long stridePoints,
// long nPoints,
// long[] triangles,
// long strideTriangles,
// long nTriangles,
// [Const, Ref]Parameters params
// );
// boolean Compute(
// [Const] double[] points,
// [Const] unsigned long countPoints,
// [Const] long[] triangles,
// [Const] long countTriangles,
// [Const, Ref] Parameters params
// );
// boolean Compute(
// double[] points,
// unsigned long countPoints,
// long[] triangles,
// long countTriangles,
// [Const, Ref] Parameters params
// );
// boolean Compute(
// double[] points,
// unsigned short countPoints,
// unsigned short[] triangles,
// unsigned short countTriangles,
// [Const, Ref] Parameters params
// );
boolean Compute(
double[] points,
unsigned long countPoints,
unsigned long[] triangles,
unsigned long countTriangles,
[Const, Ref] Parameters params
);
unsigned short GetNConvexHulls();
boolean GetConvexHull(unsigned short index, [Ref]ConvexHull ch);
void Cancel();
void Clean();
void Release();
boolean IsReady();
};
[Prefix="VHACD::"]
interface VHACDImpl {
void VHACDImpl();
};
VHACDImpl implements IVHACD;
[Prefix="VHACD::IVHACD::"]
interface Parameters {
void Parameters();
attribute IUserCallback m_callback;
attribute IUserLogger m_logger;
attribute double m_minimumVolumePercentErrorAllowed;
attribute unsigned short m_maxConvexHulls;
attribute unsigned short m_resolution;
attribute unsigned short m_maxRecursionDepth;
attribute unsigned short m_maxNumVerticesPerCH;
attribute unsigned short m_minEdgeLength;
attribute boolean m_shrinkWrap;
attribute boolean m_findBestPlane;
};
[Prefix="VHACD::IVHACD::"]
interface ConvexHull {
void ConvexHull();
readonly attribute double[] m_points;
readonly attribute long[] m_triangles;
readonly attribute unsigned short m_nPoints;
readonly attribute unsigned short m_nTriangles;
};
[Prefix="VHACD::IVHACD::"]
interface IUserCallback {
// void IUserCallback();
};
[Prefix="VHACD::IVHACD::"]
interface IUserLogger {
// void IUserLogger();
};
// [Prefix="VHACD::IVHACD::"]
interface AmmoHelpers {
void AmmoHelpers();
[Const] IVHACD CreateVHACD();
[Const] IVHACD CreateVHACD_ASYNC();
};
interface Logging {
void Logging();
};
// Logging implements IUserLogger;
// [Prefix="VHACD::"]
// interface VHACD {
// void VHACD();
// boolean Compute(double[] points, long stridePoints, long nPoints, long[] triangles, long strideTriangles, long nTriangles, [Const, Ref]Parameters params);
// unsigned short GetNConvexHulls();
// void GetConvexHull(unsigned short index, [Ref]ConvexHull ch);
// void Cancel();
// void Clean();
// void Release();
// };
// [Prefix="VHACD::IVHACD::"]
// interface Parameters {
// void Parameters();
// attribute double m_concavity;
// attribute double m_alpha;
// attribute double m_beta;
// attribute double m_gamma;
// attribute double m_minVolumePerCH;
// attribute unsigned short m_resolution;
// attribute unsigned short m_maxNumVerticesPerCH;
// attribute long m_depth;
// attribute long m_planeDownsampling;
// attribute long m_convexhullDownsampling;
// attribute long m_pca;
// attribute long m_mode;
// attribute long m_convexhullApproximation;
// attribute long m_oclAcceleration;
// };
// [Prefix="VHACD::IVHACD::"]
// interface ConvexHull {
// void ConvexHull();
// readonly attribute double[] m_points;
// readonly attribute long[] m_triangles;
// readonly attribute unsigned short m_nPoints;
// readonly attribute unsigned short m_nTriangles;
// };