Quadrilateral#
- Quadrilateral(points: MatrixLike[float] | None = None) PolyData[source]#
Create a quadrilateral defined by 4 points.
- Parameters:
- pointsarray_like[
float],optional Points of the quadrilateral. Defaults to a unit square in xy-plane.
- pointsarray_like[
- Returns:
pyvista.PolyDataQuadrilateral mesh.
Examples#
>>> import pyvista as pv
>>> pointa = [1.0, 0.0, 0.0]
>>> pointb = [1.0, 1.0, 0.0]
>>> pointc = [0.0, 1.0, 0.0]
>>> pointd = [0.0, 0.0, 0.0]
>>> quadrilateral = pv.Quadrilateral([pointa, pointb, pointc, pointd])
>>> quadrilateral.plot(show_edges=True, line_width=5)