# SweepTwoRail class

Namespace: [Rhino.Geometry](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.geometry.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public class SweepTwoRail
```

Utility class for generating Breps by sweeping cross section curves over two rail curves. Note, this class has been superseded by the Rhino.Geometry.Brep.CreateFromSweep static functions.

## Constructors

- [SweepTwoRail](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/ctor.md)

## Properties

- [AngleToleranceRadians](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/angletoleranceradians.md): Gets or sets the angle tolerance in radians.
- [AutoAdjust](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/autoadjust.md): Set to true to have shape curves adjusted, sorted, and matched automatically. This will produce results comparable to Rhino's Sweep2 command. Set to false to not have shape curves adjusted, sorted, and matched automatically.
- [ClosedSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/closedsweep.md): If the input rails are closed, ClosedSweep determines if the swept Breps will also be closed.
- [MaintainHeight](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/maintainheight.md): Removes the association between the height scaling from the width scaling.
- [SweepTolerance](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/sweeptolerance.md): Gets or sets the sweeping tolerance.
- [UseLegacySweeper](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/uselegacysweeper.md): Set to true if you want to use the legacy, low-level sweeper found in earlier versions of Rhino.

## Methods

- [PerformSweep](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/performsweep.md): (4 overloads) Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
- [PerformSweepRebuild](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/performsweeprebuild.md): (4 overloads) Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
- [PerformSweepRefit](https://developer.rhino3d.com/api/rhinocommon/type/rhino.geometry.sweeptworail/performsweeprefit.md): (4 overloads) Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
