Expand description
Public API convenience functions for the Clipper2 library.
Direct port from clipper.h. These functions provide a simple interface for common polygon operations: boolean operations, path offsetting, rect clipping, path simplification, and various geometric utilities.
Functions§
- boolean_
op_ 64 - Perform a boolean operation on Paths64. Direct port from clipper.h BooleanOp (Paths64 overload).
- boolean_
op_ d - Perform a boolean operation on PathsD. Direct port from clipper.h BooleanOp (PathsD overload).
- boolean_
op_ tree_ 64 - Perform a boolean operation on Paths64 with PolyTree64 output. Direct port from clipper.h BooleanOp (PolyTree64 overload).
- boolean_
op_ tree_ d - Perform a boolean operation on PathsD with PolyTreeD output. Direct port from clipper.h BooleanOp (PolyTreeD overload).
- check_
polytree_ fully_ contains_ children - Check that all children in a PolyTree64 are fully contained by their parents. Direct port from clipper.h CheckPolytreeFullyContainsChildren.
- difference_
64 - Compute the difference of subjects minus clips (Paths64). Direct port from clipper.h Difference.
- difference_
d - Compute the difference of subjects minus clips (PathsD). Direct port from clipper.h Difference (PathsD overload).
- distance
- Compute the distance between two points. Direct port from clipper.h Distance.
- inflate_
paths_ 64 - Inflate (or deflate) paths by a delta amount (Paths64). Direct port from clipper.h InflatePaths.
- inflate_
paths_ d - Inflate (or deflate) paths by a delta amount (PathsD). Direct port from clipper.h InflatePaths (PathsD overload).
- intersect_
64 - Compute the intersection of subjects and clips (Paths64). Direct port from clipper.h Intersect.
- intersect_
d - Compute the intersection of subjects and clips (PathsD). Direct port from clipper.h Intersect (PathsD overload).
- make_
path64 - Create a Path64 from a flat slice of coordinate pairs [x0, y0, x1, y1, …]. Direct port from clipper.h MakePath.
- make_
path_ d - Create a PathD from a flat slice of coordinate pairs [x0, y0, x1, y1, …]. Direct port from clipper.h MakePathD.
- near_
collinear - Check if three points are nearly collinear within a tolerance. Direct port from clipper.h NearCollinear.
- path_
length - Compute the total length of a path. Direct port from clipper.h Length.
- poly_
tree_ to_ paths64 - Convert a PolyTree64 to a flat list of Paths64. Direct port from clipper.h PolyTreeToPaths64.
- poly_
tree_ to_ paths_ d - Convert a PolyTreeD to a flat list of PathsD. Direct port from clipper.h PolyTreeToPathsD.
- ramer_
douglas_ peucker - Simplify a path using the Ramer-Douglas-Peucker algorithm. Direct port from clipper.h RamerDouglasPeucker.
- ramer_
douglas_ peucker_ paths - Simplify multiple paths using the Ramer-Douglas-Peucker algorithm. Direct port from clipper.h RamerDouglasPeucker (Paths overload).
- rect_
clip_ 64 - Clip paths to a rectangle (Paths64). Direct port from clipper.h RectClip.
- rect_
clip_ d - Clip paths to a rectangle (PathsD). Direct port from clipper.h RectClip (PathsD overload).
- rect_
clip_ line_ 64 - Clip a single open line to a rectangle (Paths64 output). Direct port from clipper.h RectClipLines (single path overload).
- rect_
clip_ line_ d - Clip a single open line to a rectangle (PathsD). Direct port from clipper.h RectClipLines (single PathD overload).
- rect_
clip_ lines_ 64 - Clip open lines to a rectangle (Paths64). Direct port from clipper.h RectClipLines.
- rect_
clip_ lines_ d - Clip open lines to a rectangle (PathsD). Direct port from clipper.h RectClipLines (PathsD overload).
- rect_
clip_ path_ 64 - Clip a single path to a rectangle (Paths64 output). Direct port from clipper.h RectClip (single path overload).
- rect_
clip_ path_ d - Clip a single path to a rectangle (PathsD). Direct port from clipper.h RectClip (single PathD overload).
- simplify_
path - Simplify a path by removing vertices that are within epsilon distance of an imaginary line between their neighbors. Direct port from clipper.h SimplifyPath.
- simplify_
paths - Simplify multiple paths. Direct port from clipper.h SimplifyPaths.
- translate_
path - Translate all points in a path by (dx, dy). Direct port from clipper.h TranslatePath.
- translate_
paths - Translate all paths by (dx, dy). Direct port from clipper.h TranslatePaths.
- trim_
collinear_ 64 - Remove collinear points from a Path64. Direct port from clipper.h TrimCollinear.
- trim_
collinear_ d - Remove collinear points from a PathD (scales to integer for precision). Direct port from clipper.h TrimCollinear (PathD overload).
- union_
64 - Compute the union of subjects and clips (Paths64). Direct port from clipper.h Union.
- union_d
- Compute the union of subjects and clips (PathsD). Direct port from clipper.h Union (PathsD overload).
- union_
subjects_ 64 - Compute the union of subjects only (no clips) (Paths64). Direct port from clipper.h Union (subjects-only overload).
- union_
subjects_ d - Compute the union of subjects only (no clips) (PathsD). Direct port from clipper.h Union (subjects-only PathsD overload).
- xor_64
- Compute the symmetric difference (Xor) of subjects and clips (Paths64). Direct port from clipper.h Xor.
- xor_d
- Compute the symmetric difference (Xor) of subjects and clips (PathsD). Direct port from clipper.h Xor (PathsD overload).