Table of Contents

Class FluteDependentRatioProfile

Namespace
Hi.Milling.Cutters
Assembly
HiMech.dll

Represents a flute number dependent ratio profile for a milling cutter. This profile determines the ratio between inner and outer radii based on the number of flutes. Internal Use Only

public class FluteDependentRatioProfile : IShaperProfile, IMakeXmlSource, IAbstractNote, IGetStl, IGetZrList, IDuplicate, IClearCache
Inheritance
FluteDependentRatioProfile
Implements
Inherited Members
Extension Methods

Constructors

FluteDependentRatioProfile(MillingCutter)

Initializes a new instance of the FluteDependentRatioProfile class. Internal Use Only

public FluteDependentRatioProfile(MillingCutter millingCutter)

Parameters

millingCutter MillingCutter

The associated milling cutter

FluteDependentRatioProfile(XElement, string, MillingCutter)

Initializes a new instance of the FluteDependentRatioProfile class.

public FluteDependentRatioProfile(XElement element, string baseDirectory, MillingCutter host)

Parameters

element XElement

The XML element containing profile data.

baseDirectory string

The base directory for resolving relative paths.

host MillingCutter

The host milling cutter.

Properties

AbstractNote

Gets the abstract note describing the profile. Internal Use Only

public string AbstractNote { get; }

Property Value

string

MillingCutter

Gets or sets the associated milling cutter. Internal Use Only

public MillingCutter MillingCutter { get; set; }

Property Value

MillingCutter

RadiusRatio

Gets the radius ratio based on the current number of flutes. Internal Use Only

public double RadiusRatio { get; }

Property Value

double

XName

Name for XML IO.

public static string XName { get; }

Property Value

string

Methods

ClearCache()

Clears any cached data held by the implementing object.

public void ClearCache()

Duplicate(params object[])

Creates a deep copy of the object, excluding any source file references.

public object Duplicate(params object[] res)

Parameters

res object[]

Optional parameters that may be needed during the duplication process

Returns

object

A new instance that is a deep copy of the original object

GetStl()

Gets the STL geometry data.

public Stl GetStl()

Returns

Stl

The STL geometry object

GetZrList()

Gets a list of Z-R coordinate pairs.

public List<PairZr> GetZrList()

Returns

List<PairZr>

A list of PairZr objects representing Z-R coordinates.

MakeXmlSource(string, string)

Creates an XML representation of the object. This method may also generate additional resources such as related files.

public XElement MakeXmlSource(string baseDirectory, string relFile)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.