Class MachiningEquipmentCollisionIndexPairsSource
- Namespace
- Hi.Machining.MachiningEquipmentUtils
- Assembly
- HiMech.dll
Source of CollisionIndexPair. The adjacent solids will not be added to the CollisionIndexPairs.
public class MachiningEquipmentCollisionIndexPairsSource : ICollisionIndexPairsSource, IGetCollisionIndexPairs, IMakeXmlSource
- Inheritance
-
MachiningEquipmentCollisionIndexPairsSource
- Implements
- Inherited Members
- Extension Methods
Constructors
MachiningEquipmentCollisionIndexPairsSource(ISolidMachiningChain, HashSet<CollisionIndexPair>)
Initializes a new instance of the MachiningEquipmentCollisionIndexPairsSource class with a specified machining chain and excluded pairs.
public MachiningEquipmentCollisionIndexPairsSource(ISolidMachiningChain src, HashSet<CollisionIndexPair> excludedPairs)
Parameters
srcISolidMachiningChainThe solid machining chain to build collision pairs from.
excludedPairsHashSet<CollisionIndexPair>The set of collision pairs to exclude from collision detection.
Remarks
This constructor builds the default collision index pairs from the provided machining chain and removes the specified excluded pairs from consideration.
MachiningEquipmentCollisionIndexPairsSource(ISolidMachiningChain, string)
Initializes a new instance of the MachiningEquipmentCollisionIndexPairsSource class with a specified machining chain and excluded pairs string.
public MachiningEquipmentCollisionIndexPairsSource(ISolidMachiningChain src, string excludedPairsString = "")
Parameters
srcISolidMachiningChainThe solid machining chain to build collision pairs from.
excludedPairsStringstringA string representation of collision pairs to exclude, in the format "[Key1][Key2];[Key3][Key4]".
Remarks
This constructor builds the default collision index pairs from the provided machining chain and removes the pairs specified in the excludedPairsString from consideration.
MachiningEquipmentCollisionIndexPairsSource(XElement, IGetSolidMachiningChain)
Initializes a new instance of the MachiningEquipmentCollisionIndexPairsSource class from XML data.
public MachiningEquipmentCollisionIndexPairsSource(XElement src, IGetSolidMachiningChain res)
Parameters
srcXElementThe XML element containing the collision index pairs configuration.
resIGetSolidMachiningChainThe solid machining chain reference used to build default index pairs.
Fields
XName
Gets the XML element name used for serialization.
public static string XName
Field Value
Methods
GetCollisionIndexPairs()
Gets a collection of collision index pairs for collision detection.
public IEnumerable<CollisionIndexPair> GetCollisionIndexPairs()
Returns
- IEnumerable<CollisionIndexPair>
A collection of CollisionIndexPair objects.
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