kittycad.models.path_segment
Classes
|
A circular arc segment. |
|
A cubic bezier curve segment. |
|
A straight line segment. |
- class kittycad.models.path_segment.arc(angle_end=<kittycad.types.Unset object>, angle_start=<kittycad.types.Unset object>, center=<kittycad.types.Unset object>, radius=<kittycad.types.Unset object>, type='arc')[source][source]
A circular arc segment.
Method generated by attrs for class arc.
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'angle_end': typing.Union[kittycad.types.Unset, float], 'angle_start': typing.Union[kittycad.types.Unset, float], 'center': typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], 'radius': typing.Union[kittycad.types.Unset, float], 'type': <class 'str'>}[source]
- __attrs_attrs__ = (Attribute(name='angle_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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='angle_end'), Attribute(name='angle_start', 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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='angle_start'), Attribute(name='center', 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.point2d.Point2d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='center'), Attribute(name='radius', 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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='radius'), Attribute(name='type', default='arc', 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__': {'angle_end': typing.Union[kittycad.types.Unset, float], 'angle_start': typing.Union[kittycad.types.Unset, float], 'center': typing.Union[kittycad.types.Unset, kittycad.models.point2d.Point2d], 'radius': typing.Union[kittycad.types.Unset, float], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A circular arc segment.', 'to_dict': <function arc.to_dict>, 'from_dict': <classmethod(<function arc.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function arc.__getitem__>, '__setitem__': <function arc.__setitem__>, '__delitem__': <function arc.__delitem__>, '__contains__': <function arc.__contains__>, '__dict__': <attribute '__dict__' of 'arc' objects>, '__weakref__': <attribute '__weakref__' of 'arc' objects>, '__attrs_attrs__': (Attribute(name='angle_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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='angle_end'), Attribute(name='angle_start', 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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='angle_start'), Attribute(name='center', 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.point2d.Point2d], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='center'), Attribute(name='radius', 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, float], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='radius'), Attribute(name='type', default='arc', 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 arc.__repr__>, '__eq__': <function arc.__eq__>, '__ne__': <function arc.__ne__>, '__lt__': <function arc.__lt__>, '__le__': <function arc.__le__>, '__gt__': <function arc.__gt__>, '__ge__': <function arc.__ge__>, '__hash__': None, '__init__': <function arc.__init__>, '__match_args__': ('angle_end', 'angle_start', 'center', 'radius', 'type')})[source]
- 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]
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.
- __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]
- class kittycad.models.path_segment.line(end=<kittycad.types.Unset object>, type='line')[source][source]
A straight line segment. Goes from the current path “pen” to the given endpoint.
Method generated by attrs for class line.
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>}[source]
- __attrs_attrs__ = (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='line', 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__': {'end': typing.Union[kittycad.types.Unset, kittycad.models.point3d.Point3d], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A straight line segment. Goes from the current path "pen" to the given endpoint.', 'to_dict': <function line.to_dict>, 'from_dict': <classmethod(<function line.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function line.__getitem__>, '__setitem__': <function line.__setitem__>, '__delitem__': <function line.__delitem__>, '__contains__': <function line.__contains__>, '__dict__': <attribute '__dict__' of 'line' objects>, '__weakref__': <attribute '__weakref__' of 'line' objects>, '__attrs_attrs__': (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='line', 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 line.__repr__>, '__eq__': <function line.__eq__>, '__ne__': <function line.__ne__>, '__lt__': <function line.__lt__>, '__le__': <function line.__le__>, '__gt__': <function line.__gt__>, '__ge__': <function line.__ge__>, '__hash__': None, '__init__': <function line.__init__>, '__match_args__': ('end', 'type')})[source]