From 9d176fcd3b6ecabf4d91da3f563485f09b2da96b Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Mon, 16 Feb 2015 22:42:52 -0800 Subject: [PATCH] Bottom clip will just go in the mesh position. --- SlicerConfiguration/Slicing/SliceLayers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SlicerConfiguration/Slicing/SliceLayers.cs b/SlicerConfiguration/Slicing/SliceLayers.cs index 024dd2c87..c5cc81001 100644 --- a/SlicerConfiguration/Slicing/SliceLayers.cs +++ b/SlicerConfiguration/Slicing/SliceLayers.cs @@ -73,10 +73,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration.Slicing { } - public List GetAllLayers(Mesh meshToSlice, double firstLayerHeight, double otherLayerHeights, double bottomClip) + public List GetAllLayers(Mesh meshToSlice, double firstLayerHeight, double otherLayerHeights) { AxisAlignedBoundingBox meshBounds = meshToSlice.GetAxisAlignedBoundingBox(); - double heightWithoutFirstLayer = meshBounds.ZSize - firstLayerHeight - bottomClip; + double heightWithoutFirstLayer = meshBounds.ZSize - firstLayerHeight; int layerCount = (int)((heightWithoutFirstLayer / otherLayerHeights) + .5); double currentZ = otherLayerHeights; if (firstLayerHeight > 0)