public OutputPrimData RunTask(bool StartCount, int Index, List <List <PointFS> > fsPointList) { var inputData = new InputPrimData(); //for (int i = 0; i < fsPointList.Count; i++) //{ var pointcloudData = new PointCloudData(); pointcloudData.SetLaserPoints(fsPointList); _taskctrl.FillSingleInputPrimData(Index, pointcloudData); // } if (StartCount) { OutputPrimData outputData = null; // if (!_taskctrl.TaskRun(inputData,out outputData)) if (!_taskctrl.TaskRun(out outputData)) { return(null); } return(outputData); } return(null); }