Class BitwiseMillingEngagement
- Namespace
- Hi.Milling.Engagements
- Assembly
- HiMech.dll
Represents a bitwise milling engagement that uses bit arrays to efficiently store engagement information.
public class BitwiseMillingEngagement
- Inheritance
-
BitwiseMillingEngagement
- Inherited Members
- Extension Methods
Constructors
BitwiseMillingEngagement(List<PairZr>, List<List<Vec3d>>, SeqPair<Mat4d>, double, double)
Initializes a new instance of the BitwiseMillingEngagement class.
public BitwiseMillingEngagement(List<PairZr> fluteZrContour, List<List<Vec3d>> orthodoxForwardContours, SeqPair<Mat4d> seqOnToolRunningCoordinate, double zInterval, double rInterval)
Parameters
fluteZrContour
List<PairZr>The flute Z-R contour.
orthodoxForwardContours
List<List<Vec3d>>The orthodox forward contours.
seqOnToolRunningCoordinate
SeqPair<Mat4d>The sequence on tool running coordinate.
zInterval
doubleThe Z interval.
rInterval
doubleThe R interval.
Fields
angleIntervalNum
Number of angle interval.
public const int angleIntervalNum = 64
Field Value
angleInterval_rad
angle interval in radian.
public const double angleInterval_rad = 0.09817477042468103
Field Value
Properties
BottomBits
Gets or sets the bottom bits representing bottom engagement.
public List<ulong> BottomBits { get; set; }
Property Value
SideBits
Gets or sets the side bits representing side engagement.
public List<ulong> SideBits { get; set; }
Property Value
Methods
Delta(BitwiseMillingEngagement, BitwiseMillingEngagement, out int)
Contact area difference from engagement1
.
public static int Delta(BitwiseMillingEngagement engagement0, BitwiseMillingEngagement engagement1, out int deltaIncreaseNum)
Parameters
engagement0
BitwiseMillingEngagementprevious engagement on time line. Null value is accepted.
engagement1
BitwiseMillingEngagementcurrent engagement on time line. Null value is accepted.
deltaIncreaseNum
intThe relative increase number of contact area from
engagement0
toengagement1
. Negative value means the contact area decreased.
Returns
- int
Contact area difference
ToBottomBitString()
Converts the bottom bits to a string representation.
public string ToBottomBitString()
Returns
- string
A string representation of the bottom bits.
ToSideBitString()
Converts the side bits to a string representation.
public string ToSideBitString()
Returns
- string
A string representation of the side bits.