Table of Contents

Class AptDerivative

Namespace
Hi.Milling.Apts
Assembly
HiCbtr.dll

Apt derivative.

public class AptDerivative : IExpandToBox3d, IGetZrContour, IGenStl
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

DefaultPolarResolution2d

public static IPolarResolution2d DefaultPolarResolution2d { get; set; }

Property Value

IPolarResolution2d

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(IPolarResolution2d)

Generate a new Stl.

public Stl GenStl(IPolarResolution2d resolution)

Parameters

resolution IPolarResolution2d

Returns

Stl

newly created 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

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