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
0
votes
0 answers

Openmesh, polygon triangulation

Does anyone know if the openmesh library can triangulate a simple closed polygon? I'm currently creating a PolyMesh, where the boundary is represented by a sequence of vertices defining a simple closed polygon. However whan I save this in .ply file…
user8469759
  • 2,522
  • 6
  • 26
  • 50
0
votes
1 answer

How to use CGAL to model a set of points moving on a sphere?

I am trying to learn using CGAL. I have questions about which data structures and triangulation schemes to use for my problem. Problem description: I have a small number ( < 1000) of particles moving on a sphere. I need to make a triangular Delaunay…
user6764549
0
votes
1 answer

Find neighbours / inside query in OpenMesh

I'm planning to use a mesh library, likely OpenMesh, to run simulations of surface mechanics for a convex topological surface. A crucial point is to have a good neighbour search, i.e. know which face/vertex is closest to a certain point in space.…
SergeD
  • 44
  • 9
0
votes
1 answer

How to delete triangles from an openmesh without creating polygons?

When I call mesh.delete_face(face_handle) in an OpenMesh using OpenMesh::TriMesh_ArrayKernelT<> I get somehow faces with more than 3 vertices, possibly a polygon around the hole created by deleted faces. How can I avoid this to just get a boundary…
allo
  • 3,955
  • 8
  • 40
  • 71
0
votes
2 answers

Qt _USE_MATH_DEFINES

I need to work with OpenMesh on my PC with Qt IDE, the snip of the simple *.pro file looks like: DEFINES += _USE_MATH_DEFINES DEFINES += NOMINMAX #DEFINES += OM_STATIC_BUILD #OpenMesh INCLUDEPATH += "D:/Libraries/OpenMesh 6.3/include" #Debug LIBS +=…
Tyler Xie
  • 169
  • 1
  • 3
  • 13
0
votes
0 answers

OpenMesh Plane3d

I'm new to OpenMesh and have a very basic question. I’m trying to create a plane with OpenMesh in python. I have tried the following and it doesn’t work: import openmesh as om om.Plane3d(om.vec3f(0,0,1),point) So first of all I get an error message…
ChrKong
  • 101
  • 1
  • 7
0
votes
1 answer

calculate the area of a triangle in openmesh

Here is a snippet from "Polygon mesh process" example: for (v_it=mesh_.vertices_begin(); v_it!=v_end; ++v_it) { area = 0.0; for (vf_it=mesh_.vf_iter(v_it); vf_it; ++vf_it) { fv_it = mesh_.fv_iter(vf_it); const Mesh::Point& P =…
Tyler Xie
  • 169
  • 1
  • 3
  • 13
0
votes
1 answer

g++-4.3 cannot find in qt5.8 under linux

I had install g++ latest version, but the Qt5.8 cannot find g++-4.3 just like ":-1: error: g++-4.3: Command not found" could you help me? This project is the first tutorial of openmesh examples
Andrew.An
  • 1
  • 1
0
votes
2 answers

Is there a way to reproject/interpolate vertex colors with OpenMesh?

I'm using OpenMesh to remesh/manage some mesh objects. With subdivide/decimate/smooth and other tools from OpenFlipper, I can change the mesh topology. This however results in vertex colors loosing their meaning, as new vertices will all have black…
Lake
  • 4,072
  • 26
  • 36
0
votes
1 answer

OpenMesh Recursive Iteration

I recently started using OpenMesh, and I need to make a recursive iteration where I access one vertex, then its neighbouring vertexes and then the neighbours of those. I also need to keep a list of vertexes which I have used already. My main problem…
Phil333
  • 19
  • 1
  • 7
0
votes
0 answers

OpenMesh convert Circulators to iterator

I'm using OpenMesh, and try to iterate in BFS base on a vertex, I can get the neighbor of this vertex in the form of VertexVertexiterator, but I want the neighbor in the form of Vertexitrator, how can I get it in this form, thanks~
0
votes
1 answer

OpenMesh, decimation, Lindstrom-Turk

In my application I'm working with a lot of triangle meshes, and sometime I need to reduce number of triangles in them (colapse some edges). For mesh handling I use openmesh (openmesh.org) since it's modern (C++), but mainly because it does not drag…
0
votes
3 answers

Iterating over edges and getting their vertices with OpenMesh

I am starting to use OpenMesh to go through meshes which may have wholes and am wondering what is the good way to actually retrieve the vertices associated with each edge. For half-edges, there are the methods opposite_he_opposite_vh and opposite_vh…
Alexandre Kaspar
  • 564
  • 6
  • 21
-1
votes
0 answers

How to build OpenMesh?

I am building OpenMesh on a Gentoo machine, which used to work a few years back. But now, with the following commands ... git clone https://www.graphics.rwth-aachen.de:9000/OpenMesh/OpenMesh.git $ cd OpenMesh $ mkdir build $ cmake…
Ender
  • 1,652
  • 2
  • 25
  • 50
-1
votes
1 answer

mesh.delete_face() caused abort()

I have tried to run the code below but got a error when using mesh.delete_face(*it, false); vector terminalFaces; OpenMesh::FPropHandleT faceType; OpenMesh::FPropHandleT faceChecked; …
Liu
  • 77
  • 5
1 2 3 4
5