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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxClothFabric Class Reference</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 -->
<div class="contents">
<h1>PxClothFabric Class Reference<br>
<small>
[<a class="el" href="group__cloth.html">cloth (deprecated)</a>]</small>
</h1><!-- doxytag: class="PxClothFabric" --><!-- doxytag: inherits="PxBase" -->A cloth fabric is a structure that contains all the internal solver constraints of a cloth mesh.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxClothFabric_8h-source.html">PxClothFabric.h</a>></code>
<p>
<div class="dynheader">
Inheritance diagram for PxClothFabric:</div>
<div class="dynsection">
<p><center><img src="classPxClothFabric__inherit__graph.png" border="0" usemap="#PxClothFabric__inherit__map" alt="Inheritance graph"></center>
<map name="PxClothFabric__inherit__map">
<area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="23,16,79,37"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<div class="dynheader">
Collaboration diagram for PxClothFabric:</div>
<div class="dynsection">
<p><center><img src="classPxClothFabric__coll__graph.png" border="0" usemap="#PxClothFabric__coll__map" alt="Collaboration graph"></center>
<map name="PxClothFabric__coll__map">
<area shape="rect" href="classPxBase.html" title="Base class for objects that can be members of a PxCollection." alt="PxBase" coords="97,106,153,128"><area shape="rect" href="classPxFlags.html" title="PxFlags\< PxBaseFlag::Enum, PxU16 \>" alt="PxFlags\< PxBaseFlag::Enum, PxU16 \>" coords="7,16,244,37"></map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classPxClothFabric-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#7e8a7516cc7cb1777c790bc82cab2eac">release</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Decrements the cloth fabric's reference count, and releases it if the new reference count is zero. <a href="#7e8a7516cc7cb1777c790bc82cab2eac"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#441e4b99664bdfe22fc6d25f9d0439de">getNbParticles</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns number of particles. <a href="#441e4b99664bdfe22fc6d25f9d0439de"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#9daea96052a76964c2abf9a6af11cd56">getNbPhases</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns number of phases. <a href="#9daea96052a76964c2abf9a6af11cd56"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#e087a3ff38ef40785f869f590c1e3800">getNbRestvalues</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns number of rest values. <a href="#e087a3ff38ef40785f869f590c1e3800"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#de41283cadbec5647b02ca63c798f469">getNbSets</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns number of sets. <a href="#de41283cadbec5647b02ca63c798f469"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#df154f8b203da1e1147d676ce62f0c14">getNbParticleIndices</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get number of particle indices. <a href="#df154f8b203da1e1147d676ce62f0c14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f">getNbTethers</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get number of tether constraints. <a href="#edfc6788bd1efead9bf6eb40733e566f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#9f9bcc2229fc09f89f5c4819dbbd6d33">getPhases</a> (<a class="el" href="structPxClothFabricPhase.html">PxClothFabricPhase</a> *userPhaseBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the phase array to a user specified buffer. <a href="#9f9bcc2229fc09f89f5c4819dbbd6d33"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#f45bfae66b62c892245fac4dbc099f71">getSets</a> (<a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> *userSetBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the set array to a user specified buffer. <a href="#f45bfae66b62c892245fac4dbc099f71"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#085f09b26d28b5d071fc3476fb76753e">getParticleIndices</a> (<a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> *userParticleIndexBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the particle indices array to a user specified buffer. <a href="#085f09b26d28b5d071fc3476fb76753e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#fb53563992c3181c6f2b6c826deea2b0">getRestvalues</a> (PxReal *userRestvalueBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the rest values array to a user specified buffer. <a href="#fb53563992c3181c6f2b6c826deea2b0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#868c8ede0e185dbf6bff4ca17fec4a8a">getTetherAnchors</a> (<a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> *userAnchorBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the tether anchors array to a user specified buffer. <a href="#868c8ede0e185dbf6bff4ca17fec4a8a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#8dde7c6c2105602237ded25f44c4eeee">getTetherLengths</a> (PxReal *userLengthBuffer, <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> bufferSize) const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Copies the tether lengths array to a user specified buffer. <a href="#8dde7c6c2105602237ded25f44c4eeee"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#56084286b66bf374e3fe37fbd097a83b">scaleRestlengths</a> (PxReal scale)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Scale all rest values of length dependent constraints. <a href="#56084286b66bf374e3fe37fbd097a83b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#63cecd759a2d741c895371dc8d97db85">getReferenceCount</a> () const =0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reference count of the cloth instance. <a href="#63cecd759a2d741c895371dc8d97db85"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#247caa708dca4651233cb6d48dfdc694">acquireReference</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Acquires a counted reference to a cloth fabric. <a href="#247caa708dca4651233cb6d48dfdc694"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#c20c77d7608c6834056d8e5ae16f87e9">getConcreteTypeName</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns string name of dynamic type. <a href="#c20c77d7608c6834056d8e5ae16f87e9"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#57fdb4cae7066205298f234ff7e5c15d">PxClothFabric</a> (<a class="el" href="group__common.html#gc1fb4b256a5d900d394e89db170a2b79">PxType</a> concreteType, <a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">PX_INLINE </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#f9f72afdafef5a2bd195448e9a4dc79d">PxClothFabric</a> (<a class="el" href="classPxFlags.html">PxBaseFlags</a> baseFlags)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#01d4cf1d83d8e959bb2fe918857e2470">~PxClothFabric</a> ()</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classPxClothFabric.html#be572798a8088bf4712bc9dc9a65001f">isKindOf</a> (const char *name) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether a given type name matches with the type of this instance. <a href="#be572798a8088bf4712bc9dc9a65001f"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A cloth fabric is a structure that contains all the internal solver constraints of a cloth mesh.
<p>
A fabric consists of <code>phases</code> that represent a group of internal constraints of the same type. Each phase references an array of <code>rest-values</code> and a <code>set</code> of particle indices. The data representation for the fabric has layers of indirect indices: <ul>
<li>All particle indices for the constraints of the fabric are stored in one linear array and referenced by the sets. </li>
<li>Each constraint (particle index pair) has one entry in the restvalues array. </li>
<li>The set array holds the prefix sum of the number of constraints per set and is referenced by the phases. </li>
<li>A phase consists of the type of constraints, the index of the set referencing the indices.</li>
</ul>
Additionally, a fabric also stores the data for the tether constraints, which limit the distances between two particles. The tether constraints are stored in an array, and the index of a constraint determines which particle is affected: element i affects particle iN, where N is the number of particles. The tether anchor is the index of the other particle, and the tether length is the maximum distance that these two particles are allowed to be away from each other. A tether constraint is momentum conserving if the anchor particle has infinite mass (zero inverse weight).<p>
<dl compact><dt><b><a class="el" href="deprecated.html#_deprecated000066">Deprecated:</a></b></dt><dd>The PhysX cloth feature has been deprecated in PhysX version 3.4.1</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd>The fabric structure can be created from a mesh using <a class="el" href="group__extensions.html#gf39f6f4f4aa2bdadc81159d28a648c20" title="Cooks a triangle mesh to a PxClothFabric.">PxClothFabricCreate</a>. Alternatively, the fabric data can be saved into a stream (see <a class="el" href="classPxClothFabricCooker.html#6d9657cf26e9eece0d0fe66dfaf5f12a" title="Saves the fabric data to a platform and version dependent stream.">PxClothFabricCooker.save()</a>) and later created from the stream using <a class="el" href="classPxPhysics.html#aff72c208eb0bb4faa418c1f258707d9" title="Creates a cloth fabric object.">PxPhysics.createClothFabric(PxInputStream&)</a>. </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="57fdb4cae7066205298f234ff7e5c15d"></a><!-- doxytag: member="PxClothFabric::PxClothFabric" ref="57fdb4cae7066205298f234ff7e5c15d" args="(PxType concreteType, PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxClothFabric::PxClothFabric </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__common.html#gc1fb4b256a5d900d394e89db170a2b79">PxType</a> </td>
<td class="paramname"> <em>concreteType</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a> </td>
<td class="paramname"> <em>baseFlags</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="f9f72afdafef5a2bd195448e9a4dc79d"></a><!-- doxytag: member="PxClothFabric::PxClothFabric" ref="f9f72afdafef5a2bd195448e9a4dc79d" args="(PxBaseFlags baseFlags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">PX_INLINE PxClothFabric::PxClothFabric </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classPxFlags.html">PxBaseFlags</a> </td>
<td class="paramname"> <em>baseFlags</em> </td>
<td> ) </td>
<td><code> [inline, protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="01d4cf1d83d8e959bb2fe918857e2470"></a><!-- doxytag: member="PxClothFabric::~PxClothFabric" ref="01d4cf1d83d8e959bb2fe918857e2470" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual PxClothFabric::~PxClothFabric </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="247caa708dca4651233cb6d48dfdc694"></a><!-- doxytag: member="PxClothFabric::acquireReference" ref="247caa708dca4651233cb6d48dfdc694" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxClothFabric::acquireReference </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Acquires a counted reference to a cloth fabric.
<p>
This method increases the reference count of the cloth fabric by 1. Decrement the reference count by calling <a class="el" href="classPxClothFabric.html#7e8a7516cc7cb1777c790bc82cab2eac" title="Decrements the cloth fabric's reference count, and releases it if the new reference...">release()</a>
</div>
</div><p>
<a class="anchor" name="c20c77d7608c6834056d8e5ae16f87e9"></a><!-- doxytag: member="PxClothFabric::getConcreteTypeName" ref="c20c77d7608c6834056d8e5ae16f87e9" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual const char* PxClothFabric::getConcreteTypeName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns string name of dynamic type.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>Class name of most derived type of this object. </dd></dl>
<p>Implements <a class="el" href="classPxBase.html#67fe206d8897ddce896c371ac8d789a9">PxBase</a>.</p>
</div>
</div><p>
<a class="anchor" name="df154f8b203da1e1147d676ce62f0c14"></a><!-- doxytag: member="PxClothFabric::getNbParticleIndices" ref="df154f8b203da1e1147d676ce62f0c14" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbParticleIndices </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get number of particle indices.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The size of the particle indices array. </dd></dl>
</div>
</div><p>
<a class="anchor" name="441e4b99664bdfe22fc6d25f9d0439de"></a><!-- doxytag: member="PxClothFabric::getNbParticles" ref="441e4b99664bdfe22fc6d25f9d0439de" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbParticles </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns number of particles.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of particles needed when creating a <a class="el" href="classPxCloth.html" title="Set of connected particles tailored towards simulating character cloth.">PxCloth</a> instance from the fabric. </dd></dl>
</div>
</div><p>
<a class="anchor" name="9daea96052a76964c2abf9a6af11cd56"></a><!-- doxytag: member="PxClothFabric::getNbPhases" ref="9daea96052a76964c2abf9a6af11cd56" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbPhases </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns number of phases.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The number of solver phases. </dd></dl>
</div>
</div><p>
<a class="anchor" name="e087a3ff38ef40785f869f590c1e3800"></a><!-- doxytag: member="PxClothFabric::getNbRestvalues" ref="e087a3ff38ef40785f869f590c1e3800" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbRestvalues </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns number of rest values.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The size of the rest values array. </dd></dl>
</div>
</div><p>
<a class="anchor" name="de41283cadbec5647b02ca63c798f469"></a><!-- doxytag: member="PxClothFabric::getNbSets" ref="de41283cadbec5647b02ca63c798f469" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbSets </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns number of sets.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The size of the set array. </dd></dl>
</div>
</div><p>
<a class="anchor" name="edfc6788bd1efead9bf6eb40733e566f"></a><!-- doxytag: member="PxClothFabric::getNbTethers" ref="edfc6788bd1efead9bf6eb40733e566f" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getNbTethers </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get number of tether constraints.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The size of the tether anchors and lengths arrays. </dd></dl>
</div>
</div><p>
<a class="anchor" name="085f09b26d28b5d071fc3476fb76753e"></a><!-- doxytag: member="PxClothFabric::getParticleIndices" ref="085f09b26d28b5d071fc3476fb76753e" args="(PxU32 *userParticleIndexBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getParticleIndices </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> * </td>
<td class="paramname"> <em>userParticleIndexBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the particle indices array to a user specified buffer.
<p>
The particle indices array determines which particles are affected by each constraint. It has the same length as <a class="el" href="classPxClothFabric.html#df154f8b203da1e1147d676ce62f0c14" title="Get number of particle indices.">getNbParticleIndices()</a> and twice the number of constraints. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userParticleIndexBuffer</em> </td><td>Destination buffer to copy the set data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userParticleIndexBuffer, should be at least <a class="el" href="classPxClothFabric.html#df154f8b203da1e1147d676ce62f0c14" title="Get number of particle indices.">getNbParticleIndices()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#df154f8b203da1e1147d676ce62f0c14" title="Get number of particle indices.">getNbParticleIndices()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This function is potentially slow. Consider caching the (static) result instead of retrieving it multiple times. </dd></dl>
</div>
</div><p>
<a class="anchor" name="9f9bcc2229fc09f89f5c4819dbbd6d33"></a><!-- doxytag: member="PxClothFabric::getPhases" ref="9f9bcc2229fc09f89f5c4819dbbd6d33" args="(PxClothFabricPhase *userPhaseBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getPhases </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structPxClothFabricPhase.html">PxClothFabricPhase</a> * </td>
<td class="paramname"> <em>userPhaseBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the phase array to a user specified buffer.
<p>
The phase array is a mapping of the phase index to the corresponding phase. The array has the same length as <a class="el" href="classPxClothFabric.html#9daea96052a76964c2abf9a6af11cd56" title="Returns number of phases.">getNbPhases()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userPhaseBuffer</em> </td><td>Destination buffer to copy the phase data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userPhaseBuffer, should be at least <a class="el" href="classPxClothFabric.html#9daea96052a76964c2abf9a6af11cd56" title="Returns number of phases.">getNbPhases()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#9daea96052a76964c2abf9a6af11cd56" title="Returns number of phases.">getNbPhases()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This function is potentially slow. Consider caching the (static) result instead of retrieving it multiple times. </dd></dl>
</div>
</div><p>
<a class="anchor" name="63cecd759a2d741c895371dc8d97db85"></a><!-- doxytag: member="PxClothFabric::getReferenceCount" ref="63cecd759a2d741c895371dc8d97db85" args="() const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getReferenceCount </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Reference count of the cloth instance.
<p>
At creation, the reference count of the fabric is 1. Every cloth instance referencing this fabric increments the count by 1. When the reference count reaches 0, and only then, the fabric gets released automatically. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxCloth.html" title="Set of connected particles tailored towards simulating character cloth.">PxCloth</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="fb53563992c3181c6f2b6c826deea2b0"></a><!-- doxytag: member="PxClothFabric::getRestvalues" ref="fb53563992c3181c6f2b6c826deea2b0" args="(PxReal *userRestvalueBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getRestvalues </td>
<td>(</td>
<td class="paramtype">PxReal * </td>
<td class="paramname"> <em>userRestvalueBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the rest values array to a user specified buffer.
<p>
The rest values array holds the target value of the constraint in rest state, for example edge length for stretch constraints. It stores one value per constraint, so its length is half of <a class="el" href="classPxClothFabric.html#df154f8b203da1e1147d676ce62f0c14" title="Get number of particle indices.">getNbParticleIndices()</a>, and it has the same length as <a class="el" href="classPxClothFabric.html#e087a3ff38ef40785f869f590c1e3800" title="Returns number of rest values.">getNbRestvalues()</a>. The rest-values are stored in the order they are (indirectly) referenced by the phases. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userRestvalueBuffer</em> </td><td>Destination buffer to copy the set data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userRestvalueBuffer, should be at least <a class="el" href="classPxClothFabric.html#e087a3ff38ef40785f869f590c1e3800" title="Returns number of rest values.">getNbRestvalues()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#e087a3ff38ef40785f869f590c1e3800" title="Returns number of rest values.">getNbRestvalues()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This function is potentially slow. Between calling <a class="el" href="classPxClothFabric.html#56084286b66bf374e3fe37fbd097a83b" title="Scale all rest values of length dependent constraints.">scaleRestlengths()</a>, consider caching the result instead of retrieving it multiple times. </dd></dl>
</div>
</div><p>
<a class="anchor" name="f45bfae66b62c892245fac4dbc099f71"></a><!-- doxytag: member="PxClothFabric::getSets" ref="f45bfae66b62c892245fac4dbc099f71" args="(PxU32 *userSetBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getSets </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> * </td>
<td class="paramname"> <em>userSetBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the set array to a user specified buffer.
<p>
The set array is the inclusive prefix sum of the number of constraints per set. It has the same length as <a class="el" href="classPxClothFabric.html#de41283cadbec5647b02ca63c798f469" title="Returns number of sets.">getNbSets()</a>. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userSetBuffer</em> </td><td>Destination buffer to copy the set data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userSetBuffer, should be at least <a class="el" href="classPxClothFabric.html#de41283cadbec5647b02ca63c798f469" title="Returns number of sets.">getNbSets()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#de41283cadbec5647b02ca63c798f469" title="Returns number of sets.">getNbSets()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Indices of the i-th set are stored at indices [i?2*set[i-1]:0, 2*set[i]) in the indices array. <p>
This function is potentially slow. Consider caching the (static) result instead of retrieving it multiple times. </dd></dl>
</div>
</div><p>
<a class="anchor" name="868c8ede0e185dbf6bff4ca17fec4a8a"></a><!-- doxytag: member="PxClothFabric::getTetherAnchors" ref="868c8ede0e185dbf6bff4ca17fec4a8a" args="(PxU32 *userAnchorBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getTetherAnchors </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> * </td>
<td class="paramname"> <em>userAnchorBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the tether anchors array to a user specified buffer.
<p>
The tether anchors array stores for each particle the index of another particle from which it cannot move further away than specified by the tether lengths array. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userAnchorBuffer</em> </td><td>Destination buffer to copy the set data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userAnchorBuffer, should be at least <a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This function is potentially slow, consider caching the result instead of retrieving the data multiple times. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxClothFabric.html#8dde7c6c2105602237ded25f44c4eeee" title="Copies the tether lengths array to a user specified buffer.">getTetherLengths</a>, <a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="8dde7c6c2105602237ded25f44c4eeee"></a><!-- doxytag: member="PxClothFabric::getTetherLengths" ref="8dde7c6c2105602237ded25f44c4eeee" args="(PxReal *userLengthBuffer, PxU32 bufferSize) const =0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> PxClothFabric::getTetherLengths </td>
<td>(</td>
<td class="paramtype">PxReal * </td>
<td class="paramname"> <em>userLengthBuffer</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group__foundation.html#gcce5749db3dcfb916e98c253374264ed">PxU32</a> </td>
<td class="paramname"> <em>bufferSize</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Copies the tether lengths array to a user specified buffer.
<p>
The tether lengths array stores for each particle how far it is allowed to move away from the particle specified by the tether anchor array. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userLengthBuffer</em> </td><td>Destination buffer to copy the set data to. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>bufferSize</em> </td><td>Size of userLengthBuffer, should be at least <a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers()</a>. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers()</a> if the copy was successful, 0 otherwise. </dd></dl>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This function is potentially slow. Between calling <a class="el" href="classPxClothFabric.html#56084286b66bf374e3fe37fbd097a83b" title="Scale all rest values of length dependent constraints.">scaleRestlengths()</a>, consider caching the result instead of retrieving it multiple times. </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxClothFabric.html#868c8ede0e185dbf6bff4ca17fec4a8a" title="Copies the tether anchors array to a user specified buffer.">getTetherAnchors</a>, <a class="el" href="classPxClothFabric.html#edfc6788bd1efead9bf6eb40733e566f" title="Get number of tether constraints.">getNbTethers</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="be572798a8088bf4712bc9dc9a65001f"></a><!-- doxytag: member="PxClothFabric::isKindOf" ref="be572798a8088bf4712bc9dc9a65001f" args="(const char *name) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool PxClothFabric::isKindOf </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>superClass</em> </td>
<td> ) </td>
<td> const<code> [inline, protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns whether a given type name matches with the type of this instance.
<p>
<p>Reimplemented from <a class="el" href="classPxBase.html#ae9d444c7cfd1715a101350a1b1226ef">PxBase</a>.</p>
<p>References <a class="el" href="PxBase_8h-source.html#l00178">PxBase::isKindOf()</a>.</p>
</div>
</div><p>
<a class="anchor" name="7e8a7516cc7cb1777c790bc82cab2eac"></a><!-- doxytag: member="PxClothFabric::release" ref="7e8a7516cc7cb1777c790bc82cab2eac" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxClothFabric::release </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Decrements the cloth fabric's reference count, and releases it if the new reference count is zero.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxPhysics.html#aff72c208eb0bb4faa418c1f258707d9" title="Creates a cloth fabric object.">PxPhysics.createClothFabric()</a> </dd></dl>
<p>Implements <a class="el" href="classPxBase.html#fe6aedda1df0d6d29b1a28213a5ee25a">PxBase</a>.</p>
</div>
</div><p>
<a class="anchor" name="56084286b66bf374e3fe37fbd097a83b"></a><!-- doxytag: member="PxClothFabric::scaleRestlengths" ref="56084286b66bf374e3fe37fbd097a83b" args="(PxReal scale)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void PxClothFabric::scaleRestlengths </td>
<td>(</td>
<td class="paramtype">PxReal </td>
<td class="paramname"> <em>scale</em> </td>
<td> ) </td>
<td><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Scale all rest values of length dependent constraints.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>scale</em> </td><td>The scale factor to multiply each rest value with. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="PxClothFabric_8h-source.html">PxClothFabric.h</a></ul>
</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>
|