Table of Contents

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

start GeoPoint3
end GeoPoint3
radius double
segments int

Returns

GeoSolid3

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

start GeoPoint3

The centre of one end.

end GeoPoint3

The centre of the other.

radius double

The radius.

segments int

How many sides the section has; three or more.

tolerance Tolerance

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