Table of Contents

Method Flatten

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

Flatten()

Approximates the chain as a straight one, cutting each arc finely enough that it strays no further than the automatic share of its radius.

public GeoPolyline2 Flatten()

Returns

GeoPolyline2

The straight chain, which every operation over regions can read.

Remarks

This is where exactness ends. A chain with no arcs comes across whole; one with arcs comes across as chords, as close as the tolerance says and no closer.

Flatten(double)

Approximates the chain as a straight one, cutting each arc so that it strays no further than a chord tolerance.

public GeoPolyline2 Flatten(double chordTolerance)

Parameters

chordTolerance double

The largest gap allowed between a piece and the arc it replaces, in drawing units. Zero picks the automatic share of each radius.

Returns

GeoPolyline2

The straight chain.

Exceptions

ArgumentOutOfRangeException

Thrown when the tolerance is negative or not a number.