Quadrilateral#
- Quadrilateral(points: MatrixLikeFloat | None = None) PolyData[source]#
Create a quadrilateral defined by 4 points.
- Parameters:
- points
MatrixLikeFloat, optional Points of the quadrilateral. Defaults to a unit square in xy-plane.
- points
- Returns:
pyvista.PolyDataQuadrilateral mesh.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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)