Main Page Class List Class Members

# Nv::Blast::IJsonCollisionExporter Class Reference

`#include <NvBlastExtExporterJsonCollision.h>`

List of all members.

## Public Member Functions
virtual void | release ()=0
virtual bool | writeCollision (const char *path, uint32_t chunkCount, const uint32_t *hullOffsets, const CollisionHull *const *hulls)=0

## Detailed Description

Interface to object which serializes collision geometry to JSON format.

## Member Function Documentation

virtual void Nv::Blast::IJsonCollisionExporter::release | ( |  | ) | `[pure virtual]`

Delete this object

virtual bool Nv::Blast::IJsonCollisionExporter::writeCollision | ( | const char * | path,
|  | uint32_t | chunkCount,
|  | const uint32_t * | hullOffsets,
|  | const CollisionHull *const * | hulls |
| ) |  |  | `[pure virtual]`

Method creates file with given path and serializes given array of arrays of convex hulls to it in JSON format.

Parameters:

  `[in]` | path | Output file path.
  `[in]` | chunkCount | The number of chunks, may be less than the number of collision hulls.
  `[in]` | hullOffsets | Collision hull offsets. Contains chunkCount + 1 element. First collision hull for i-th chunk: hull[hullOffsets[i]]. hullOffsets[chunkCount+1] is total number of hulls.
  `[in]` | hulls | Array of pointers to convex hull descriptors, contiguously grouped for chunk[0], chunk[1], etc.

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

- sdk/extensions/exporter/include/NvBlastExtExporterJsonCollision.h