Skip to content

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

Interface: MeshData ​

ts
interface MeshData {
  kind: "mesh";
  vertices: MeshVertex[];
  indices: number[];
  groups: MeshGroup[];
}

Defined in: mesh/index.ts:73

A Stormworks render mesh.

The data is a direct representation of .mesh contents. It is not converted to any rendering engine coordinate system; use @sw-file-lib/three when a Three.js BufferGeometry is needed.

Properties ​

PropertyTypeDescription

kind

"mesh"

Discriminator for mesh data.

vertices

MeshVertex[]

Vertex buffer.

indices

number[]

Triangle index buffer.

groups

MeshGroup[]

Mesh groups.