GetCone

public class GetCone : IDisposable
Class provides user interface to define a cone.

Constructors

GetCone

#Since v6.0
public GetCone()

Finalizer

~GetCone

#
~GetCone()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

AllowInputAngle

#Since v6.0
public bool AllowInputAngle { get; set; }

ApexAngleDegrees

#Since v6.0
public double ApexAngleDegrees { get; set; }

AroundDirectionMinimumCount

#Since v9.0
public int AroundDirectionMinimumCount { get; set; }
The minimum number of faces in the around direction.

BaseAngleDegrees

#Since v6.0
public double BaseAngleDegrees { get; set; }

BothSides

#Since v9.0
public bool BothSides { get; set; }
Determines if we're supposed to do both sides

Cap

#Since v6.0
public bool Cap { get; set; }
Gets or sets whether or not the output should be capped.

ConeConstraint

#Since v6.0
public ConeConstraint ConeConstraint { get; set; }
State of the cone/cylinder constraint option. When the cone/cylinder option is selected, the circle is being made as a base for a cone/cylinder. By default the vertical cone/cylinder option not available but is not selected. By default the "Vertical" option applies to VerticalCircle.

DefaultSize

#Since v6.0
public double DefaultSize { get; set; }
Default radius or diameter (based on InDiameterMode)

Height

#Since v6.0
public double Height { get; set; }

InDiameterMode

#Since v6.0
public bool InDiameterMode { get; set; }
Determines if the "size" value is representing a radius or diameter

VerticalDirectionMinimumCount

#Since v9.0
public int VerticalDirectionMinimumCount { get; set; }
The minimum number of faces in the vertical direction.

Methods

Dispose

#Since v6.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

Dispose

#
protected virtual void Dispose(bool disposing)
For derived class implementers.

This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.

You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.

Also, you must call the base virtual method within your overriding method.

disposing (bool)true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.

Get

#Since v6.0
public Result Get(out Cone cone)
Prompt for the getting of a cone.
cone (out Cone)The cone geometry defined by the user.
The result of the getting operation.

GetMesh

#Since v7.0
public Result GetMesh(ref int verticalFaces, ref int aroundFaces, out Cone cone)
Prompt for the getting of a mesh cone.
verticalFaces (ref int)The number of faces in the vertical direction.
aroundFaces (ref int)The number of faces in the around direction
cone (out Cone)The cone geometry defined by the user.
The result of the getting operation.

GetMesh

#Since v7.0
public Result GetMesh(ref int verticalFaces, ref int aroundFaces, ref int capStyle, out Cone cone)
Prompt for the getting of a mesh cone.
Remarks: The prompt for capStyle will only be seen if it's not zero, aroundFaces is even and the solid option is on.
verticalFaces (ref int)The number of faces in the vertical direction.
aroundFaces (ref int)The number of faces in the around direction
capStyle (ref int)Set to 0 if you don't want the prompt, 3 is triangles, 4 is quads.
cone (out Cone)The cone geometry defined by the user.
The result of the getting operation.