Table of Contents

Class XyzabcSolver

Namespace
Hi.Numerical.Xyzabc
Assembly
HiMech.dll

Support to two-way conversion between MC (machine coordinate) and NP (Normal and Point).

public class XyzabcSolver : ICoordinateConverter
Inheritance
XyzabcSolver
Implements
Inherited Members
Extension Methods

Constructors

XyzabcSolver(IXyzabcChain)

Ctor.

public XyzabcSolver(IXyzabcChain srcDevice)

Parameters

srcDevice IXyzabcChain

target device

Methods

AttacherNpToMc(DVec3d, out DVec3d)

tool attacher NP (Normal and Point) to machine coordinate. The NP is from table buckle to tool attacher.

public bool AttacherNpToMc(DVec3d np, out DVec3d mcXyzabc_rad)

Parameters

np DVec3d
mcXyzabc_rad DVec3d

machine coordinate (ABC in radian)

Returns

bool

whether conversion succeeded

IsAxisAExisted()

Is rotary A existed.

public bool IsAxisAExisted()

Returns

bool

Is rotary A existed.

IsAxisBExisted()

Is rotary B existed.

public bool IsAxisBExisted()

Returns

bool

Is rotary B existed.

IsAxisCExisted()

Is rotary C existed.

public bool IsAxisCExisted()

Returns

bool

Is rotary C existed.

McAbcToTiltMat(Vec3d)

Converts machine ABC coordinates to a tilt matrix. the tilt matrix is the transformation matrix from table to attacher.

public Mat4d McAbcToTiltMat(Vec3d mcAbc_rad)

Parameters

mcAbc_rad Vec3d

The machine ABC coordinates in radians

Returns

Mat4d

The tilt matrix

McToAttacherMat(DVec3d)

Converts machine coordinates to an attacher matrix.

public Mat4d McToAttacherMat(DVec3d mc)

Parameters

mc DVec3d

Returns

Mat4d

The attacher matrix

McToAttacherNp(DVec3d)

Machine coordinate to tool attacher NP (Normal and Point). The NP is from table buckle to tool attacher.

public DVec3d McToAttacherNp(DVec3d mc)

Parameters

mc DVec3d

Returns

DVec3d

tool attacher Np (Normal and Point)

Rebuild()

Rebuild the solver. It should be called after the kinematic chain of Hi.Numerical.Xyzabc.XyzabcSolver.SrcDevice is modified.

public void Rebuild()

SetNp(DVec3d, out DVec3d)

Cutter location to machine coordinate.

public bool SetNp(DVec3d np, out DVec3d mc)

Parameters

np DVec3d

normal and point

mc DVec3d

Returns

bool

true if solved

TiltMatToMcAbc(Mat4d, out Vec3d)

Converts a tilt matrix to machine ABC coordinates. the tilt matrix is the transformation matrix from table to attacher.

public bool TiltMatToMcAbc(Mat4d tiltMat, out Vec3d mcAbc_rad)

Parameters

tiltMat Mat4d

The tilt matrix to convert

mcAbc_rad Vec3d

Output parameter that will contain the machine ABC coordinates in radians

Returns

bool

Whether the conversion was successful