mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-13 03:47:40 +02:00
bf0feb805c
* (Add) Tool: Layer Re-Height - Allow change layer height * (Add) Setting: Gap closing default iterations * (Add) Setting: Noise removal default iterations * (Add) Setting: Repair layers and islands by default * (Add) Setting: Remove empty layers by default * (Add) Setting: Repair resin traps by default * (Change) Setting: "Reset to Defaults" changed to "Reset All Settings" * (Fix) CWS: Lack of ';' on GCode was preventing printer from printing
26 lines
753 B
C#
26 lines
753 B
C#
|
|
namespace UVtools.Core.Operations
|
|
{
|
|
public sealed class OperationLayerReHeight
|
|
{
|
|
public bool IsMultiply { get; }
|
|
public bool IsDivision => !IsMultiply;
|
|
public byte Modifier { get; }
|
|
public decimal LayerHeight { get; }
|
|
public uint LayerCount { get; }
|
|
|
|
public OperationLayerReHeight(bool isMultiply, byte modifier, decimal layerHeight, uint layerCount)
|
|
{
|
|
IsMultiply = isMultiply;
|
|
Modifier = modifier;
|
|
LayerHeight = layerHeight;
|
|
LayerCount = layerCount;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return (IsMultiply ? 'x' : '÷') +$" {Modifier} → {LayerCount} layers at {LayerHeight}mm";
|
|
}
|
|
}
|
|
}
|