Table of Contents

Struct b3MeshData

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

A baked triangle mesh with its bounding volume hierarchy. Mirror of b3MeshData.

public struct b3MeshData

Inherited Members

Remarks

The node, vertex, triangle, material and flag arrays live past the end of this structure, so it cannot be copied by value.

Fields

bounds

The local-space bounding box.

byteCount

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

degenerateCount

The number of degenerate triangles found while building. Diagnostic.

flagsOffset

The byte offset of the triangle flag array from the start of this structure.

hash

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

materialCount

The number of materials.

materialOffset

The byte offset of the material index array from the start of this structure.

nodeCount

The number of hierarchy nodes.

nodeOffset

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

surfaceArea

The combined single-sided surface area of all triangles.

treeHeight

The height of the bounding volume hierarchy.

triangleCount

The number of triangles.

triangleOffset

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

version

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

vertexCount

The number of vertices.

vertexOffset

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