Constructor GeoEdge3
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GeoEdge3(GeoPoint3, GeoPoint3)
Initializes a straight edge between two points.
public GeoEdge3(GeoPoint3 startPoint, GeoPoint3 endPoint)
Parameters
GeoEdge3(GeoPoint3, GeoPoint3, double, GeoVector3)
Initializes an edge between two points, bulging by a given amount in a given plane.
public GeoEdge3(GeoPoint3 startPoint, GeoPoint3 endPoint, double bulge, GeoVector3 normal)
Parameters
startPointGeoPoint3The point the edge starts from.
endPointGeoPoint3The point the edge ends at.
bulgedoubleThe bulge; nought for a straight segment, in which case the normal is ignored.
normalGeoVector3The normal of the plane the arc bulges in; it need not be of unit length.
Exceptions
- ArgumentOutOfRangeException
Thrown when the bulge is not a number.
- ArgumentException
Thrown when a bulge that is not nought comes with a normal of no length, or with one the chord does not lie square to, since neither describes a plane the arc could bulge in.
GeoEdge3(GeoPoint3, GeoPoint3, double, GeoVector3, Tolerance)
Initializes an edge between two points, bulging by a given amount in a given plane, within a tolerance.
public GeoEdge3(GeoPoint3 startPoint, GeoPoint3 endPoint, double bulge, GeoVector3 normal, Tolerance tolerance)
Parameters
startPointGeoPoint3The point the edge starts from.
endPointGeoPoint3The point the edge ends at.
bulgedoubleThe bulge; nought for a straight segment, in which case the normal is ignored.
normalGeoVector3The normal of the plane the arc bulges in; it need not be of unit length.
toleranceToleranceThe tolerance, which decides how square to the chord the normal must be.
GeoEdge3(GeoArc3)
Initializes an edge from an arc in space.
public GeoEdge3(GeoArc3 arc)
Parameters
arcGeoArc3The arc; a whole turn cannot be held as one edge, because its ends meet.
Exceptions
- ArgumentException
Thrown when the arc closes on itself, leaving no chord.