/// <summary> /// Construct a LoftedSurface by lofting an array of curve cross sections and /// using a curve as lofting path to control the lofting direction. /// </summary> /// <param name="crossSections">crossSections (curves) needs to be all closed or all open.</param> /// <param name="path">lofting path curve.</param> /// <returns>Loftedsurface</returns> public static DSLoftedSurface LoftFromCrossSectionsPath(DSCurve[] crossSections, DSCurve path) { return(DSLoftedSurface.FromCrossSectionsPath(crossSections, path)); }
/// <summary> /// Construct a LoftedSurface by lofting an array of curve cross sections and /// using curve(s) as the guide to control the lofting shape. /// </summary> /// <remarks> /// If the cross-section curves do not intersect with the guide curves, /// then these cross-section are ignored. /// </remarks> /// <param name="crossSections">crossSections (curves) needs to be all closed or all open.</param> /// <param name="guides">The guides needs to intersect with all crossSections.</param> /// <returns>LoftedSurface</returns> public static DSLoftedSurface LoftFromCrossSectionsGuides(DSCurve[] crossSections, DSCurve[] guides) { return(DSLoftedSurface.FromCrossSectionsGuides(crossSections, guides)); }