Hello Madam or Sir,
I am the user of OpenMesh, and I want ask some questions about the parallel code with OpenMesh, exactly, the parallel code is based on OpenMP on the VS2013.
The first question: When I use the OpenMP on the VS2013 to speed up the program which write with OpenMesh, for example, I add the code: #pragma omp parallel for num_threads(7) , just like the following:
and the errors follow, and I do not know why.
and the second question: Could the code with iterator of OpenMesh be paralleled by OpenMP just like " for (TriMesh::FaceIter f_it = mesh.faces_begin(); f_it != mesh.faces_end(); f_it++) " in the above picture? or How can I parallel the code with iterator of OpenMesh?
Thank you for your time! And I am looking forward to your reply.
Sincerely
LuWang
HI There,
Good to have a Openmesh library ,Its helping a lot .
But I have encountered with a problem where I am unable to execute the
openmesh c++ program.I have installed the openmesh from the source .
I am getting the errors when I am trying to run the sample building cube
problem in openmesh .I have run it with command (g++ -o out cube.cc).I have
encountered the errors which was given in the attachment.
Please provide me how can i run the sample program and also how can i
integrate the openmesh with the cgal c++ library.
Thanks in advance.
Thanks and Regards
V.Vamsikrishna
student
I have an OBJ mesh with multiple texture image materials with face texture
coordinates. The input OBJ file correctly separates each texture by
placing "usemtl material0000" in the face declarations ('f ...').
I have a typdef that defines my mesh class:
`typedef OpenMesh::TriMesh_ArrayKernelT<> Mesh;`
To open the OBJ file, I set `mesh.request_halfedge_texcoords2D()`. I have
verified texture coordinates are correct.
I'm trying to save the mesh (no modifications), but cannot get the OBJ
output to have the correct texture material lines written to the file.
Specifically, the face indices should be separated by 'usemtl matXX' for
each different material.
I've tried enabling and disabling face colors in my loading function. With
face colors enabled, I only get the 1st material. All other materials are
missing.
When I disable face colors, but have FaceTexCoord enabled, line 330 of
OBJWrite.cc ignores the line to write the 'usemtl mat' line.
Is this a bug, or am I missing something? Thanks in advance,
Jan-Michael
Reading code:
* OpenMesh::IO::Options ropt;*
* ropt += OpenMesh::IO::Options::FaceTexCoord;*
* ropt += OpenMesh::IO::Options::FaceColor;*
* _mesh.request_vertex_normals();*
* _mesh.request_face_normals();*
* _mesh.request_halfedge_texcoords2D();*
* _mesh.request_face_colors();*
* if (!OpenMesh::IO::read_mesh(_mesh, path, ropt))*
* {*
* return false;*
* }*
Writing code:
* OpenMesh::IO::Options wopt;*
* if (_mesh.has_vertex_normals())*
* wopt += OpenMesh::IO::Options::VertexNormal;*
* //update textures*
* if (_mesh.has_halfedge_texcoords2D())*
* {*
* wopt += OpenMesh::IO::Options::FaceTexCoord;*
* wopt += OpenMesh::IO::Options::FaceColor;*
* }*
* return OpenMesh::IO::write_mesh(_mesh, path, wopt);*
Hi,
When I use a trimesh with default traits ( OpenMesh::TriMesh_ArrayKernelT<> mesh; )
the default scalar type that is used is float. So after adding some vertices and indices, when I call
mesh.update_normals();
a compiler warning is generated, because 0.0 is interpreted as double in line 407 in PolyMeshT_impl.hh
changing it to
vectorize(_n, Scalar(0.0));
avoids this warning. The same probably also applies for other functions in PolyMeshT_impl.hh that use vectorize
Best Regards!
Martin
--
Martin Schultz
Developer - Integration
ModuleWorks GmbH
Henricistr. 50
52072 Aachen
Germany
martins(a)moduleworks.com<mailto:martins@moduleworks.com>
https://www.moduleworks.com
HRB 11871
Amtsgericht Aachen
Geschäftsführer Yavuz Murtezaoglu