Method Pipe
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Pipe(GeoPolyline3, double, double)
Makes a round bar along a chain, using the default tolerance.
public static GeoSolid3 Pipe(GeoPolyline3 path, double radius, double chordTolerance)
Parameters
pathGeoPolyline3radiusdoublechordTolerancedouble
Returns
Pipe(GeoPolyline3, double, double, Tolerance)
Makes a round bar along a chain, its section a polygon no further than a chord tolerance from the circle.
public static GeoSolid3 Pipe(GeoPolyline3 path, double radius, double chordTolerance, Tolerance tolerance)
Parameters
pathGeoPolyline3The centre line.
radiusdoubleThe radius of the bar.
chordTolerancedoubleThe largest gap allowed between the section and its circle; nought picks one from the radius.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- ArgumentOutOfRangeException
Thrown when the radius is not positive.
- ArgumentException
Thrown when the path has no length or turns back on itself.
Pipe(GeoPolylineArc3, double, double)
Makes a bent round bar along a chain with bends, using the default tolerance.
public static GeoSolid3 Pipe(GeoPolylineArc3 path, double radius, double chordTolerance)
Parameters
pathGeoPolylineArc3radiusdoublechordTolerancedouble
Returns
Pipe(GeoPolylineArc3, double, double, Tolerance)
Makes a bent round bar along a chain with bends — a reinforcing bar from its centre line — the bends and the section each cut into chords no further than a tolerance from the curve.
public static GeoSolid3 Pipe(GeoPolylineArc3 path, double radius, double chordTolerance, Tolerance tolerance)
Parameters
pathGeoPolylineArc3The centre line, bends and all.
radiusdoubleThe radius of the bar.
chordTolerancedoubleThe largest gap allowed between a chord and its curve; nought picks one from the radius.
toleranceToleranceThe tolerance.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- ArgumentOutOfRangeException
Thrown when the radius is not positive.
- ArgumentException
Thrown when the path has no length or turns back on itself.