Class FluteContourUtil
- Namespace
- Hi.Milling.FluteContours
- Assembly
- HiMech.dll
Provides utility methods for working with flute contours in milling tools.
public static class FluteContourUtil
- Inheritance
-
FluteContourUtil
- Inherited Members
Methods
GetDrawing(ISideContour, out Drawing, out Drawing, out NativeTopoStl3d)
Generates drawing representations for a side contour.
public static void GetDrawing(this ISideContour src, out Drawing faceDrawing, out Drawing lineDrawing, out NativeTopoStl3d topoStl)
Parameters
srcISideContourThe source side contour to generate drawings from
faceDrawingDrawingOutput parameter that receives the face drawing representation
lineDrawingDrawingOutput parameter that receives the line drawing representation
topoStlNativeTopoStl3dOutput parameter that receives the STL topology representation
Remarks
This method creates three different visual representations of the contour:
- A face drawing showing the surface
- A line drawing showing the edges
- An STL representation for 3D visualization
The method uses a constant inner radius ratio of 0.4 and calculates appropriate angles for the radial rake to create a smooth transition between the outer and inner surfaces.
GetFluteContourList(IFluting, double)
Gets the flute contours of a fluting as the spindle sees them: every flute turned about the cutter axis by the clamping's setup angle (SetupAngle_deg), so each one sits at flute offset angle + setup angle. This is the one place the two angles are composed; the milling physics snapshots read the flutes through it. The returned contours share the base contours of the source.
public static List<FluteContour> GetFluteContourList(this IFluting fluting, double setupAngle_rad)
Parameters
flutingIFlutingThe cutter fluting; null yields null.
setupAngle_raddoubleThe setup angle in radians. Zero (or NaN) hands back the fluting's own list.
Returns
- List<FluteContour>
The flute contours in the holder's angular frame.