Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoPoint3)

Gets the shortest line from this loop's boundary to a point.

public GeoLine3 GetShortestLineTo(GeoPoint3 point)

Parameters

point GeoPoint3

Returns

GeoLine3

GetShortestLineTo(GeoPoint3, Tolerance)

Gets the shortest line from this loop's boundary to a point, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPoint3 point, Tolerance tolerance)

Parameters

point GeoPoint3

The point; it does not have to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

The line leaving the boundary and landing on the point.

Remarks

A point off the plane stands at the same height above every point of the boundary, so the nearest place to it is the nearest place to its shadow. That makes this exact without any coplanarity.

GetShortestLineTo(GeoLine3)

Gets the shortest line from this loop's boundary to a segment in the same plane.

public GeoLine3 GetShortestLineTo(GeoLine3 line)

Parameters

line GeoLine3

Returns

GeoLine3

GetShortestLineTo(GeoLine3, Tolerance)

Gets the shortest line from this loop's boundary to a segment in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3

The segment; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the segment does not lie in the loop's plane.

GetShortestLineTo(GeoArc3)

Gets the shortest line from this loop's boundary to an arc in the same plane.

public GeoLine3 GetShortestLineTo(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

GeoLine3

GetShortestLineTo(GeoArc3, Tolerance)

Gets the shortest line from this loop's boundary to an arc in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3

The arc; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the arc does not lie in the loop's plane.

GetShortestLineTo(GeoCircle3)

Gets the shortest line from this loop's boundary to a circle in the same plane.

public GeoLine3 GetShortestLineTo(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

GeoLine3

GetShortestLineTo(GeoCircle3, Tolerance)

Gets the shortest line from this loop's boundary to a circle in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the circle does not lie in the loop's plane.

GetShortestLineTo(GeoEdge3)

Gets the shortest line from this loop's boundary to an edge in the same plane.

public GeoLine3 GetShortestLineTo(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

GeoLine3

GetShortestLineTo(GeoEdge3, Tolerance)

Gets the shortest line from this loop's boundary to an edge in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3

The edge; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentException

Thrown when the edge does not lie in the loop's plane.

GetShortestLineTo(GeoPolyline3)

Gets the shortest line from this loop's boundary to a straight chain in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

GeoLine3

GetShortestLineTo(GeoPolyline3, Tolerance)

Gets the shortest line from this loop's boundary to a straight chain in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The chain; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentException

Thrown when the chain does not lie in the loop's plane.

GetShortestLineTo(GeoPolylineArc3)

Gets the shortest line from this loop's boundary to a curved chain in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

GeoLine3

GetShortestLineTo(GeoPolylineArc3, Tolerance)

Gets the shortest line from this loop's boundary to a curved chain in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The chain; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the chain is null.

ArgumentException

Thrown when the chain does not lie in the loop's plane.

GetShortestLineTo(GeoPolygon3)

Gets the shortest line from this loop's boundary to a polygon in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

GeoLine3

GetShortestLineTo(GeoPolygon3, Tolerance)

Gets the shortest line from this loop's boundary to a polygon in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the polygon is null.

ArgumentException

Thrown when the polygon does not lie in the loop's plane.

GetShortestLineTo(GeoPolygonArc3)

Gets the shortest line from this loop's boundary to another curved loop in the same plane.

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 other)

Parameters

other GeoPolygonArc3

Returns

GeoLine3

GetShortestLineTo(GeoPolygonArc3, Tolerance)

Gets the shortest line from this loop's boundary to another curved loop in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoPolygonArc3 other, Tolerance tolerance)

Parameters

other GeoPolygonArc3

The other loop; it has to lie in this one's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the other loop is null.

ArgumentException

Thrown when the other loop lies in a different plane.

GetShortestLineTo(GeoFace3)

Gets the shortest line from this loop's boundary to a face in the same plane.

public GeoLine3 GetShortestLineTo(GeoFace3 face)

Parameters

face GeoFace3

Returns

GeoLine3

GetShortestLineTo(GeoFace3, Tolerance)

Gets the shortest line from this loop's boundary to a face in the same plane, within a tolerance.

public GeoLine3 GetShortestLineTo(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3

The face; it has to lie in the loop's plane.

tolerance Tolerance

The tolerance.

Returns

GeoLine3

Exceptions

ArgumentNullException

Thrown when the face is null.

ArgumentException

Thrown when the face does not lie in the loop's plane.