Class TaperApt
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
XElementXML
Properties
AbstractNote
Gets a descriptive note or abstract about the object.
public string AbstractNote { get; }
Property Value
Alpha_deg
Alpha_rad in degree.
public double Alpha_deg { get; set; }
Property Value
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
Beta_deg
Beta_rad in degree.
public double Beta_deg { get; set; }
Property Value
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
Diameter_mm
Diameter.
public double Diameter_mm { get; set; }
Property Value
FluteHeight_mm
Height of flute.
public double FluteHeight_mm { get; set; }
Property Value
Rz_mm
Center between the tip to the round center.
public double Rz_mm { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
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
Box3dDestination 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
stringThe base directory for resolving relative paths
relFile
stringThe 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()