RhinoCommon API
BrepCreateFromSweep Method (Curve, IEnumerableCurve, Boolean, Double) |
Sweep1 function tht fits a surface through a profile curve that define the surface cross-sections
and one curve that defines a surface edge.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Brep[] CreateFromSweep( Curve rail, IEnumerable<Curve> shapes, bool closed, double tolerance )
Public Shared Function CreateFromSweep ( rail As Curve, shapes As IEnumerable(Of Curve), closed As Boolean, tolerance As Double ) As Brep()
Parameters
- rail
- Type: Rhino.GeometryCurve
Rail to sweep shapes along - shapes
- Type: System.Collections.GenericIEnumerableCurve
Shape curves - closed
- Type: SystemBoolean
Only matters if shapes are closed - tolerance
- Type: SystemDouble
Tolerance for fitting surface and rails
Return Value
Type: BrepArray of Brep sweep results

If you are not producing the sweep results that you are after, then
use the SweepOneRail class with options to generate the swept geometry.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.14