Method GetShortestLineTo
- Namespace
- GeometryHelper.Spatial
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoPreparedSolid3)
Gets the shortest segment from this body to another, using the default tolerance.
public GeoLine3 GetShortestLineTo(GeoPreparedSolid3 other)
Parameters
otherGeoPreparedSolid3
Returns
GetShortestLineTo(GeoPreparedSolid3, Tolerance)
Gets the shortest segment from this body to another, within a tolerance; of no length where they touch.
public GeoLine3 GetShortestLineTo(GeoPreparedSolid3 other, Tolerance tolerance)
Parameters
otherGeoPreparedSolid3toleranceTolerance
Returns
Remarks
The two surfaces are meshed and indexed already, so the answer is found by walking the two indexes, nearest boxes first: the segment GetShortestLineTo(GeoSolid3, GeoSolid3, Tolerance) finds on the two materials, without meshing them again and weighing every pair of faces. Where several pairs are nearest alike, as between two parallel faces, either may be the one given.
Exceptions
- ArgumentNullException
Thrown when the other body is null.