hm_getclosestpointsbetweentwolines

Find the shortest distance between two lines and return line points corresponding to this distance.

Syntax

hm_getclosestpointsbetweentwolines lineID1 lineID2

Type

HyperMesh Tcl Query

Description

Find the shortest distance between two lines and return line points corresponding to this distance.

Inputs

lineID1
ID of the first line.
lineID2
ID of the second line.

Example

The result is returned as a list: { x1 y1 z1 x2 y2 z2}

Where "x1", "y1", "z1" are coordinates of the closest point on the first line and "x2", "y2", "z2" are coordinates of the closest point on the second line.

To find closest points between lines with id 1 and 2:

hm_getclosestpointsbetweentwolines 1 2
2.682E+003 -7.365E+002 6.050E+002 2.685E+003 -7.350E+002 6.040E+002

Errors

None.