Warn when adding big parts to the queue

This commit is contained in:
Lars Brubaker 2015-02-18 12:20:58 -08:00
parent fe7ed2a59f
commit c484b5746e
5 changed files with 17 additions and 9 deletions

View file

@ -83,10 +83,16 @@ namespace MatterHackers.MatterControl.Slicing
{
SliceLayer layer = allLayers[layerIndex];
double zHeight = layer.ZHeight;
if (zHeight < minZ || zHeight > maxZ)
if (zHeight < minZ)
{
// not up to the start of the face yet
continue;
}
if (zHeight > maxZ)
{
// done with this face
break;
}
Plane cutPlane = new Plane(Vector3.UnitZ, zHeight);
Vector3 start;