JoinType

The Clipper Library

JoinType

Del.» type TJoinType = (jtSquare, jtRound, jtMiter);

C++ » enum JoinType {jtSquare, jtRound, jtMiter};

C#  » public enum JoinType {jtSquare, jtRound, jtMiter};

When adding paths to a ClipperOffset object via the AddPaths method, the joinType parameter may be one of three types - jtMiter, jtSquare or jtRound.



  • jtMiter: There's a necessary limit to mitered joins since offsetting edges that join at very acute angles will produce excessively long and narrow 'spikes'. To contain these potential spikes, the ClippOffset object's MiterLimit property specifies a maximum distance that vertices will be offset (in multiples of delta). For any given edge join, when miter offsetting would exceed that maximum distance, 'square' joining is applied.
  • jtRound: While flattened paths can never perfectly trace an arc, they are approximated by a series of arc chords (see ClipperObject's ArcTolerance property).
  • jtSquare: Squaring is applied uniformally at all convex edge joins at 1 × delta.

See Also

ClipperOffset, ClipperOffset.AddPaths, ClipperOffset.ArcTolerance, ClipperOffset.MiterLimit