using createMeshFromBinary() instead of writing to file