Table of Contents

Class MillingCutterEditorDisplayee

Namespace
Hi.Milling.Cutters
Assembly
HiMech.dll

Represents a displayable editor for milling cutter visualization. This class handles the rendering of cutter geometry, including flutes, profiles, and inner structures. With ShowClampedPortion on, the part of the cutter above its exposed height, the part clamped in the holder, is drawn in ClampedThemeColor, for a canvas that draws no holder. Internal Use Only

public class MillingCutterEditorDisplayee : IAnchoredDisplayee, IGetAnchor, IGetTopoIndex, IDisplayee, IExpandToBox3d, IClearCache, IDisposable
Inheritance
MillingCutterEditorDisplayee
Implements
Inherited Members
Extension Methods

Constructors

MillingCutterEditorDisplayee()

Initializes a new instance of the MillingCutterEditorDisplayee class.

public MillingCutterEditorDisplayee()

MillingCutterEditorDisplayee(Func<MillingCutter>)

Initializes a new instance of the MillingCutterEditorDisplayee class with a milling cutter host.

public MillingCutterEditorDisplayee(Func<MillingCutter> millingCutterHost)

Parameters

millingCutterHost Func<MillingCutter>

Function that provides the milling cutter instance

Properties

MillingCutterSourceFunc

Gets or sets the function that provides the milling cutter instance.

public Func<MillingCutter> MillingCutterSourceFunc { get; set; }

Property Value

Func<MillingCutter>

ShapeMode

Gets or sets the current display shape mode.

public MillingCutterEditorDisplayee.ShapeModeEnum ShapeMode { get; set; }

Property Value

MillingCutterEditorDisplayee.ShapeModeEnum

ShowClampedPortion

Internal Use Only. Whether the part of the cutter above its exposed height (ExposedHeight_mm, the part clamped in the holder) is drawn in ClampedThemeColor. The upper beam is drawn as two meshes: the beam solid's own published mesh is cut at the exposed height on the CPU, the part below the cut drawn as the solid draws itself and the part above it in the clamped colour, so that above the cut every pixel has one surface and no second one competes with it in depth. The flutes' part above the cut (an exposed height below the flute top; 0 is a new tool's) gets circles and axial lines in the clamped colour, and the blue envelope lines stop at the cut; the flute's own solids keep their colours, which tell a face's front from its back in the detail shape. An exposed height that is NaN or not positive clamps the whole cutter from the tip; one at or above the beam's top leaves the beam as it is. While the beam's mesh is not published yet the beam alone is drawn as the solid draws itself (its loading placeholder kicks the build; the published mesh changes the key) and the flute's lines are as above; when the cut failed the frame is as with the switch off. The cut costs one pass over the beam's triangles and two topology builds on the render thread in the frame the key changes (the flute's lines alone are made again when their share group died); a large STL beam is cut there too. Off by default and off on the Tool House canvas, whose holder shows the clamping itself; on for the Execution page's cutting-footprint canvas, which draws no holder. Off, nothing of this displayee changes.

public bool ShowClampedPortion { get; set; }

Property Value

bool

Methods

ClearCache()

Clears all cached display data.

public void ClearCache()

Display(Bind)

Displays the milling cutter visualization. Nothing once disposed: a frame that reached a disposed displayee would build its drawings anew, and nobody would dispose them.

public void Display(Bind bind)

Parameters

bind Bind

The binding context for display

Dispose()

Disposes of all resources.

public void Dispose()

Dispose(bool)

Disposes of unmanaged resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

True if disposing, false if finalizing

ExpandToBox3d(ref box3d_t)

Expands the bounding box to include the cutter geometry.

public void ExpandToBox3d(ref box3d_t dst)

Parameters

dst box3d_t

The destination bounding box to expand

GetAnchor()

Gets the root anchor point of the cutter.

public Anchor GetAnchor()

Returns

Anchor

The cutter tip anchor