Class Fixture
Represents a fixture used to hold workpieces during machining operations.
public class Fixture : IGetSolid, IMakeXmlSource, IDisplayee, IExpandToBox3d, IGetRootAnchor, IDisposable, IAnchoredCollidableLeaf, IAnchoredCollidableNode, IAnchoredCollidableBased, ICollidable
- Inheritance
-
Fixture
- Implements
- Inherited Members
- Extension Methods
Constructors
Fixture()
Initializes a new instance of the Fixture class.
public Fixture()
Fixture(XElement, string, string)
Initializes a new instance of the Fixture class from XML.
public Fixture(XElement src, string baseDirectory, string relFile)
Parameters
src
XElementThe XML element containing fixture data.
baseDirectory
stringThe base directory for resolving relative paths.
relFile
stringThe relative file path.
Fields
XName
Name for XML IO.
public static string XName
Field Value
Properties
Asmb
Gets the assembly that contains the fixture components.
public Asmb Asmb { get; }
Property Value
CollidableName
Gets the name of the collidable object.
public string CollidableName { get; }
Property Value
CollisionFlag
Gets or sets the collision flag.
public CollisionFlag CollisionFlag { get; set; }
Property Value
Geom
public IGetStl Geom { get; set; }
Property Value
Solid
Gets the solid representation of the fixture.
public Solid Solid { get; }
Property Value
TableBuckle
Table buckle. Root. Solid anchor.
public Anchor TableBuckle { get; }
Property Value
TableToWorkpieceBranch
Gets the branch connecting the table to the workpiece.
public Branch TableToWorkpieceBranch { get; }
Property Value
TableToWorkpieceTransformer
Transformer from fixture origin to workpiece origin.
public ITransformer TableToWorkpieceTransformer { get; set; }
Property Value
WorkpieceBuckle
Gets the workpiece buckle anchor point.
public Anchor WorkpieceBuckle { get; }
Property Value
Methods
ClearGeomCache()
public void ClearGeomCache()
Display(Bind)
Display function called in DispEngine rendering loop.
public void Display(Bind bind)
Parameters
bind
BindBind with DispEngine. See Bind.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
ExpandToBox3d(Box3d)
Expands the destination box. This function is usually used to compute the bounding box of elements.
public void ExpandToBox3d(Box3d dst)
Parameters
dst
Box3dDestination box
GetAnchoredCollidableNode()
Gets the anchored collidable node associated with this object.
public IAnchoredCollidableNode GetAnchoredCollidableNode()
Returns
- IAnchoredCollidableNode
The anchored collidable node.
GetCollidableAnchor()
Gets the anchor associated with this collidable leaf.
public Anchor GetCollidableAnchor()
Returns
- Anchor
The anchor for this collidable leaf.
GetCollidee()
Get ICollidee.
public ICollidee GetCollidee()
Returns
GetRootAnchor()
Get root anchor.
public Anchor GetRootAnchor()
Returns
- Anchor
root anchor.
GetSolid()
Gets the solid geometry object.
public Solid GetSolid()
Returns
- Solid
The solid geometry object.
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
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state
SetWorkpieceTransformationToTopCenter()
Sets the workpiece transformation to position it at the top center of the fixture.
public void SetWorkpieceTransformationToTopCenter()