IList<MapPoint> inPoints = new List<MapPoint>()
{
MapPointBuilder.CreateMapPoint(-3000, -2000, 0, 100),
MapPointBuilder.CreateMapPoint(-3000, 0, 0, 200),
MapPointBuilder.CreateMapPoint(-1000, 0, 0, 300),
MapPointBuilder.CreateMapPoint(-1000, 2000, 0, 100),
MapPointBuilder.CreateMapPoint(3000, 2000, 0, 200),
MapPointBuilder.CreateMapPoint(3000, 0, 0, 300),
MapPointBuilder.CreateMapPoint(1000, 0, 0, 100),
MapPointBuilder.CreateMapPoint(1000, -2000, 0, 200),
MapPointBuilder.CreateMapPoint(-3000, -2000, 0, 300)
};
Polygon polygon = PolygonBuilder.CreatePolygon(inPoints);
// polygon.HasM = true
Polyline polyline = GeometryEngine.Instance.GetNormalsAtM(polygon, 150, 100);
// polyline.PartCount = 5
// polyline.PointCount = 10
// polyline.HasM = false
ReadOnlyPartCollection parts = polyline.Parts;
ReadOnlySegmentCollection segments = parts[0];
LineSegment line = segments[0] as LineSegment;
// line.StartCoordinate = (-3000, -1000)
// line.EndCoordinate = (-2900, -1000)
segments = parts[1];
line = segments[0] as LineSegment;
// line.StartCoordinate = (-1000, 1500)
// line.EndCoordinate = (-900, 1500)
segments = parts[2];
line = segments[0] as LineSegment;
// line.StartCoordinate = (1000, 2000)
// line.EndCoordinate = (1000, 1900)
segments = parts[3];
line = segments[0] as LineSegment;
// line.StartCoordinate = (1500, 0)
// line.EndCoordinate = (1500, 100)
segments = parts[4];
line = segments[0] as LineSegment;
// line.StartCoordinate = (1000, -1000)
// line.EndCoordinate = (900, -1000)