Trapezoid#

class ansys.geometry.core.sketch.trapezoid.Trapezoid(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], slant_angle: beartype.typing.Union[pint.Quantity, ansys.geometry.core.misc.measurements.Angle, ansys.geometry.core.typing.Real], nonsymmetrical_slant_angle: beartype.typing.Optional[beartype.typing.Union[pint.Quantity, ansys.geometry.core.misc.measurements.Angle, ansys.geometry.core.typing.Real]] = None, center: beartype.typing.Optional[ansys.geometry.core.math.point.Point2D] = ZERO_POINT2D, 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 trapezoid.

Parameters:
widthUnion[Quantity, Distance, Real]

Width of the trapezoid.

heightUnion[Quantity, Distance, Real]

Height of the trapezoid.

slant_angleUnion[Quantity, Angle, Real]

Angle for trapezoid generation.

nonsymmetrical_slant_angleUnion[Quantity, Angle, Real], default: None

Asymmetrical slant angles on each side of the trapezoid. The default is None, in which case the trapezoid is symmetrical.

center: Point2D, default: ZERO_POINT2D

Center point of the trapezoid.

angleUnion[Quantity, Angle, Real], default: 0

Placement angle for orientation alignment.

Notes

If a nonsymmetrical slant angle is defined, the slant angle is applied to the left-most angle, and the nonsymmetrical slant angle is applied to the right-most angle.

Overview#

center

Center of the trapezoid.

width

Width of the trapezoid.

height

Height of the trapezoid.

visualization_polydata

VTK polydata representation for PyVista visualization.

Import detail#

from ansys.geometry.core.sketch.trapezoid import Trapezoid

Property detail#

property Trapezoid.center: ansys.geometry.core.math.point.Point2D#

Center of the trapezoid.

property Trapezoid.width: pint.Quantity#

Width of the trapezoid.

property Trapezoid.height: pint.Quantity#

Height of the trapezoid.

property Trapezoid.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.