Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Layer/Layer.cs')
-rw-r--r--UVtools.Core/Layer/Layer.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/UVtools.Core/Layer/Layer.cs b/UVtools.Core/Layer/Layer.cs
index b01fc52..a5dc4e9 100644
--- a/UVtools.Core/Layer/Layer.cs
+++ b/UVtools.Core/Layer/Layer.cs
@@ -26,6 +26,9 @@ namespace UVtools.Core
{
#region Constants
public const byte HeightPrecision = 3;
+ public const decimal HeightPrecisionIncrement = 0.001M;
+ public const decimal MinimumHeight = 0.01M;
+ public const decimal MaximumHeight = 0.2M;
#endregion
#region Members
@@ -113,7 +116,7 @@ namespace UVtools.Core
}
}
- public bool IsBottomLayer => Index < ParentLayerManager.SlicerFile.BottomLayerCount;
+ public bool IsBottomLayer => (uint)(PositionZ / SlicerFile.LayerHeight) <= ParentLayerManager.SlicerFile.BottomLayerCount;
public bool IsNormalLayer => !IsBottomLayer;
/// <summary>