Table of Contents

Class GeneralApt

Namespace
Hi.Milling.Apts
Assembly
HiCbtr.dll

APT standard milling cutter geometry.

public class GeneralApt : IAptBased, IGetGeneralApt, IAbstractNote, IGetDiameter, IGetFluteHeight, IExpandToBox3d, IMakeXmlSource, IDuplicate, IEquatable<GeneralApt>, IAptRc, IAptRr, IAptRz, IAptAlpha, IAptBeta, IGetZrContour
Inheritance
GeneralApt
Implements
Inherited Members
Extension Methods

Constructors

GeneralApt()

Ctor.

public GeneralApt()

GeneralApt(GeneralApt)

Copy ctor.

public GeneralApt(GeneralApt src)

Parameters

src GeneralApt

src

GeneralApt(double, double, double, double, double, double, double)

Ctor.

public GeneralApt(double D, double R0, double Rr, double Rz, double alpha_rad, double beta_rad, double fluteH)

Parameters

D double

see Diameter_mm

R0 double

see Rc_mm

Rr double

see Rr_mm

Rz double

see Rz_mm

alpha_rad double

see Alpha_rad

beta_rad double

see Beta_rad

fluteH double

see FluteHeight_mm

GeneralApt(XElement)

Ctor.

public GeneralApt(XElement src)

Parameters

src XElement

XML

Properties

AbstractNote

Gets a descriptive note or abstract about the object.

public string AbstractNote { get; }

Property Value

string

Alpha_deg

Alpha_rad in degree.

public double Alpha_deg { get; set; }

Property Value

double

Alpha_rad

The angle between horizontal plane and the cone surface of the cutter tip. The angle is downside the cutter round (if exists). If the cutter is cylindrical mill, the angle is 0. The unit is radian.

public double Alpha_rad { get; set; }

Property Value

double

AptDerivative

Gets the APT derivative object, creating it if it doesn't exist.

public AptDerivative AptDerivative { get; }

Property Value

AptDerivative

Beta_deg

Beta_rad in degree.

public double Beta_deg { get; set; }

Property Value

double

Beta_rad

The angle between stick axis and the side plane of cutter. The angle is upside the cutter round (if exists). The unit is radian.

public double Beta_rad { get; set; }

Property Value

double

Diameter_mm

Diameter.

public double Diameter_mm { get; set; }

Property Value

double

FluteHeight_mm

Full Height.

public double FluteHeight_mm { get; set; }

Property Value

double

Rc_mm

Round radius.

public double Rc_mm { get; set; }

Property Value

double

Rr_mm

Distance between round center to the stick axis.

public double Rr_mm { get; set; }

Property Value

double

Rz_mm

Center between the tip to the round center.

public double Rz_mm { get; set; }

Property Value

double

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

Methods

ClearCache()

Clears the internal cache of APT derivative.

public void ClearCache()

Duplicate(params object[])

Creates a deep copy of the object, excluding any source file references.

public object Duplicate(params object[] res)

Parameters

res object[]

Optional parameters that may be needed during the duplication process

Returns

object

A new instance that is a deep copy of the original object

Equals(GeneralApt)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(GeneralApt src)

Parameters

src GeneralApt

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

ExpandToBox3d(Box3d)

Expands the destination box. This function is usually used to compute the bounding box of elements.

public void ExpandToBox3d(Box3d dst)

Parameters

dst Box3d

Destination box

GenStl(int, int)

Generate shank stl.

public Stl GenStl(int latitudeNum = 8, int longtitudeNum = 24)

Parameters

latitudeNum int

latitude number

longtitudeNum int

longtitude number

Returns

Stl

shank stl

GetGeneralApt()

Get Apt.

public GeneralApt GetGeneralApt()

Returns

GeneralApt

Apt

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetZrContour(double)

Gets Z-R contour data as a list of PairZr objects. The Z values should generally be ordered from smallest to largest.

public IList<PairZr> GetZrContour(double latitudeAngleResolution_rad)

Parameters

latitudeAngleResolution_rad double

Resolution of latitude angle in radians

Returns

IList<PairZr>

Z-R contour data as a list of PairZr objects

MakeXmlSource(string, string)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.