Box
#
- class ansys.geometry.core.sketch.box.Box(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 box.
- Parameters:
- center: Point2D
Center point of the box.
- width
Union
[Quantity
,Distance
,Real
] Width of the box.
- height
Union
[Quantity
,Distance
,Real
] Height of the box.
- angle
Union
[Quantity
,Angle
,Real
], default: 0 Placement angle for orientation alignment.
Overview#
Import detail#
from ansys.geometry.core.sketch.box import Box
Property detail#
- property Box.center: ansys.geometry.core.math.point.Point2D#
Center point of the box.
- property Box.width: pint.Quantity#
Width of the box.
- property Box.height: pint.Quantity#
Height of the box.
- property Box.perimeter: pint.Quantity#
Perimeter of the box.
- property Box.area: pint.Quantity#
Area of the box.
- property Box.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.