Click or drag to resize

SurfaceTryGetCylinder Method (Cylinder)

Tests a surface to see if it is a portion of a cylinder within RhinoMath.ZeroTolerance and return the cylinder.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
public bool TryGetCylinder(
	out Cylinder cylinder


Type: Rhino.GeometryCylinder
On success, the cylinder parameters are filled in.

Return Value

Type: Boolean
true if the surface is a portion of a cylinder.
If successful, an infinite cylinder is returned. When a surface has a cylindrical shape, even if its ends are not circles on the cylinder, it returns the axis and radius. You can detect infinite cylinders using Cylinder.IsFinite.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.27
See Also