PhysX SDK 3.2 API Reference: PxConvexMeshGeometry Class Reference

PhysX SDK 3.2 API

PxConvexMeshGeometry Class Reference
[Geomutils]

Convex mesh geometry class. More...

#include <PxConvexMeshGeometry.h>

Inheritance diagram for PxConvexMeshGeometry:
Collaboration diagram for PxConvexMeshGeometry:

List of all members.


Public Member Functions

PX_INLINE PxConvexMeshGeometry ()
 Default constructor.
PX_INLINE PxConvexMeshGeometry (PxConvexMesh *mesh, const PxMeshScale &scaling=PxMeshScale())
 Constructor.
PX_INLINE bool isValid () const
 Returns true if the geometry is valid.

Public Attributes

PxMeshScale scale
 Scale factor that transforms from vertex space to shape space.
PxConvexMeshconvexMesh
 The mesh data in vertex space.

Detailed Description

Convex mesh geometry class.

This class unifies a convex mesh object with a scaling transform, and lets the combined object be used anywhere a PxGeometry is needed.

The scaling is a transform along arbitrary axes contained in the scale object. The vertices of the mesh in geometry (or shape) space is the PxMeshScale::toMat33() transform, multiplied by the vertex space vertices in the PxConvexMesh object.


Constructor & Destructor Documentation

PX_INLINE PxConvexMeshGeometry::PxConvexMeshGeometry (  )  [inline]

Default constructor.

Creates an empty object with a NULL mesh and identity scale.

PX_INLINE PxConvexMeshGeometry::PxConvexMeshGeometry ( PxConvexMesh mesh,
const PxMeshScale scaling = PxMeshScale() 
) [inline]

Constructor.

Parameters:
[in] mesh The Mesh pointer. May be NULL, though this will not make the object valid for shape construction.
[in] scaling The scale factor. \


Member Data Documentation

The mesh data in vertex space.

Referenced by isValid().

Scale factor that transforms from vertex space to shape space.

Referenced by isValid().


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



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