\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 5.0.3 - 2D Straight Skeleton and Polygon Offsetting
CGAL::Straight_skeleton_converter_2< SrcSs, TgtSs, ItemsCvt > Struct Template Reference

#include <CGAL/Straight_skeleton_converter_2.h>

Definition

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

The third template parameter ItemsConverter is a function object that must

Template Parameters
SrcSstype of the source straight skeleton
TgtSstype of the target straight skeleton
ItemsCvta model StraightSkeletonItemsConverter_2. The default value of this parameter is Straight_skeleton_items_converter_2<SrcSs,TgtSs>.

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

See also
StraightSkeletonItemsConverter_2
Straight_skeleton_items_converter_2
convert_straight_skeleton_2()

Types

SrcSs Source_skeleton
 The SrcSs template parameter corresponding to the source straight skeleton.
 
TgtSs Target_skeleton
 The TgtSs template parameter corresponding to the target straight skeleton.
 
ItemsCvt Items_converter
 The ItemsCvt template parameter corresponding to the items converter.
 

Creation

 Straight_skeleton_converter_2 (Items_converter const &c)
 Default constructor .
 

Operations

boost::shared_ptr< Target_skeletonoperator() (Source_skeleton const &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.