Class EngagementLayer
- Namespace
- Hi.Milling.Engagements
- Assembly
- HiMech.dll
Represents a layer of engagement between a tool and workpiece.
public class EngagementLayer : IWriteBin
- Inheritance
-
EngagementLayer
- Implements
- Inherited Members
- Extension Methods
Constructors
EngagementLayer()
Initializes a new instance of the EngagementLayer class
public EngagementLayer()
EngagementLayer(BinaryReader)
Initializes a new instance of the EngagementLayer class by reading from a binary stream
public EngagementLayer(BinaryReader reader)
Parameters
readerBinaryReaderThe binary reader to read the engagement layer data from
Properties
Dv
Gets or sets the interval value (in millimeters) for either Z coordinate (for side engagement) or R coordinate (for bottom engagement). A layer whose two bounds, the key minus and plus half of this value, are not two distinct values (0, negative, NaN, or so small that half of it rounds onto the key) is skipped by both force kernels: it contributes no force, as does a layer whose key or boundary points are not numbers. The engine's own layers always separate (GetZToDzList(List<double>, double) lays none that does not).
public double Dv { get; set; }
Property Value
Ranges
Gets or sets the list of angular ranges where the tool engages with the workpiece. Each range represents a start and end angle in radians.
public List<Range<double>> Ranges { get; set; }
Property Value
Methods
ToString()
Returns a string representation of the engagement layer
public override string ToString()
Returns
- string
A string containing the Dv value and the ranges of engagement angles
WriteBin(BinaryWriter)
Writes the engagement layer data to a binary stream
public void WriteBin(BinaryWriter writer)
Parameters
writerBinaryWriterThe binary writer to write the data to