desc.geometry.FourierXYZCurve.compute_frenet_frame

FourierXYZCurve.compute_frenet_frame(X_n=None, Y_n=None, Z_n=None, grid=None, basis='xyz')[source]

Compute Frenet frame vectors using specified coefficients.

Parameters:
  • X_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • Y_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • Z_n (array-like) – fourier coefficients for X, Y, Z. If not given, defaults to values given by X_n, Y_n, Z_n attributes

  • grid (Grid or array-like) – dependent coordinates to compute at. Defaults to self.grid If an integer, assumes that many linearly spaced points in (0,2pi)

  • basis ({"rpz", "xyz"}) – basis vectors to use for Frenet vector representation

Returns:

T, N, B (ndarrays, shape(k,3)) – tangent, normal, and binormal vectors of the curve at specified grid locations