Class FluteContour
- Namespace
- Hi.Milling.FluteContours
- Assembly
- HiMech.dll
Represents a flute contour for milling tools.
public class FluteContour : IMakeXmlSource, IDisposable, IClearCache
- Inheritance
-
FluteContour
- Implements
- Inherited Members
- Extension Methods
Constructors
FluteContour()
Initializes a new instance of the FluteContour class
public FluteContour()
FluteContour(FluteContour, double)
Initializes a new instance of the FluteContour class with a source contour and shift angle
public FluteContour(FluteContour src, double shiftAngle_rad)
Parameters
src
FluteContourThe source flute contour to copy from
shiftAngle_rad
doubleThe shift angle in radians
FluteContour(XElement, string, params object[])
Initializes a new instance of the FluteContour class from XML data
public FluteContour(XElement src, string baseDirectory, params object[] res)
Parameters
src
XElementThe source XML element
baseDirectory
stringThe base directory for resolving relative paths
res
object[]Additional resources for initialization
Properties
BaseBottomContour
Gets or sets the base bottom contour of the flute. This represents the original bottom profile before any transformations.
public IWorkingContour BaseBottomContour { get; set; }
Property Value
BaseSideContour
Gets or sets the base side contour of the flute. This represents the original side profile before any transformations.
public IWorkingContour BaseSideContour { get; set; }
Property Value
SetupAngle_deg
Gets or sets the setup angle in degrees. This is a convenience property that converts ShiftAngle_rad to degrees.
public double SetupAngle_deg { get; set; }
Property Value
ShiftAngle_rad
Gets or sets the shift angle in radians. This angle represents the angular offset of the flute from its base position.
public double ShiftAngle_rad { get; set; }
Property Value
ShiftedBottomContour
Gets the shifted bottom contour of the flute. This is the bottom profile after applying the shift angle transformation.
public ShiftedWorkingContour ShiftedBottomContour { get; }
Property Value
ShiftedSideContour
Gets the shifted side contour of the flute. This is the side profile after applying the shift angle transformation.
public ShiftedWorkingContour ShiftedSideContour { get; }
Property Value
XName
Gets the XML name for serialization
public static string XName { get; }
Property Value
Methods
ClearCache()
Clears any cached data in the flute contour
public void ClearCache()
Dispose()
Releases all resources used by the FluteContour
public void Dispose()
Dispose(bool)
Releases the unmanaged resources used by the FluteContour and optionally releases the managed resources
protected virtual void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources
Duplicate(IGetZrList)
Creates a duplicate of this flute contour
public FluteContour Duplicate(IGetZrList zrListHost)
Parameters
zrListHost
IGetZrListThe host containing Z-R list information
Returns
- FluteContour
A new instance of FluteContour with the same properties
ExpandToBox3d(Box3d)
Expands the given bounding box to include this flute contour
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dThe bounding box to expand
MakeXmlSource(string, string)
Creates an XML element representing this flute contour
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path
Returns
- XElement
An XML element containing the flute contour data
UpdateByContent()
Updates the internal state based on the current content
public void UpdateByContent()