diff options
author | Norbert Preining <norbert@preining.info> | 2020-08-14 03:01:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-08-14 03:01:08 +0000 |
commit | 02ead80143e7082dee86522ac65a59443428bd7b (patch) | |
tree | 6fe247a83c87fefdd010c5820025b760ebdd3d94 /dviware/dvisvgm/src/PathClipper.hpp | |
parent | 1163ada9c470777f1cd48cfc16ffa9c26758827e (diff) |
CTAN sync 202008140301
Diffstat (limited to 'dviware/dvisvgm/src/PathClipper.hpp')
-rw-r--r-- | dviware/dvisvgm/src/PathClipper.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dviware/dvisvgm/src/PathClipper.hpp b/dviware/dvisvgm/src/PathClipper.hpp index e3e6bd1681..7c42f5de6d 100644 --- a/dviware/dvisvgm/src/PathClipper.hpp +++ b/dviware/dvisvgm/src/PathClipper.hpp @@ -36,9 +36,11 @@ class PathClipper { using CurvedPath = GraphicsPath<double>; public: - void intersect (const CurvedPath &p1, const CurvedPath &p2, CurvedPath &result); + CurvedPath intersect (const CurvedPath &p1, const CurvedPath &p2); + CurvedPath unite (const CurvedPath &p1, const CurvedPath &p2); protected: + CurvedPath combine (ClipperLib::ClipType op, const CurvedPath &p1, const CurvedPath &p2); void flatten (const CurvedPath &gp, ClipperLib::Paths &polygons); void reconstruct (const ClipperLib::Path &polygon, CurvedPath &path); void reconstruct (const ClipperLib::Paths &polygons, CurvedPath &path); |