32#include "foundation/PxMemory.h"
33#include "cooking/PxCooking.h"
35#include "foundation/PxUserAllocated.h"
39class TriangleMeshBuilder;
40class TetrahedronMeshBuilder;
41class ConvexMeshBuilder;
43class PxInsertionCallback;
44struct PxTriangleMeshInternalData;
45struct PxBVHInternalData;
79 PxU32& nbIndices, PxU32*& indices, PxU32& nbPolygons,
PxHullPolygon*& hullPolygons)
const;
virtual PxTriangleMesh * createTriangleMesh(const PxTriangleMeshDesc &desc, PxInsertionCallback &insertionCallback, PxTriangleMeshCookingResult::Enum *condition=NULL) const
Cooks and creates a triangle mesh without going through a stream.
Definition Cooking.cpp:78
virtual PxBVH * createBVH(const PxBVHDesc &desc, PxInsertionCallback &insertionCallback) const
Cooks and creates a bounding volume hierarchy without going through a stream.
Definition Cooking.cpp:180
virtual PxConvexMesh * createConvexMesh(const PxConvexMeshDesc &desc, PxInsertionCallback &insertionCallback, PxConvexMeshCookingResult::Enum *condition) const
Cooks and creates a convex mesh without going through a stream.
Definition Cooking.cpp:145
virtual bool computeHullPolygons(const PxSimpleTriangleMesh &mesh, PxAllocatorCallback &inCallback, PxU32 &nbVerts, PxVec3 *&vertices, PxU32 &nbIndices, PxU32 *&indices, PxU32 &nbPolygons, PxHullPolygon *&hullPolygons) const
Computed hull polygons from given vertices and triangles. Polygons are needed for PxConvexMeshDesc ra...
Definition Cooking.cpp:155
virtual bool validateTriangleMesh(const PxTriangleMeshDesc &desc) const
Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found.
Definition Cooking.cpp:68
virtual bool cookSoftBodyMesh(const PxTetrahedronMeshDesc &simulationMeshDesc, const PxTetrahedronMeshDesc &collisionMeshDesc, const PxSoftBodySimulationDataDesc &softbodyDataDesc, PxOutputStream &stream) const
Cooks a softbody mesh. The results are written to the stream.
Definition Cooking.cpp:97
virtual PxCollisionTetrahedronMeshData * computeCollisionData(const PxTetrahedronMeshDesc &collisionMeshDesc) const
Computes data to accelerate collision detection of tetrahedral meshes.
Definition Cooking.cpp:108
virtual PxSimulationTetrahedronMeshData * computeSimulationData(const PxTetrahedronMeshDesc &simulationMeshDesc) const
Computes data to accelerate collision detection of tetrahedral meshes.
Definition Cooking.cpp:113
virtual bool validateConvexMesh(const PxConvexMeshDesc &desc) const
Verifies if the convex mesh is valid. Prints an error message for each inconsistency found.
Definition Cooking.cpp:150
virtual bool cookTriangleMesh(const PxTriangleMeshDesc &desc, PxOutputStream &stream, PxTriangleMeshCookingResult::Enum *condition=NULL) const
Cooks a triangle mesh. The results are written to the stream.
Definition Cooking.cpp:73
virtual PxHeightField * createHeightField(const PxHeightFieldDesc &desc, PxInsertionCallback &insertionCallback) const
Cooks and creates a heightfield mesh and inserts it into PxPhysics.
Definition Cooking.cpp:168
virtual void setParams(const PxCookingParams ¶ms)
Sets cooking parameters.
Definition Cooking.cpp:40
virtual PxTetrahedronMesh * createTetrahedronMesh(const PxTetrahedronMeshDesc &meshDesc, PxInsertionCallback &insertionCallback) const
Cooks and creates a tetrahedron mesh without going through a stream.
Definition Cooking.cpp:85
virtual PxSoftBodyMesh * createSoftBodyMesh(const PxTetrahedronMeshDesc &simulationMeshDesc, const PxTetrahedronMeshDesc &collisionMeshDesc, const PxSoftBodySimulationDataDesc &softbodyDataDesc, PxInsertionCallback &insertionCallback) const
Cooks and creates a softbody mesh without going through a stream.
Definition Cooking.cpp:129
virtual const PxCookingParams & getParams() const
Gets cooking parameters.
Definition Cooking.cpp:45
virtual bool cookHeightField(const PxHeightFieldDesc &desc, PxOutputStream &stream) const
Cooks a heightfield. The results are written to the stream.
Definition Cooking.cpp:163
virtual PxSoftBodyMesh * assembleSoftBodyMesh(PxTetrahedronMeshData &simulationMesh, PxSoftBodySimulationData &simulationData, PxTetrahedronMeshData &collisionMesh, PxSoftBodyCollisionData &collisionData, PxCollisionMeshMappingData &mappingData, PxInsertionCallback &insertionCallback) const
Bundles all data required for softbody simulation.
Definition Cooking.cpp:118
virtual void release()
Closes this instance of the interface.
Definition Cooking.cpp:59
virtual bool platformMismatch() const
Checks endianness is the same between cooking & target platforms.
Definition Cooking.cpp:52
virtual bool cookTetrahedronMesh(const PxTetrahedronMeshDesc &meshDesc, PxOutputStream &stream) const
Cooks a tetrahedron mesh. The results are written to the stream.
Definition Cooking.cpp:90
virtual PxInsertionCallback & getStandaloneInsertionCallback()
Gets standalone object insertion interface.
Definition Cooking.cpp:187
virtual PxCollisionMeshMappingData * computeModelsMapping(PxTetrahedronMeshData &simulationMesh, const PxTetrahedronMeshData &collisionMesh, const PxSoftBodyCollisionData &collisionData, const PxBoundedData *vertexToTet) const
Computes the mapping between collision and simulation mesh.
Definition Cooking.cpp:103
virtual bool cookBVH(const PxBVHDesc &desc, PxOutputStream &stream) const
Cooks a bounding volume hierarchy. The results are written to the stream.
Definition Cooking.cpp:175
virtual bool cookConvexMesh(const PxConvexMeshDesc &desc, PxOutputStream &stream, PxConvexMeshCookingResult::Enum *condition) const
Cooks a convex mesh. The results are written to the stream.
Definition Cooking.cpp:138
Abstract base class for an application defined memory allocator that can be used by the Nv library.
Definition PxAllocatorCallback.h:53
Descriptor class for #PxBVH.
Definition PxBVHDesc.h:51
Class representing a bounding volume hierarchy.
Definition PxBVH.h:63
Contains information about how to update the collision mesh's vertices given a deformed simulation te...
Definition PxTetrahedronMesh.h:283
Conbines PxTetrahedronMeshData and PxSoftBodyCollisionData.
Definition PxTetrahedronMesh.h:330
Descriptor class for #PxConvexMesh.
Definition PxConvexMeshDesc.h:156
A convex mesh.
Definition PxConvexMesh.h:83
Provides methods to cook (where cooking means to prepare the data and convert it to the right format ...
Definition PxCooking.h:337
Descriptor class for #PxHeightField.
Definition PxHeightFieldDesc.h:53
A height field class.
Definition PxHeightField.h:84
Callback interface that permits TriangleMesh, Heightfield, ConvexMesh or BVH to be used directly with...
Definition PxInsertionCallback.h:57
Output stream class for I/O.
Definition PxIO.h:114
A structure describing a triangle mesh.
Definition PxSimpleTriangleMesh.h:83
Conbines PxTetrahedronMeshData and PxSoftBodyCollisionData.
Definition PxTetrahedronMesh.h:348
Stores data to accelerate collision detection of a tetrahedral mesh.
Definition PxTetrahedronMesh.h:297
A softbody mesh, containing structures to store collision shape, simulation shape and deformation sta...
Definition PxTetrahedronMesh.h:214
**
Definition PxTetrahedronMeshDesc.h:194
Stores data to compute and store the state of a deformed tetrahedral mesh.
Definition PxTetrahedronMesh.h:319
Contains raw geometry information describing the tetmesh's vertices and its elements (tetrahedra)
Definition PxTetrahedronMesh.h:308
Descriptor class for #PxTetrahedronMesh (contains only pure geometric data).
Definition PxTetrahedronMeshDesc.h:52
A tetramedron mesh, also called a 'tetrahedron soup'.
Definition PxTetrahedronMesh.h:115
Descriptor class for #PxTriangleMesh.
Definition PxTriangleMeshDesc.h:55
A triangle mesh, also called a 'polygon soup'.
Definition PxTriangleMesh.h:118
Definition PxUserAllocated.h:43
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
Definition PxGeometryInternal.h:92
Definition PxCoreUtilityTypes.h:96
Enum
Definition PxCooking.h:63
Structure describing parameters affecting mesh cooking.
Definition PxCooking.h:185
Polygon data.
Definition PxConvexMesh.h:50
Enum
Definition PxCooking.h:112
Definition PxGeometryInternal.h:46