Documentation / loaders / importCurvesToZHairFile
Function: importCurvesToZHairFile()
importCurvesToZHairFile(
srcVFS,srcPath,dstVFS,dstPath,options?):Promise<number>
Defined in: libs/loaders/src/curves/zhair_convert.ts:166
Reads a curve archive from a VFS and writes the .zhair beside it.
Parameters
srcVFS
VFS
Filesystem holding the source archive.
srcPath
string
Path of the source archive.
dstVFS
VFS
Filesystem to write into.
dstPath
string
Destination path, which should end in .zhair.
options?
Omit<ZHairConvertOptions, "sourcePath">
Unit scale, up axis and origin anchor.
Returns
Promise<number>
The number of bytes written.