Skip to content

Commit

Permalink
Make sure we always consider all of the part
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbrubaker committed Jul 12, 2018
1 parent 18f8d12 commit 8090dde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slicer/Slicer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ExtruderData(OptimizedMesh ov, ConfigSettings config)
modelSize = ov.containingCollection.size_um;
modelMin = ov.containingCollection.minXYZ_um;

long heightWithoutFirstLayer = modelSize.Z - initialLayerThickness_um + modelMin.Y;
long heightWithoutFirstLayer = modelSize.Z - initialLayerThickness_um + Math.Max(0, modelMin.Y);
int countOfNormalThicknessLayers = Math.Max(0, (int)((heightWithoutFirstLayer / (double)layerThickness_um) + .5));

int layerCount = countOfNormalThicknessLayers;
Expand Down

0 comments on commit 8090dde

Please sign in to comment.