Commit b02909e8 authored by Isaak Lim's avatar Isaak Lim

removed OpenMP for loops, which caused problems because priority_collapse was executed in parallel

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@682 fdac6126-5c0c-442c-9429-916003d36597
parent 688a65ab
......@@ -60,10 +60,6 @@
# include <cfloat>
#endif
#ifdef USE_OPENMP
#include <omp.h>
#endif
//== NAMESPACE ===============================================================
namespace OpenMesh {
......@@ -114,9 +110,6 @@ size_t McDecimaterT<Mesh>::decimate(size_t _n_collapses) {
double bestEnergy = FLT_MAX;
// Generate random samples for collapses
#ifdef USE_OPENMP
#pragma omp parallel for shared(bestEnergy, bestHandle)
#endif
for ( int i = 0; i < (int)randomSamples_; ++i) {
// Random halfedge handle
......@@ -208,9 +201,6 @@ size_t McDecimaterT<Mesh>::decimate_to_faces(size_t _nv, size_t _nf) {
// Generate random samples for collapses
unsigned int legalCollapses = 0;
#ifdef USE_OPENMP
#pragma omp parallel for shared(bestEnergy, bestHandle, legalCollapses)
#endif
for ( int i = 0; i < (int)randomSamples_; ++i) {
// Random halfedge handle
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment