Class AptDerivative
Apt derivative.
public class AptDerivative : IExpandToBox3d, IGetZrContour, IGenStl
- Inheritance
-
AptDerivative
- Implements
- Inherited Members
- Extension Methods
Constructors
AptDerivative(GeneralApt)
Ctor.
public AptDerivative(GeneralApt apt)
Parameters
aptGeneralAptapt
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
DefaultPolarResolution2d
Gets or sets the default polar resolution for 2D operations.
public static IPolarResolution2d DefaultPolarResolution2d { get; set; }
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(ref box3d_t)
Expands the destination box.
This function is usually used to compute the bounding box of elements.
box3d_t is a value type, so the destination is passed by reference
(the C++ expand_to_box3d(box3&) shape); an implementation writes
dst = dst.Expanded(...) or forwards ref dst to its parts.
public void ExpandToBox3d(ref box3d_t dst)
Parameters
dstbox3d_tDestination box, expanded in place
GenStl(IPolarResolution2d)
Generates an STL representation of the tool geometry.
public Stl GenStl(IPolarResolution2d resolution)
Parameters
resolutionIPolarResolution2dThe polar resolution to use for generation.
Returns
- Stl
The generated STL object.
GetNormal(double, double)
Get Normal Vector by height and angle.
public vec3d_t GetNormal(double z, double rad)
Parameters
Returns
GetRadius(double)
Get Radius by z.
public double GetRadius(double z)
Parameters
zdoublez
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_raddoubleResolution of latitude angle in radians