T_Rhino_Geometry_Cone - mcneel/rhinocommon-api-docs GitHub Wiki

Cone Structure

Represents the center plane, radius and height values in a right circular cone.

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

Syntax

C#

[SerializableAttribute]
public struct Cone

VB

<SerializableAttribute>
Public Structure 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.
  Back to Top

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 propertyStatic member Unset Gets an invalid Cone.
  Back to Top

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.)
  Back to Top

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️