Subversion Repositories gelsvn

Rev

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

Rev 637 Rev 638
Line 74... Line 74...
74
        VertexAttributeVector<Vec3d> new_pos = m.positions_attribute_vector();
74
        VertexAttributeVector<Vec3d> new_pos = m.positions_attribute_vector();
75
        for(VertexID v : m.vertices())
75
        for(VertexID v : m.vertices())
76
            if(!boundary(m, v))
76
            if(!boundary(m, v))
77
            {
77
            {
78
                Vec3d L(0);
78
                Vec3d L(0);
79
                int n = circulate_vertex_ccw(m, v, [&](VertexID v){ L += m.pos(v); });
79
                int n = circulate_vertex_ccw(m, v, (std::function<void(VertexID)>)[&](VertexID v){ L += m.pos(v); });
80
                new_pos[v] = L/n;
80
                new_pos[v] = L/n;
81
            }
81
            }
82
        m.positions_attribute_vector() = new_pos;
82
        m.positions_attribute_vector() = new_pos;
83
    
83
    
84
    }
84
    }