13 #include <boost/graph/graph_traits.hpp>
14 #include <boost/graph/properties.hpp>
34 template<
typename HalfedgeGraph,
40 typename GeometryTraits::Scalar offset_x,
41 typename GeometryTraits::Scalar offset_y,
42 typename GeometryTraits::Scalar offset_z,
43 const GeometryTraits >)
45 typedef boost::graph_traits< HalfedgeGraph > GraphTraits;
46 typedef typename GraphTraits::vertex_iterator vertex_iterator;
47 typedef typename boost::property_traits< PointMap >::value_type
Point;
56 Point(gt.get_x(p) + offset_x,
57 gt.get_y(p) + offset_y,
58 gt.get_z(p) + offset_z));
73 template<
typename HalfedgeGraph,
79 typename GeometryTraits::Scalar offset_x,
80 typename GeometryTraits::Scalar offset_y,
81 typename GeometryTraits::Scalar offset_z)
85 translate< HalfedgeGraph, PointMap, GeometryTraits >(
86 g, pm, offset_x, offset_y, offset_z, gt);