Library | Module

Interface IpfcContour



Description

This class describes a contour.
Direct Parent Classes:
IpfcObject



Property Summary

PropertyInternalTraversalas IpfcContourTraversal [readonly, optional]
Determines if a countour's traversal is internal or external.



Method Summary

FunctionEvalArea () as Double
Finds the surface area inside the given outer contour, accounting for internal voids.
FunctionEvalOutline () as IpfcOutline2D
Finds the two-dimensional bounding box of the surface inside the outer contour.
FunctionFindContainingContour () as IpfcContour [optional]
Finds the innermost contour that encloses the specified contour. If the specified contour is internal, the returned contour will be external, and vice versa.
FunctionListElements () as IpfcEdges
Gets an array of edges for the contour.
FunctionVerifyUV (Params as IpfcUVParams) as IpfcPlacement
Verifies whether the specified UV point lies within the given contour.



Property Detail


PropertyInternalTraversalas IpfcContourTraversal [readonly, optional]

Determines if a countour's traversal is internal or external.





Method Detail


FunctionEvalArea () as Double

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

Exceptions thrown (but not limited to):

IpfcXToolkitBadSrfCrv - The input argument is invalid.


Returns:
The contour area



FunctionEvalOutline () as IpfcOutline2D

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

Exceptions thrown (but not limited to):

IpfcXToolkitBadSrfCrv - The input argument is invalid.


Returns:
The bounding box, as an array of points



FunctionFindContainingContour () as IpfcContour [optional]

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):

IpfcXToolkitNotFound - The specified contour was not found.

IpfcXToolkitInvalidPtr - The specified pointer is not a solid pointer.


Returns:
The containing contour.



FunctionListElements () as IpfcEdges

Gets an array of edges for the contour.

Exceptions thrown (but not limited to):

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


Returns:
The list of edges



FunctionVerifyUV (Params as IpfcUVParams) as IpfcPlacement

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

Exceptions thrown (but not limited to):

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


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.