Class ConstRatioProfile
The inner beam of a milling cutter as a bending-equivalent core of a ratio of your own: the flute profile (ZrListSource) scaled by RadiusRatio, the diameter of the solid circle with the whole fluted section's area moment of inertia over the flute diameter (0.7–0.85 on end mills in the literature), not the web inscribed at the flute bottoms. One constant per cutter, the same at every height and in every direction; the defaults by flute count, the definition and the readers are on FluteDependentRatioProfile. The ratio is saved with the cutter and kept on load.
public class ConstRatioProfile : IShaperProfile, IMakeXmlSource, IAbstractNote, IGetZrList, IDuplicate, IClearCache, IGenStl, IZrListSourceProperty
- Inheritance
-
ConstRatioProfile
- Implements
- Inherited Members
- Extension Methods
Constructors
ConstRatioProfile()
Initializes a new instance of the ConstRatioProfile class.
public ConstRatioProfile()
ConstRatioProfile(double)
Initializes a new instance of the ConstRatioProfile class with a specified radius ratio.
public ConstRatioProfile(double innerRadiusRatio)
Parameters
innerRadiusRatiodoubleThe bending-equivalent core ratio, the core's radius over the flute profile's radius, in (0, 1]
ConstRatioProfile(XElement, string)
Initializes a new instance of the ConstRatioProfile class.
public ConstRatioProfile(XElement element, string baseDirectory)
Parameters
elementXElementThe XML element containing profile data.
baseDirectorystringThe base directory for resolving relative paths.
Properties
AbstractNote
Gets the abstract note describing the profile.
public string AbstractNote { get; }
Property Value
RadiusRatio
Gets or sets the bending-equivalent core ratio: the core's radius over the flute profile's radius at the same height, in (0, 1].
public double RadiusRatio { get; set; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
ZrListSource
Get base geometry source. Runtime property.
public Func<IGetZrList> ZrListSource { get; set; }
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
GenStl(IPolarResolution2d)
Generates a new STL.
public Stl GenStl(IPolarResolution2d resolution)
Parameters
resolutionIPolarResolution2dPolar resolution
Returns
- Stl
A newly created STL.
GetZrList()
Gets a list of Z-R coordinate pairs.
public List<PairZr> GetZrList()
Returns
MakeXmlSource(string, string, bool)
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, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
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.
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory