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] --- .../PhysXAPI/files/classPxTriangleMeshDesc.html | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 PhysX_3.4/Documentation/PhysXAPI/files/classPxTriangleMeshDesc.html (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/classPxTriangleMeshDesc.html') diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/classPxTriangleMeshDesc.html b/PhysX_3.4/Documentation/PhysXAPI/files/classPxTriangleMeshDesc.html new file mode 100644 index 00000000..9a3c2a37 --- /dev/null +++ b/PhysX_3.4/Documentation/PhysXAPI/files/classPxTriangleMeshDesc.html @@ -0,0 +1,98 @@ + + + NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxTriangleMeshDesc Class Reference + + + + + + + +
+

PxTriangleMeshDesc Class Reference
+ +[Cooking] +

Descriptor class for PxTriangleMesh. +More... +

+#include <PxTriangleMeshDesc.h> +

+

+Inheritance diagram for PxTriangleMeshDesc:
+
+

Inheritance graph
+ +PxSimpleTriangleMesh +
[legend]
+
+Collaboration diagram for PxTriangleMeshDesc:
+
+

Collaboration graph
+ +PxSimpleTriangleMeshPxFlags\< PxMeshFlag::Enum, PxU16 \>PxBoundedDataPxStridedDataPxTypedStridedData\< PxMaterialTableIndex \> +
[legend]
+ +

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

Public Member Functions

PX_INLINE PxTriangleMeshDesc ()
 Constructor sets to default.
PX_INLINE void setToDefault ()
 (re)sets the structure to the default.
PX_INLINE bool isValid () const
 Returns true if the descriptor is valid.

Public Attributes

PxTypedStridedData
+< PxMaterialTableIndex
materialIndices
+


Detailed Description

+Descriptor class for PxTriangleMesh. +

+Note that this class is derived from PxSimpleTriangleMesh which contains the members that describe the basic mesh. The mesh data is *copied* when an PxTriangleMesh object is created from this descriptor. After the call the user may discard the triangle data.

+

See also:
PxTriangleMesh PxTriangleMeshGeometry PxShape
+

Member Data Documentation

+ +
+ +
+ +

+Optional pointer to first material index, or NULL. There are PxSimpleTriangleMesh::numTriangles indices in total. Caller may add materialIndexStride bytes to the pointer to access the next triangle.

+When a triangle mesh collides with another object, a material is required at the collision point. If materialIndices is NULL, then the material of the PxShape instance is used. Otherwise, if the point of contact is on a triangle with index i, then the material index is determined as: PxMaterialTableIndex index = *(PxMaterialTableIndex *)(((PxU8*)materialIndices) + materialIndexStride * i);

+If the contact point falls on a vertex or an edge, a triangle adjacent to the vertex or edge is selected, and its index used to look up a material. The selection is arbitrary but consistent over time.

+Default: NULL

+

See also:
materialIndexStride
+ +

Referenced by isValid().

+ +
+

+


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