Class ActUtil
Provides utility methods for numerical control actions.
public static class ActUtil
- Inheritance
-
ActUtil
- Inherited Members
Methods
GetStepNum(SeqPair<DVec3d>, ICoordinateConverter, double, IMachiningMotionResolution)
Gets the step number for a machine coordinate sequence.
public static int GetStepNum(SeqPair<DVec3d> mcSeq, ICoordinateConverter coordinateConverter, double toolHeightForComputingStepNum, IMachiningMotionResolution ncResolution)
Parameters
mcSeq
SeqPair<DVec3d>The machine coordinate sequence.
coordinateConverter
ICoordinateConverterThe coordinate converter to use.
toolHeightForComputingStepNum
doubleThe tool height for computing step number.
ncResolution
IMachiningMotionResolutionThe machining motion resolution.
Returns
- int
The calculated step number.
GetStepNumOnPolarInterpolationMode(SeqPair<Vec3d>, IMachiningMotionResolution)
Gets the step number for a polar interpolation mode.
public static int GetStepNumOnPolarInterpolationMode(SeqPair<Vec3d> programPolarXczSeq, IMachiningMotionResolution ncResolution)
Parameters
programPolarXczSeq
SeqPair<Vec3d>The program polar XCZ sequence.
ncResolution
IMachiningMotionResolutionThe machining motion resolution.
Returns
- int
The calculated step number.
UpdateStepNumByCl(DVec3d, DVec3d, ICoordinateConverter, double, double, ref int)
Updates the step number based on cutter location points.
public static void UpdateStepNumByCl(DVec3d mcXyzabc0, DVec3d mcXyzabc1, ICoordinateConverter coordinateConverter, double compensationHeight, double linearResolution_mm, ref int stepNum)
Parameters
mcXyzabc0
DVec3dThe starting machine coordinate.
mcXyzabc1
DVec3dThe ending machine coordinate.
coordinateConverter
ICoordinateConverterThe coordinate converter to use.
compensationHeight
doubleThe compensation height value.
linearResolution_mm
doubleThe linear resolution in millimeters.
stepNum
intThe step number to update.