Table of Contents

Constructor OffsetOptions

Namespace
GeometryHelper
Assembly
GeometryHelper.dll

OffsetOptions(OffsetJoin, double, double)

Initializes offset options.

public OffsetOptions(OffsetJoin join, double miterLimit = 10, double arcTolerance = 0)

Parameters

join OffsetJoin

How the gap at a corner is closed.

miterLimit double

How far a Miter corner may reach from its vertex, as a multiple of the offset distance; beyond it the corner is cut off square at that distance. At least 1, and PositiveInfinity keeps every corner sharp. Ignored by the other joins.

arcTolerance double

The largest gap allowed between a Round corner and the true arc, in drawing units. Zero (the default) picks AutomaticArcToleranceRatio of the offset distance. It is met down to 1.15E-9 of the distance, 65 536 chords a full turn: a corner grown by 80 with 1E-4 is drawn in chords of 0.0032 radians, 1 987 a turn. Nor is it met below about a hundredth of the point tolerance the offset is worked to, where corners that close are taken as straight and go. Ignored by the other joins.

Exceptions

ArgumentOutOfRangeException

Thrown when the join is not a defined value, the miter limit is below 1 or not a number, or the arc tolerance is negative, infinite or not a number.