kittycad.models.path_command.PathCommand

class kittycad.models.path_command.PathCommand(value)[source][source]

Bases: str, Enum

The path component command type (within a Path)

__init__()[source]

Attributes

MOVE_TO

LINE_TO

BEZ_CURVE_TO

NURBS_CURVE_TO

ADD_ARC

ADD_ARC = 'add_arc'[source]
BEZ_CURVE_TO = 'bez_curve_to'[source]
LINE_TO = 'line_to'[source]
MOVE_TO = 'move_to'[source]
NURBS_CURVE_TO = 'nurbs_curve_to'[source]
__annotations__ = {}[source]
__dict__ = mappingproxy({'_generate_next_value_': <function Enum._generate_next_value_>, '__module__': 'kittycad.models.path_command', '__doc__': 'The path component command type (within a Path)', '__str__': <function PathCommand.__str__>, '__dict__': <attribute '__dict__' of 'PathCommand' objects>, '__weakref__': <attribute '__weakref__' of 'PathCommand' objects>, '_member_names_': ['MOVE_TO', 'LINE_TO', 'BEZ_CURVE_TO', 'NURBS_CURVE_TO', 'ADD_ARC'], '_member_map_': {'MOVE_TO': <PathCommand.MOVE_TO: 'move_to'>, 'LINE_TO': <PathCommand.LINE_TO: 'line_to'>, 'BEZ_CURVE_TO': <PathCommand.BEZ_CURVE_TO: 'bez_curve_to'>, 'NURBS_CURVE_TO': <PathCommand.NURBS_CURVE_TO: 'nurbs_curve_to'>, 'ADD_ARC': <PathCommand.ADD_ARC: 'add_arc'>}, '_member_type_': <class 'str'>, '_value2member_map_': {'move_to': <PathCommand.MOVE_TO: 'move_to'>, 'line_to': <PathCommand.LINE_TO: 'line_to'>, 'bez_curve_to': <PathCommand.BEZ_CURVE_TO: 'bez_curve_to'>, 'nurbs_curve_to': <PathCommand.NURBS_CURVE_TO: 'nurbs_curve_to'>, 'add_arc': <PathCommand.ADD_ARC: 'add_arc'>}, 'MOVE_TO': <PathCommand.MOVE_TO: 'move_to'>, 'LINE_TO': <PathCommand.LINE_TO: 'line_to'>, 'BEZ_CURVE_TO': <PathCommand.BEZ_CURVE_TO: 'bez_curve_to'>, 'NURBS_CURVE_TO': <PathCommand.NURBS_CURVE_TO: 'nurbs_curve_to'>, 'ADD_ARC': <PathCommand.ADD_ARC: 'add_arc'>, '__repr__': <function Enum.__repr__>, '__format__': <function Enum.__format__>, '__new__': <function Enum.__new__>, '__annotations__': {}})[source]
__module__ = 'kittycad.models.path_command'[source]
_generate_next_value_(start, count, last_values)[source]

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_value: the last value assigned or None

_member_map_ = {'ADD_ARC': PathCommand.ADD_ARC, 'BEZ_CURVE_TO': PathCommand.BEZ_CURVE_TO, 'LINE_TO': PathCommand.LINE_TO, 'MOVE_TO': PathCommand.MOVE_TO, 'NURBS_CURVE_TO': PathCommand.NURBS_CURVE_TO}[source]
_member_names_ = ['MOVE_TO', 'LINE_TO', 'BEZ_CURVE_TO', 'NURBS_CURVE_TO', 'ADD_ARC'][source]
_member_type_[source]

alias of str

_value2member_map_ = {'add_arc': PathCommand.ADD_ARC, 'bez_curve_to': PathCommand.BEZ_CURVE_TO, 'line_to': PathCommand.LINE_TO, 'move_to': PathCommand.MOVE_TO, 'nurbs_curve_to': PathCommand.NURBS_CURVE_TO}[source]