Table of Contents

Class LayerMillingEngagement

Namespace
Hi.Milling.Engagements
Assembly
HiMech.dll

Milling Engagement.

[BsonIgnoreExtraElements]
public class LayerMillingEngagement : IWriteBin
Inheritance
LayerMillingEngagement
Implements
Inherited Members
Extension Methods

Constructors

LayerMillingEngagement()

Initializes a new instance of the LayerMillingEngagement class.

public LayerMillingEngagement()

LayerMillingEngagement(SortedList<double, double>, List<List<Vec3d>>, SeqPair<Mat4d>, double, double, bool)

Initializes a new instance of the LayerMillingEngagement class with specified parameters.

public LayerMillingEngagement(SortedList<double, double> zToDzList, List<List<Vec3d>> contoursOnToolRunningCoordinate, SeqPair<Mat4d> seqOnToolRunningCoordinate, double bottomRadius, double resolution, bool isSweeping)

Parameters

zToDzList SortedList<double, double>

The Z to dZ list.

contoursOnToolRunningCoordinate List<List<Vec3d>>

The contours on tool running coordinate.

seqOnToolRunningCoordinate SeqPair<Mat4d>

The sequence on tool running coordinate.

bottomRadius double

The bottom radius.

resolution double

The resolution.

isSweeping bool

Indicates whether this is a sweeping engagement.

LayerMillingEngagement(BinaryReader)

Ctor.

public LayerMillingEngagement(BinaryReader reader)

Parameters

reader BinaryReader

Properties

AvgTouchedPeriodRatio

Gets the average touched period ratio

public double AvgTouchedPeriodRatio { get; }

Property Value

double

BottomEngagements

Gets or sets the bottom engagements. Maps R values to engagement layers

[BsonIgnore]
public SortedList<double, EngagementLayer> BottomEngagements { get; set; }

Property Value

SortedList<double, EngagementLayer>

BottomEngagementsByteArray

Gets or sets the bottom engagements as a byte array for serialization

[BsonIgnoreIfNull]
public byte[] BottomEngagementsByteArray { get; set; }

Property Value

byte[]

RInterval

Gets or sets the R interval, which is equivalent to the Resolution

[BsonIgnore]
public double RInterval { get; set; }

Property Value

double

Resolution

Gets or sets the resolution value for engagement calculations in millimeters

[BsonElement]
public double Resolution { get; set; }

Property Value

double

SideEngagements

Gets or sets the side engagements. Maps Z values to engagement layers

[BsonIgnore]
public SortedList<double, EngagementLayer> SideEngagements { get; set; }

Property Value

SortedList<double, EngagementLayer>

SideEngagementsByteArray

Gets or sets the side engagements as a byte array for serialization

[BsonIgnoreIfNull]
public byte[] SideEngagementsByteArray { get; set; }

Property Value

byte[]

StepIndex

Step index. For database saving.

[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[BsonId]
public int StepIndex { get; set; }

Property Value

int

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

WriteBin(BinaryWriter)

Writes the object's data to a binary stream.

public void WriteBin(BinaryWriter writer)

Parameters

writer BinaryWriter

The binary writer to write to