Slot
#
- class ansys.geometry.core.sketch.slot.Slot(center: ansys.geometry.core.math.point.Point2D, width: beartype.typing.Union[pint.Quantity, ansys.geometry.core.misc.measurements.Distance, ansys.geometry.core.typing.Real], height: beartype.typing.Union[pint.Quantity, ansys.geometry.core.misc.measurements.Distance, ansys.geometry.core.typing.Real], angle: beartype.typing.Optional[beartype.typing.Union[pint.Quantity, ansys.geometry.core.misc.measurements.Angle, ansys.geometry.core.typing.Real]] = 0)#
Bases:
ansys.geometry.core.sketch.face.SketchFace
Provides for modeling a 2D slot.
- Parameters:
- center: :class:`Point2D
` Center point of the slot.
- width
Union
[Quantity
,Distance
,Real
] Width of the slot main body.
- height
Union
[Quantity
,Distance
,Real
] Height of the slot.
- angle
Union
[Quantity
,Angle
,Real
], default: 0 Placement angle for orientation alignment.
- center: :class:`Point2D
Overview#
Import detail#
from ansys.geometry.core.sketch.slot import Slot
Property detail#
- property Slot.center: ansys.geometry.core.math.point.Point2D#
Center of the slot.
- property Slot.width: pint.Quantity#
Width of the slot.
- property Slot.height: pint.Quantity#
Height of the slot.
- property Slot.perimeter: pint.Quantity#
Perimeter of the slot.
- property Slot.area: pint.Quantity#
Area of the slot.
- property Slot.visualization_polydata: pyvista.PolyData#
VTK polydata representation for PyVista visualization.
The representation lies in the X/Y plane within the standard global Cartesian coordinate system.
- Returns:
pyvista.PolyData
VTK pyvista.Polydata configuration.