SweepTwoRail

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

#Since v5.0
public SweepTwoRail()

Properties

AngleToleranceRadians

#Since v5.0
public double AngleToleranceRadians { get; set; }
Gets or sets the angle tolerance in radians.

AutoAdjust

#Since v7.19
public bool AutoAdjust { get; set; }
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

#Since v5.0
public bool ClosedSweep { get; set; }
If the input rails are closed, ClosedSweep determines if the swept Breps will also be closed.

MaintainHeight

#Since v5.0
public bool MaintainHeight { get; set; }
Removes the association between the height scaling from the width scaling.

SweepTolerance

#Since v5.0
public double SweepTolerance { get; set; }
Gets or sets the sweeping tolerance.

UseLegacySweeper

#Since v8.8
public bool UseLegacySweeper { get; set; }
Set to true if you want to use the legacy, low-level sweeper found in earlier versions of Rhino.

Methods

PerformSweep

#Since v5.0
public Brep[] PerformSweep(Curve rail1, Curve rail2, Curve crossSection, double crossSectionParameterRail1, double crossSectionParameterRail2)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
crossSectionParameterRail1 (double)Curve parameter on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParameterRail2 (double)Curve parameter on second rail curve. Unused if UseLegacySweeper is true.
Array of Brep sweep results.

PerformSweep

#Since v5.0
public Brep[] PerformSweep(Curve rail1, Curve rail2, Curve crossSection)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
Array of Brep sweep results.

PerformSweep

#Since v5.0
public Brep[] PerformSweep(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections, IEnumerable<double> crossSectionParameters1, IEnumerable<double> crossSectionParameters2)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Cross section curves.
crossSectionParameters1 (IEnumerable<double>)Curve parameters on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParameters2 (IEnumerable<double>)Curve parameters on second rail curve. Unused if UseLegacySweeper is true.
Array of Brep sweep results.

PerformSweep

#Since v5.0
public Brep[] PerformSweep(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Shape curves.
Array of Brep sweep results.

PerformSweepRebuild

#Since v5.0
public Brep[] PerformSweepRebuild(Curve rail1, Curve rail2, Curve crossSection, double crossSectionParameterRail1, double crossSectionParameterRail2, int rebuildCount)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
crossSectionParameterRail1 (double)Curve parameter on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParameterRail2 (double)Curve parameter on second rail curve. Unused if UseLegacySweeper is true.
rebuildCount (int)Rebuild point count.
Array of Brep sweep results.

PerformSweepRebuild

#Since v5.0
public Brep[] PerformSweepRebuild(Curve rail1, Curve rail2, Curve crossSection, int rebuildCount)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
rebuildCount (int)Rebuild point count.
Array of Brep sweep results.

PerformSweepRebuild

#Since v5.0
public Brep[] PerformSweepRebuild(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections, IEnumerable<double> crossSectionParametersRail1, IEnumerable<double> crossSectionParametersRail2, int rebuildCount)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Shape curves.
crossSectionParametersRail1 (IEnumerable<double>)Curve parameters on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParametersRail2 (IEnumerable<double>)Curve parameters on second rail curve. Unused if UseLegacySweeper is true.
rebuildCount (int)Rebuild point count.
Array of Brep sweep results.

PerformSweepRebuild

#Since v5.0
public Brep[] PerformSweepRebuild(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections, int rebuildCount)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Shape curves.
rebuildCount (int)Rebuild point count.
Array of Brep sweep results.

PerformSweepRefit

#Since v5.0
public Brep[] PerformSweepRefit(Curve rail1, Curve rail2, Curve crossSection, double crossSectionParameterRail1, double crossSectionParameterRail2, double refitTolerance)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
crossSectionParameterRail1 (double)Curve parameter on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParameterRail2 (double)Curve parameter on second rail curve. Unused if UseLegacySweeper is true.
refitTolerance (double)Refit tolerance.
Array of Brep sweep results.

PerformSweepRefit

#Since v5.0
public Brep[] PerformSweepRefit(Curve rail1, Curve rail2, Curve crossSection, double refitTolerance)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSection (Curve)Shape curve.
refitTolerance (double)Refit tolerance.
Array of Brep sweep results.

PerformSweepRefit

#Since v5.0
public Brep[] PerformSweepRefit(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections, double refitTolerance)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Shape curves.
refitTolerance (double)Refit tolerance.
Array of Brep sweep results.

PerformSweepRefit

#Since v5.0
public Brep[] PerformSweepRefit(Curve rail1, Curve rail2, IEnumerable<Curve> crossSections, IEnumerable<double> crossSectionParametersRail1, IEnumerable<double> crossSectionParametersRail2, double refitTolerance)
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
rail1 (Curve)Rail to sweep shapes along.
rail2 (Curve)Rail to sweep shapes along.
crossSections (IEnumerable<Curve>)Shape curves.
crossSectionParametersRail1 (IEnumerable<double>)Curve parameters on first rail curve. Unused if UseLegacySweeper is true.
crossSectionParametersRail2 (IEnumerable<double>)Curve parameters on second rail curve. Unused if UseLegacySweeper is true.
refitTolerance (double)Refit tolerance.
Array of Brep sweep results.