RhinoCommon API
SurfaceTryGetTorus Method (Torus) |
Tests a surface to see if it is a portion of a torus within RhinoMath.ZeroTolerance and returns the torus.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool TryGetTorus( out Torus torus )
Public Function TryGetTorus ( <OutAttribute> ByRef torus As Torus ) As Boolean
Parameters
- torus
- Type: Rhino.GeometryTorus
On success, the torus parameters are filled in.
Return Value
Type: Booleantrue if the surface is a portion of a torus.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8