desc.geometry.FourierXYZCurve.to_FourierPlanar

FourierXYZCurve.to_FourierPlanar(N=10, grid=None, basis='xyz', name='')Source

Convert Curve to FourierPlanarCurve representation.

Note that some types of curves may not be representable in this basis. In this case, a least-squares fit will be done to find the planar curve that best represents the curve.

Parameters:
  • N (int) – Fourier resolution of the new FourierPlanarCurve representation.

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

  • basis ({'xyz', 'rpz'}) – Coordinate system for center and normal vectors. Default = ‘xyz’.

  • name (str) – name for this curve

Returns:

curve (FourierPlanarCurve) – New representation of the curve parameterized by Fourier series for minor radius r in a plane specified by a center position and normal vector.