shapes.plane#

shapes.plane(p=(0.0, 0.0, 0.0), n=(0.0, 0.0, 1.0), size=10)#

Create a plane in 3D space.

The function generates a plane, with normal vector n and going through the point p.

Parameters#

parray_like of shape (3,), optional

Coordinates of a point through which the plane passes. This defines the position of the plane in 3D space. Default is (0.0, 0.0, 0.0).

narray_like of shape (3,), optional

Normal vector defining the plane’s orientation. The vector does not need to be normalized; its direction determines the plane’s orientation. Default is (0.0, 0.0, 1.0), i.e., a plane in the xy-plane.

sizefloat, optional

Defines the size (extent) of the plane mesh.

Returns#

Mesh

Mesh representation of the plane as a single quadrilateral element (eltype=”quad4”).

Examples#

>>> P = plane()
>>> print(P)
Mesh: n_nodes: 4, n_elems: 1, plexitude: 4, level: 2, eltype: quad4
  BBox: [-5. -5. -0.], [5. 5. 0.]
  Size: [10. 10.  0.]
  Length: 40.0  Area: 100.0