diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-09-15 15:41:57 -0500 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2017-09-15 15:41:57 -0500 |
| commit | d1c812f1162e5fdb13c215792725b2591d7428f5 (patch) | |
| tree | 407056c45c7e9320c48fca6a3697d81a061c4ea0 /PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html | |
| parent | PhysX 3.4, APEX 1.4 patch release @22121272 (diff) | |
| download | physx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.tar.xz physx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.zip | |
PhysX 3.4.1, APEX 1.4.1 Release @22845541v3.4.1
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html')
| -rw-r--r-- | PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html index 8aba3c87..ecf40595 100644 --- a/PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html +++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxClothMeshDesc_8h-source.html @@ -59,71 +59,71 @@ <a name="l00042"></a>00042 { <a name="l00043"></a>00043 <span class="preprocessor">#endif</span> <a name="l00044"></a>00044 <span class="preprocessor"></span> -<a name="l00051"></a><a class="code" href="classPxClothMeshDesc.html">00051</a> <span class="keyword">class </span><a class="code" href="classPxClothMeshDesc.html" title="Descriptor class for a cloth mesh.">PxClothMeshDesc</a> -<a name="l00052"></a>00052 { -<a name="l00053"></a>00053 <span class="keyword">public</span>: -<a name="l00054"></a>00054 -<a name="l00058"></a><a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5">00058</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> points; -<a name="l00059"></a>00059 -<a name="l00067"></a><a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f">00067</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> invMasses; -<a name="l00068"></a>00068 -<a name="l00083"></a><a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38">00083</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> triangles; -<a name="l00084"></a>00084 -<a name="l00099"></a><a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc">00099</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> quads; -<a name="l00100"></a>00100 -<a name="l00104"></a><a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175">00104</a> <a class="code" href="classPxFlags.html">PxMeshFlags</a> flags; -<a name="l00105"></a>00105 -<a name="l00109"></a>00109 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxClothMeshDesc.html" title="Descriptor class for a cloth mesh.">PxClothMeshDesc</a>(); -<a name="l00113"></a>00113 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> setToDefault(); -<a name="l00118"></a>00118 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>; -<a name="l00119"></a>00119 }; -<a name="l00120"></a>00120 -<a name="l00121"></a><a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65">00121</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65" title="constructor sets to default.">PxClothMeshDesc::PxClothMeshDesc</a>() <span class="comment">//constructor sets to default</span> -<a name="l00122"></a>00122 { -<a name="l00123"></a>00123 } -<a name="l00124"></a>00124 -<a name="l00125"></a><a class="code" href="group__cooking.html#g3efcaf703b329270eed5b0890b0c5304">00125</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__cooking.html#g3efcaf703b329270eed5b0890b0c5304" title="(re)sets the structure to the default.">PxClothMeshDesc::setToDefault</a>() -<a name="l00126"></a>00126 { -<a name="l00127"></a>00127 *<span class="keyword">this</span> = <a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65" title="constructor sets to default.">PxClothMeshDesc</a>(); -<a name="l00128"></a>00128 } -<a name="l00129"></a>00129 -<a name="l00130"></a><a class="code" href="group__cooking.html#g4bc3ea34b81c2881eba7060d5e74c5d8">00130</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__cooking.html#g4bc3ea34b81c2881eba7060d5e74c5d8" title="Returns true if the descriptor is valid.">PxClothMeshDesc::isValid</a>()<span class="keyword"> const</span> -<a name="l00131"></a>00131 <span class="keyword"></span>{ -<a name="l00132"></a>00132 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> < 3) <span class="comment">//at least 1 trig's worth of points</span> -<a name="l00133"></a>00133 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00134"></a>00134 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> > 0xffff && <a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175" title="Flags bits, combined from values of the enum PxMeshFlag.">flags</a> & <a class="code" href="structPxMeshFlag.html#62a41b4a381e3e59d85181a62b9ce0ccd01b868a85f89466d6a81b36de1850a6" title="Denotes the use of 16-bit vertex indices.">PxMeshFlag::e16_BIT_INDICES</a>) +<a name="l00053"></a><a class="code" href="classPxClothMeshDesc.html">00053</a> <span class="keyword">class </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="classPxClothMeshDesc.html" title="Descriptor class for a cloth mesh.">PxClothMeshDesc</a> +<a name="l00054"></a>00054 { +<a name="l00055"></a>00055 <span class="keyword">public</span>: +<a name="l00056"></a>00056 +<a name="l00060"></a><a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5">00060</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> points; +<a name="l00061"></a>00061 +<a name="l00069"></a><a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f">00069</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> invMasses; +<a name="l00070"></a>00070 +<a name="l00085"></a><a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38">00085</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> triangles; +<a name="l00086"></a>00086 +<a name="l00101"></a><a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc">00101</a> <a class="code" href="structPxBoundedData.html">PxBoundedData</a> quads; +<a name="l00102"></a>00102 +<a name="l00106"></a><a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175">00106</a> <a class="code" href="classPxFlags.html">PxMeshFlags</a> flags; +<a name="l00107"></a>00107 +<a name="l00111"></a>00111 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxClothMeshDesc.html" title="Descriptor class for a cloth mesh.">PxClothMeshDesc</a>(); +<a name="l00115"></a>00115 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> setToDefault(); +<a name="l00120"></a>00120 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>; +<a name="l00121"></a>00121 }; +<a name="l00122"></a>00122 +<a name="l00123"></a><a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65">00123</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65" title="constructor sets to default.">PxClothMeshDesc::PxClothMeshDesc</a>() <span class="comment">//constructor sets to default</span> +<a name="l00124"></a>00124 { +<a name="l00125"></a>00125 } +<a name="l00126"></a>00126 +<a name="l00127"></a><a class="code" href="group__cooking.html#g3efcaf703b329270eed5b0890b0c5304">00127</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="group__cooking.html#g3efcaf703b329270eed5b0890b0c5304" title="(re)sets the structure to the default.">PxClothMeshDesc::setToDefault</a>() +<a name="l00128"></a>00128 { +<a name="l00129"></a>00129 *<span class="keyword">this</span> = <a class="code" href="group__cooking.html#g5f214c974f4031e62cfed89231ee1d65" title="constructor sets to default.">PxClothMeshDesc</a>(); +<a name="l00130"></a>00130 } +<a name="l00131"></a>00131 +<a name="l00132"></a><a class="code" href="group__cooking.html#g4bc3ea34b81c2881eba7060d5e74c5d8">00132</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__cooking.html#g4bc3ea34b81c2881eba7060d5e74c5d8" title="Returns true if the descriptor is valid.">PxClothMeshDesc::isValid</a>()<span class="keyword"> const</span> +<a name="l00133"></a>00133 <span class="keyword"></span>{ +<a name="l00134"></a>00134 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> < 3) <span class="comment">//at least 1 trig's worth of points</span> <a name="l00135"></a>00135 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00136"></a>00136 <span class="keywordflow">if</span>(!<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) +<a name="l00136"></a>00136 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> > 0xffff && <a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175" title="Flags bits, combined from values of the enum PxMeshFlag.">flags</a> & <a class="code" href="structPxMeshFlag.html#62a41b4a381e3e59d85181a62b9ce0ccd01b868a85f89466d6a81b36de1850a6" title="Denotes the use of 16-bit vertex indices.">PxMeshFlag::e16_BIT_INDICES</a>) <a name="l00137"></a>00137 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00138"></a>00138 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < <span class="keyword">sizeof</span>(<a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>)) <span class="comment">//should be at least one point's worth of data</span> +<a name="l00138"></a>00138 <span class="keywordflow">if</span>(!<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) <a name="l00139"></a>00139 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00140"></a>00140 -<a name="l00141"></a>00141 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a> && <a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)) -<a name="l00142"></a>00142 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00143"></a>00143 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a> && <a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> != <a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a>) +<a name="l00140"></a>00140 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < <span class="keyword">sizeof</span>(<a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a>)) <span class="comment">//should be at least one point's worth of data</span> +<a name="l00141"></a>00141 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00142"></a>00142 +<a name="l00143"></a>00143 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a> && <a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < <span class="keyword">sizeof</span>(<span class="keywordtype">float</span>)) <a name="l00144"></a>00144 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00145"></a>00145 -<a name="l00146"></a>00146 <span class="keywordflow">if</span> (!<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a>) <span class="comment">// no support for non-indexed mesh</span> -<a name="l00147"></a>00147 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00148"></a>00148 <span class="keywordflow">if</span> (<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) +<a name="l00145"></a>00145 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a> && <a class="code" href="classPxClothMeshDesc.html#a15883aaa6799795a3874d7fd6dbd53f" title="Determines whether particle is simulated or static. A positive value denotes that...">invMasses</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> != <a class="code" href="classPxClothMeshDesc.html#65c16be9e39e0f401db24fb4383f1ae5" title="Pointer to first vertex point.">points</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a>) +<a name="l00146"></a>00146 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00147"></a>00147 +<a name="l00148"></a>00148 <span class="keywordflow">if</span> (!<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a>) <span class="comment">// no support for non-indexed mesh</span> <a name="l00149"></a>00149 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00150"></a>00150 <span class="keywordflow">if</span> (<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) +<a name="l00150"></a>00150 <span class="keywordflow">if</span> (<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) <a name="l00151"></a>00151 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00152"></a>00152 -<a name="l00153"></a>00153 <a class="code" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> indexSize = (<a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175" title="Flags bits, combined from values of the enum PxMeshFlag.">flags</a> & PxMeshFlag::e16_BIT_INDICES) ? <span class="keyword">sizeof</span>(<a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>) : <span class="keyword">sizeof</span>(<a class="code" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>); -<a name="l00154"></a>00154 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && <a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < indexSize*3) -<a name="l00155"></a>00155 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00156"></a>00156 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && <a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < indexSize*4) -<a name="l00157"></a>00157 <span class="keywordflow">return</span> <span class="keyword">false</span>; -<a name="l00158"></a>00158 -<a name="l00159"></a>00159 <span class="keywordflow">return</span> <span class="keyword">true</span>; -<a name="l00160"></a>00160 } -<a name="l00161"></a>00161 -<a name="l00162"></a>00162 <span class="preprocessor">#if !PX_DOXYGEN</span> -<a name="l00163"></a>00163 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span> -<a name="l00164"></a>00164 <span class="preprocessor">#endif</span> -<a name="l00165"></a>00165 <span class="preprocessor"></span> -<a name="l00167"></a>00167 <span class="preprocessor">#endif</span> +<a name="l00152"></a>00152 <span class="keywordflow">if</span> (<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && !<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxStridedData.html#d98a9e00d44b1c2c48c6dec114693f18">data</a>) +<a name="l00153"></a>00153 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00154"></a>00154 +<a name="l00155"></a>00155 <a class="code" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> indexSize = (<a class="code" href="classPxClothMeshDesc.html#952a2399574b931bc5b1d09c66793175" title="Flags bits, combined from values of the enum PxMeshFlag.">flags</a> & PxMeshFlag::e16_BIT_INDICES) ? <span class="keyword">sizeof</span>(<a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a>) : <span class="keyword">sizeof</span>(<a class="code" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a>); +<a name="l00156"></a>00156 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && <a class="code" href="classPxClothMeshDesc.html#b3755b0da7fee6b3f5a2b9eb85001d38" title="Pointer to the first triangle.">triangles</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < indexSize*3) +<a name="l00157"></a>00157 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00158"></a>00158 <span class="keywordflow">if</span>(<a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxBoundedData.html#99f022ab9aad0f98028254c1f433165f">count</a> && <a class="code" href="classPxClothMeshDesc.html#8e78b80402ca808413f2ee658ba332dc" title="Pointer to the first quad.">quads</a>.<a class="code" href="structPxStridedData.html#abf495b4b5caec8f5350645a49e68fb3" title="The offset in bytes between consecutive samples in the data.">stride</a> < indexSize*4) +<a name="l00159"></a>00159 <span class="keywordflow">return</span> <span class="keyword">false</span>; +<a name="l00160"></a>00160 +<a name="l00161"></a>00161 <span class="keywordflow">return</span> <span class="keyword">true</span>; +<a name="l00162"></a>00162 } +<a name="l00163"></a>00163 +<a name="l00164"></a>00164 <span class="preprocessor">#if !PX_DOXYGEN</span> +<a name="l00165"></a>00165 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span> +<a name="l00166"></a>00166 <span class="preprocessor">#endif</span> +<a name="l00167"></a>00167 <span class="preprocessor"></span> +<a name="l00169"></a>00169 <span class="preprocessor">#endif</span> </pre></div></div> <hr style="width: 100%; height: 2px;"><br> |