Cone
Represents the center plane, radius and height values in a right circular cone.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
[SerializableAttribute]public struct Cone : IEpsilonComparable<Cone>
The Cone type exposes the following members.
Constructors
Name
Description
Public Method
Cone
Initializes a new cone with a specified base plane, height and radius.
Properties
Name
Description
Public Property
ApexPoint
Point at tip of the cone.
Public Property
Axis
Unit vector axis of cone.
Public Property
BasePoint
Center of base circle.
Public Property
Height
Gets or sets the height of the circular right cone.
Public Property
IsValid
true if plane is valid, height is not zero and radius is not zero.
Public Property
Plane
Gets or sets the base plane of the cone. The apex of the cone is at the plane’s origin.
Public Property
Radius
Gets or sets the radius of the cone.
Public Property
Static Member
Unset
Gets an invalid Cone.
Methods
Name
Description
Public Method
AngleInDegrees
Computes the angle (in degrees) between the axis and the side of the cone. The angle and the height have the same sign.
Public Method
AngleInRadians
Computes the angle (in radians) between the axis and the side of the cone. The angle and the height have the same sign.
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
ToBrep
Gets a Brep representation of the cone with a single face for the cone, an edge along the cone seam, and vertices at the base and apex ends of this seam edge. The optional cap is a single face with one circular edge starting and ending at the base vertex.
Public Method
ToNurbsSurface
Constructs a Nurbs surface representation of this Cone. This is synonymous with calling NurbsSurface.CreateFromCone().
Public Method
ToRevSurface
Constructs a RevSurface representation of this Cone. This is synonymous with calling RevSurface.CreateFromCone().
Public Method
ToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)