Event_Event Compute Operator — Utilities
Back to Event_Event Compute Operator.
MoveLin
def MoveLin(target: CENPyOlpMatrix) -> CENPyOlpTpElementAdds a “move linear” element at the end.
Parameters:
| Name | Type | Description |
|---|---|---|
target | CENPyOlpMatrix | target matrix of the move linear element. |
Returns: CENPyOlpTpElement — Linear toolpath element added.
MoveCir
def MoveCir(target: CENPyOlpMatrix, via: CENPyOlpMatrix) -> CENPyOlpTpElementAdds a circular move element at the end
Parameters:
| Name | Type | Description |
|---|---|---|
target | CENPyOlpMatrix | target point matrix of the move circular |
via | CENPyOlpMatrix | via point matrix of the move circular |
Returns: CENPyOlpTpElement — Circular toolpath element added.
MoveCir
def MoveCir(target: CENPyOlpMatrix, radius: float, direction: int) -> CENPyOlpTpElementAdds 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:
| Name | Type | Description |
|---|---|---|
target | CENPyOlpMatrix | target point matrix of the move circular (if position is not on circle it will be fitted to be on the circle) |
radius | float | circle radius |
direction | int | direction 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) -> CENPyOlpTpElementAdds 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:
| Name | Type | Description |
|---|---|---|
angle | float | opening angle of circle |
radius | float | circle radius |
Returns: CENPyOlpTpElement — Circular toolpath element added.
MoveTangentCir
def MoveTangentCir(start: CENPyOlpMatrix, end: CENPyOlpMatrix, tangentTo: int) -> CENPyOlpTpElementAdds a circular move element tangential to a matrix
Parameters:
| Name | Type | Description |
|---|---|---|
start | CENPyOlpMatrix | start point matrix of the move circular |
end | CENPyOlpMatrix | end point matrix of the move circular |
tangentTo | int | tangent to start or end : Start, End |
Returns: CENPyOlpTpElement — Circular toolpath element added.
MovePTP
def MovePTP(target: CENPyOlpMatrix) -> CENPyOlpTpElementAdds a point to point move element at the end
Parameters:
| Name | Type | Description |
|---|---|---|
target | CENPyOlpMatrix | target 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:
| Name | Type | Description |
|---|---|---|
length | float | The length to be skipped. |
includeStartAndEnd | bool | Flag determining whether or not to include start and end point. |