Method GetClosestEdge
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetClosestEdge(GeoPoint3)
Gets the edge of this loop that comes nearest a point.
public GeoEdge3 GetClosestEdge(GeoPoint3 point)
Parameters
pointGeoPoint3
Returns
GetClosestEdge(GeoPoint3, Tolerance)
Gets the edge of this loop that comes nearest a point, within a tolerance.
public GeoEdge3 GetClosestEdge(GeoPoint3 point, Tolerance tolerance)
Parameters
pointGeoPoint3The point; it does not have to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
- GeoEdge3
The edge, as a straight leg or a bend.
Remarks
A point off the plane stands at the same height above every edge, so the nearest edge to it is the nearest edge to its shadow.
GetClosestEdge(GeoLine3)
Gets the edge of this loop that comes nearest a segment in the same plane.
public GeoEdge3 GetClosestEdge(GeoLine3 line)
Parameters
lineGeoLine3
Returns
GetClosestEdge(GeoLine3, Tolerance)
Gets the edge of this loop that comes nearest a segment in the same plane, within a tolerance.
public GeoEdge3 GetClosestEdge(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentException
Thrown when the segment does not lie in the loop's plane.
GetClosestEdge(GeoArc3)
Gets the edge of this loop that comes nearest an arc in the same plane.
public GeoEdge3 GetClosestEdge(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
GetClosestEdge(GeoArc3, Tolerance)
Gets the edge of this loop that comes nearest an arc in the same plane, within a tolerance.
public GeoEdge3 GetClosestEdge(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentException
Thrown when the arc does not lie in the loop's plane.
GetClosestEdge(GeoCircle3)
Gets the edge of this loop that comes nearest a circle in the same plane.
public GeoEdge3 GetClosestEdge(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
GetClosestEdge(GeoCircle3, Tolerance)
Gets the edge of this loop that comes nearest a circle in the same plane, within a tolerance.
public GeoEdge3 GetClosestEdge(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3The circle; it has to lie in the loop's plane.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentException
Thrown when the circle does not lie in the loop's plane.
GetClosestEdge(GeoEdge3)
Gets the edge of this loop that comes nearest an edge in the same plane.
public GeoEdge3 GetClosestEdge(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
GetClosestEdge(GeoEdge3, Tolerance)
Gets the edge of this loop that comes nearest an edge in the same plane, within a tolerance.
public GeoEdge3 GetClosestEdge(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentException
Thrown when the edge does not lie in the loop's plane.