improving outline path

This commit is contained in:
Lars Brubaker 2023-04-11 17:36:14 -07:00
parent 5ec9da8741
commit 999bad8230
3 changed files with 4 additions and 4 deletions

View file

@ -96,13 +96,11 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
public override Task Rebuild()
{
this.DebugDepth("Rebuild");
bool valuesChanged = false;
var outlineWidth = OutlineWidth.Value(this);
if (outlineWidth < .01 || outlineWidth > 1000)
{
OutlineWidth = Math.Min(1000, Math.Max(.01, outlineWidth));
valuesChanged = true;
}
using (RebuildLock())
@ -131,6 +129,8 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
var aPolys = path.CreatePolygons();
aPolys = aPolys.GetCorrectedWinding();
var offseter = new ClipperOffset();
var outlineWidth = OutlineWidth.Value(this);

View file

@ -76,7 +76,6 @@ namespace MatterHackers.MatterControl.Library
IsReadOnly = true
});
#if DEBUG
this.ChildContainers.Add(
new DynamicContainerLink(
"Primitives 2D".Localize(),
@ -86,7 +85,6 @@ namespace MatterHackers.MatterControl.Library
{
IsReadOnly = true
});
#endif
#if DEBUG
int index = 0;

View file

@ -58,6 +58,7 @@ namespace MatterHackers.MatterControl.Library
"Box".Localize(),
async () => await BoxPathObject3D.Create())
{ DateCreated = new DateTime(index++) },
#if DEBUG
new GeneratorItem(
"Triangle".Localize(),
async () => await PyramidObject3D.Create())
@ -86,6 +87,7 @@ namespace MatterHackers.MatterControl.Library
"Circle".Localize(),
async () => await SphereObject3D.Create())
{ DateCreated = new DateTime(index++) },
#endif
};
string title = "2D Shapes".Localize();