Skip to content

T_Rhino_Geometry_Cylinder

Will Pearson edited this page Aug 12, 2016 · 2 revisions

Cylinder Structure

Represents the values of a plane, a radius and two heights -on top and beneath- that define a right circular cylinder.

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

[SerializableAttribute]
public struct Cylinder

VB

<SerializableAttribute>
Public Structure Cylinder

The Cylinder type exposes the following members.

Constructors

 

Name Description
Public method Cylinder(Circle) Constructs a new cylinder with infinite height.
Public methodCode example Cylinder(Circle, Double) Constructs a new cylinder with a finite height.
  Back to Top

Properties

 

Name Description
Public property Axis Gets the axis direction of the cylinder.
Public property Center Gets the center point of the defining circle.
Public property Height1 Gets or sets the start height of the cylinder.
Public property Height2 Gets or sets the end height of the cylinder. If the end height equals the start height, the cylinder is presumed to be infinite.
Public property IsFinite true if the cylinder is finite (Height0 != Height1) false if the cylinder is infinite.
Public property IsValid Gets a boolean value indicating whether this cylinder is valid. A valid cylinder is represented by a valid circle and two valid heights.
Public property Radius Gets or sets the radius of the cylinder.
Public property TotalHeight Gets the height of the cylinder. Infinite cylinders have a height of zero, not Double.PositiveInfinity.
Public propertyStatic member Unset Gets an invalid Cylinder.
  Back to Top

Methods

 

Name Description
Public method CircleAt Compute the circle at the given elevation parameter.
Public method EpsilonEquals Check that all values in other are within epsilon of the values in this
Public method Equals Indicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from ValueType.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method LineAt Compute the line at the given angle parameter. This line will be degenerate if the cylinder is infite.
Public methodCode example ToBrep Constructs a Brep representation of this Cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Public method ToNurbsSurface Constructs a Nurbs surface representation of this cylinder. This is synonymous with calling NurbsSurface.CreateFromCylinder().
Public method ToRevSurface Constructs a RevSurface representation of this Cylinder. This is synonymous with calling RevSurface.CreateFromCylinder().
Public method ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

Clone this wiki locally