CGAL::create_offset_polygons_2

Definition

The function create_offset_polygons_2 creates a straight skeleton in the interior of a 2D polygon with holes.

#include <CGAL/create_straight_skeleton_2.h>

template<class Polygon, class FT, class Straight_skeleton, class K>
std::vector< boost::shared_ptr<Polygon> >
create_offset_polygons_2 ( FT offset,
Straight_skeleton s,
,
K k = Exact_predicates_inexact_constructions_kernel)
returns a container with all the offset polygons at distance offset obtained from the straight skeleton s.

  1. K is any CGAL kernel.
  2. FT is any number type implicitly convertible to K::FT.
  3. Straight_skeleton is Straight_skeleton_2<K2>. If K != K2 the straight skeleton is converted to Straight_skeleton_2<K>.
  4. Polygon is a model of VertexContainer_2. If this first template parameter is omitted, Polygon_2 is used.

See Also

create_interior_skeleton_2
create_exterior_skeleton_2
create_interior_skeleton_and_offset_polygons_2
create_exterior_skeleton_and_offset_polygons_2