lsdo_genie.bsplines.BsplineSurface
Module Contents
Classes
Base class for B-spline Surfaces |
- class lsdo_genie.bsplines.BsplineSurface.BsplineSurface(name, order_u, order_v, knots_u, knots_v, shape)
Base class for B-spline Surfaces
- Attributes:
- namestr
A nickname for the B-spline Surface
- order_uint
B-spline polynomial order in the ‘u’ direction
- knots_uint
Knot vector in the ‘u’ direction
- order_vint
B-spline polynomial order in the ‘v’ direction
- knots_vint
Knot vector in the ‘v’ direction
- shapetuple
Shape for the B-spline control points (num_u,num_v,)
- get_basis_matrix(u_vec, v_vec, du, dv)
Builds the basis matrix for a given set of points
- Parameters:
- u_vecnp.ndarray(N,)
Vector storing the ‘u’ cooridinates of a set of input points
- duint
Derivative in the ‘u’ direction
- v_vecnp.ndarray(N,)
Vector storing the ‘v’ cooridinates of a set of input points
- dvint
Derivative in the ‘v’ direction
- Returns:
- basissps.csc_matrix(N,Ncp)
The basis matrix that can be multiplied with the control points to get (N,) output values