NurbsSurface

class rhino3dm.NurbsSurface
IsRational

bool: Gets a value indicating whether or not the NURBS surface is rational.

OrderU

int: Gets the order in the U direction.

OrderV

int: Gets the order in the V direction.

KnotsU

Collections.NurbsSurfaceKnotList: The U direction knot vector.

KnotsV

Collections.NurbsSurfaceKnotList: The V direction knot vector.

Points

Collections.NurbsSurfacePointList: Gets a collection of surface control points that form this surface.

static Create(dimension, isRational, order0, order1, controlPointCount0, controlPointCount1)

Constructs a new NURBS surface with internal uninitialized arrays.

Parameters:
  • dimension (int) – The number of dimensions.>= 1. This value is usually 3.

  • isRational (bool) – True to make a rational NURBS.

  • order0 (int) – The order in U direction.>= 2.

  • order1 (int) – The order in V direction.>= 2.

  • controlPointCount0 (int) – Control point count in U direction.>= order0.

  • controlPointCount1 (int) – Control point count in V direction.>= order1.

Returns:

A new NURBS surface, or None on error.

Return type:

NurbsSurface

static CreateFromCone(cone)

Constructs a new NURBS surfaces from cone data.

Parameters:

cone (Cone) – A cone value.

Returns:

A new NURBS surface, or None on error.

Return type:

NurbsSurface

static CreateFromSphere(sphere)

Constructs a new NURBS surfaces from sphere data.

Parameters:

sphere (rhino3dm.Sphere) – A sphere value.

Returns:

A new NURBS surface, or None on error.

Return type:

NurbsSurface

static CreateFromCylinder(cylinder)

Constructs a new NURBS surfaces from cylinder data.

Parameters:

cylinder (Cylinder) – A cylinder value.

Returns:

A new NURBS surface, or None on error.

Return type:

NurbsSurface

static CreateRuledSurface(curveA, curveB)

Constructs a ruled surface between two curves. Curves must share the same knot-vector.

Parameters:
Returns:

A ruled surface on success or None on failure.

Return type:

NurbsSurface

MakeRational()

Makes this surface rational.

Returns:

True if the operation succeeded; otherwise, false.

Return type:

bool

MakeNonRational()

Makes this surface non-rational.

Returns:

True if the operation succeeded; otherwise, false.

Return type:

bool

IncreaseDegreeU(desiredDegree)

Increase the degree of this surface in U direction.

Parameters:

desiredDegree (int) – The desired degree. Degrees should be number between and including 1 and 11.

Returns:

True on success, False on failure.

Return type:

bool

IncreaseDegreeV(desiredDegree)

Increase the degree of this surface in V direction.

Parameters:

desiredDegree (int) – The desired degree. Degrees should be number between and including 1 and 11.

Returns:

True on success, False on failure.

Return type:

bool