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
For memory conservation purposes I would like to utilize the documented
option to not store the previous halfedge handle in the Halfedge struct.
Removing the above trait doesn't accomplish this, and ArrayItems.hh is
hard-coded to use the version with the previous handle:
//TODO: should be selected with config.h define
typedef Halfedge_with_prev Halfedge;
typedef GenProg::Bool2Type<true> HasPrevHalfedge;
This code is the same at the start of the Git repo from around 10 years
ago. Does anyone know why this option was removed, or if there are any
fundamental reasons it wouldn't still work?
As an aside, I was surprised to see there is no specialization for triangle
meshes for the non-stored previous handle, since for triangle meshes it is
just two next dereferences. I guess this option was never really used.
Thanks,
Steve