RhinoCommon API
SurfaceTryGetFiniteCylinder Method |
Tests a surface with the assumption that it might be a right circular cylinder and returns this geometry.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool TryGetFiniteCylinder( out Cylinder cylinder, double tolerance )
Public Function TryGetFiniteCylinder ( <OutAttribute> ByRef cylinder As Cylinder, tolerance As Double ) As Boolean
Parameters
- cylinder
- Type: Rhino.GeometryCylinder
On success, the cylinder parameters are filled in. - tolerance
- Type: SystemDouble
tolerance to use when checking.
Return Value
Type: Booleantrue if the surface is a portion of a cylinder.

If successful, a finite cylinder is returned.

Rhino for Windows
Supported in: 6.8