Class MachiningVolumeRemovalProc
Handles the machining volume removal process and related operations.
public class MachiningVolumeRemovalProc
- Inheritance
-
MachiningVolumeRemovalProc
- Inherited Members
- Extension Methods
Constructors
MachiningVolumeRemovalProc()
Initializes a new instance of the MachiningVolumeRemovalProc class.
public MachiningVolumeRemovalProc()
Properties
ClMachiningValve
Gets the CL machining valve used to control the machining process.
public ClMachiningValve ClMachiningValve { get; }
Property Value
MachiningEquipment
Gets or sets the machining equipment used in the volume removal process. When changed, clears the internal cache.
public MachiningEquipment MachiningEquipment { get; set; }
Property Value
Methods
ClearCache()
Clears the internal cache, including the CL machining valve state and step-related caches.
public void ClearCache()
StepAssignDummyAttach(Workpiece, ClStrip, DVec3d)
Creates a dummy attachment point in the CL strip.
public static ClStripPos StepAssignDummyAttach(Workpiece workpiece, ClStrip clStrip, DVec3d programCl)
Parameters
workpiece
WorkpieceThe workpiece to attach to.
clStrip
ClStripThe CL strip to add the attachment to.
programCl
DVec3dThe program CL point for the attachment.
Returns
- ClStripPos
The created CL strip position.
StepGetGeomBoolCache(ICutter, double, SeqPair<Mat4d>, bool, bool?)
Gets a geometric boolean cache for the current step based on cutter and motion parameters.
public static GeomBoolCache StepGetGeomBoolCache(ICutter cutter, double stepPreferredCubeWidth, SeqPair<Mat4d> seq, bool enableSweeping, bool? isFluteTouchingWorkpiece)
Parameters
cutter
ICutterThe cutter to use for the operation.
stepPreferredCubeWidth
doubleThe preferred cube width for discretization.
seq
SeqPair<Mat4d>The sequence pair of transformation matrices.
enableSweeping
boolWhether to enable sweeping operation.
isFluteTouchingWorkpiece
bool?Optional flag indicating if the flute is touching the workpiece.
Returns
- GeomBoolCache
A geometric boolean cache containing the operation data.
Remarks
Note that it is hard to know if flute is touching the workpiece by sweeping without making sweeping volume.
Checking by non-sweeping geometry may miss the touching part of the sweeping volume.
Hence isFluteTouchingWorkpiece
should be kept null and be considered obsolete.
There is no performance gain from that parameter.
StepSubstract(GeomBoolCache, Workpiece)
Performs volume subtraction using the provided geometric boolean cache on the workpiece.
public static Substraction StepSubstract(GeomBoolCache geomBoolCache, Workpiece workpiece)
Parameters
geomBoolCache
GeomBoolCacheThe geometric boolean cache containing the operation data.
workpiece
WorkpieceThe workpiece to perform subtraction on.
Returns
- Substraction
The result of the subtraction operation, or null if the operation cannot be performed.
Events
CutterChanged
Event that is triggered when the cutter is changed, providing the previous and current cutter.
public event Action<SeqPair<ICutter>> CutterChanged