Class ConstRatioProfile
Represents a constant ratio profile for a milling cutter. This profile maintains a constant ratio between inner and outer radii. Internal Use Only
public class ConstRatioProfile : IShaperProfile, IMakeXmlSource, IAbstractNote, IGetStl, IGetZrList, IDuplicate, IClearCache
- Inheritance
-
ConstRatioProfile
- Implements
- Inherited Members
- Extension Methods
Constructors
ConstRatioProfile(MillingCutter)
Initializes a new instance of the ConstRatioProfile class. Internal Use Only
public ConstRatioProfile(MillingCutter millingCutter)
Parameters
millingCutterMillingCutterThe associated milling cutter
ConstRatioProfile(MillingCutter, double)
Initializes a new instance of the ConstRatioProfile class with a specified radius ratio. Internal Use Only
public ConstRatioProfile(MillingCutter millingCutter, double innerRadiusRatio)
Parameters
millingCutterMillingCutterThe associated milling cutter
innerRadiusRatiodoubleThe ratio between inner and outer radii
ConstRatioProfile(XElement, string, MillingCutter)
Initializes a new instance of the ConstRatioProfile class.
public ConstRatioProfile(XElement element, string baseDirectory, MillingCutter host)
Parameters
elementXElementThe XML element containing profile data.
baseDirectorystringThe base directory for resolving relative paths.
hostMillingCutterThe host milling cutter.
Properties
AbstractNote
Gets the abstract note describing the profile. Internal Use Only
public string AbstractNote { get; }
Property Value
MillingCutter
Gets or sets the associated milling cutter. Internal Use Only
public MillingCutter MillingCutter { get; set; }
Property Value
RadiusRatio
Gets or sets the ratio between inner and outer radii. Internal Use Only
public double RadiusRatio { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
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
resobject[]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
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
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state