Bottom clip will just go in the mesh position.

This commit is contained in:
larsbrubaker 2015-02-16 22:42:52 -08:00
parent 5b509f340f
commit 9d176fcd3b

View file

@ -73,10 +73,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration.Slicing
{
}
public List<SliceLayer> GetAllLayers(Mesh meshToSlice, double firstLayerHeight, double otherLayerHeights, double bottomClip)
public List<SliceLayer> 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)