Table of Contents

Struct b3HullData

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

A convex hull. Mirror of b3HullData.

public struct b3HullData

Inherited Members

Remarks

The vertex, point, edge, plane and face arrays live past the end of this structure and are reached through the offset fields, so a hull cannot be copied by value. Use the accessors on Box3D to read them.

Fields

aabb

The local-space bounding box.

byteCount

The total size of this hull in bytes, including the trailing arrays.

center

The local centroid.

centralInertia

The inertia tensor about the centroid.

edgeCount

The number of half-edges, which is twice the edge count.

edgeOffset

The byte offset of the half-edge array from the start of this structure.

faceCount

The number of faces. Hull faces are convex polygons.

faceOffset

The byte offset of the face array from the start of this structure.

hash

A content hash of this hull, computed with this field set to zero.

innerRadius

The radius of the largest sphere centred at the centroid that fits inside the hull.

padding

Explicit padding. Hull identity is a hash over raw bytes, so no implicit padding is allowed.

planeOffset

The byte offset of the face plane array from the start of this structure.

pointOffset

The byte offset of the point array from the start of this structure.

soaNormalOffset

The byte offset of the structure-of-arrays normal data.

soaVertexOffset

The byte offset of the structure-of-arrays vertex data.

surfaceArea

The surface area, usually in square metres.

version

The format version. Must equal Box3D.Native.Constants.B3_HULL_VERSION.

vertexCount

The number of vertices.

vertexOffset

The byte offset of the vertex array from the start of this structure.

volume

The volume, usually in cubic metres.