Skip to content

File offset.cpp

FileList > algorithm > offset.cpp

Go to the source code of this file

  • #include "SFCGAL/algorithm/offset.h"
  • #include "SFCGAL/LineString.h"
  • #include "SFCGAL/MultiPolygon.h"
  • #include "SFCGAL/Polygon.h"
  • #include "SFCGAL/PolyhedralSurface.h"
  • #include "SFCGAL/Solid.h"
  • #include "SFCGAL/Triangle.h"
  • #include "SFCGAL/Exception.h"
  • #include "SFCGAL/algorithm/isValid.h"
  • #include "SFCGAL/detail/polygonSetToMultiPolygon.h"
  • #include <CGAL/Polygon_2.h>
  • #include <CGAL/Polygon_set_2.h>
  • #include <CGAL/Polygon_with_holes_2.h>
  • #include <CGAL/approximated_offset_2.h>
  • #include <CGAL/minkowski_sum_2.h>
  • #include <CGAL/offset_polygon_2.h>

Namespaces

Type Name
namespace SFCGAL
namespace algorithm

Public Types

Type Name
typedef CGAL::Gps_circle_segment_traits_2< SFCGAL::Kernel > Gps_traits_2
typedef Gps_traits_2::Curve_2 Offset_curve_2
typedef Gps_traits_2::Polygon_2 Offset_polygon_2
typedef CGAL::General_polygon_set_2< Gps_traits_2 > Offset_polygon_set_2
typedef Gps_traits_2::Polygon_with_holes_2 Offset_polygon_with_holes_2
typedef Gps_traits_2::X_monotone_curve_2 Offset_x_monotone_curve_2
typedef CGAL::Polygon_2< SFCGAL::Kernel > Polygon_2
typedef CGAL::Polygon_set_2< SFCGAL::Kernel > Polygon_set_2
typedef CGAL::Polygon_with_holes_2< SFCGAL::Kernel > Polygon_with_holes_2

Macros

Type Name
define SFCGAL_OFFSET_ACCURACY 0.0001
define SFCGAL_OFFSET_ASSERT_FINITE_RADIUS (r)

Public Types Documentation

typedef Gps_traits_2

using Gps_traits_2 =  CGAL::Gps_circle_segment_traits_2<SFCGAL::Kernel>;

typedef Offset_curve_2

using Offset_curve_2 =  Gps_traits_2::Curve_2;

typedef Offset_polygon_2

using Offset_polygon_2 =  Gps_traits_2::Polygon_2;

typedef Offset_polygon_set_2

using Offset_polygon_set_2 =  CGAL::General_polygon_set_2<Gps_traits_2>;

typedef Offset_polygon_with_holes_2

using Offset_polygon_with_holes_2 =  Gps_traits_2::Polygon_with_holes_2;

typedef Offset_x_monotone_curve_2

using Offset_x_monotone_curve_2 =  Gps_traits_2::X_monotone_curve_2;

typedef Polygon_2

using Polygon_2 =  CGAL::Polygon_2<SFCGAL::Kernel>;

typedef Polygon_set_2

using Polygon_set_2 =  CGAL::Polygon_set_2<SFCGAL::Kernel>;

typedef Polygon_with_holes_2

using Polygon_with_holes_2 =  CGAL::Polygon_with_holes_2<SFCGAL::Kernel>;

Macro Definition Documentation

define SFCGAL_OFFSET_ACCURACY

#define SFCGAL_OFFSET_ACCURACY 0.0001

define SFCGAL_OFFSET_ASSERT_FINITE_RADIUS

#define SFCGAL_OFFSET_ASSERT_FINITE_RADIUS (
    r
) if (!std::isfinite(r))                                                       \
    BOOST_THROW_EXCEPTION(NonFiniteValueException("radius is non finite"));


The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/algorithm/offset.cpp