AddBlendCurve

Makes a curve blend between two curves at the parameters specified with the directions and continuities specified.

Syntax

rhinoscriptsyntax.AddBlendCurve (curves, parameters, reverses, continuities)

rhinoscript.curve.AddBlendCurve (curves, parameters, reverses, continuities)

Parameters

curves

Required.  List or Tuple.  Two Guids or strings which are the identifiers of the two curves objects to blend.

parameters

Required.  List or Tuple.  Two numbers which are the curve parameters, one for each curve, to be used for the blend end points.

reverses

Required.  List or Tuple.  Two Boolean values, one for each curve, that specifies whether or not the blend will go in the natural direction of the curve (False), or if the blend will go in the opposite direction to the curve (True).

continuities

Required.  List or Tuple.  Two numbers, one for each curve, that specifies the continuity for the blend at the end point. The possible values are as follows:

Value

Description

0

Position - location only.

1

Tangency - position and curve direction.

2

Curvature - position, direction, and radius of curvature.

Returns

Guid

The identifier of the newly created curve object, if successful.

None

If not successful, or on error.

Example

  import rhinoscriptsyntax as rs

  curve0 = rs.AddLine((0,0,0), (0,9,0))

  curve1 = rs.AddLine((1,10,0), (10,10,0))

  curves = curve0, curve1

  domain_crv0 = rs.CurveDomain(curve0)

  domain_crv1 = rs.CurveDomain(curve1)

  params = domain_crv0[1], domain_crv1[0]

  revs = False, True

  cont = 2,2

  rs.AddBlendCurve( curves, params, revs, cont )

Also See

AddFilletCurve