Skip to content

Documentation / @sw-file-lib/core / MeshGroup

Interface: MeshGroup ​

ts
interface MeshGroup {
  indexBufferStart: number;
  indexBufferLength: number;
  materialIndex: number;
  boundsMin: MeshVec3;
  boundsMax: MeshVec3;
  name: string;
}

Defined in: mesh/index.ts:51

A render group within a mesh.

Each group references a contiguous range of the shared index buffer and stores its own material, bounds, and display name.

Properties ​

PropertyTypeDescription

indexBufferStart

number

Starting index within the global index buffer.

indexBufferLength

number

Number of indices belonging to this group.

materialIndex

number

Material index.

boundsMin

MeshVec3

Minimum corner of the group's bounding box.

boundsMax

MeshVec3

Maximum corner of the group's bounding box.

name

string

Group name stored in the file.