nanomesh.mesh

Classes:

PruneZ0Mixin()

class nanomesh.mesh.PruneZ0Mixin[source]

Bases: object

Methods:

prune_z_0()

Drop third dimension (z) coordinates if present and all values are equal to 0 (within tolerance).

prune_z_0()[source]

Drop third dimension (z) coordinates if present and all values are equal to 0 (within tolerance).

For compatibility, sometimes a column with zeroes is added, for example when exporting to gmsh2.2 format. This method drops that column.