Table of Contents

Class AptDerivative

Namespace
Hi.Milling.Apts
Assembly
HiCbtr.dll

Apt derivative.

public class AptDerivative : IExpandToBox3d, IGetZrContour
Inheritance
AptDerivative
Implements
Inherited Members
Extension Methods

Constructors

AptDerivative(GeneralApt)

Ctor.

public AptDerivative(GeneralApt apt)

Parameters

apt GeneralApt

apt

Properties

Apt

Gets the general APT.

public GeneralApt Apt { get; }

Property Value

GeneralApt

CosAlpha

Gets the cosine of Alpha angle.

public double CosAlpha { get; }

Property Value

double

CosBeta

Gets the cosine of Beta angle.

public double CosBeta { get; }

Property Value

double

Mr

Gets the radial coordinate of point M.

public double Mr { get; }

Property Value

double

Mz

Gets the Z-coordinate of point M.

public double Mz { get; }

Property Value

double

Nr

Gets the radial coordinate of point N.

public double Nr { get; }

Property Value

double

Nz

Gets the Z-coordinate of point N.

public double Nz { get; }

Property Value

double

SinAlpha

Gets the sine of Alpha angle.

public double SinAlpha { get; }

Property Value

double

SinBeta

Gets the sine of Beta angle.

public double SinBeta { get; }

Property Value

double

TanAlpha

Gets the tangent of Alpha angle.

public double TanAlpha { get; }

Property Value

double

TanBeta

Gets the tangent of Beta angle.

public double TanBeta { get; }

Property Value

double

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 Box3d

Destination box

GenStl(int, int)

Generate shank stl.

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

Parameters

latitudeNum int

latitude number

longitudeNum int

longitude number

Returns

Stl

shank stl

GetNormal(double, double)

Get Normal Vector by height and angle.

public Vec3d GetNormal(double z, double rad)

Parameters

z double

height

rad double

x-axis is begin; z-axis is principle

Returns

Vec3d

GetPairZrList(int)

Gets a list of Z-R pairs that define the tool profile.

public List<PairZr> GetPairZrList(int latitudeNum = 8)

Parameters

latitudeNum int

The number of latitude divisions for the profile.

Returns

List<PairZr>

A list of Z-R coordinate pairs defining the tool profile.

GetRadius(double)

Get Radius by z.

public double GetRadius(double z)

Parameters

z double

z

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 double

Resolution of latitude angle in radians

Returns

IList<PairZr>

Z-R contour data as a list of PairZr objects