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) – coordinates to fit a FourierXYZCurve object with.
N (int) – Fourier resolution of the new X,Y,Z representation. default is 10
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.