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, IGetAnchoredDisplayeeList, IGetAsmb, IGetAnchor, IGetTopoIndex, 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

GeomAnchor

public Anchor GeomAnchor { get; }

Property Value

Anchor

GeomToTableBranch

public Branch GeomToTableBranch { get; }

Property Value

Branch

GeomToTableTransformer

Transformer from Geometry origin to table (machine tool side) origin.

public ITransformer GeomToTableTransformer { get; set; }

Property Value

ITransformer

GeomToWorkpieceBranch

public Branch GeomToWorkpieceBranch { get; }

Property Value

Branch

GeomToWorkpieceTransformer

Transformer from Geometry origin to workpiece origin.

public ITransformer GeomToWorkpieceTransformer { get; set; }

Property Value

ITransformer

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

ThemeColor

public static Vec3d ThemeColor { get; }

Property Value

Vec3d

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

GetAnchor()

Get key anchor. (i.e. root anchor)

public Anchor GetAnchor()

Returns

Anchor

key anchor

GetAnchoredCollidableNode()

Gets the anchored collidable node associated with this object.

public IAnchoredCollidableNode GetAnchoredCollidableNode()

Returns

IAnchoredCollidableNode

The anchored collidable node.

GetAnchoredDisplayeeList()

Gets a list of anchored displayable objects.

public List<IAnchoredDisplayee> GetAnchoredDisplayeeList()

Returns

List<IAnchoredDisplayee>

A list of IAnchoredDisplayee objects

GetAsmb()

Gets the key asmb.

public Asmb GetAsmb()

Returns

Asmb

The key asmb.

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

GetSolid()

Gets the solid geometry object.

public Solid GetSolid()

Returns

Solid

The solid geometry object.

MakeXmlSource(string, string, bool)

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, bool exhibitionOnly)

Parameters

baseDirectory string

The base directory for resolving relative paths

relFile string

The relative file path for the XML source

exhibitionOnly bool

if true, the extended file creation is suppressed.

Returns

XElement

An XML element representing the object's state

Remarks

For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied. The baseDirectory is typically the folder at the nearest configuration file folder. Since the folder can be moving with the configuration file.

SetWorkpieceTransformationToGeomTopCenter()

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

public void SetWorkpieceTransformationToGeomTopCenter()