class documentation

class tagARCCmd: (source)

Constructor: tagARCCmd.unpack(data)

View In Hierarchy

Represents an ARC command with circular and ending points.

Class Point Represents a point in 3D space with an additional rotation component.
Class Method unpack Unpacks a bytes sequence into a tagARCCmd object.
Method pack Packs the tagARCCmd object into a bytes sequence.
Class Variable circPoint Undocumented
Class Variable toPoint Undocumented
def unpack(cls, data: bytes) -> tagARCCmd: (source)

Unpacks a bytes sequence into a tagARCCmd object.

Parameters
data:bytesThe bytes to unpack, expected to be 64 bytes (2 packed Point objects).
Returns
tagARCCmdA tagARCCmd object.
Raises
struct.errorIf the input bytes are not the expected size (64 bytes).
def pack(self) -> bytes: (source)

Packs the tagARCCmd object into a bytes sequence.

Packs the circPoint and toPoint objects sequentially.

Returns
bytesA bytes object representing the packed data (32 + 32 = 64 bytes).
circPoint: Point = (source)

Undocumented

Undocumented