| 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> |
| ProError | ProFitInterferenceCompute | ( |
| 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_ERROR | | The function successfully computed the interference. |
| PRO_TK_INCOMPLETE | | Interference detected but the system was unable to produce a valid geometric representation for it. |
| PRO_TK_BAD_INPUTS | | One or more of the input arguments are invalid. |
| PRO_TK_NOT_EXIST | | One or more items specified by the selections could not be found, or did not contain any geometry to compute interference with. |
| PRO_TK_GENERAL_ERROR | | The interference could not be computed. |
| PRO_TK_NOT_VALID | | Interference with invalid volume found. |
|