diff options
| author | git perforce import user <a@b> | 2016-10-25 12:29:14 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <Sheikh Dawood Abdul Ajees> | 2016-10-25 18:56:37 -0500 |
| commit | 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 (patch) | |
| tree | fa6485c169e50d7415a651bf838f5bcd0fd3bfbd /PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html | |
| download | physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.tar.xz physx-3.4-3dfe2108cfab31ba3ee5527e217d0d8e99a51162.zip | |
Initial commit:
PhysX 3.4.0 Update @ 21294896
APEX 1.4.0 Update @ 21275617
[CL 21300167]
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html')
| -rw-r--r-- | PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html | 253 |
1 files changed, 253 insertions, 0 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html new file mode 100644 index 00000000..ae4d2124 --- /dev/null +++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxCooking_8h-source.html @@ -0,0 +1,253 @@ +<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">// This code contains NVIDIA Confidential Information and is disclosed to you</span> +<a name="l00002"></a>00002 <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span> +<a name="l00003"></a>00003 <span class="comment">//</span> +<a name="l00004"></a>00004 <span class="comment">// Notice</span> +<a name="l00005"></a>00005 <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span> +<a name="l00006"></a>00006 <span class="comment">// proprietary rights in and to this software and related documentation and</span> +<a name="l00007"></a>00007 <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span> +<a name="l00008"></a>00008 <span class="comment">// distribution of this software and related documentation without an express</span> +<a name="l00009"></a>00009 <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span> +<a name="l00010"></a>00010 <span class="comment">//</span> +<a name="l00011"></a>00011 <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span> +<a name="l00012"></a>00012 <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span> +<a name="l00013"></a>00013 <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span> +<a name="l00014"></a>00014 <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span> +<a name="l00015"></a>00015 <span class="comment">//</span> +<a name="l00016"></a>00016 <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span> +<a name="l00017"></a>00017 <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span> +<a name="l00018"></a>00018 <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span> +<a name="l00019"></a>00019 <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span> +<a name="l00020"></a>00020 <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span> +<a name="l00021"></a>00021 <span class="comment">// This code supersedes and replaces all information previously supplied.</span> +<a name="l00022"></a>00022 <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span> +<a name="l00023"></a>00023 <span class="comment">// components in life support devices or systems without express written approval of</span> +<a name="l00024"></a>00024 <span class="comment">// NVIDIA Corporation.</span> +<a name="l00025"></a>00025 <span class="comment">//</span> +<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2016 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="l00271"></a><a class="code" href="structPxCookingParams.html#fbc71c4ade3b80715855125413d58f97">00271</a> <a class="code" href="structPxConvexMeshCookingType.html#5a2ae723aca74c185675cd7ba2c9c115">PxConvexMeshCookingType::Enum</a> convexMeshCookingType; +<a name="l00272"></a>00272 +<a name="l00280"></a><a class="code" href="structPxCookingParams.html#50426ff06726ccab3f5e0503077778a6">00280</a> <span class="keywordtype">bool</span> suppressTriangleMeshRemapTable; +<a name="l00281"></a>00281 +<a name="l00288"></a><a class="code" href="structPxCookingParams.html#aeff18c0f923a7c886bc29bea730c966">00288</a> <span class="keywordtype">bool</span> buildTriangleAdjacencies; +<a name="l00289"></a>00289 +<a name="l00295"></a><a class="code" href="structPxCookingParams.html#d9c00d38bdcca1c324bba906706d1c63">00295</a> <span class="keywordtype">bool</span> buildGPUData; +<a name="l00296"></a>00296 +<a name="l00304"></a><a class="code" href="structPxCookingParams.html#6a51be76bb79ac1dd9a2788f54569c60">00304</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="l00305"></a>00305 +<a name="l00311"></a><a class="code" href="structPxCookingParams.html#6561b14b68f097c135fe6d83f68908ce">00311</a> <a class="code" href="classPxFlags.html">PxMeshPreprocessingFlags</a> meshPreprocessParams; +<a name="l00312"></a>00312 +<a name="l00322"></a><a class="code" href="structPxCookingParams.html#3cd5e4ba954507ba48882fcd806f66e3">00322</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="l00323"></a>00323 +<a name="l00337"></a><a class="code" href="structPxCookingParams.html#72e8ee721f648af02c40db8162bb07e8">00337</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> meshSizePerformanceTradeOff; +<a name="l00338"></a>00338 +<a name="l00354"></a><a class="code" href="structPxCookingParams.html#19bb7e28765df5c8ec1a86a45004c7b6">00354</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> meshWeldTolerance; +<a name="l00355"></a>00355 +<a name="l00366"></a><a class="code" href="structPxCookingParams.html#8015768aa6024f1283cab006abdb63b5">00366</a> <a class="code" href="classPxMidphaseDesc.html" title="Structure describing parameters affecting midphase mesh structure.">PxMidphaseDesc</a> midphaseDesc; +<a name="l00367"></a>00367 +<a name="l00375"></a><a class="code" href="structPxCookingParams.html#6be147977f9bd24a55dc3cd16ed390bc">00375</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> gaussMapLimit; +<a name="l00376"></a>00376 +<a name="l00377"></a><a class="code" href="structPxCookingParams.html#738bc9799f789da5c453cadae5eaec47">00377</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="l00378"></a>00378 skinWidth (0.025f*sc.length), +<a name="l00379"></a>00379 areaTestEpsilon (0.06f*sc.length*sc.length), +<a name="l00380"></a>00380 convexMeshCookingType (<a class="code" href="structPxConvexMeshCookingType.html" title="Enumeration for convex mesh cooking algorithms.">PxConvexMeshCookingType</a>::eQUICKHULL), +<a name="l00381"></a>00381 suppressTriangleMeshRemapTable (false), +<a name="l00382"></a>00382 buildTriangleAdjacencies (false), +<a name="l00383"></a>00383 buildGPUData (false), +<a name="l00384"></a>00384 scale (sc), +<a name="l00385"></a>00385 meshPreprocessParams (0), +<a name="l00386"></a>00386 meshCookingHint (<a class="code" href="structPxMeshCookingHint.html" title="Enumeration for mesh cooking hints.">PxMeshCookingHint</a>::eSIM_PERFORMANCE), +<a name="l00387"></a>00387 meshSizePerformanceTradeOff (0.55f), +<a name="l00388"></a>00388 meshWeldTolerance (0.f) +<a name="l00389"></a>00389 { +<a name="l00390"></a>00390 <span class="preprocessor">#if PX_INTEL_FAMILY</span> +<a name="l00391"></a>00391 <span class="preprocessor"></span> targetPlatform = <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580153ef87c2eb16bf5b054d54a781d9e3e4f">PxPlatform::ePC</a>; +<a name="l00392"></a>00392 <span class="preprocessor">#elif PX_ARM_FAMILY</span> +<a name="l00393"></a>00393 <span class="preprocessor"></span> targetPlatform = <a class="code" href="structPxPlatform.html#c4cfddf519b366f9ee60bdd78a9580152d3f5b2a3b5750350be01275f97800f6">PxPlatform::eARM</a>; +<a name="l00394"></a>00394 <span class="preprocessor">#else</span> +<a name="l00395"></a>00395 <span class="preprocessor"></span><span class="preprocessor">#error Unknown platform</span> +<a name="l00396"></a>00396 <span class="preprocessor"></span><span class="preprocessor">#endif</span> +<a name="l00397"></a>00397 <span class="preprocessor"></span> gaussMapLimit = <a class="code" href="group__cooking.html#g5f723ff70630e2af8c5e9fa603111d95">PxGetGaussMapVertexLimitForPlatform</a>(targetPlatform); +<a name="l00398"></a>00398 } +<a name="l00399"></a>00399 }; +<a name="l00400"></a>00400 +<a name="l00401"></a><a class="code" href="classPxCooking.html">00401</a> <span class="keyword">class </span><a class="code" href="classPxCooking.html">PxCooking</a> +<a name="l00402"></a>00402 { +<a name="l00403"></a>00403 <span class="keyword">public</span>: +<a name="l00412"></a>00412 <span class="keyword">virtual</span> <span class="keywordtype">void</span> release() = 0; +<a name="l00413"></a>00413 +<a name="l00421"></a>00421 <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="l00422"></a>00422 +<a name="l00430"></a>00430 <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() = 0; +<a name="l00431"></a>00431 +<a name="l00437"></a>00437 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> platformMismatch() = 0; +<a name="l00438"></a>00438 +<a name="l00459"></a>00459 <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) = 0; +<a name="l00460"></a>00460 +<a name="l00472"></a>00472 <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) = 0; +<a name="l00473"></a>00473 +<a name="l00487"></a>00487 <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) = 0; +<a name="l00488"></a>00488 +<a name="l00512"></a>00512 <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) = 0; +<a name="l00513"></a>00513 +<a name="l00528"></a>00528 <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) = 0; +<a name="l00529"></a>00529 +<a name="l00543"></a>00543 <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) = 0; +<a name="l00544"></a>00544 +<a name="l00545"></a>00545 +<a name="l00567"></a>00567 <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="l00568"></a>00568 <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) = 0; +<a name="l00569"></a>00569 +<a name="l00584"></a>00584 <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) = 0; +<a name="l00585"></a>00585 +<a name="l00595"></a>00595 <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) = 0; +<a name="l00596"></a>00596 +<a name="l00597"></a>00597 +<a name="l00598"></a>00598 <span class="keyword">protected</span>: +<a name="l00599"></a><a class="code" href="classPxCooking.html#22a1e6a4a68af0bb0f6568bb59108938">00599</a> <span class="keyword">virtual</span> <a class="code" href="classPxCooking.html#22a1e6a4a68af0bb0f6568bb59108938">~PxCooking</a>(){} +<a name="l00600"></a>00600 }; +<a name="l00601"></a>00601 +<a name="l00602"></a>00602 <span class="preprocessor">#if !PX_DOXYGEN</span> +<a name="l00603"></a>00603 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span> +<a name="l00604"></a>00604 <span class="preprocessor">#endif</span> +<a name="l00605"></a>00605 <span class="preprocessor"></span> +<a name="l00623"></a>00623 <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="l00624"></a>00624 physx::PxFoundation& foundation, +<a name="l00625"></a>00625 <span class="keyword">const</span> physx::PxCookingParams& params); +<a name="l00626"></a>00626 +<a name="l00628"></a>00628 <span class="preprocessor">#endif</span> +</pre></div></div> + +<hr style="width: 100%; height: 2px;"><br> +Copyright © 2008-2016 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> |