Adding revolve

cleaning up 2D editor controls
This commit is contained in:
LarsBrubaker 2020-10-11 14:53:46 -07:00
parent a71b54a7eb
commit dcccf5fd9c
14 changed files with 320 additions and 34 deletions

View file

@ -51,7 +51,7 @@ using Polygons = System.Collections.Generic.List<System.Collections.Generic.List
namespace MatterHackers.MatterControl.DesignTools
{
public class ImageToPathObject3D : Object3D, IPathObject, IEditorDraw
public class ImageToPathObject3D : Object3D, IPathObject, IEditorDraw, IObject3DControlsProvider
{
private ThresholdFunctions _featureDetector = ThresholdFunctions.Silhouette;
@ -194,6 +194,12 @@ namespace MatterHackers.MatterControl.DesignTools
}
}
public void AddObject3DControls(Object3DControlsLayer object3DControlsLayer)
{
object3DControlsLayer.AddControls(ControlTypes.Standard2D);
}
public static void DrawPath(IObject3D item)
{
if (item is IPathObject pathObject)