Method Flatten
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
Flatten()
Gets the chain with its arcs thrown away, leaving the chords.
public GeoPolyline3 Flatten()
Returns
Remarks
This is the one operation here that loses something, and it loses it in the obvious way: each arc becomes the straight line between its ends. ToPolyline3(double) keeps the shape to whatever accuracy is asked for instead, as Flatten() cuts each arc into pieces. Every vertex is kept, however short a leg: at a millionth, the chain (0, 0, 0), (10, 0, 0), (10, 0, 10) filleted at 0.0005 flattens turning at both ends of its arc, 0.0007 apart, where it was put back together within the global tolerance of a thousandth and came back turning once.