public static BFast ToBFast(this IG3D g3D) { var buffers = new List <IBytes>(); buffers.Add(G3D.DefaultHeader.ToBytesAscii().Pin()); var descriptors = g3D.Descriptors().ToArray().Pin(); buffers.Add(descriptors); foreach (var attr in g3D.Attributes) { buffers.Add(attr.Bytes); } return(new BFast(buffers)); }