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:
parent
55ddca28ad
commit
138407e21a
39 changed files with 247 additions and 171 deletions
|
|
@ -34,6 +34,7 @@ using MatterHackers.Agg.UI;
|
|||
using MatterHackers.Agg.VertexSource;
|
||||
using MatterHackers.DataConverters3D;
|
||||
using MatterHackers.Localizations;
|
||||
using MatterHackers.MatterControl.DesignTools.Operations;
|
||||
using MatterHackers.VectorMath;
|
||||
|
||||
namespace MatterHackers.MatterControl.DesignTools
|
||||
|
|
@ -61,7 +62,8 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
|
||||
public override void Rebuild(UndoBuffer undoBuffer)
|
||||
{
|
||||
Rebuilding = true;
|
||||
this.DebugDepth("Rebuild");
|
||||
SuspendRebuild();
|
||||
var aabb = this.GetAxisAlignedBoundingBox();
|
||||
|
||||
var path = new VertexStorage();
|
||||
|
|
@ -76,7 +78,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
|||
// If the part was already created and at a height, maintain the height.
|
||||
PlatingHelper.PlaceMeshAtHeight(this, aabb.minXYZ.Z);
|
||||
}
|
||||
Rebuilding = false;
|
||||
ResumeRebuild();
|
||||
|
||||
Invalidate(new InvalidateArgs(this, InvalidateType.Mesh));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue