NXOpen.UF.Modeling.AskMinimumDist¶
-
Modeling.
AskMinimumDist
()¶ Refer to UF_MODL_ask_minimum_dist for documentation.
Signature:
AskMinimumDist(object1, object2, guess1Given, guess1, guess2Given, guess2)
Parameters: - object1 (Tag) – First object (if NULL_TAG, the point coordinates in guess1 are used instead)
- object2 (Tag) – Second object (if NULL_TAG, the point coordinates in guess2 are used instead) If object1 and object2 are both NULL_TAG the distance from guess1 to guess2 is computed.
- guess1Given (int) – 1 - if a guess point for object1 is specified 0 otherwise Ignored if object1 is a body
- guess1 (list of float) – Guess for the nearest point on object1, or point coordinates to use in the distance computation if object1 is a NULL_TAG. Ignored if object1 is a body.
- guess2Given (int) – 1 - if a guess point for object2 is specified 0 otherwise Ignored if object2 is a body
- guess2 (list of float) – Guess for the nearest point on object2, or point coordinates to use in the distance computation if object2 is a NULL_TAG. Ignored if object2 is a body.
Returns: A Tuple
Return type: A tuple consisting of (minDist,ptOnObj1,ptOnObj2)
minDist(float): Resultant minimum distance.
ptOnObj1(list of float): Minimum distance Point on object1.
ptOnObj2(list of float): Minimum distance Point on object2.
License requirements: None