desc.geometry.FourierPlanarCurve.compute_frenet_frame
- FourierPlanarCurve.compute_frenet_frame(center=None, normal=None, r_n=None, grid=None, basis='xyz')[source]
Compute Frenet frame vectors using specified coefficients.
- Parameters:
center (array-like, shape(3,)) – x,y,z coordinates of center of curve. If not given, defaults to self.center
normal (array-like, shape(3,)) – x,y,z components of normal vector to planar surface. If not given, defaults to self.normal
r_n (array-like) – fourier coefficients for radius from center as function of polar angle. If not given defaults to self.r_n
grid (Grid or array-like) – dependent coordinates to compute at. Defaults to self.grid If an integer, assumes that many linearly spaced points in (0,2pi)
basis ({"rpz", "xyz"}) – basis vectors to use for Frenet vector representation
- Returns:
T, N, B (ndarrays, shape(k,3)) – tangent, normal, and binormal vectors of the curve at specified grid locations in theta.