Skip to content

EndType

Seth Hillbrand edited this page Oct 29, 2026 · 2 revisions

Home › clipper.h › EndType

EndType

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.

See Also

clipper.offset.h, InflatePaths

Clone this wiki locally