OCCNurbsSurface.from_parameters
- classmethod OCCNurbsSurface.from_parameters(points, weights, u_knots, v_knots, u_mults, v_mults, u_degree, v_degree, is_u_periodic=False, is_v_periodic=False)
Construct a NURBS surface from explicit parameters.
- Parameters
points (List[List[
compas.geometry.Point
]]) – The control points of the surface.weights (List[List[
float
]]) – The weights of the control points.u_knots (List[
float
]) – The knots in the U direction, without multiplicities.v_knots (List[
float
]) – The knots in the V direction, without multiplicities.u_mults (List[
int
]) – The multiplicities of the knots in the U direction.v_mults (List[
int
]) – The multiplicities of the knots in the V direction.u_dergee (
int
) – Degree in the U direction.v_degree (
int
) – Degree in the V direction.is_u_periodic (
bool
, optional) – Flag indicating that the surface is periodic in the U direction.is_v_periodic (
bool
, optional) – Flag indicating that the surface is periodic in the V direction.
- Returns