Object ProFit

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: pfcSelectionEvaluator::ComputeClearance
Synopsis
#include <ProFit.h>
ProErrorProFitClearanceCompute(
ProSelection sel1
/* (In)
The first selection. Not allowed to be NULL.
*/
ProFitComputeOptions comp_opt_1
/* (In)
The option for first selection.
*/
ProSelection sel2
/* (In)
The second selection whose clearance is to be calculated with the first. Not allowed to be NULL.
*/
ProFitComputeOptions comp_opt_2
/* (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
PRO_TK_NO_ERRORThe function successfully computed the clearance.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_GENERAL_ERRORThe clearance could not be computed.

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. Core: 3D Geometry: Interference
  3. Core: 3D Geometry: Interference

Sample Code References:

  1. pt_userguide ( UgGeomInterferCheck.c )