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[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

OCCNurbsSurface