Skip to Content

Event_Event Compute Operator — Utilities

Back to Event_Event Compute Operator.

MoveLin

def MoveLin(target: CENPyOlpMatrix) -> CENPyOlpTpElement

Adds a “move linear” element at the end.

Parameters:

NameTypeDescription
targetCENPyOlpMatrixtarget matrix of the move linear element.

Returns: CENPyOlpTpElement — Linear toolpath element added.

MoveCir

def MoveCir(target: CENPyOlpMatrix, via: CENPyOlpMatrix) -> CENPyOlpTpElement

Adds a circular move element at the end

Parameters:

NameTypeDescription
targetCENPyOlpMatrixtarget point matrix of the move circular
viaCENPyOlpMatrixvia point matrix of the move circular

Returns: CENPyOlpTpElement — Circular toolpath element added.

MoveCir

def MoveCir(target: CENPyOlpMatrix, radius: float, direction: int) -> CENPyOlpTpElement

Adds a circular move element at the end. The circular move is in the plane constructed by initial tangent vector of reference point and the vector connecting reference with new target point.

Parameters:

NameTypeDescription
targetCENPyOlpMatrixtarget point matrix of the move circular (if position is not on circle it will be fitted to be on the circle)
radiusfloatcircle radius
directionintdirection of circle (clockwise or counter clockwise)

Returns: CENPyOlpTpElement — Circular toolpath element added with direction of target (position might change)

MoveCir

def MoveCir(angle: float, radius: float) -> CENPyOlpTpElement

Adds a circular move element at the end. The circular movement is within the xy plane of the reference point. The end tangent is the circle tangent at the endpoint.

Parameters:

NameTypeDescription
anglefloatopening angle of circle
radiusfloatcircle radius

Returns: CENPyOlpTpElement — Circular toolpath element added.

MoveTangentCir

def MoveTangentCir(start: CENPyOlpMatrix, end: CENPyOlpMatrix, tangentTo: int) -> CENPyOlpTpElement

Adds a circular move element tangential to a matrix

Parameters:

NameTypeDescription
startCENPyOlpMatrixstart point matrix of the move circular
endCENPyOlpMatrixend point matrix of the move circular
tangentTointtangent to start or end : Start, End

Returns: CENPyOlpTpElement — Circular toolpath element added.

MovePTP

def MovePTP(target: CENPyOlpMatrix) -> CENPyOlpTpElement

Adds a point to point move element at the end

Parameters:

NameTypeDescription
targetCENPyOlpMatrixtarget matrix of the move

Returns: CENPyOlpTpElement — point-to-point toolpath element added.

SkipPath

def SkipPath(length: float, includeStartAndEnd: bool)

Skips the toolpath elements for a given length.

Parameters:

NameTypeDescription
lengthfloatThe length to be skipped.
includeStartAndEndboolFlag determining whether or not to include start and end point.
Was this page helpful?