Object ProFit

Function ProFitInterferenceCompute


Description
Returns the interference information between two specified items. In Assembly mode, each item is either a component part or a solid body of such a part. In Part mode, each item is a solid body of the current part. The data obtained using this API can be passed to ProFitInterferencevolumeCompute() and ProFitInterferencevolumeDisplay(). However, please bear in mind that if you include special geometry like quilts or facets in the calculation, the data returned by this API will be rejected by ProFitInterferencevolumeCompute(). This is because potential intersections with quilts/facets do not constitute a closed volume. ProFitInterferencevolumeDisplay() will still work though, displaying only intersection curves. If the items are regenerated, the interferences should be recalculated.
Replacement in Object TOOLKIT: pfcSelectionEvaluator::ComputeInterference
Synopsis
#include <ProFit.h>
ProErrorProFitInterferenceCompute(
ProSelection sel_1
/* (In)
The first part or solid body.
*/
ProSelection sel_2
/* (In)
The second part or solid body.
*/
ProBoolean set_facets
/* (In)
The option to include facets (relevant only for parts).
*/
ProBoolean set_quilts
/* (In)
The option to include quilts (relevant only for parts).
*/
ProInterferenceData* interf_data
/* (Out)
The interference data. If no interference detected, NULL value will be returned. Free this using ProInterferenceDataFree().
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully computed the interference.
PRO_TK_INCOMPLETEInterference detected but the system was unable to produce a valid geometric representation for it.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.
PRO_TK_NOT_EXISTOne or more items specified by the selections could not be found, or did not contain any geometry to compute interference with.
PRO_TK_GENERAL_ERRORThe interference could not be computed.
PRO_TK_NOT_VALIDInterference with invalid volume found.

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 )