Working on new 2D primitives and operations

This commit is contained in:
LarsBrubaker 2021-07-07 21:07:30 -07:00
parent 2bb944ba6f
commit 818a7fb8d7
13 changed files with 576 additions and 52 deletions

View file

@ -77,8 +77,9 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
var distance = Distance.Value(this);
var count = Count.Value(this);
// add in all the array items
for (int i = 0; i < Math.Max(count, 1); i++)
// add in all the array items
for (int i = 0; i < Math.Max(count, 1); i++)
{
var next = arrayItem.Clone();
next.Matrix = arrayItem.Matrix * Matrix4X4.CreateTranslation(Direction.Normal.GetNormal() * distance * i);