Subversion Repositories gelsvn

Rev

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

Rev 677 Rev 684
Line 33... Line 33...
33
        vector<int> faces;
33
        vector<int> faces;
34
        vector<int> indices;
34
        vector<int> indices;
35
        for(auto v : m.vertices())
35
        for(auto v : m.vertices())
36
            if(valency(m, v) > 2 && !(boundary(m, v)))
36
            if(valency(m, v) > 2 && !(boundary(m, v)))
37
            {
37
            {
38
                int N =circulate_vertex_ccw(m, v, [&](FaceID fid) {
38
				int N = circulate_vertex_ccw(m, v, (std::function<void(FaceID)>)[&](FaceID fid) {
39
                    indices.push_back(ftouched[fid]);
39
                    indices.push_back(ftouched[fid]);
40
                });
40
                });
41
                // Insert face valency in the face vector.
41
                // Insert face valency in the face vector.
42
                faces.push_back(N);
42
                faces.push_back(N);
43
            }
43
            }