diff --git a/ntrfc/turbo/profile_tele_extraction.py b/ntrfc/turbo/profile_tele_extraction.py index 086e90a57ae0756569d982a6cf71cbcf52a191f3..ff6abc5d7e780ace6f0ac31fad5533edb9396c35 100644 --- a/ntrfc/turbo/profile_tele_extraction.py +++ b/ntrfc/turbo/profile_tele_extraction.py @@ -4,39 +4,10 @@ from matplotlib import path from scipy import interpolate from scipy.spatial import Delaunay -from ntrfc.geometry.alphashape import calc_concavehull from ntrfc.geometry.line import lines_from_points, polyline_from_points, refine_spline from ntrfc.math.vectorcalc import findNearest, vecDir -# read the base-data -def read_data(sortedPoly, alpha): - # set data to m from mm - X = sortedPoly.points[:, 0] - Y = sortedPoly.points[:, 1] - Z = sortedPoly.points[:, 2] - # find smallest values for shifting to touch x and y axis - move_X = min(X) - move_Y = min(Y) - # shift - X = X - min(X) - Y = Y - min(Y) - idx = np.argsort(X) - X = np.sort(X) - Y = Y[idx] - Z = Z[idx] - # find geometry with boundary function. Given parameter is - # sensibility for ignoring konvex outliners. - ord_x, ia = np.unique(X, return_index=True) - Y = Y[ia] - Z = Z[ia] - X = ord_x - - X, Y = calc_concavehull(X, Y, alpha) - - return X, Y, Z, move_X, move_Y - - def split_up(ordering): """ returns coordinates from the pseudo pressure and suction side. Argument