commit
1e6df1da1b
4 changed files with 25 additions and 25 deletions
|
|
@ -200,12 +200,12 @@ namespace MatterHackers.Plugins.EditorTools
|
||||||
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 50, 3);
|
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 50, 3);
|
||||||
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 50, 3);
|
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 50, 3);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (shouldDrawScaleControls
|
if (shouldDrawScaleControls
|
||||||
&& (MouseIsOver || MouseDownOnControl))
|
&& (MouseIsOver || MouseDownOnControl))
|
||||||
{
|
{
|
||||||
DrawMeasureLines(e);
|
DrawMeasureLines(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Draw(e);
|
base.Draw(e);
|
||||||
|
|
|
||||||
|
|
@ -191,12 +191,12 @@ namespace MatterHackers.Plugins.EditorTools
|
||||||
Vector3 endPosition = GetCornerPosition(selectedItem, (quadrantIndex + 1) % 4);
|
Vector3 endPosition = GetCornerPosition(selectedItem, (quadrantIndex + 1) % 4);
|
||||||
Object3DControlContext.World.Render3DLine(startPosition, endPosition, theme.TextColor.WithAlpha(e.Alpha0to255), e.ZBuffered, GuiWidget.DeviceScale);
|
Object3DControlContext.World.Render3DLine(startPosition, endPosition, theme.TextColor.WithAlpha(e.Alpha0to255), e.ZBuffered, GuiWidget.DeviceScale);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (MouseIsOver || MouseDownOnControl)
|
if (MouseIsOver || MouseDownOnControl)
|
||||||
{
|
{
|
||||||
DrawMeasureLines(e, quadrantIndex);
|
DrawMeasureLines(e, quadrantIndex);
|
||||||
DrawMeasureLines(e, quadrantIndex + 1);
|
DrawMeasureLines(e, quadrantIndex + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Draw(e);
|
base.Draw(e);
|
||||||
|
|
|
||||||
|
|
@ -181,19 +181,19 @@ namespace MatterHackers.Plugins.EditorTools
|
||||||
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 30, 3);
|
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 30, 3);
|
||||||
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 30, 3);
|
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 30, 3);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (e != null && selectedItem != null)
|
if (e != null)
|
||||||
{
|
{
|
||||||
Vector3 startPosition = ObjectSpace.GetCornerPosition(selectedItem, quadrantIndex);
|
Vector3 startPosition = ObjectSpace.GetCornerPosition(selectedItem, quadrantIndex);
|
||||||
Vector3 endPosition = ObjectSpace.GetCornerPosition(selectedItem, (quadrantIndex + 1) % 4);
|
Vector3 endPosition = ObjectSpace.GetCornerPosition(selectedItem, (quadrantIndex + 1) % 4);
|
||||||
Object3DControlContext.World.Render3DLine(startPosition, endPosition, theme.TextColor.WithAlpha(e.Alpha0to255), e.ZBuffered, GuiWidget.DeviceScale);
|
Object3DControlContext.World.Render3DLine(startPosition, endPosition, theme.TextColor.WithAlpha(e.Alpha0to255), e.ZBuffered, GuiWidget.DeviceScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (MouseIsOver || MouseDownOnControl)
|
if (MouseIsOver || MouseDownOnControl)
|
||||||
{
|
{
|
||||||
DrawMeasureLines(e, quadrantIndex);
|
DrawMeasureLines(e, quadrantIndex);
|
||||||
DrawMeasureLines(e, quadrantIndex + 1);
|
DrawMeasureLines(e, quadrantIndex + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Draw(e);
|
base.Draw(e);
|
||||||
|
|
|
||||||
|
|
@ -187,11 +187,11 @@ namespace MatterHackers.Plugins.EditorTools
|
||||||
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 50, 3);
|
//Object3DControlContext.World.RenderPlane(hitPlane.Plane, Color.Red, true, 50, 3);
|
||||||
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 50, 3);
|
//Object3DControlContext.World.RenderPlane(initialHitPosition, hitPlane.Plane.Normal, Color.Red, true, 50, 3);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (MouseIsOver || MouseDownOnControl)
|
if (MouseIsOver || MouseDownOnControl)
|
||||||
{
|
{
|
||||||
DrawMeasureLines(e);
|
DrawMeasureLines(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
base.Draw(e);
|
base.Draw(e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue