Skip to content

Cone

Public Struct

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

Initializes a new cone with a specified base plane, height and radius.


Properties

Name

Description


Public Property

Point at tip of the cone.


Public Property

Unit vector axis of cone.


Public Property

Center of base circle.


Public Property

Gets or sets the height of the circular right cone.


Public Property

true if plane is valid, height is not zero and radius is not zero.


Public Property

Gets or sets the base plane of the cone. The apex of the cone is at the plane’s origin.


Public Property

Gets or sets the radius of the cone.


Public Property
Static Member

Gets an invalid Cone.


Methods

Name

Description


Public Method

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

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

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

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

Constructs a Nurbs surface representation of this Cone. This is synonymous with calling NurbsSurface.CreateFromCone().


Public Method

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.)