simple mesh

This commit is contained in:
Lars Brubaker 2019-01-11 16:49:34 -08:00
parent d095171a01
commit e1ce3419f2
55 changed files with 713 additions and 698 deletions

View file

@ -81,7 +81,7 @@ namespace MatterHackers.MatterControl.DesignTools
if (startingAabb.ZSize > 0)
{
// If the part was already created and at a height, maintain the height.
PlatingHelper.PlaceMeshAtHeight(this, startingAabb.minXYZ.Z);
PlatingHelper.PlaceMeshAtHeight(this, startingAabb.MinXYZ.Z);
}
}
@ -158,12 +158,12 @@ namespace MatterHackers.MatterControl.DesignTools
// Convert VertexSource into expected Polygons
Polygons polygonShape = (vertexSource == null) ? null : vertexSource.CreatePolygons();
GenerateBase(polygonShape, firstChild.GetAxisAlignedBoundingBox().minXYZ.Z);
GenerateBase(polygonShape, firstChild.GetAxisAlignedBoundingBox().MinXYZ.Z);
if (startingAabb.ZSize > 0)
{
// If the part was already created and at a height, maintain the height.
PlatingHelper.PlaceMeshAtHeight(this, startingAabb.minXYZ.Z);
PlatingHelper.PlaceMeshAtHeight(this, startingAabb.MinXYZ.Z);
}
}