# NIF File Format Documentation

NIF Objects | Compound Types | Enum Types | Basic Types | File Versions

## bhkCompressedMeshShapeData

A compressed mesh shape for collision in Skyrim.

### Attributes

Name | Type | Arg | Arr1 | Arr2 | Cond | Description | From | To
--- | --- | --- | --- | --- | --- | --- | --- | ---
From NiObject
From bhkRefObject
From bhkCompressedMeshShapeData
Bits Per Index | uint |  |  |  |  | Number of bits in the shape-key reserved for a triangle index |  |
Bits Per W Index | uint |  |  |  |  | Number of bits in the shape-key reserved for a triangle index and its winding |  |
Mask W Index | uint |  |  |  |  | Mask used to get the triangle index and winding from a shape-key (common: 262143 = 0x3ffff) |  |
Mask Index | uint |  |  |  |  | Mask used to get the triangle index from a shape-key (common: 131071 = 0x1ffff) |  |
Error | float |  |  |  |  | The radius of the storage mesh shape? Quantization error? |  |
Bounds Min | Vector4 |  |  |  |  | The minimum boundary of the AABB (the coordinates of the corner with the lowest numerical values) |  |
Bounds Max | Vector4 |  |  |  |  | The maximum boundary of the AABB (the coordinates of the corner with the highest numerical values) |  |
Unknown Byte 1 | byte |  |  |  |  | Unknown |  |
Unknown Int 3 | uint |  |  |  |  | Unknown |  |
Unknown Int 4 | uint |  |  |  |  | Unknown |  |
Unknown Int 5 | uint |  |  |  |  | Unknown |  |
Unknown Byte 2 | byte |  |  |  |  | Unknown |  |
Num Materials | uint |  |  |  |  | Number of chunk materials |  |
Chunk Materials | bhkCMSDMaterial |  | Num Materials |  |  | Table (array) with sets of materials. Chunks refers to this table by index. |  |
Unknown Int 6 | uint |  |  |  |  | Unknown |  |
Num Transforms | uint |  |  |  |  | Number of chunk transformations |  |
Chunk Transforms | bhkCMSDTransform |  | Num Transforms |  |  | Table (array) with sets of transformations. Chunks refers to this table by index. |  |
Num Big Verts | uint |  |  |  |  | Unknown |  |
Big Verts | Vector4 |  | Num Big Verts |  |  | Compressed Vertices? |  |
Num Big Tris | uint |  |  |  |  | Unknown |  |
Big Tris | bhkCMSDBigTris |  | Num Big Tris |  |  | Unknown |  |
Num Chunks | uint |  |  |  |  | Unknown |  |
Chunks | bhkCMSDChunk |  | Num Chunks |  |  | Unknown. |  |
Unknown Int 12 | uint |  |  |  |  | Unknown, end of block. |  |

### Parent Of