From 3dfe2108cfab31ba3ee5527e217d0d8e99a51162 Mon Sep 17 00:00:00 2001 From: git perforce import user Date: Tue, 25 Oct 2016 12:29:14 -0600 Subject: Initial commit: PhysX 3.4.0 Update @ 21294896 APEX 1.4.0 Update @ 21275617 [CL 21300167] --- .../files/classPxClothSimpleTetherCooker.html | 144 +++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 PhysX_3.4/Documentation/PhysXAPI/files/classPxClothSimpleTetherCooker.html (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/classPxClothSimpleTetherCooker.html') diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/classPxClothSimpleTetherCooker.html b/PhysX_3.4/Documentation/PhysXAPI/files/classPxClothSimpleTetherCooker.html new file mode 100644 index 00000000..730907b0 --- /dev/null +++ b/PhysX_3.4/Documentation/PhysXAPI/files/classPxClothSimpleTetherCooker.html @@ -0,0 +1,144 @@ + + + NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxClothSimpleTetherCooker Class Reference + + + + + + + +
+

PxClothSimpleTetherCooker Class Reference

#include <PxClothTetherCooker.h> +

+ +

+List of all members. + + + + + + + + + + + + + +

Public Member Functions

 PxClothSimpleTetherCooker (const PxClothMeshDesc &desc)
 Compute tether data from PxClothMeshDesc with simple distance measure.
 ~PxClothSimpleTetherCooker ()
void getTetherData (PxU32 *userTetherAnchors, PxReal *userTetherLengths) const
 Returns computed tether data.

Private Attributes

PxClothSimpleTetherCookerImpl * mImpl
+


Constructor & Destructor Documentation

+ +
+
+ + + + + + + + + +
PxClothSimpleTetherCooker::PxClothSimpleTetherCooker (const PxClothMeshDesc desc  ) 
+
+
+ +

+Compute tether data from PxClothMeshDesc with simple distance measure. +

+The tether constraint in PxCloth requires rest distance and anchor index to be precomputed during cooking time. This cooker computes a simple Euclidean distance to closest anchor point. The Euclidean distance measure works reasonably for flat cloth and flags and computation time is very fast. With this cooker, there is only one tether anchor point per particle.

See also:
PxClothTetherGeodesicCooker for more accurate distance estimation.
+
Parameters:
+ + +
desc The cloth mesh descriptor prepared for cooking
+
+ +
+

+ +

+
+ + + + + + + + +
PxClothSimpleTetherCooker::~PxClothSimpleTetherCooker (  ) 
+
+
+ +

+ +

+

+


Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
void PxClothSimpleTetherCooker::getTetherData (PxU32 userTetherAnchors,
PxReal *  userTetherLengths 
) const
+
+
+ +

+Returns computed tether data. +

+This function returns anchor indices for each particle as well as desired distance between the tether anchor and the particle. The user buffers should be at least as large as number of particles. +

+

+


Member Data Documentation

+ +
+
+ + + + +
PxClothSimpleTetherCookerImpl* PxClothSimpleTetherCooker::mImpl [private]
+
+
+ +

+ +

+

+


The documentation for this class was generated from the following file: +
+ +

+Copyright © 2008-2016 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com + + -- cgit v1.2.3