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
public SweepTwoRail()
Properties
Gets or sets the angle tolerance in radians.
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.
If the input rails are closed, ClosedSweep determines if the swept Breps will also be closed.
Removes the association between the height scaling from the width scaling.
Gets or sets the sweeping tolerance.
Methods
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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.
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(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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.
Sweep2 function that fits a surface through profile curves that define the surface cross-sections and two curves that defines a surface edge.
Parameters:
| rail1 (Curve) | Rail to sweep shapes along. |
| rail2 (Curve) | Rail to sweep shapes along. |
| crossSections (IEnumerable<Curve>) | Shape curves. |
Returns: Array of Brep sweep results.
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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.
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(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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.
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.
Parameters:
| rail1 (Curve) | Rail to sweep shapes along. |
| rail2 (Curve) | Rail to sweep shapes along. |
| crossSections (IEnumerable<Curve>) | Shape curves. |
| rebuildCount (int) | Rebuild point count. |
Returns: Array of Brep sweep results.
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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.
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.
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.
Parameters:
| rail1 (Curve) | Rail to sweep shapes along. |
| rail2 (Curve) | Rail to sweep shapes along. |
| crossSections (IEnumerable<Curve>) | Shape curves. |
| refitTolerance (double) | Refit tolerance. |
Returns: Array of Brep sweep results.
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.
Parameters:
| 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. |
Returns: Array of Brep sweep results.