Table of Contents

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

src ISolidMachiningChain

The solid machining chain to build collision pairs from.

excludedPairs HashSet<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

src ISolidMachiningChain

The solid machining chain to build collision pairs from.

excludedPairsString string

A 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

src XElement

The XML element containing the collision index pairs configuration.

res IGetSolidMachiningChain

The 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

string

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

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

Returns

XElement

An XML element representing the object's state