Documentazione API > Miscellaneous > Object ProFit > Function ProFitClearanceCompute
Function ProFitClearanceCompute
Description
Computes the clearance between two objects. If the function is computing clearance between two parts then it also tries to determine if there is interfernece.
Replacement in Object TOOLKIT:
Synopsis
#include <ProFit.h>
ProFitClearanceCompute
(
/* (In)
The first selection. Not allowed to be NULL.
*/
/* (In)
The option for first selection.
*/
/* (In)
The second selection whose clearance is to be calculated with the first. Not allowed to be NULL.
*/
/* (In)
The option for second selection.
*/
ProFitPickType pick_type
/* (In)
The option to select the pick type.
*/
ProSelection proj_reference
/* (In)
The selection to calculate the projected clearance.
*/
ProBoolean view_plane
/* (In)
If this is PRO_B_TRUE, the clearance calculated is with reference flat to screen. If PRO_B_FALSE, the clearance calculated is with reference to proj_reference.
*/
double* clearance_dist
/* (Out)
The total clearance between the selections.
*/
double* proj_distance
/* (Out)
The clearance from the projection reference.
*/
ProBoolean* is_interference_found
/* (Out)
The interference between the selection. If this is PRO_B_TRUE, interference detected. In case of surface clearance, this value is undefined.
*/
Pro3dPnt pnt_arr[2]
/* (Out)
The co-ordinates of the closest points with reference to the top-level assembly.
*/
)
Returns
The function successfully computed the clearance.
One or more of the input arguments are invalid.
The clearance could not be computed.
Sample Code References
User Guide References
È stato utile?