Slot#

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: ansys.geometry.core.sketch.face.SketchFace

Provides for modeling a 2D slot.

Parameters:
center: :class:`Point2D `

Center point of the slot.

widthQuantity | Distance | Real

Width of the slot main body.

heightQuantity | Distance | Real

Height of the slot.

angleQuantity | Angle | Real, default: 0

Placement angle for orientation alignment.

Overview#

center

Center of the slot.

width

Width of the slot.

height

Height of the slot.

perimeter

Perimeter of the slot.

area

Area of the slot.

visualization_polydata

VTK polydata representation for PyVista visualization.

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.