Table of Contents

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

profile GeoPolygon2
path GeoPolyline3

Returns

GeoSolid3

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

profile GeoPolygon2

The 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.

path GeoPolyline3

The chain the section is carried along.

tolerance Tolerance

The 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

profile GeoPolygon2
path GeoPolyline3
up GeoVector3

Returns

GeoSolid3

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

profile GeoPolygon2

The section, drawn about the origin; its Y stands along up.

path GeoPolyline3

The chain the section is carried along.

up GeoVector3

Which way the section's Y points at the start; any way not along the path.

tolerance Tolerance

The 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

profile GeoPolygon2
path GeoPolylineArc3
chordTolerance double

Returns

GeoSolid3

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

profile GeoPolygon2

The section, drawn about the origin, its Y up where the path allows it.

path GeoPolylineArc3

The chain, such as the centre line of a bent bar.

chordTolerance double

The largest gap allowed between a chord and its bend; nought picks one from the radius.

tolerance Tolerance

The 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

profile GeoPolygon2
path GeoPolylineArc3
chordTolerance double
up GeoVector3

Returns

GeoSolid3

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

profile GeoPolygon2

The section, drawn about the origin; its Y stands along up.

path GeoPolylineArc3

The chain.

chordTolerance double

The largest gap allowed between a chord and its bend; nought picks one from the radius.

up GeoVector3

Which way the section's Y points at the start; any way not along the path.

tolerance Tolerance

The 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.