Skip to content

Documentation / @sw-file-lib/three / createSwMeshGeometry

Function: createSwMeshGeometry() ​

ts
function createSwMeshGeometry(mesh: MeshData): BufferGeometry;

Defined in: mesh.ts:64

Create buffer geometry for parsed Stormworks render mesh data.

The geometry includes position, normal, and color attributes, and material groups derived from group shader ids.

Parameters ​

ParameterType
meshMeshData

Returns ​

BufferGeometry