desc.geometry.FourierXYZCurve.from_values

classmethod FourierXYZCurve.from_values(coords, N=10, s=None, basis='xyz', name='')Source

Fit coordinates to FourierXYZCurve representation.

Parameters:
  • coords (ndarray, shape (num_coords,3)) – Coordinates to fit a FourierXYZCurve object, with each column corresponding to xyz or rpz depending on the basis argument.

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

  • 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.

  • basis ({"rpz", "xyz"}) – Basis for input coordinates. Defaults to “xyz”.

Returns:

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