question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DEBUG:skfem.mesh.mesh:Mesh contains duplicate vertices.

See original GitHub issue

In jupyter notebook, after running

import logging
import meshio
import skfem.io

logging.basicConfig(level=logging.WARNING)
logging.getLogger('skfem').setLevel(logging.DEBUG)

mesh_ = meshio.read(tmp_mesh_file)
mesh_.remove_lower_dimensional_cells()
mesh_.remove_orphaned_nodes()
skfem.io.from_meshio(mesh_)

I still get a warning

DEBUG:skfem.mesh.mesh:Mesh contains duplicate vertices.

The gmsh code is fairly trivial:

    gmsh.initialize()
    try:
        gmsh.option.setNumber("Mesh.MeshSizeFactor", ...)
        gmsh.model.occ.add_rectangle(...)
        gmsh.model.occ.synchronize()
        ... # generate a background field for mesh element sizes
        gmsh.model.mesh.field.setAsBackgroundMesh(...)
        gmsh.model.mesh.generate(2)
        gmsh.write(tmp_mesh_file)
    finally:
        gmsh.clear()
        gmsh.finalize()

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
kinnalacommented, Nov 14, 2021

Alright, so the final mesh seems to be valid but still this log message pops up.

0reactions
kinnalacommented, Nov 16, 2021

Fixed by #789.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate vertices after compression/decompression · Issue #71
This can happen for non-manifold meshes where vertices on non-manifold edges are split into two (or more vertices). This is currently needed for ......
Read more >
Solving problem with duplicate vertices in obj mesh in ...
Remove vertex duplicates in MeshLab. Here I will show how to remove duplicates on another mesh with more evident artifacts. Import mesh with...
Read more >
duplicated vertices in mesh generation
There are two steps in the fixMesh function. The first finds the "proper" vertices of the mesh. I have just taken the mean...
Read more >
Invalid Meshes and Duplicate Vertices - Rhino Developer
Does anyone have any potential solutions for this? Removing duplicate vertices destroys the ordering of the vertices, which is critical.
Read more >
Local Mesh Cleanup — PyMesh 0.2.1 documentation
Artifacts such as degeneracies, duplicate vertex/triangles and ... mesh ( Mesh ) – Input mesh. tol ( float ) – (optional) Vertices with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found