Method Sweep
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Sweep(GeoPolygon2, GeoPolyline3)
Makes the body a profile sweeps out carried along a chain, using the default tolerance.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolyline3 path)
Parameters
profileGeoPolygon2pathGeoPolyline3
Returns
Sweep(GeoPolygon2, GeoPolyline3, Tolerance)
Makes the body a profile sweeps out carried along a chain, within a tolerance.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolyline3 path, Tolerance tolerance)
Parameters
profileGeoPolygon2The section, drawn about the origin: its origin rides on the path, its X to the path's right and its Y up — the world's up where the path allows it.
pathGeoPolyline3The chain the section is carried along.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Remarks
The section stands square to the path at either end, and at each bend lies on the plane halving it, so the pieces meet mitred. It turns with the path about the axis of each bend and nothing else, so it does not twist along the way. A section larger than a bend is tight folds over itself there; that is not checked.
Exceptions
- ArgumentNullException
Thrown when the profile or the path is null.
- ArgumentException
Thrown when the path has no length or turns back on itself.
Sweep(GeoPolygon2, GeoPolyline3, GeoVector3)
Makes the body a profile sweeps out carried along a chain, standing a given way up, using the default tolerance.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolyline3 path, GeoVector3 up)
Parameters
profileGeoPolygon2pathGeoPolyline3upGeoVector3
Returns
Sweep(GeoPolygon2, GeoPolyline3, GeoVector3, Tolerance)
Makes the body a profile sweeps out carried along a chain, standing a given way up at the start.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolyline3 path, GeoVector3 up, Tolerance tolerance)
Parameters
profileGeoPolygon2The section, drawn about the origin; its Y stands along
up.pathGeoPolyline3The chain the section is carried along.
upGeoVector3Which way the section's Y points at the start; any way not along the path.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile or the path is null.
- ArgumentException
Thrown when the path has no length or turns back on itself, or the up direction runs along it.
Sweep(GeoPolygon2, GeoPolylineArc3, double)
Makes the body a profile sweeps out carried along a chain with bends, using the default tolerance.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolylineArc3 path, double chordTolerance)
Parameters
profileGeoPolygon2pathGeoPolylineArc3chordTolerancedouble
Returns
Sweep(GeoPolygon2, GeoPolylineArc3, double, Tolerance)
Makes the body a profile sweeps out carried along a chain with bends, each bend cut into chords no further than a tolerance from it.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolylineArc3 path, double chordTolerance, Tolerance tolerance)
Parameters
profileGeoPolygon2The section, drawn about the origin, its Y up where the path allows it.
pathGeoPolylineArc3The chain, such as the centre line of a bent bar.
chordTolerancedoubleThe largest gap allowed between a chord and its bend; nought picks one from the radius.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile or the path is null.
- ArgumentException
Thrown when the path has no length or turns back on itself.
Sweep(GeoPolygon2, GeoPolylineArc3, double, GeoVector3)
Makes the body a profile sweeps out carried along a chain with bends, standing a given way up, using the default tolerance.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolylineArc3 path, double chordTolerance, GeoVector3 up)
Parameters
profileGeoPolygon2pathGeoPolylineArc3chordTolerancedoubleupGeoVector3
Returns
Sweep(GeoPolygon2, GeoPolylineArc3, double, GeoVector3, Tolerance)
Makes the body a profile sweeps out carried along a chain with bends, standing a given way up at the start.
public static GeoSolid3 Sweep(GeoPolygon2 profile, GeoPolylineArc3 path, double chordTolerance, GeoVector3 up, Tolerance tolerance)
Parameters
profileGeoPolygon2The section, drawn about the origin; its Y stands along
up.pathGeoPolylineArc3The chain.
chordTolerancedoubleThe largest gap allowed between a chord and its bend; nought picks one from the radius.
upGeoVector3Which way the section's Y points at the start; any way not along the path.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the profile or the path is null.
- ArgumentException
Thrown when the path has no length or turns back on itself, or the up direction runs along it.