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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxCooking.h Source File</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxCooking.h</h1><a href="PxCooking_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">// * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">// notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">// * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">// notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">// documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">// * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">// contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">// from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.</span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PX_COOKING_H</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PX_COOKING_H</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="PxPhysXCommonConfig_8h.html">common/PxPhysXCommonConfig.h</a>"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxTolerancesScale_8h.html">common/PxTolerancesScale.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="Pxc_8h.html">cooking/Pxc.h</a>"</span>
<a name="l00039"></a>00039
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PxConvexMeshDesc_8h.html">cooking/PxConvexMeshDesc.h</a>"</span>
<a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="PxTriangleMeshDesc_8h.html">cooking/PxTriangleMeshDesc.h</a>"</span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="PxMidphaseDesc_8h.html">cooking/PxMidphaseDesc.h</a>"</span>
<a name="l00043"></a>00043 <span class="preprocessor">#include "<a class="code" href="PxTriangleMesh_8h.html">geometry/PxTriangleMesh.h</a>"</span>
<a name="l00044"></a>00044
<a name="l00045"></a>00045 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00047"></a>00047 {
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span>
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="classPxBinaryConverter.html" title="Binary converter for serialized streams.">PxBinaryConverter</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh...">PxPhysicsInsertionCallback</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="classPxFoundation.html" title="Foundation SDK singleton class.">PxFoundation</a>;
<a name="l00053"></a>00053
<a name="l00054"></a><a class="code" href="structPxPlatform.html">00054</a> <span class="keyword">struct </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxPlatform.html">PxPlatform</a>
<a name="l00055"></a>00055 {
<a name="l00056"></a><a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a958015">00056</a> <span class="keyword">enum</span> <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a958015">Enum</a>
<a name="l00057"></a>00057 {
<a name="l00058"></a><a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580153ef87c2eb16bf5b054d54a781d9e3e4f">00058</a> ePC,
<a name="l00059"></a><a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580152d3f5b2a3b5750350be01275f97800f6">00059</a> eARM
<a name="l00060"></a>00060 };
<a name="l00061"></a>00061 };
<a name="l00062"></a>00062
<a name="l00063"></a><a class="code" href="group__cooking.html#g5f723ff70630e2af8c5e9fa603111d95">00063</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="group__cooking.html#g5f723ff70630e2af8c5e9fa603111d95">PxGetGaussMapVertexLimitForPlatform</a>(<a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a958015">PxPlatform::Enum</a> targetPlatform)
<a name="l00064"></a>00064 {
<a name="l00065"></a>00065 <a class="code" href="group__foundation.html#g09414aeb1a283b875edb1fa83e551aca">PX_ASSERT_WITH_MESSAGE</a>( (targetPlatform >= <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580153ef87c2eb16bf5b054d54a781d9e3e4f">PxPlatform::ePC</a>) &&
<a name="l00066"></a>00066 (targetPlatform <= <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580152d3f5b2a3b5750350be01275f97800f6">PxPlatform::eARM</a>),
<a name="l00067"></a>00067 <span class="stringliteral">"Unexpected platform in PxGetGaussMapVertexLimitForPlatform"</span>);
<a name="l00068"></a>00068
<a name="l00069"></a>00069 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> limit = 0;
<a name="l00070"></a>00070 <span class="keywordflow">switch</span>(targetPlatform)
<a name="l00071"></a>00071 {
<a name="l00072"></a>00072 <span class="keywordflow">case</span> <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580153ef87c2eb16bf5b054d54a781d9e3e4f">PxPlatform::ePC</a>:
<a name="l00073"></a>00073 limit = 32; <span class="keywordflow">break</span>;
<a name="l00074"></a>00074 <span class="keywordflow">case</span> <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580152d3f5b2a3b5750350be01275f97800f6">PxPlatform::eARM</a>:
<a name="l00075"></a>00075 limit = 32; <span class="keywordflow">break</span>;
<a name="l00076"></a>00076 }
<a name="l00077"></a>00077 <span class="keywordflow">return</span> limit;
<a name="l00078"></a>00078 }
<a name="l00079"></a>00079
<a name="l00083"></a><a class="code" href="structPxConvexMeshCookingResult.html">00083</a> <span class="keyword">struct </span><a class="code" href="structPxConvexMeshCookingResult.html" title="Result from convex cooking.">PxConvexMeshCookingResult</a>
<a name="l00084"></a>00084 {
<a name="l00085"></a><a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42">00085</a> <span class="keyword">enum</span> <a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42">Enum</a>
<a name="l00086"></a>00086 {
<a name="l00090"></a><a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42efc22064dc3a0abe956c25394a5261d2">00090</a> eSUCCESS,
<a name="l00091"></a>00091
<a name="l00097"></a><a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42ffbc9585c9485ff2719bbfdd27df3b90">00097</a> eZERO_AREA_TEST_FAILED,
<a name="l00098"></a>00098
<a name="l00106"></a><a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf4201b3d1321ecf14bb165447a575dacfb5">00106</a> ePOLYGONS_LIMIT_REACHED,
<a name="l00107"></a>00107
<a name="l00111"></a><a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42286d9d3815141af3d638cda466ee4396">00111</a> eFAILURE
<a name="l00112"></a>00112 };
<a name="l00113"></a>00113 };
<a name="l00114"></a>00114
<a name="l00116"></a><a class="code" href="structPxConvexMeshCookingType.html">00116</a> <span class="keyword">struct </span><a class="code" href="structPxConvexMeshCookingType.html" title="Enumeration for convex mesh cooking algorithms.">PxConvexMeshCookingType</a>
<a name="l00117"></a>00117 {
<a name="l00118"></a><a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c115">00118</a> <span class="keyword">enum</span> <a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c115">Enum</a>
<a name="l00119"></a>00119 {
<a name="l00132"></a><a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c115feeda5c1fbf29c966ab12b42ddc44049">00132</a> eINFLATION_INCREMENTAL_HULL <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> = 0,
<a name="l00133"></a>00133
<a name="l00139"></a><a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c11518916173251aae02128c79b69af46906">00139</a> eQUICKHULL
<a name="l00140"></a>00140 };
<a name="l00141"></a>00141 };
<a name="l00142"></a>00142
<a name="l00146"></a><a class="code" href="structPxTriangleMeshCookingResult.html">00146</a> <span class="keyword">struct </span><a class="code" href="structPxTriangleMeshCookingResult.html" title="Result from triangle mesh cooking.">PxTriangleMeshCookingResult</a>
<a name="l00147"></a>00147 {
<a name="l00148"></a><a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb64">00148</a> <span class="keyword">enum</span> <a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb64">Enum</a>
<a name="l00149"></a>00149 {
<a name="l00153"></a><a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb64ee8ea24838d56b947a7257de59d8b173">00153</a> eSUCCESS = 0,
<a name="l00154"></a>00154
<a name="l00158"></a><a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb6475b84c38d545ffeae116074dac39856d">00158</a> eLARGE_TRIANGLE,
<a name="l00159"></a>00159
<a name="l00163"></a><a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb647b7c260c723ae2bb20a72d0f5db966ba">00163</a> eFAILURE
<a name="l00164"></a>00164 };
<a name="l00165"></a>00165 };
<a name="l00166"></a>00166
<a name="l00173"></a><a class="code" href="structPxMeshPreprocessingFlag.html">00173</a> <span class="keyword">struct </span><a class="code" href="structPxMeshPreprocessingFlag.html" title="Enum for the set of mesh pre-processing parameters.">PxMeshPreprocessingFlag</a>
<a name="l00174"></a>00174 {
<a name="l00175"></a><a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f8">00175</a> <span class="keyword">enum</span> <a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f8">Enum</a>
<a name="l00176"></a>00176 {
<a name="l00180"></a><a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f8b790b7f66183b6985e82827ddb35e16e">00180</a> eWELD_VERTICES = 1 << 0,
<a name="l00181"></a>00181
<a name="l00190"></a><a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f8059514d442911f061ea581d7e673aa24">00190</a> eDISABLE_CLEAN_MESH = 1 << 1,
<a name="l00191"></a>00191
<a name="l00195"></a><a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f8b444cee109eb41181a216d6a3cb49dde">00195</a> eDISABLE_ACTIVE_EDGES_PRECOMPUTE = 1 << 2,
<a name="l00196"></a>00196
<a name="l00202"></a><a class="code" href="structPxMeshPreprocessingFlag.html#d2a46fe74aef20eff5860acd661bc8f86691848aebbe9f071d19c8b85a23a184">00202</a> eFORCE_32BIT_INDICES = 1 << 3
<a name="l00203"></a>00203 };
<a name="l00204"></a>00204 };
<a name="l00205"></a>00205
<a name="l00206"></a><a class="code" href="group__cooking.html#g0a0051ee56690c138fac87d780cca9b4">00206</a> <span class="keyword">typedef</span> <a class="code" href="classPxFlags.html">PxFlags<PxMeshPreprocessingFlag::Enum,PxU32></a> <a class="code" href="classPxFlags.html">PxMeshPreprocessingFlags</a>;
<a name="l00207"></a>00207
<a name="l00214"></a><a class="code" href="structPxCookingParams.html">00214</a> <span class="keyword">struct </span><a class="code" href="structPxCookingParams.html" title="Structure describing parameters affecting mesh cooking.">PxCookingParams</a>
<a name="l00215"></a>00215 {
<a name="l00225"></a><a class="code" href="structPxCookingParams.html#90bdebb71061b817755baf22c4d59ac9">00225</a> <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a958015">PxPlatform::Enum</a> targetPlatform;
<a name="l00248"></a><a class="code" href="structPxCookingParams.html#645572e949b89821e81278a675e89176">00248</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <span class="keywordtype">float</span> skinWidth;
<a name="l00249"></a>00249
<a name="l00262"></a><a class="code" href="structPxCookingParams.html#ec2fbb426b8c0bb2daee1e31b8e2adc2">00262</a> <span class="keywordtype">float</span> areaTestEpsilon;
<a name="l00263"></a>00263
<a name="l00284"></a><a class="code" href="structPxCookingParams.html#45e4d60211cdd58d80a10dad39da64c9">00284</a> <span class="keywordtype">float</span> planeTolerance;
<a name="l00285"></a>00285
<a name="l00293"></a><a class="code" href="structPxCookingParams.html#fbc71c4ade3b80715855125413d58f97">00293</a> <a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c115">PxConvexMeshCookingType::Enum</a> convexMeshCookingType;
<a name="l00294"></a>00294
<a name="l00302"></a><a class="code" href="structPxCookingParams.html#50426ff06726ccab3f5e0503077778a6">00302</a> <span class="keywordtype">bool</span> suppressTriangleMeshRemapTable;
<a name="l00303"></a>00303
<a name="l00310"></a><a class="code" href="structPxCookingParams.html#aeff18c0f923a7c886bc29bea730c966">00310</a> <span class="keywordtype">bool</span> buildTriangleAdjacencies;
<a name="l00311"></a>00311
<a name="l00317"></a><a class="code" href="structPxCookingParams.html#d9c00d38bdcca1c324bba906706d1c63">00317</a> <span class="keywordtype">bool</span> buildGPUData;
<a name="l00318"></a>00318
<a name="l00326"></a><a class="code" href="structPxCookingParams.html#6a51be76bb79ac1dd9a2788f54569c60">00326</a> <a class="code" href="classPxTolerancesScale.html" title="Class to define the scale at which simulation runs. Most simulation tolerances are...">PxTolerancesScale</a> scale;
<a name="l00327"></a>00327
<a name="l00333"></a><a class="code" href="structPxCookingParams.html#6561b14b68f097c135fe6d83f68908ce">00333</a> <a class="code" href="classPxFlags.html">PxMeshPreprocessingFlags</a> meshPreprocessParams;
<a name="l00334"></a>00334
<a name="l00344"></a><a class="code" href="structPxCookingParams.html#3cd5e4ba954507ba48882fcd806f66e3">00344</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxMeshCookingHint.html#f88f4aeeaffd545c26bc9b5215303796">PxMeshCookingHint::Enum</a> meshCookingHint;
<a name="l00345"></a>00345
<a name="l00359"></a><a class="code" href="structPxCookingParams.html#72e8ee721f648af02c40db8162bb07e8">00359</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> meshSizePerformanceTradeOff;
<a name="l00360"></a>00360
<a name="l00376"></a><a class="code" href="structPxCookingParams.html#19bb7e28765df5c8ec1a86a45004c7b6">00376</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> meshWeldTolerance;
<a name="l00377"></a>00377
<a name="l00388"></a><a class="code" href="structPxCookingParams.html#8015768aa6024f1283cab006abdb63b5">00388</a> <a class="code" href="classPxMidphaseDesc.html" title="Structure describing parameters affecting midphase mesh structure.">PxMidphaseDesc</a> midphaseDesc;
<a name="l00389"></a>00389
<a name="l00397"></a><a class="code" href="structPxCookingParams.html#6be147977f9bd24a55dc3cd16ed390bc">00397</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> gaussMapLimit;
<a name="l00398"></a>00398
<a name="l00399"></a><a class="code" href="structPxCookingParams.html#738bc9799f789da5c453cadae5eaec47">00399</a> <a class="code" href="structPxCookingParams.html" title="Structure describing parameters affecting mesh cooking.">PxCookingParams</a>(<span class="keyword">const</span> <a class="code" href="classPxTolerancesScale.html" title="Class to define the scale at which simulation runs. Most simulation tolerances are...">PxTolerancesScale</a>& sc):
<a name="l00400"></a>00400 skinWidth (0.025f*sc.length),
<a name="l00401"></a>00401 areaTestEpsilon (0.06f*sc.length*sc.length),
<a name="l00402"></a>00402 planeTolerance (0.0007f),
<a name="l00403"></a>00403 convexMeshCookingType (<a class="code" href="structPxConvexMeshCookingType.html" title="Enumeration for convex mesh cooking algorithms.">PxConvexMeshCookingType</a>::eQUICKHULL),
<a name="l00404"></a>00404 suppressTriangleMeshRemapTable (false),
<a name="l00405"></a>00405 buildTriangleAdjacencies (false),
<a name="l00406"></a>00406 buildGPUData (false),
<a name="l00407"></a>00407 scale (sc),
<a name="l00408"></a>00408 meshPreprocessParams (0),
<a name="l00409"></a>00409 meshCookingHint (<a class="code" href="structPxMeshCookingHint.html" title="Enumeration for mesh cooking hints.">PxMeshCookingHint</a>::eSIM_PERFORMANCE),
<a name="l00410"></a>00410 meshSizePerformanceTradeOff (0.55f),
<a name="l00411"></a>00411 meshWeldTolerance (0.f)
<a name="l00412"></a>00412 {
<a name="l00413"></a>00413 <span class="preprocessor">#if PX_INTEL_FAMILY</span>
<a name="l00414"></a>00414 <span class="preprocessor"></span> targetPlatform = <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580153ef87c2eb16bf5b054d54a781d9e3e4f">PxPlatform::ePC</a>;
<a name="l00415"></a>00415 <span class="preprocessor">#elif PX_ARM_FAMILY</span>
<a name="l00416"></a>00416 <span class="preprocessor"></span> targetPlatform = <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580152d3f5b2a3b5750350be01275f97800f6">PxPlatform::eARM</a>;
<a name="l00417"></a>00417 <span class="preprocessor">#else</span>
<a name="l00418"></a>00418 <span class="preprocessor"></span><span class="preprocessor">#error Unknown platform</span>
<a name="l00419"></a>00419 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00420"></a>00420 <span class="preprocessor"></span> gaussMapLimit = <a class="code" href="group__cooking.html#g5f723ff70630e2af8c5e9fa603111d95">PxGetGaussMapVertexLimitForPlatform</a>(targetPlatform);
<a name="l00421"></a>00421 }
<a name="l00422"></a>00422 };
<a name="l00423"></a>00423
<a name="l00424"></a><a class="code" href="classPxCooking.html">00424</a> <span class="keyword">class </span><a class="code" href="classPxCooking.html">PxCooking</a>
<a name="l00425"></a>00425 {
<a name="l00426"></a>00426 <span class="keyword">public</span>:
<a name="l00435"></a>00435 <span class="keyword">virtual</span> <span class="keywordtype">void</span> release() = 0;
<a name="l00436"></a>00436
<a name="l00444"></a>00444 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setParams(<span class="keyword">const</span> <a class="code" href="structPxCookingParams.html" title="Structure describing parameters affecting mesh cooking.">PxCookingParams</a>& params) = 0;
<a name="l00445"></a>00445
<a name="l00453"></a>00453 <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="structPxCookingParams.html" title="Structure describing parameters affecting mesh cooking.">PxCookingParams</a>& getParams() <span class="keyword">const</span> = 0;
<a name="l00454"></a>00454
<a name="l00460"></a>00460 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> platformMismatch() <span class="keyword">const</span> = 0;
<a name="l00461"></a>00461
<a name="l00482"></a>00482 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> cookTriangleMesh(<span class="keyword">const</span> <a class="code" href="classPxTriangleMeshDesc.html" title="Descriptor class for PxTriangleMesh.">PxTriangleMeshDesc</a>& desc, <a class="code" href="classPxOutputStream.html" title="Output stream class for I/O.">PxOutputStream</a>& stream, <a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a>* condition = NULL) <span class="keyword">const</span> = 0;
<a name="l00483"></a>00483
<a name="l00496"></a>00496 <span class="keyword">virtual</span> <a class="code" href="classPxTriangleMesh.html" title="A triangle mesh, also called a &#39;polygon soup&#39;.">PxTriangleMesh</a>* createTriangleMesh(<span class="keyword">const</span> <a class="code" href="classPxTriangleMeshDesc.html" title="Descriptor class for PxTriangleMesh.">PxTriangleMeshDesc</a>& desc, <a class="code" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh...">PxPhysicsInsertionCallback</a>& insertionCallback, <a class="code" href="structPxTriangleMeshCookingResult.html#be8e2312c47cc522a546c34ea337fb64">PxTriangleMeshCookingResult::Enum</a>* condition = NULL) <span class="keyword">const</span> = 0;
<a name="l00497"></a>00497
<a name="l00511"></a>00511 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> validateTriangleMesh(<span class="keyword">const</span> <a class="code" href="classPxTriangleMeshDesc.html" title="Descriptor class for PxTriangleMesh.">PxTriangleMeshDesc</a>& desc) <span class="keyword">const</span> = 0;
<a name="l00512"></a>00512
<a name="l00536"></a>00536 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> cookConvexMesh(<span class="keyword">const</span> <a class="code" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh.">PxConvexMeshDesc</a>& desc, <a class="code" href="classPxOutputStream.html" title="Output stream class for I/O.">PxOutputStream</a>& stream, <a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a>* condition = NULL) <span class="keyword">const</span> = 0;
<a name="l00537"></a>00537
<a name="l00553"></a>00553 <span class="keyword">virtual</span> <a class="code" href="classPxConvexMesh.html" title="A convex mesh.">PxConvexMesh</a>* createConvexMesh(<span class="keyword">const</span> <a class="code" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh.">PxConvexMeshDesc</a>& desc, <a class="code" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh...">PxPhysicsInsertionCallback</a>& insertionCallback, <a class="code" href="structPxConvexMeshCookingResult.html#c1c7b1cbfc80b0af00bec95faf1ebf42">PxConvexMeshCookingResult::Enum</a>* condition = NULL) <span class="keyword">const</span> = 0;
<a name="l00554"></a>00554
<a name="l00568"></a>00568 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> validateConvexMesh(<span class="keyword">const</span> <a class="code" href="classPxConvexMeshDesc.html" title="Descriptor class for PxConvexMesh.">PxConvexMeshDesc</a>& desc) <span class="keyword">const</span> = 0;
<a name="l00569"></a>00569
<a name="l00570"></a>00570
<a name="l00592"></a>00592 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> computeHullPolygons(<span class="keyword">const</span> <a class="code" href="classPxSimpleTriangleMesh.html" title="A structure describing a triangle mesh.">PxSimpleTriangleMesh</a>& mesh, <a class="code" href="classPxAllocatorCallback.html" title="Abstract base class for an application defined memory allocator that can be used...">PxAllocatorCallback</a>& inCallback, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>& nbVerts, <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>*& vertices,
<a name="l00593"></a>00593 <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>& nbIndices, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>*& indices, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>& nbPolygons, <a class="code" href="structPxHullPolygon.html" title="Polygon data.">PxHullPolygon</a>*& hullPolygons) <span class="keyword">const</span> = 0;
<a name="l00594"></a>00594
<a name="l00609"></a>00609 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> cookHeightField(<span class="keyword">const</span> <a class="code" href="classPxHeightFieldDesc.html" title="Descriptor class for PxHeightField.">PxHeightFieldDesc</a>& desc, <a class="code" href="classPxOutputStream.html" title="Output stream class for I/O.">PxOutputStream</a>& stream) <span class="keyword">const</span> = 0;
<a name="l00610"></a>00610
<a name="l00620"></a>00620 <span class="keyword">virtual</span> <a class="code" href="classPxHeightField.html" title="A height field class.">PxHeightField</a>* createHeightField(<span class="keyword">const</span> <a class="code" href="classPxHeightFieldDesc.html" title="Descriptor class for PxHeightField.">PxHeightFieldDesc</a>& desc, <a class="code" href="classPxPhysicsInsertionCallback.html" title="Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh...">PxPhysicsInsertionCallback</a>& insertionCallback) <span class="keyword">const</span> = 0;
<a name="l00621"></a>00621
<a name="l00622"></a>00622
<a name="l00623"></a>00623 <span class="keyword">protected</span>:
<a name="l00624"></a><a class="code" href="classPxCooking.html#22a1e6a4a68af0bb0f6568bb59108938">00624</a> <span class="keyword">virtual</span> <a class="code" href="classPxCooking.html#22a1e6a4a68af0bb0f6568bb59108938">~PxCooking</a>(){}
<a name="l00625"></a>00625 };
<a name="l00626"></a>00626
<a name="l00627"></a>00627 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00628"></a>00628 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00629"></a>00629 <span class="preprocessor">#endif</span>
<a name="l00630"></a>00630 <span class="preprocessor"></span>
<a name="l00648"></a>00648 <a class="code" href="Pxc_8h.html#ea189596f11f07c586d4757cc67e8f7f">PX_C_EXPORT</a> <a class="code" href="Pxc_8h.html#eb7009784459c9d9056389c6c10c144d">PX_PHYSX_COOKING_API</a> physx::PxCooking* PX_CALL_CONV <a class="code" href="group__cooking.html#gf772f72cf46b9a2326d4562f7cae620b" title="Create an instance of the cooking interface.">PxCreateCooking</a>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">physx::PxU32</a> version,
<a name="l00649"></a>00649 physx::PxFoundation& foundation,
<a name="l00650"></a>00650 <span class="keyword">const</span> physx::PxCookingParams& params);
<a name="l00651"></a>00651
<a name="l00653"></a>00653 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|