Subversion Repositories gelsvn

Rev

Rev 652 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 652 Rev 657
Line 228... Line 228...
228
    VertexIDBatches batch_vertices(Manifold& m) {
228
    VertexIDBatches batch_vertices(Manifold& m) {
229
        VertexIDBatches vertex_ids(CORES);
229
        VertexIDBatches vertex_ids(CORES);
230
        auto batch_size = m.no_vertices()/CORES;
230
        auto batch_size = m.no_vertices()/CORES;
231
        int cnt = 0;
231
        int cnt = 0;
232
        for_each_vertex(m, [&](VertexID v) {
232
        for_each_vertex(m, [&](VertexID v) {
233
            if (!boundary(m, v))
233
            //if (!boundary(m, v))
234
                vertex_ids[(cnt++/batch_size)%CORES].push_back(v);
234
                vertex_ids[(cnt++/batch_size)%CORES].push_back(v);
235
        });
235
        });
236
        return vertex_ids;
236
        return vertex_ids;
237
    }
237
    }
238
 
238