[StructLayout(LayoutKind.Sequential, Pack = 8, Size = 144)] [Serializable] public struct Cone : IEpsilonComparable<Cone>
Represents the center plane, radius and height values in a right circular cone.

Constructors

Cone

#Since v5.0
public Cone(Plane plane, double height, double radius)
Initializes a new cone with a specified base plane, height and radius.
plane (Plane)Base plane of cone. The apex of the cone is at the plane's origin.
height (double)Height of cone.
radius (double)Radius of cone.

Properties

ApexPoint

#Since v5.0
public Point3d ApexPoint { get; }
Point at tip of the cone.

Axis

#Since v5.0
public Vector3d Axis { get; }
Unit vector axis of cone.

BasePoint

#Since v5.0
public Point3d BasePoint { get; }
Center of base circle.

Height

#Since v5.0
public double Height { get; set; }
Gets or sets the height of the circular right cone.

IsValid

#Since v5.0
public bool IsValid { get; }
true if plane is valid, height is not zero and radius is not zero.

Plane

#Since v5.0
public Plane Plane { get; set; }
Gets or sets the base plane of the cone. The apex of the cone is at the plane's origin.

Radius

#Since v5.0
public double Radius { get; set; }
Gets or sets the radius of the cone.

Unset

#Since v5.0
public static Cone Unset { get; }
Gets an invalid Cone.

Methods

AngleInDegrees

#Since v5.0
[ConstOperation] public double AngleInDegrees()
Computes the angle (in degrees) between the axis and the side of the cone. The angle and the height have the same sign.
An angle in degrees.

AngleInRadians

#Since v5.0
[ConstOperation] public double AngleInRadians()
Computes the angle (in radians) between the axis and the side of the cone. The angle and the height have the same sign.
Math.Atan(Radius / Height) if the height is not 0; 0 if the radius is 0; Math.PI otherwise.

EpsilonEquals

#Since v5.4
[ConstOperation] public bool EpsilonEquals(Cone other, double epsilon)
Check that all values in other are within epsilon of the values in this
other (Cone)
epsilon (double)
EpsilonEquals

ToBrep

#Since v5.0
[ConstOperation] public Brep ToBrep(bool capBottom)
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.
capBottom (bool)true if the bottom should be filled with a surface. false otherwise.
A brep (polysurface) representation of this cone values.

ToNurbsSurface

#Since v5.0
[ConstOperation] public NurbsSurface ToNurbsSurface()
Constructs a Nurbs surface representation of this Cone. This is synonymous with calling NurbsSurface.CreateFromCone().
A Nurbs surface representation of the cone or null.

ToRevSurface

#Since v5.0
[ConstOperation] public RevSurface ToRevSurface()
Constructs a RevSurface representation of this Cone. This is synonymous with calling RevSurface.CreateFromCone().
A RevSurface representation of the cone or null.