:class:`Slot` ============= .. py:class:: ansys.geometry.core.sketch.slot.Slot(center: ansys.geometry.core.math.point.Point2D, width: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, height: pint.Quantity | ansys.geometry.core.misc.measurements.Distance | ansys.geometry.core.typing.Real, angle: pint.Quantity | ansys.geometry.core.misc.measurements.Angle | ansys.geometry.core.typing.Real = 0) Bases: :py:obj:`ansys.geometry.core.sketch.face.SketchFace` Provides for modeling a 2D slot. :Parameters: **center: :class:`Point2D `** Center point of the slot. **width** : :obj:`~pint.Quantity` | :obj:`Distance` | :obj:`Real` Width of the slot main body. **height** : :obj:`~pint.Quantity` | :obj:`Distance` | :obj:`Real` Height of the slot. **angle** : :obj:`~pint.Quantity` | :obj:`Angle` | :obj:`Real`, default: 0 Placement angle for orientation alignment. .. !! processed by numpydoc !! .. py:currentmodule:: Slot Overview -------- .. tab-set:: .. tab-item:: Properties .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~center` - Center of the slot. * - :py:attr:`~width` - Width of the slot. * - :py:attr:`~height` - Height of the slot. * - :py:attr:`~perimeter` - Perimeter of the slot. * - :py:attr:`~area` - Area of the slot. * - :py:attr:`~visualization_polydata` - VTK polydata representation for PyVista visualization. .. tab-item:: Attributes .. list-table:: :header-rows: 0 :widths: auto * - :py:attr:`~width_magnitude` - * - :py:attr:`~height_magnitude` - * - :py:attr:`~angle` - * - :py:attr:`~rotation` - * - :py:attr:`~half_h` - * - :py:attr:`~half_box_w` - * - :py:attr:`~corner_1` - * - :py:attr:`~corner_2` - * - :py:attr:`~corner_3` - * - :py:attr:`~corner_4` - * - :py:attr:`~arc_1_center` - * - :py:attr:`~arc_2_center` - Import detail ------------- .. code-block:: python from ansys.geometry.core.sketch.slot import Slot Property detail --------------- .. py:property:: center :type: ansys.geometry.core.math.point.Point2D Center of the slot. .. !! processed by numpydoc !! .. py:property:: width :type: pint.Quantity Width of the slot. .. !! processed by numpydoc !! .. py:property:: height :type: pint.Quantity Height of the slot. .. !! processed by numpydoc !! .. py:property:: perimeter :type: pint.Quantity Perimeter of the slot. .. !! processed by numpydoc !! .. py:property:: area :type: pint.Quantity Area of the slot. .. !! processed by numpydoc !! .. py:property:: visualization_polydata :type: pyvista.PolyData VTK polydata representation for PyVista visualization. The representation lies in the X/Y plane within the standard global Cartesian coordinate system. :Returns: :obj:`pyvista.PolyData` VTK pyvista.Polydata configuration. .. !! processed by numpydoc !! Attribute detail ---------------- .. py:attribute:: width_magnitude .. py:attribute:: height_magnitude .. py:attribute:: angle .. py:attribute:: rotation .. py:attribute:: half_h .. py:attribute:: half_box_w .. py:attribute:: corner_1 .. py:attribute:: corner_2 .. py:attribute:: corner_3 .. py:attribute:: corner_4 .. py:attribute:: arc_1_center .. py:attribute:: arc_2_center