DEBUG:skfem.mesh.mesh:Mesh contains duplicate vertices.
See original GitHub issueIn 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:
- Created 2 years ago
- Comments:15 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Alright, so the final mesh seems to be valid but still this log message pops up.
Fixed by #789.