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

What property the "vertex texcoord" should have when calculating tangent Space

    I'm using OpenMesh to handle triangle meshes.     I have done mesh parametrization to set vertex texcoord and my whole understanding about vertex texcoord is getting from there. It should be a changeable value to vertex if I'm not getting it…
Hugo.C
  • 38
  • 8
1
vote
1 answer

OpenMesh multithreaded mesh import

I cannot find any information about thread-safety of OpenMesh operations, specifically I'm looking for a multithreaded mesh importing. Currently I'm filling my mesh through: OpenMesh::IO::ImporterT In single thread. But if it's possible - I wan't…
Ibraim Ganiev
  • 8,934
  • 3
  • 33
  • 52
1
vote
2 answers

OpenMesh with Python 3.4?

I'm relatively new to python and its C++ wrappers like boost python. I tried to get the OpenMesh C++ Library python bindings working with python 3. Does anybody know if its already possible? There are some hints in the OpenMesh changelog and some…
1
vote
1 answer

OpenMesh: remove_property : is not a member of Decimater::DecimaterT

I'm trying to use the decimater algorithm in OpenMesh. I followed the basic setup presented in this link: http://openmesh.org/Documentation/OpenMesh-2.0-Documentation/decimater_docu.html but I get the following error which is comes from the…
jaykumarark
  • 2,359
  • 6
  • 35
  • 53
1
vote
2 answers

openmesh EdgeHandle class

So I'm using the OpenMesh library for a project and I'm passed in an EdgeHandle e to a method. Is it possible to see what two faces are joined by this edge? I tried looking online but the documentation for openMesh is very sparse and the stuff for…
user1782677
  • 1,963
  • 5
  • 26
  • 48
0
votes
0 answers

Use OpenMesh to get the texture maps of textured mesh

I use OpenMesh to get the texture maps of textured mesh, but it does not work. OpenMesh::MPropHandleT< std::map< int, std::string > > textures_files; mesh.get_property_handle(textures_files, "TextureMapping"); std::cout << "textures_files" <<…
ziwenjie
  • 9
  • 3
0
votes
0 answers

calculate the point cloud color(RGB) sampled from texured meshes

I use the OpenMesh and CGAL calculate the color (RGB) of point clouds sampled from textured mesh, the point clouds coordinate (XYZ) is right, but the point clouds UV is wrong and is always [0, 0], resulting the color (RGB) of point clouds is [0, 0,…
ziwenjie
  • 9
  • 3
0
votes
1 answer

Openmesh faces on the same plane

I am playing with Python Openmesh. If I have a quad it will be split into triangles. When drawing on the screen I want to draw as a quad. Is there an easy was to check an edge and see if the normals of the two triangles are parallel? I assume dot…
iain
  • 33
  • 7
0
votes
0 answers

Why is the lifecycle of a PropertyManager entity of any named property not managed in OpenMesh?

According to OpenMesh Doc, there is no way to manage the lifecycle of a PropertyManager object of a named property. There is an approach to do this(code attached) but the OpenMesh team marked it will be deprecated in the future. Why they think all…
0
votes
0 answers

OpenMesh curvature

I'm new to OpenMesh and having difficulties in calculation of curvature. I heard about that OpenMesh provides a curvature calculation function internally. But I can't find it. How can I get curvature calculation function? And I also want to know how…
adder
  • 1
0
votes
0 answers

How to read vertex texcoords with OpenMesh

I use OpenGL + OpenMesh to render a 3d mesh My mesh reading and processing code: void read(MyMesh &model, const string &path) { model.request_vertex_colors(); model.request_face_normals(); OpenMesh::IO::Options opt; opt +=…
yys_c
  • 15
  • 6
0
votes
1 answer

OpenVolumeMesh, how to get coordinates from VertexHandle?

I'm using OpenVolumeMesh and have so far been unable to figure out how to get the actual x, y, z coordinates from a VertexHandle. I have the following: VertexHandle vh0 = mesh.halfedge(*he_it).from_vertex(); VertexHandle vh1 =…
Richard
  • 27
  • 5
0
votes
1 answer

Where to store the id of a VertexHandle in OpenMesh?

I am building index and vertex buffers from OpenMesh structures which I will feed into my rendering engine. Here I iterate my elements (not shown) and create VertexHandles for each of my points and then add the face. std::vector
Ender
  • 1,652
  • 2
  • 25
  • 50
0
votes
1 answer

OpenMesh copy all standard and custom properties from one mesh element to another

OpenMesh offers the possibility to store properties on mesh elements (faces, vertices, half edges, edges) as described here. Is there a function available which copies all of these properties from one element to another?
Botond
  • 2,640
  • 6
  • 28
  • 44
0
votes
1 answer

OpenMesh get number of faces/vertices/edges

Is there a way to directly get the number of faces, vertices and edges in a mesh in OpenMesh? One could always iterate over them and count them but I was wondering if there is any member variable that holds them or whether there is any vector where…
Botond
  • 2,640
  • 6
  • 28
  • 44