# ObjectInfo

typedef in `three-mesh-bvh/webgpu`

Where an object is packed in the storage buffers, as returned by `BVHComputeData.getObjectInfo` and
`BVHComputeData.getAllObjectInfo`.

## Properties

- `object`, `Object3D`: The mesh.
- `instanceId`, `number`: Instance index (relevant for InstancedMesh / BatchedMesh).
- `group`, `number`: Index of the BVH root, one per geometry group and each packed as its own object.
  Always 0 for an indirect BVH, which has a single root.
- `objectIndex`, `number`: Index of the object's record in `storage.objects`. Hits report it as `objectIndex`.
- `indexOffset`, `number`: Where the index data of the object's geometry starts in `storage.geometry`,
  in 32-bit words. Shared by the objects of a geometry's groups.
- `attributesOffset`, `number`: Where the vertex attributes of the object's geometry start in
  `storage.geometry`, in 32-bit words.
- `primitiveOffset`, `number`: The object's first primitive, counted from the start of its geometry's
  index data. Non-zero for a geometry group after the first.
- `primitiveCount`, `number`: The number of primitives in the object.
