Class MachiningEquipmentCollisionIndex
- Namespace
- Hi.Machining.MachiningEquipmentUtils
- Assembly
- HiMech.dll
Represents a collision index for machining equipment components. This class manages collision detection between different parts of the machining equipment.
public class MachiningEquipmentCollisionIndex : ICollisionIndex, IGetCollidable, IMakeXmlSource
- Inheritance
-
MachiningEquipmentCollisionIndex
- Implements
- Inherited Members
- Extension Methods
Constructors
MachiningEquipmentCollisionIndex(MachiningEquipment, string)
Initializes a new instance of the MachiningEquipmentCollisionIndex class with the specified equipment and key.
public MachiningEquipmentCollisionIndex(MachiningEquipment equipment, string key)
Parameters
equipment
MachiningEquipmentThe machining equipment to associate with this collision index.
key
stringThe key identifying the component in the collision system.
MachiningEquipmentCollisionIndex(string)
Initializes a new instance of the MachiningEquipmentCollisionIndex class with the specified key.
public MachiningEquipmentCollisionIndex(string key)
Parameters
key
stringThe key identifying the component in the collision system.
MachiningEquipmentCollisionIndex(XElement, IGetMachiningEquipment)
Initializes a new instance of the MachiningEquipmentCollisionIndex class from XML data.
public MachiningEquipmentCollisionIndex(XElement src, IGetMachiningEquipment equipment)
Parameters
src
XElementThe XML element containing the collision index configuration.
equipment
IGetMachiningEquipmentThe equipment provider interface.
Fields
XName
Gets the XML element name for serialization.
public static string XName
Field Value
Properties
Anchor
Gets the anchor point for the component identified by this index.
public Anchor Anchor { get; }
Property Value
Remarks
The anchor point returned depends on the component key:
- Workpiece: Geometry anchor
- Fixture: Table buckle
- ToolHolder: Root anchor of the holder
- CutterShank: Root anchor of the upper beam topo brick
- CutterFlute: Root anchor of the shaper topo brick
- Other: Machine tool component anchor
Equipment
Gets or sets the machining equipment associated with this collision index. When set, updates the component anchor and collidable based on the equipment's solid machining chain.
public IMachiningEquipment Equipment { get; set; }
Property Value
Key
Gets the key identifying the component in the collision system.
public string Key { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
GetCollidable()
Gets the collidable object for the component identified by this index.
public ICollidable GetCollidable()
Returns
- ICollidable
The collidable object representing the component's geometry. The type of collidable returned depends on the component key:
- Workpiece: Runtime geometry
- Fixture: Solid collidable
- ToolHolder: Cylindroid or freeform holder solid
- CutterShank: Upper beam topo brick solid
- CutterFlute: Shaper topo brick solid
- Other: Machine tool component collidable
GetHashCode()
Gets a hash code for the current object.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MakeXmlSource(string, string)
Creates an XML representation of this collision index.
public XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths.
relFile
stringThe relative file path for XML serialization.
Returns
- XElement
An XML element containing the collision index data.