kittycad.models.modeling_cmd.extrude
- class kittycad.models.modeling_cmd.extrude(cap=False, distance=<kittycad.types.Unset object>, target=<kittycad.types.Unset object>, type='extrude')[source][source]
Bases:
object
Extrude a 2D solid.
Method generated by attrs for class extrude.
- __init__(cap=False, distance=<kittycad.types.Unset object>, target=<kittycad.types.Unset object>, type='extrude')[source]
Method generated by attrs for class extrude.
Methods
__init__
([cap, distance, target, type])Method generated by attrs for class extrude.
from_dict
(src_dict)- rtype:
TypeVar
(WF
, bound= extrude)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'cap': typing.Union[kittycad.types.Unset, bool], 'distance': typing.Union[kittycad.types.Unset, float], 'target': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'type': <class 'str'>}[source]
- __attrs_attrs__ = (Attribute(name='cap', default=False, 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, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cap'), Attribute(name='distance', 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='distance'), Attribute(name='target', 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='target'), Attribute(name='type', default='extrude', 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.modeling_cmd', '__annotations__': {'cap': typing.Union[kittycad.types.Unset, bool], 'distance': typing.Union[kittycad.types.Unset, float], 'target': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'type': <class 'str'>, 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Extrude a 2D solid.', 'to_dict': <function extrude.to_dict>, 'from_dict': <classmethod(<function extrude.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function extrude.__getitem__>, '__setitem__': <function extrude.__setitem__>, '__delitem__': <function extrude.__delitem__>, '__contains__': <function extrude.__contains__>, '__dict__': <attribute '__dict__' of 'extrude' objects>, '__weakref__': <attribute '__weakref__' of 'extrude' objects>, '__attrs_attrs__': (Attribute(name='cap', default=False, 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, bool], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cap'), Attribute(name='distance', 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='distance'), Attribute(name='target', 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='target'), Attribute(name='type', default='extrude', 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 extrude.__repr__>, '__eq__': <function extrude.__eq__>, '__ne__': <function extrude.__ne__>, '__lt__': <function extrude.__lt__>, '__le__': <function extrude.__le__>, '__gt__': <function extrude.__gt__>, '__ge__': <function extrude.__ge__>, '__hash__': None, '__init__': <function extrude.__init__>, '__match_args__': ('cap', 'distance', 'target', 'type')})[source]
- __init__(cap=False, distance=<kittycad.types.Unset object>, target=<kittycad.types.Unset object>, type='extrude')[source]
Method generated by attrs for class extrude.
-
target:
Union
[Unset
,ModelingCmdId
][source]