Skip to content

Documentation / scene / parseZHair

Function: parseZHair()

parseZHair(buffer): ParsedZHair

Defined in: libs/scene/src/asset/loaders/zhair/zhair_format.ts:296

Opens a .zhair file.

Parameters

buffer

ArrayBuffer

The complete file.

Returns

ParsedZHair

The manifest and the payload it indexes into.

Remarks

Reads the manifest and keeps the buffer; the arrays themselves are not touched until readZHairPositions and its siblings are called for them.

Released under the MIT License.