Class AptDerivative
Apt derivative.
public class AptDerivative : IExpandToBox3d, IGetZrContour
- Inheritance
-
AptDerivative
- Implements
- Inherited Members
- Extension Methods
Constructors
AptDerivative(GeneralApt)
Ctor.
public AptDerivative(GeneralApt apt)
Parameters
apt
GeneralAptapt
Properties
Apt
Gets the general APT.
public GeneralApt Apt { get; }
Property Value
CosAlpha
Gets the cosine of Alpha angle.
public double CosAlpha { get; }
Property Value
CosBeta
Gets the cosine of Beta angle.
public double CosBeta { get; }
Property Value
Mr
Gets the radial coordinate of point M.
public double Mr { get; }
Property Value
Mz
Gets the Z-coordinate of point M.
public double Mz { get; }
Property Value
Nr
Gets the radial coordinate of point N.
public double Nr { get; }
Property Value
Nz
Gets the Z-coordinate of point N.
public double Nz { get; }
Property Value
SinAlpha
Gets the sine of Alpha angle.
public double SinAlpha { get; }
Property Value
SinBeta
Gets the sine of Beta angle.
public double SinBeta { get; }
Property Value
TanAlpha
Gets the tangent of Alpha angle.
public double TanAlpha { get; }
Property Value
TanBeta
Gets the tangent of Beta angle.
public double TanBeta { get; }
Property Value
Methods
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 longitudeNum = 24)
Parameters
Returns
- Stl
shank stl
GetNormal(double, double)
Get Normal Vector by height and angle.
public Vec3d GetNormal(double z, double rad)
Parameters
Returns
GetPairZrList(int)
Gets a list of Z-R pairs that define the tool profile.
public List<PairZr> GetPairZrList(int latitudeNum = 8)
Parameters
latitudeNum
intThe number of latitude divisions for the profile.
Returns
GetRadius(double)
Get Radius by z.
public double GetRadius(double z)
Parameters
z
doublez
Returns
- double
radius at z
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