123456789101112131415161718192021222324 |
- 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<Result<Mesh>> {
-
- const mesh: Mesh = Mesh.createEmpty();
-
- return Result.success(mesh);
- }
- export function parse(data: string) {
- return Task.create<Result<Mesh>>('Parse OBJ', async ctx => {
- return await parseInternal(data, ctx);
- });
- }
- export default parse;
|