Table of Contents

Class TaperApt

Namespace
Hi.Milling.Apts
Assembly
HiCbtr.dll

Taper End APT.

public class TaperApt : IAptBased, IGetGeneralApt, IAbstractNote, IGetDiameter, IGetFluteHeight, IExpandToBox3d, IMakeXmlSource, IDuplicate, IAptRz, IAptAlpha, IAptBeta, IToXElement
Inheritance
TaperApt
Implements
Inherited Members
Extension Methods

Constructors

TaperApt()

Ctor.

public TaperApt()

TaperApt(XElement)

Ctor.

public TaperApt(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

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

Height of flute.

public double FluteHeight_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.

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

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

GetGeneralApt()

Get Apt.

public GeneralApt GetGeneralApt()

Returns

GeneralApt

Apt

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

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.

ToXElement()

Get the XElement to represent the object.

public XElement ToXElement()

Returns

XElement

XElement to represent the object.