Table of Contents

Method ToPolygon3

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

ToPolygon3(GeoCoordinateSystem3, GeoPolygon2)

Puts a polygon of the plane back into space.

public static GeoPolygon3 ToPolygon3(GeoCoordinateSystem3 frame, GeoPolygon2 polygon)

Parameters

frame GeoCoordinateSystem3

The frame it was laid out in.

polygon GeoPolygon2

The polygon in the plane.

Returns

GeoPolygon3

The polygon in space, on the plane of the frame.

Remarks

The polygon is laid in side for side, however short a side: the triangle (0, 0), (10, 0), (10, 10) with every corner cut by 0.3 and shrunk in the plane by a thousandth keeps its six corners, 0.0003 apart, where the global tolerance of a thousandth put it back together as three. It is still checked enclosing an area within the global tolerance.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

ArgumentException

Thrown when the polygon encloses no area, which no plane of space can carry, or the frame or the polygon has a coordinate that is not a finite number.