Category Geometry items, Object ProContour

Function ProContainingContourFind


Description
Finds a pointer to the innermost contour that closes the specified contour. If the specified contour is internal, the returned contour will be external, and vice versa. If the specified contour is the outermost contour for the surface, the output will be NULL.
Replacement in Object TOOLKIT: pfcContour::FindContainingContour
Synopsis
#include <ProContour.h>
ProErrorProContainingContourFind(
ProSolid solid
/* (In)
The solid owner of the contour (of type PRO_PART or PRO_ASSEMBLY)
*/
ProContour contour
/* (In)
The contour handle
*/
ProContour* p_containing_contour
/* (Out)
The pointer to the contour
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSThe input argument is invalid.
PRO_TK_E_NOT_FOUNDThe specified contour was not found.
PRO_TK_INVALID_PTRThe specified pointer is not a solid pointer.

Manual References:

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

Sample Code References:

  1. pt_examples ( TestGeom.c )