GetClosestPointToLineSegmentNode
Introduced
7.0
UI Location
• Math > Vector
Description
Calculates the position of the closest point on the line segment bounded by the two specified points.
Port Description
Inputs
|
Group ID |
Instances |
Port Name |
Connection Info |
Description |
|
0 |
1 |
point |
• Type: siICENodeDataVector2 or siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Position of the point from which to calculate the closest line segment point. |
|
linepoint1 |
• Type: siICENodeDataVector2 or siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
First segment endpoint. |
||
|
linepoint2 |
• Type: siICENodeDataVector2 or siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Second segment endpoint. |
Outputs
|
Port Name |
Connection Info |
Description |
|
result |
• Type: siICENodeDataVector2 or siICENodeDataVector3 • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Position of the point on the line segment closest to the input point. |
|
distance |
• Type: siICENodeDataFloat • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Distance to the closest point on the line segment. |
|
valid |
• Type: siICENodeDataBool • Structure: siICENodeStructureAny • Context: siICENodeContextAny |
Defines whether the input values are valid. The line segment is well defined only when the two input segment endpoints are not equal. In this case this port returns true. |
Restrictions
• These types must match: point, linepoint1, linepoint2
• These structures must match: point, linepoint1, linepoint2, result, distance, valid
• These contexts must match: point, linepoint1, linepoint2, result, distance, valid
See Also
|
|
|
|
Autodesk Softimage v7.5