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
Gets or sets the angle tolerance in radians.
public double AngleToleranceRadians { get; set; }

AutoAdjust

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

ClosedSweep

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

MaintainHeight

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

SweepTolerance

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

UseLegacySweeper

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

Methods

PerformSweep

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

PerformSweep

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

PerformSweep

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

PerformSweep

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

PerformSweepRebuild

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

PerformSweepRebuild

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

PerformSweepRebuild

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

PerformSweepRebuild

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

PerformSweepRefit

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

PerformSweepRefit

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

PerformSweepRefit

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

PerformSweepRefit

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