mesh.Mesh.enclosed_area#
- Mesh.enclosed_area()#
Return the total enclosed area of a closed planar line Mesh.
Returns#
- float
The total area enclosed by all closed loops in the mesh. Returns 0.0 if the mesh is open.
Notes#
The input mesh may be a line mesh defined in 3D space; all points just need to be co-planar.
See Also#
area(): area of a level 2/3 mesh
Examples#
>>> square = Mesh(eltype='quad4').border_mesh() >>> area = square.enclosed_area() >>> print(np.isclose(area, 1.0)) True