Beispiel #1
0
 static InspDataSet BuildCartDataFromLineData(SingleCylInspScript script, Vector2[] rawDataSet)
 {
     try
     {
         var cartData = DataUtil.ConvertToCartData(rawDataSet, script.Location.X);
         cartData.Translate(new Vector3(0, -1 * script.CalDataSet.NominalRadius, 0));
         var dataset = new CartDataSet(script.InputDataFileName);
         dataset.CartData = cartData;
         return(dataset);
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
 public static InspDataSet BuildDataAsync(CancellationToken ct, IProgress <int> progress, SingleCylInspScript script, Vector2[] rawDataSet)
 {
     try
     {
         return(BuildCartDataFromLineData(script, rawDataSet));
     }
     catch (Exception)
     {
         throw;
     }
 }