Repository navigation
EndType
Seth Hillbrand edited this page Oct 29, 2026
·
2 revisions
enum EndType {Polygon, Joined, Butt, Square, Round};The EndType enumerator is only needed when offsetting (inflating/shrinking). It isn't needed for polygon clipping.
EndType has 5 values:
- Polygon: the path is treated as a polygon
- Joined: ends are joined and the path treated as a polyline
- Square: ends extend the offset amount while being squared off
- Round: ends extend the offset amount while being rounded off
- Butt: ends are squared off without any extension
With both EndType::Polygon and EndType::Joined, path closure will occur regardless of whether or not the first and last vertices in the path match.
Copyright © 2010-2025 Angus Johnson. Clipper2 is distributed under the Boost Software License.
Headers
- clipper.h
- clipper.core.h
- clipper.engine.h
- clipper.export.h
- clipper.minkowski.h
- clipper.offset.h
- clipper.rectclip.h
- clipper.triangulation.h
Classes
Data types and structure definitions
- ClipType
- EndType
- FillRule
- JoinType
- Path64
- PathD
- Paths64
- PathsD
- Point64
- PointD
- PointInPolygonResult
- Rect64
- RectD
- TriangulateResult
- ZCallback64
- ZCallbackD
Static Functions
- Area
- BooleanOp
- Difference
- InflatePaths
- Intersect
- IsPositive
- MakePath
- MinkowskiDiff
- MinkowskiSum
- PointInPolygon
- PolyTreeToPaths64
- PolyTreeToPathsD
- RectClip
- RectClipLines
- ReversePath
- SimplifyPaths
- TranslatePath
- Triangulate
- TrimCollinear
- Union
- XOR
Topics