desc.geometry.SplineXYZCurve.to_FourierXYZ

SplineXYZCurve.to_FourierXYZ(N=None, grid=None, s=None, name='')Source

Convert Curve to FourierXYZCurve representation.

Parameters:
  • N (int) – Fourier resolution of the new X,Y,Z representation.

  • grid (Grid, int or None) – Grid used to evaluate curve coordinates on to fit with FourierXYZCurve. If an integer, uses that many equally spaced points.

  • s (ndarray or "arclength") – arbitrary curve parameter to use for the fitting. Should be monotonic, 1D array of same length as coords. if None, defaults linearly spaced in [0,2pi) Alternative, can pass “arclength” to use normalized distance between points.

  • name (str) – name for this curve

Returns:

curve (FourierXYZCurve) – New representation of the curve parameterized by Fourier series for X,Y,Z.