kittycad.models.path_segment.bezier
- class kittycad.models.path_segment.bezier(control1=<kittycad.types.Unset object>, control2=<kittycad.types.Unset object>, end=<kittycad.types.Unset object>, type='bezier')[source][source]
Bases:
object
A cubic bezier curve segment. Start at the end of the current line, go through control point 1 and 2, then end at a given point.
Method generated by attrs for class bezier.
- __init__(control1=<kittycad.types.Unset object>, control2=<kittycad.types.Unset object>, end=<kittycad.types.Unset object>, type='bezier')[source]
Method generated by attrs for class bezier.
Methods
__init__
([control1, control2, end, type])Method generated by attrs for class bezier.
from_dict
(src_dict)- rtype:
TypeVar
(PS
, bound= bezier)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'control1': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'control2': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>}[source]
- __attrs_attrs__ = (Attribute(name='control1', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='control1'), Attribute(name='control2', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='control2'), Attribute(name='end', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='end'), Attribute(name='type', default='bezier', 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]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.path_segment', '__annotations__': {'control1': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'control2': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A cubic bezier curve segment. Start at the end of the current line, go through control point 1 and 2, then end at a given point.', 'to_dict': <function bezier.to_dict>, 'from_dict': <classmethod(<function bezier.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function bezier.__getitem__>, '__setitem__': <function bezier.__setitem__>, '__delitem__': <function bezier.__delitem__>, '__contains__': <function bezier.__contains__>, '__dict__': <attribute '__dict__' of 'bezier' objects>, '__weakref__': <attribute '__weakref__' of 'bezier' objects>, '__attrs_attrs__': (Attribute(name='control1', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='control1'), Attribute(name='control2', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='control2'), Attribute(name='end', 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.point3d.Point3d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='end'), Attribute(name='type', default='bezier', 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 bezier.__repr__>, '__eq__': <function bezier.__eq__>, '__ne__': <function bezier.__ne__>, '__lt__': <function bezier.__lt__>, '__le__': <function bezier.__le__>, '__gt__': <function bezier.__gt__>, '__ge__': <function bezier.__ge__>, '__hash__': None, '__init__': <function bezier.__init__>, '__match_args__': ('control1', 'control2', 'end', 'type')})[source]