Library | Package Java Toolkit

Interface Contour

package com.ptc.pfc.pfcGeometry;

public interface Contour
  extends com.ptc.pfc.pfcObject.Object



Description

This class describes a contour.
Direct Known Subclasses:
WContour



Method Summary
doubleEvalArea ()
    Finds the surface area inside the given outer contour, accounting for internal voids.
Outline2DEvalOutline ()
    Finds the two-dimensional bounding box of the surface inside the outer contour.
/*optional*/ ContourFindContainingContour ()
    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*/ ContourTraversalGetInternalTraversal ()
    Get method for attribute "InternalTraversal"
    Determines if a countour's traversal is internal or external.
EdgesListElements ()
    Gets an array of edges for the contour.
PlacementVerifyUV (UVParams Params)
    Verifies whether the specified UV point lies within the given contour.

Method Detail

ListElements

EdgesListElements ()


    Gets an array of edges for the contour.

Exceptions thrown (but not limited to):

XToolkitNotFound - 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


GetInternalTraversal

/*optional*/ ContourTraversalGetInternalTraversal ()


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



FindContainingContour

/*optional*/ ContourFindContainingContour ()


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

XToolkitNotFound - The specified contour was not found.

XToolkitInvalidPtr - The specified pointer is not a solid pointer.


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


EvalArea

doubleEvalArea ()


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

Exceptions thrown (but not limited to):

XToolkitBadSrfCrv - The input argument is invalid.


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


EvalOutline

Outline2DEvalOutline ()


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

Exceptions thrown (but not limited to):

XToolkitBadSrfCrv - The input argument is invalid.


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


VerifyUV

PlacementVerifyUV (UVParams Params)


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

Exceptions thrown (but not limited to):

XToolkitBadSrfCrv - 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.