Class GeneralApt
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
GeneralAptsrc
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
doublesee Diameter_mm
R0
doublesee Rc_mm
Rr
doublesee Rr_mm
Rz
doublesee Rz_mm
alpha_rad
doublesee Alpha_rad
beta_rad
doublesee Beta_rad
fluteH
doublesee FluteHeight_mm
GeneralApt(XElement)
Ctor.
public GeneralApt(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
AptDerivative
Gets the APT derivative object, creating it if it doesn't exist.
public AptDerivative AptDerivative { get; }
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
Full Height.
public double FluteHeight_mm { get; set; }
Property Value
Rc_mm
Round radius.
public double Rc_mm { get; set; }
Property Value
Rr_mm
Distance between round center to the stick axis.
public double Rr_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 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
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
GenStl(int, int)
Generate shank stl.
public Stl GenStl(int latitudeNum = 8, int longtitudeNum = 24)
Parameters
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
doubleResolution of latitude angle in radians
Returns
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
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.