fedoo.Mesh.as_2d

Mesh.as_2d(inplace: bool = False) Mesh

Return a view of the current mesh in 2D.

This method truncate or add zeros to the nodes list to force a 2d mesh. It is equivalent to: mesh.as_ndim(2).

If inplace is True (default=False), the current mesh is modified.