< Home

< Programming Guide

< Supported File Formats

REFERENCE MANUAL

Data Structures
UV Classification

Data Structures

struct  A3DFaceUVPointInsideManagerData
 A3DFaceUVPointInsideManager structure. More...
 
A3DStatus A3DFaceUVPointInsideManagerCreate (A3DFaceUVPointInsideManagerData const *pData, A3DFaceUVPointInsideManager **pManager)
 Creates an A3DFaceUVPointInsideManager from an A3DFaceUVPointInsideManagerData structure. More...
 
A3DStatus A3DFaceUVPointInsideManagerDelete (A3DFaceUVPointInsideManager *pManager)
 Deletes an A3DFaceUVPointInsideManager. More...
 
A3DStatus A3DFaceUVPointInside (A3DFaceUVPointInsideManager *pManager, A3DTopoFace const *psFace, A3DVector2dData const *pUVParameter, A3DDouble dTol3D, A3DUns8 *puiUVInFace)
 This function projects a UV point on a face, and return if it's inside or not. puiUVInFace gives the result: 0 if the point is outside the face, and 1 if it's inside. dTol3D is used to check if a UV point is on edges. If it's set to zero and the point is not inside the face but potentially on its edges, the tolerance check will not happen. More...
 

Detailed Description

Version
5.2

Entity type is kA3DTypeTopoShell

See also
A3DTopoShell, A3DTopoShellData, A3DTopoShellGet, A3DTopoShellCreate

Function Documentation

A3DStatus A3DFaceUVPointInsideManagerCreate ( A3DFaceUVPointInsideManagerData const *  pData,
A3DFaceUVPointInsideManager **  pManager 
)
A3DStatus A3DFaceUVPointInsideManagerDelete ( A3DFaceUVPointInsideManager pManager)
A3DStatus A3DFaceUVPointInside ( A3DFaceUVPointInsideManager pManager,
A3DTopoFace const *  psFace,
A3DVector2dData const *  pUVParameter,
A3DDouble  dTol3D,
A3DUns8 puiUVInFace 
)

This function projects a UV point on a face, and return if it's inside or not. puiUVInFace gives the result: 0 if the point is outside the face, and 1 if it's inside. dTol3D is used to check if a UV point is on edges. If it's set to zero and the point is not inside the face but potentially on its edges, the tolerance check will not happen.

Version
5.2
Parameters
[in]pManagerThe face manager.
[in]psFaceThe input face.
[in]pUVParameterThe input UV Point.
[in]dTol3DTolerance to check if the UV point is on the edge.
[out]puiUVInFaceStatus of the UV point on the face. 0 is outside, 1 is inside.
Returns
A3D_SUCCESS
A3D_INVALID_ENTITY_TYPE
A3D_INVALID_ENTITY_NULL
A3D_TOPO_GEOMETRY_MISSING - it's missing UV curves
A3D_ERROR