five-on-it / apps/tools/src/editor-project / packBinaryGeometry
Function: packBinaryGeometry()
packBinaryGeometry(
mesh,geometry):Buffer
Defined in: apps/tools/src/editor-project.ts:104
Moves a mesh's geometry into the editor's binary layout (.babylonbinarymeshdata): positions, normals, uvs and indices back to back, then the sub-meshes; the mesh JSON keeps the offsets in _binaryInfo. Returns the file's bytes.
Parameters
mesh
MeshJson
geometry
GeometryJson
Returns
Buffer