示例#1
0
RH_C_FUNCTION ON_BezierCurve* ON_BezierCurve_Loft2(int count, /*ARRAY*/const ON_2dPoint* points)
{
  ON_BezierCurve* rc = NULL;
  if( count && points )
  {
    rc = new ON_BezierCurve();
    if( rc->Loft(2, count, 2, &(points->x), 0, 0) )
    {
      delete rc;
      rc = NULL;
    }
  }
  return rc;
}
示例#2
0
RH_C_FUNCTION ON_BezierCurve* ON_BezierCurve_Loft(int count, /*ARRAY*/const ON_3dPoint* points)
{
  ON_BezierCurve* rc = NULL;
  if( count && points )
  {
    rc = new ON_BezierCurve();
    ON_3dPointArray _pts(count);
    _pts.Append(count, points);
    if( !rc->Loft(_pts) )
    {
      delete rc;
      rc = NULL;
    }
  }
  return rc;
}