Questions tagged [openmesh]

OpenMesh is a library implementing a generic and efficient data structure for representing and manipulating polygonal meshes. It is written in C++ and also has experimental Python bindings. Use this tag for questions regarding OpenMesh or its usage in either C++ or Python.

Also refer to the OpenMesh Web Site for a more detailed documentation of OpenMesh.

75 questions
1
vote
1 answer

OpenMesh find edge connecting two vertices

Is there a readily available function in OpenMesh that returns the edge handle connecting two vertices? For half edges there is the find_halfedge(vertex1, vertex2) function, but I could not find a corresponding find_edge(vertex1, vertex2) function.…
Botond
  • 2,640
  • 6
  • 28
  • 44
1
vote
0 answers

Crack opening / topology change in OpenMesh

I am using a triangular mesh (TriMesh) in OpenMesh and need to carry out the topological changes shown on the picture. These are cracking of edges, either at the boundary or within the body of the mesh. To my knowledge, there are several ways this…
Botond
  • 2,640
  • 6
  • 28
  • 44
1
vote
1 answer

How to Draw OpenMesh using OpenGL

i'm working on a project where i'm using OpenMesh to read stl and obj files and draw them on the screen using openGL. i've been doing the following, #include #include…
Mostafa Mahmoud
  • 182
  • 1
  • 10
1
vote
0 answers

Cmake error while trying to install openmesh for python

I want to install openmesh for python. I've tried: pip install openmesh in the terminal in pycharm. I'm using Windows 10 and Python 3.8. I've installed cmake using pip install cmake. Now the following error occurs: WARNING: The wheel package is…
hermine
  • 11
  • 1
1
vote
1 answer

How to set the color of a face using OpenMesh?

I'm trying to just set the face color of a certain face and my code keeps throwing an error. The line mesh.set_color(*f_it, clr); is throwing an error (something about a property error). I've tried changing it to mesh.set_color(f_it.handle(), clr);…
quela
  • 81
  • 7
1
vote
1 answer

Adding new lines results in ValueError in numpy.asarray

Prior to adding the neighbor statements (that I commented with 'new'), everything worked just fine. Now, when using numpy.asarray, there is following error: ValueError: could not broadcast input array from shape (3,3) into shape (3). I'm really…
Rani
  • 483
  • 7
  • 17
1
vote
0 answers

Is JacobiLaplaceSmoother of OpenMesh working correctly for C2 Continuity?

I have tested the JacobiLaplaceSmoother class for C1 continuity and I think it is working correctly But with C2 continuity, results are weird. I would like to know if the class is complete for C2 continuity as well.
Tharun
  • 31
  • 7
1
vote
0 answers

How to remove duplicate vertices and their vertex handles when performing hole filling in OpenFlipper based on OpenMesh

Recently, I am using the plugin "hole filling" of OpenFlipper, and have entirely compiled the OpenFlipper. However, the new mesh has a large number of duplicate vertices, when I tried to add the filling patch to the original mesh. I used the…
Allens
  • 11
  • 2
1
vote
1 answer

Qt error in .obj file: unresolved externals

So I have changed the following lines: LIBS += \ /usr/local/lib/libOpenMeshCore.so \ /usr/local/lib/libOpenMeshTools.so LIBS += \ -lglut -lGLU to: LIBS += \ -lglut32 -lOpenMeshCored -lOpenMeshToolsd and then I encounter these…
1
vote
0 answers

Is it possible to save a mesh in a .vtk file using openmesh with python or C++?

I am working with openmesh in Python (installed with pip) and in C++ (openmesh version 7.0). I must save a mesh under .vtk extension. Openmesh documentation says it is possible, but as far as I have tried, it does not work. Here is my piece of…
CDuvert
  • 367
  • 1
  • 3
  • 14
1
vote
1 answer

Assertion block_size == b failed when reading an OpenMesh file

When reading an OpenMesh file via OpenMesh::EPropHandleT prop_feature_edge; mesh.add_property(prop_feature_edge, "feature"); OpenMesh::IO::read_mesh(mesh, "testmesh.om"); I get the error Assertion failed: block_size == b, file…
allo
  • 3,955
  • 8
  • 40
  • 71
1
vote
1 answer

How do I correctly use Options and Flags to alter the read_mesh and write_mesh functions in OpenMesh?

I was able to read and write very basic .off files in OpenMesh, but this doesn't let me see the edges connecting the vertices of my triangle mesh very well when I use the program, Geomview, to visualize the mesh. I figured out how to change the .off…
1
vote
0 answers

OpenMesh with topology only, no data

Is it possible to use OpenMesh to construct a DCEL with no data? In my particular use case the vertex data is owned by a 3rd party closed source application and I would like to use OpenMesh to traverse that data. The documentation discusses…
atb
  • 1,412
  • 1
  • 14
  • 30
1
vote
1 answer

replacing vertices to connect meshes

I am trying to connect two meshes by replacing boundary vertices of one mesh with the vertices of the other mesh. I currently do this by circulating over the in-halfedges and letting them point to the other vertex. Since I iteratively add edges…
P Alcove
  • 155
  • 1
  • 1
  • 8
1
vote
2 answers

OpenMesh Face Split

I've recently started using OpenMesh on a project where I have to refine meshes. I need to use the face split(FaceHandle _fh, Point _p) operation to insert a vertex at a triangle's centroid. But when I use this method and try to grab the faces of…
murf
  • 21
  • 5