Trapezoid#
- class ansys.geometry.core.sketch.trapezoid.Trapezoid(base_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, base_angle: pint.Quantity | ansys.geometry.core.misc.measurements.Angle | ansys.geometry.core.typing.Real, base_asymmetric_angle: pint.Quantity | ansys.geometry.core.misc.measurements.Angle | ansys.geometry.core.typing.Real | None = None, center: ansys.geometry.core.math.point.Point2D = ZERO_POINT2D, angle: pint.Quantity | ansys.geometry.core.misc.measurements.Angle | ansys.geometry.core.typing.Real = 0)#
Bases:
ansys.geometry.core.sketch.face.SketchFaceProvides for modeling a 2D trapezoid.
- Parameters:
- base_width
Quantity|Distance|Real Width of the lower base of the trapezoid.
- height
Quantity|Distance|Real Height of the slot.
- base_angle
Quantity|Distance|Real Angle for trapezoid generation. Represents the angle on the base of the trapezoid.
- base_asymmetric_angle
Quantity|Angle|Real|None, default:None Asymmetrical angles on each side of the trapezoid. The default is
None, in which case the trapezoid is symmetrical. If provided, the trapezoid is asymmetrical and the right corner angle at the base of the trapezoid is set to the provided value.- center: Point2D, default: ZERO_POINT2D
Center point of the trapezoid.
- angle
Quantity|Angle|Real, default: 0 Placement angle for orientation alignment.
- base_width
Notes
If an asymmetric base angle is defined, the base angle is applied to the left-most angle, and the asymmetric base angle is applied to the right-most angle.
Overview#
Center of the trapezoid. |
|
Width of the trapezoid. |
|
Height of the trapezoid. |
|
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.base_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.PolyDataVTK pyvista.Polydata configuration.