Mesh wrapper working much better (pinch and bend working better)

Changing Rebuilding to Suspend and Resume rebuilding
Made visible meshes return only the object not the object and mesh (mesh is on object)
Put in some debugging
This commit is contained in:
Lars Brubaker 2018-05-29 17:46:59 -07:00
parent 55ddca28ad
commit 138407e21a
39 changed files with 247 additions and 171 deletions

View file

@ -87,7 +87,8 @@ namespace MatterHackers.MatterControl.DesignTools
public override void Rebuild(UndoBuffer undoBuffer)
{
Rebuilding = true;
this.DebugDepth("Rebuild");
SuspendRebuild();
var aabb = this.GetAxisAlignedBoundingBox();
this.Children.Modify(list =>
@ -122,7 +123,7 @@ namespace MatterHackers.MatterControl.DesignTools
PlatingHelper.PlaceMeshAtHeight(this, aabb.minXYZ.Z);
}
Rebuilding = false;
ResumeRebuild();
Invalidate(new InvalidateArgs(this, InvalidateType.Content | InvalidateType.Mesh));
}