Blendcrv command


#1

Is there a c++ function correspond to the blendcrv command


(Menno Deij - van Rijswijk) #2

In the RhinoSdkBlend.h file you will find

/*
  Description
    Makes a curve blend between 2 curves at the parameters specified
      with the directions and continuities specified
  Parameters:
    [in] pC0         - First curve to blend from
    [in] t0          - Parameter on first curve for blend endpoint
    [in] bRev0       - if bRev0 is false, the blend will go in the natural direction of the curve
                       if bRev0 is true, the blend will go in the opposite direction to the curve
    [in] continuity0 - continuity for the blend at the start
                           0: position
                           1: tangency
                           2: curvature
    [in] pC1         - Second curve to blend from
    [in] t1          - Parameter on second curve for blend endpoint
    [in] bRev1       - if bRev1 is false, the blend will go in the natural direction of the curve
                       if bRev1 is true, the blend will go in the opposite direction to the curve
    [in] continuity1 - continuity for the blend at the end
                           0: position
                           1: tangency
                           2: curvature
  Returns:
    The blend as an ON_Curve if successful
    NULL if not
*/
  static ON_Curve* CurveBlend(
    const ON_Curve* pC0,
    double t0,
    bool bRev0,
    int continuity0, 
    const ON_Curve* pC1,
    double t1,
    bool bRev1,
    int continuity1);

Does that help?


#3

thanks