diff options
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); |