Changing to offsets based on nozzle diameter

Changing to 7 points rather than 5
Added fix to not save if response page is canceled
This commit is contained in:
Lars Brubaker 2019-03-21 09:36:58 -07:00
parent 6ec244de29
commit 9caa74e779
6 changed files with 32 additions and 23 deletions

View file

@ -140,7 +140,8 @@ namespace MatterHackers.MatterControl.DesignTools
var shape = new VertexStorage();
shape.MoveTo(0, 0);
// left + spaces + blocks + right
var baseWidth = (2 * spaceBetween) + (4 * spaceBetween) + (5 * TabWidth) + (2 * spaceBetween);
var sampleCount = 7;
var baseWidth = (2 * spaceBetween) + ((sampleCount - 1) * spaceBetween) + (sampleCount * TabWidth) + (2 * spaceBetween);
shape.LineTo(baseWidth, 0);
if (calibrateX)
{
@ -168,7 +169,7 @@ namespace MatterHackers.MatterControl.DesignTools
var position = new Vector2(TabWidth / 2 + 2 * spaceBetween, TabDepth / 2 - Offset * 2);
var step = new Vector2(spaceBetween + TabWidth, Offset);
for (int i = 0; i < 5; i++)
for (int i = 0; i < sampleCount; i++)
{
var cube = PlatonicSolids.CreateCube();
content.Children.Add(new Object3D()