Manifold versus non-manifold meshes