Table of Contents

Class Fixture

Namespace
Hi.NcMech.Fixtures
Assembly
HiMech.dll

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 XElement

The XML element containing fixture data.

baseDirectory string

The base directory for resolving relative paths.

relFile string

The relative file path.

Fields

XName

Name for XML IO.

public static string XName

Field Value

string

Properties

Asmb

Gets the assembly that contains the fixture components.

public Asmb Asmb { get; }

Property Value

Asmb

CollidableName

Gets the name of the collidable object.

public string CollidableName { get; }

Property Value

string

CollisionFlag

Gets or sets the collision flag.

public CollisionFlag CollisionFlag { get; set; }

Property Value

CollisionFlag

Geom

Geometry. Delegate by Solid.Geom.

public IGetStl Geom { get; set; }

Property Value

IGetStl

Solid

Gets the solid representation of the fixture.

public Solid Solid { get; }

Property Value

Solid

TableBuckle

Table buckle. Root. Solid anchor.

public Anchor TableBuckle { get; }

Property Value

Anchor

TableToWorkpieceBranch

Gets the branch connecting the table to the workpiece.

public Branch TableToWorkpieceBranch { get; }

Property Value

Branch

TableToWorkpieceTransformer

Transformer from fixture origin to workpiece origin.

public ITransformer TableToWorkpieceTransformer { get; set; }

Property Value

ITransformer

WorkpieceBuckle

Gets the workpiece buckle anchor point.

public Anchor WorkpieceBuckle { get; }

Property Value

Anchor

Methods

ClearGeomCache()

Update cache of Geom. The method is used after inner content of Geom is altered.

public void ClearGeomCache()

Display(Bind)

Display function called in DispEngine rendering loop.

public void Display(Bind bind)

Parameters

bind Bind

Bind 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 Box3d

Destination 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

ICollidee

ICollidee

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

SetWorkpieceTransformationToTopCenter()

Sets the workpiece transformation to position it at the top center of the fixture.

public void SetWorkpieceTransformationToTopCenter()