Determines if a surface is a portion of a cylinder.
Rhino.IsCylinder (strSurface [, blnTolerance])
Rhino.IsCylinder (strSurface [, dblTolerance])
strSurface |
Required. String. The surface object's identifier. |
blnTolerance |
Optional. Boolean. If False (Default), then the document's absolute tolerance is used when checking. If True, then Rhino's internal zero tolerance is used when checking. |
dblTolerance |
Optional. Number. The tolerance to use when checking. If omitted, the document's absolute tolerance is used. |
Boolean |
True if successful, otherwise False. |
Null |
On error. |
Dim strSurface
strSurface = Rhino.GetObject("Select a surface", 8)
If Not IsNull(strSurface) Then
If Rhino.IsCylinder(strSurface) Then
Rhino.Print "The surface is a portion of a cylinder."
Else
Rhino.Print "The surface is not a portion of a cylinder."
End If
End If