13 #include <boost/graph/graph_traits.hpp>
14 #include <boost/graph/properties.hpp>
43 template<
typename FaceGraph,
46 typename boost::property_traits< PointMap >::value_type
51 const typename GeometryTraits::Scalar smoothing_factor,
52 const GeometryTraits >)
54 typedef typename boost::property_traits< PointMap >::value_type
61 Operators::extract_1_ring_not_including_v< FaceGraph, GeometryTraits >(v, g, qv);
63 Point center(0, 0, 0);
65 typename std::vector<
typename boost::graph_traits<
68 for(; it != ite; ++it, ++cpt)
71 center =
Point(gt.get_x(tmp) + gt.get_x(center),
72 gt.get_y(tmp) + gt.get_y(center),
73 gt.get_z(tmp) + gt.get_z(center));
77 return gt.add_pv(
get(pm, v),
78 gt.scalar_mult(gt.sub_p(
Point(gt.get_x(center) / cpt,
79 gt.get_y(center) / cpt,
80 gt.get_z(center) / cpt),