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
| Property | Type | Description |
|---|---|---|
| Discriminator for mesh data. | |
Vertex buffer. | ||
| Triangle index buffer. | |
Mesh groups. |