Class ActUtil
Provides utility methods for numerical control actions.
public static class ActUtil
- Inheritance
-
ActUtil
- Inherited Members
Methods
GetClSteps(IActClMove, int, IMachiningMotionResolution)
Splits a cutter location movement into a sequence of steps according to the NC resolution and desired step count.
public static IEnumerable<ActClStep> GetClSteps(this IActClMove actClMove, int stepNum, IMachiningMotionResolution ncResolution)
Parameters
actClMoveIActClMoveThe cutter location movement action.
stepNumintThe number of steps to split into.
ncResolutionIMachiningMotionResolutionThe machining motion resolution.
Returns
- IEnumerable<ActClStep>
An enumerable sequence of ActClStep.
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
mcSeqSeqPair<DVec3d>The machine coordinate sequence.
coordinateConverterICoordinateConverterThe coordinate converter to use.
toolHeightForComputingStepNumdoubleThe tool height for computing step number.
ncResolutionIMachiningMotionResolutionThe 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
programPolarXczSeqSeqPair<Vec3d>The program polar XCZ sequence.
ncResolutionIMachiningMotionResolutionThe 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
mcXyzabc0DVec3dThe starting machine coordinate.
mcXyzabc1DVec3dThe ending machine coordinate.
coordinateConverterICoordinateConverterThe coordinate converter to use.
compensationHeightdoubleThe compensation height value.
linearResolution_mmdoubleThe linear resolution in millimeters.
stepNumintThe step number to update.