29#ifndef GU_COOKING_VOLUME_INTEGRATION_H
30#define GU_COOKING_VOLUME_INTEGRATION_H
35#include "foundation/Px.h"
36#include "foundation/PxVec3.h"
37#include "foundation/PxMat33.h"
41class PxSimpleTriangleMesh;
42class PxConvexMeshDesc;
61 for(PxU32 j=0;j<3;j++)
63 for(PxU32 i=0;i<3;i++)
77 for(PxU32 j=0;j<3;j++)
79 for(PxU32 i=0;i<3;i++)
87 bool computeVolumeIntegrals(
const PxSimpleTriangleMesh& mesh, PxReal density, PxIntegrals& integrals);
90 bool computeVolumeIntegralsEberly(
const PxConvexMeshDesc& mesh, PxReal density, PxIntegrals& integrals,
const PxVec3& origin,
bool useSimd);
3x3 matrix class
Definition PxMat33.h:91
3 Element vector class.
Definition PxVec3.h:50
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Data structure used to store mass properties.
Definition GuCookingVolumeIntegration.h:48
PxF64 inertiaTensor[3][3]
Inertia tensor (mass matrix) relative to the origin.
Definition GuCookingVolumeIntegration.h:51
PxF64 COMInertiaTensor[3][3]
Inertia tensor (mass matrix) relative to the COM.
Definition GuCookingVolumeIntegration.h:52
PxF64 mass
Total mass.
Definition GuCookingVolumeIntegration.h:50
void getInertia(PxMat33 &inertia)
Retrieve the inertia tensor relative to the center of mass.
Definition GuCookingVolumeIntegration.h:59
void getOriginInertia(PxMat33 &inertia)
Retrieve the inertia tensor relative to the origin.
Definition GuCookingVolumeIntegration.h:75
PxVec3 COM
Center of mass.
Definition GuCookingVolumeIntegration.h:49