hm_projectpointtosegment
Returns the closest point to a specific point on a segment.
Syntax
hm_projectpointtosegment px py pz sx1 sy1 sz1 sx2 sy2 sz2
Type
HyperMesh Tcl Query Command
Description
Returns the closest point to a specific point on a segment.
Inputs
- px, py, pz
- Defines a point with three coordinate values.
- sx1, sy1, sz1
- The segment start point.
- sx2, sy2, sz2
- The segment end point.
Example
hm_projectpointtosegment 0.0 0.0 0.0 -1.0 2.0 0.0 1.0 2.0 0.0
Result: 0.0 2.0 0.0
Errors
None.