improving outline path
This commit is contained in:
parent
5ec9da8741
commit
999bad8230
3 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue