Working on new circular fit to bounds
refactoring Transform Wrapper Object
This commit is contained in:
parent
e96f7c0fdf
commit
d0430bed92
9 changed files with 136 additions and 109 deletions
|
|
@ -76,8 +76,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
{
|
||||
base.WrapItems(items, undoBuffer);
|
||||
|
||||
// use source item as the wrape may have cloned it
|
||||
var aabb = SourceItems.GetAxisAlignedBoundingBox();
|
||||
// use source item as the wraper may have cloned it
|
||||
var aabb = UntransformedChildren.GetAxisAlignedBoundingBox();
|
||||
this.RotateAbout.Origin = aabb.Center;
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
|
|||
using (RebuildLock())
|
||||
{
|
||||
// set the matrix for the inner object
|
||||
TransformItem.Matrix = RotationMatrix;
|
||||
ItemWithTransform.Matrix = RotationMatrix;
|
||||
}
|
||||
|
||||
Invalidate(InvalidateType.Matrix);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue