Constructor GeoPolygonArc3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoPolygonArc3(IEnumerable<GeoPoint3>)
Initializes a loop of straight pieces.
public GeoPolygonArc3(IEnumerable<GeoPoint3> vertices)
Parameters
verticesIEnumerable<GeoPoint3>
Exceptions
- ArgumentNullException
Thrown when the vertices are null.
- ArgumentException
Thrown when fewer than three distinct vertices are given, or they are not coplanar.
GeoPolygonArc3(IEnumerable<GeoPoint3>, IEnumerable<double>, IEnumerable<GeoVector3>)
Initializes a loop whose pieces may be arcs.
public GeoPolygonArc3(IEnumerable<GeoPoint3> vertices, IEnumerable<double> bulges, IEnumerable<GeoVector3> normals)
Parameters
verticesIEnumerable<GeoPoint3>The vertices, in order; at least three, and no two neighbours in the same place.
bulgesIEnumerable<double>The bulge of the edge leaving each vertex; null or short means the rest are straight.
normalsIEnumerable<GeoVector3>The plane each bulge is read about; only wanted where a bulge is not nought.
GeoPolygonArc3(IEnumerable<GeoPoint3>, IEnumerable<double>, IEnumerable<GeoVector3>, Tolerance)
Initializes a loop whose pieces may be arcs, within a tolerance.
public GeoPolygonArc3(IEnumerable<GeoPoint3> vertices, IEnumerable<double> bulges, IEnumerable<GeoVector3> normals, Tolerance tolerance)
Parameters
verticesIEnumerable<GeoPoint3>The vertices, in order; at least three, and no two neighbours in the same place.
bulgesIEnumerable<double>The bulge of the edge leaving each vertex; null or short means the rest are straight.
normalsIEnumerable<GeoVector3>The plane each bulge is read about; only wanted where a bulge is not nought.
toleranceToleranceThe tolerance; the planar threshold decides how flat is flat enough.
Exceptions
- ArgumentException
Thrown when fewer than three distinct vertices are given, when they do not lie in one plane, or when an arc bulges out of that plane.
GeoPolygonArc3(IEnumerable<GeoEdge3>)
Initializes a loop from edges that run end to end and close.
public GeoPolygonArc3(IEnumerable<GeoEdge3> edges)
Parameters
edgesIEnumerable<GeoEdge3>
Exceptions
- ArgumentException
Thrown when the edges do not run end to end, do not close, or are not coplanar.
GeoPolygonArc3(GeoPolygon3)
Initializes a loop from a straight one, with no bulges.
public GeoPolygonArc3(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GeoPolygonArc3(GeoCoordinateSystem3, GeoPolygonArc2)
Initializes a loop by lifting one out of a frame into the plane of that frame in space.
public GeoPolygonArc3(GeoCoordinateSystem3 frame, GeoPolygonArc2 loop)
Parameters
frameGeoCoordinateSystem3The frame the loop is laid out in.
loopGeoPolygonArc2The loop in the plane.
Exceptions
- ArgumentNullException
Thrown when the loop is null.