desc.geometry.FourierPlanarCurve.from_values
- classmethod FourierPlanarCurve.from_values(coords, N=10, basis='xyz', name='')Source
Fit coordinates to FourierPlanarCurve representation.
- Parameters:
coords (ndarray, shape (num_coords,3)) – Coordinates to fit a FourierPlanarCurve object with each column corresponding to xyz or rpz depending on the basis argument.
N (int) – Fourier resolution of the new r representation.
basis ({"rpz", "xyz"}) – Basis for input coordinates. Defaults to “xyz”.
name (str) – Name for this curve.
- Returns:
curve (FourierPlanarCurve) – New representation of the curve parameterized by a Fourier series for r.