kittycad.models.modeling_cmd.extend_path

class kittycad.models.modeling_cmd.extend_path(path=<kittycad.types.Unset object>, segment=<kittycad.types.Unset object>, type='extend_path')[source][source]

Bases: object

Extend a path by adding a new segment which starts at the path’s “pen”. If no “pen” location has been set before (via MovePen), then the pen is at the origin.

Method generated by attrs for class extend_path.

__init__(path=<kittycad.types.Unset object>, segment=<kittycad.types.Unset object>, type='extend_path')[source]

Method generated by attrs for class extend_path.

Methods

__init__([path, segment, type])

Method generated by attrs for class extend_path.

from_dict(src_dict)

rtype:

TypeVar(MP, bound= extend_path)

to_dict()

rtype:

Dict[str, Any]

Attributes

additional_keys

path

segment

type

additional_properties

__annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'path': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'segment': typing.Union[kittycad.types.Unset, kittycad.models.path_segment.line, kittycad.models.path_segment.arc, kittycad.models.path_segment.bezier], 'type': <class 'str'>}[source]
__attrs_attrs__ = (Attribute(name='path', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='path'), Attribute(name='segment', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.path_segment.line, kittycad.models.path_segment.arc, kittycad.models.path_segment.bezier], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='segment'), Attribute(name='type', default='extend_path', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__dict__ = mappingproxy({'__module__': 'kittycad.models.modeling_cmd', '__annotations__': {'path': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'segment': typing.Union[kittycad.types.Unset, kittycad.models.path_segment.line, kittycad.models.path_segment.arc, kittycad.models.path_segment.bezier], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Extend a path by adding a new segment which starts at the path\'s "pen". If no "pen" location has been set before (via `MovePen`), then the pen is at the origin.', 'to_dict': <function extend_path.to_dict>, 'from_dict': <classmethod(<function extend_path.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function extend_path.__getitem__>, '__setitem__': <function extend_path.__setitem__>, '__delitem__': <function extend_path.__delitem__>, '__contains__': <function extend_path.__contains__>, '__dict__': <attribute '__dict__' of 'extend_path' objects>, '__weakref__': <attribute '__weakref__' of 'extend_path' objects>, '__attrs_attrs__': (Attribute(name='path', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='path'), Attribute(name='segment', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.path_segment.line, kittycad.models.path_segment.arc, kittycad.models.path_segment.bezier], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='segment'), Attribute(name='type', default='extend_path', validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=<class 'str'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='type'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function extend_path.__repr__>, '__eq__': <function extend_path.__eq__>, '__ne__': <function extend_path.__ne__>, '__lt__': <function extend_path.__lt__>, '__le__': <function extend_path.__le__>, '__gt__': <function extend_path.__gt__>, '__ge__': <function extend_path.__ge__>, '__hash__': None, '__init__': <function extend_path.__init__>, '__match_args__': ('path', 'segment', 'type')})[source]
__eq__(other)[source]

Method generated by attrs for class extend_path.

__ge__(other)[source]

Method generated by attrs for class extend_path.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class extend_path.

__hash__ = None[source]
__init__(path=<kittycad.types.Unset object>, segment=<kittycad.types.Unset object>, type='extend_path')[source]

Method generated by attrs for class extend_path.

__le__(other)[source]

Method generated by attrs for class extend_path.

__lt__(other)[source]

Method generated by attrs for class extend_path.

__match_args__ = ('path', 'segment', 'type')[source]
__module__ = 'kittycad.models.modeling_cmd'[source]
__ne__(other)[source]

Method generated by attrs for class extend_path.

__repr__()[source]

Method generated by attrs for class extend_path.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(MP, bound= extend_path)

path: Union[Unset, ModelingCmdId][source]
segment: Union[Unset, line, arc, bezier][source]
to_dict()[source][source]
Return type:

Dict[str, Any]

type: str[source]