fedoo.Mesh.as_2d

Mesh.as_2d(inplace: bool = False) Mesh

Return a view of the current mesh in 2D.

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

Warning: this method don’t check if the element type is compatible with a 2d mesh. It only truncate or add zeros to the nodes list to force a 2d mesh. The returned mesh may not be valid.