Table of Contents

Enum SmoothingMethod

Namespace
SpatialNET
Assembly
SpatialNET.Extensions.dll

How SpatialNET.Smoothing.Smooth(SpatialNET.IPolyline2D,System.Int32,SpatialNET.SmoothingMethod,SpatialNET.IGeometryFactory) rounds a line (ADR 0043).

public enum SmoothingMethod

Fields

CatmullRom = 1

A centripetal Catmull–Rom spline (alpha 0.5): the curve passes through every vertex, without the loops and the cusps that the uniform variant makes at uneven spacing. It can overshoot a little between two vertices.

Chaikin = 0

Corner cutting after Chaikin: every corner is replaced by two points at a quarter of the adjacent segments. The curve is a quadratic B-spline, it stays inside the convex hull of the vertices, never overshoots, and moves away from the vertices (it does not pass through them).