/** * Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { ReaderResult as Result } from '../result' import { Task, RuntimeContext } from 'mol-task' import { Mesh } from 'mol-geo/geometry/mesh/mesh'; async function parseInternal(data: string, ctx: RuntimeContext): Promise> { // TODO const mesh: Mesh = Mesh.createEmpty(); // Mesh.computeNormalsImmediate(mesh) return Result.success(mesh); } export function parse(data: string) { return Task.create>('Parse OBJ', async ctx => { return await parseInternal(data, ctx); }); } export default parse;