| DEPRECATED: | since Creo 4.0 |
| SUPERSEDED BY: | ProSelectionWithOptionsDistanceEval |
| Description |
| Evaluate the distance between two items. Objects can be surfaces, entities, surface-curves, surface-nodes, or points. The selected points on the objects are used as the initial guesses. In case of error, p_result will be set to -1.0 and all params will be set to 0.0. Note: This function works incorrectly for datum planes and axes. The resulted distance is measured to the selected point instead of the projection to the datum/axis. Please use instead ProSelectionWithOptionsDistanceEval. |
| Replacement in Object TOOLKIT: | pfcSelectionEvaluator::ComputeNearestCriticalDistance |
| Synopsis |
| #include <ProSelection.h> |
| ProError | ProSelectionDistanceEval | ( |
| ProSelection p_selection1 | |
| /*
(In) |
| The first selection. |
| */ |
| ProSelection p_selection2 | |
| /*
(In) |
| The second selection. |
| */ |
| Pro2dPnt param_1 | |
| /*
(Out) |
| UV params of the critical point on the first item. |
| */ |
| Pro2dPnt param_2 | |
| /*
(Out) |
| UV params of the critical point on the second item. |
| */ |
| Pro3dPnt pnt_1 | |
| /*
(Out) |
| Critical point on the first item. |
| */ |
| Pro3dPnt pnt_2 | |
| /*
(Out) |
| Critical point on the second item. |
| */ |
| double* p_result | |
| /*
(Out) |
| The resulting distance between the two items. |
| */ |
| ) |
| Returns |
|
|