Subversion Repositories gelsvn

Rev

Rev 677 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 684
Line 313... Line 313...
313
        }
313
        }
314
        vector<int> indices;
314
        vector<int> indices;
315
        vector<int> faces;
315
        vector<int> faces;
316
        for(FaceID f: m.faces()) {
316
        for(FaceID f: m.faces()) {
317
            faces.push_back(no_edges(m, f));
317
            faces.push_back(no_edges(m, f));
318
            circulate_face_cw(m, f, [&](VertexID v){
318
			circulate_face_cw(m, f, (std::function<void(VertexID)>)[&](VertexID v){
319
                indices.push_back(idvec[v]);
319
                indices.push_back(idvec[v]);
320
            });
320
            });
321
        }
321
        }
322
        m.clear();
322
        m.clear();
323
        m.build(vertices.size(), vertices[0].get(), faces.size(), &faces[0], &indices[0]);
323
        m.build(vertices.size(), vertices[0].get(), faces.size(), &faces[0], &indices[0]);