Library | File

Class pfcContour

# include <pfcGeometry.h>

class pfcContour
 : public virtual pfcObject
{
    xaideclare(pfcContour)
    ...
};



Description

This class describes a contour.
Manual References:
Geometry Evaluation: Contours, Solid: Solid Operations, Overview of Creo Object TOOLKIT C++: Casting of Creo Object TOOLKIT C++ pfc Classes to wfc Classes
Direct Known Subclasses:
wfcWContour



Method Summary

xrealEvalArea ()
Finds the surface area inside the given outer contour, accounting for internal voids.
pfcOutline2D_ptrEvalOutline ()
Finds the two-dimensional bounding box of the surface inside the outer contour.
optional pfcContour_ptrFindContainingContour ()
Finds the innermost contour that encloses the specified contour. If the specified contour is internal, the returned contour will be external, and vice versa.
optional pfcContourTraversalGetInternalTraversal ()
Determines if a countour's traversal is internal or external.
pfcEdges_ptrListElements ()
Gets an array of edges for the contour.
pfcPlacementVerifyUV (pfcUVParams_ptr Params)
Verifies whether the specified UV point lies within the given contour.



Method Detail

pfcEdges_ptrListElements ()

Gets an array of edges for the contour.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - No edges were visited, either because of the filter or for another reason.


Manual References:
Geometry Evaluation: Traversing the Geometry of a Solid Block
Returns:
The list of edges



optional pfcContourTraversalGetInternalTraversal ()

Determines if a countour's traversal is internal or external.
Manual References:
Geometry Evaluation: Contours, Geometry Evaluation: Contours




optional pfcContour_ptrFindContainingContour ()

Finds the innermost contour that encloses the specified contour. If the specified contour is internal, the returned contour will be external, and vice versa.

In case the specified contour is the outermost contour for the surface then null is returned.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - The specified contour was not found.

pfcXToolkitInvalidPtr - The specified pointer is not a solid pointer.


Manual References:
Geometry Evaluation: Contours, Geometry Evaluation: Contours
Returns:
The containing contour.



xrealEvalArea ()

Finds the surface area inside the given outer contour, accounting for internal voids.

Exceptions thrown (but not limited to):

pfcXToolkitBadSrfCrv - The input argument is invalid.


Manual References:
Geometry Evaluation: Contours, Geometry Evaluation: Contours
Returns:
The contour area



pfcOutline2D_ptrEvalOutline ()

Finds the two-dimensional bounding box of the surface inside the outer contour.

Exceptions thrown (but not limited to):

pfcXToolkitBadSrfCrv - The input argument is invalid.


Manual References:
Geometry Evaluation: Contours, Geometry Evaluation: Contours
Returns:
The bounding box, as an array of points



pfcPlacementVerifyUV (pfcUVParams_ptr Params)

Verifies whether the specified UV point lies within the given contour.

Exceptions thrown (but not limited to):

pfcXToolkitBadSrfCrv - One or more of the input arguments are invalid.


Manual References:
Geometry Evaluation: Contours, Geometry Evaluation: Contours
Parameters:
Params
 
Returns:
The function returns one of the following values:
  • PLACE_ON_BOUNDARY -- The point is on the contour.
  • PLACE_OUTSIDE -- The point is outside the contour.
  • PLACE_INSIDE -- The point is inside the contour.