CGAL 6.2 - 2D Straight Skeleton and Polygon Offsetting

Loading...
Searching...
No Matches
List of all members
CGAL::Straight_skeleton_converter_2< Source_skeleton_, Target_skeleton_, Items_converter_ > Struct Template Reference
Reference Manual » Auxiliary Classes

`#include <CGAL/Straight_skeleton_converter_2.h>`

## Definition

template<typename Source_skeleton_, typename Target_skeleton_, typename Items_converter_>
struct CGAL::Straight_skeleton_converter_2< Source_skeleton_, Target_skeleton_, Items_converter_ >

The class `Straight_skeleton_converter_2` converts a straight skeleton instantiated using certain traits into another straight skeleton instantiated using a different traits.

Template Parameters

  Source_skeleton_ | type of the source straight skeleton
  Target_skeleton_ | type of the target straight skeleton
  Items_converter_ | a model `StraightSkeletonItemsConverter_2`. The default value of this parameter is `Straight_skeleton_items_converter_2<Source_skeleton_,Target_skeleton_>`.

This conversion can be used to produce a straight skeleton using a kernel without exact constructions (such as `Exact_predicates_inexact_constructions_kernel`) but input that skeleton into `Polygon_offset_builder<Ss,Gt,Container>` instantiated with a slower kernel (such as `Exact_predicates_exact_constructions_kernel`) thus obtaining only simple offset polygons without paying the runtime overhead of exact constructions for the straight skeleton itself.

See also
  `convert_straight_skeleton_2()`

## Types
typedef Source_skeleton_ | Source_skeleton
| The `Source_skeleton_` template parameter corresponding to the source straight skeleton.
typedef Target_skeleton_ | Target_skeleton
| The `Target_skeleton_` template parameter corresponding to the target straight skeleton.
typedef Items_converter_ | Items_converter
| The `ItemsCvt` template parameter corresponding to the items converter.

## Creation
| Straight_skeleton_converter_2 (const Items_converter &c=Items_converter())
| Default constructor .

## Operations
std::shared_ptr< Target_skeleton > | operator() (const Source_skeleton &s) const
| returns a new straight skeleton data structure with the same combinatorial and geometric data as `s` using the items converter to convert the geometric embeeding to the types of the target traits.