Method Cylinder
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Cylinder(GeoPoint3, GeoPoint3, double, int)
Makes a round bar or a bolt between two points, using the default tolerance.
public static GeoSolid3 Cylinder(GeoPoint3 start, GeoPoint3 end, double radius, int segments)
Parameters
Returns
Cylinder(GeoPoint3, GeoPoint3, double, int, Tolerance)
Makes a round bar or a bolt between two points: a prism on a regular polygon with its corners on the circle.
public static GeoSolid3 Cylinder(GeoPoint3 start, GeoPoint3 end, double radius, int segments, Tolerance tolerance)
Parameters
startGeoPoint3The centre of one end.
endGeoPoint3The centre of the other.
radiusdoubleThe radius.
segmentsintHow many sides the section has; three or more.
toleranceToleranceThe tolerance deciding whether the two ends are one.
Returns
- GeoSolid3
The body, wound outwards.
Exceptions
- ArgumentOutOfRangeException
Thrown when the radius is not positive or there are fewer than three sides.
- ArgumentException
Thrown when the two ends are the same point.