Got mirror working as a source object
This commit is contained in:
parent
935f80cff1
commit
5a584cc6a4
8 changed files with 172 additions and 27 deletions
|
|
@ -110,9 +110,14 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
|
||||
public override Task Rebuild()
|
||||
{
|
||||
return Task.Run((System.Action)(() =>
|
||||
{
|
||||
using (RebuildLock())
|
||||
this.DebugDepth("Rebuild");
|
||||
|
||||
var rebuildLock = RebuildLock();
|
||||
|
||||
return ApplicationController.Instance.Tasks.Execute(
|
||||
"Mirror".Localize(),
|
||||
null,
|
||||
(reporter, cancellationToken) =>
|
||||
{
|
||||
var aabb = (this).GetAxisAlignedBoundingBox();
|
||||
|
||||
|
|
@ -146,8 +151,10 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
// If the part was already created and at a height, maintain the height.
|
||||
PlatingHelper.PlaceMeshAtHeight(this, (double)aabb.MinXYZ.Z);
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
rebuildLock.Dispose();
|
||||
return Task.CompletedTask;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue