static public Task Task(VoxelRemoveSameVertices rsv, VoxelProduct product) { Task task = new Task(); TaskManager.PushFront(task, delegate { rsv.build(product); }); return(task); }
Task subTask() { int tick = 0; Task task = new Task(); task.init = delegate { tick = ConvertDateTimeInt(DateTime.Now); VoxelRemoveSameVertices vmb = new VoxelRemoveSameVertices(); vmb.build(product_); }; task.shutdown = delegate { logIt("sub", ConvertDateTimeInt(DateTime.Now) - tick); }; return(task); }
static public void Run(VoxelRemoveSameVertices rsv, VoxelProduct product) { rsv.build(product); }