UV Classification
Functions
A3DStatus |
A3DFaceUVPointInsideManagerCreate |
A3DStatus |
A3DFaceUVPointInsideManagerDelete |
A3DStatus |
A3DFaceUVPointInside |
Detailed Description
-
group
a3d_UV_Classification
Entity type is kA3DTypeTopoShell
- Version
- 5.2
Function Documentation
-
A3DStatus
A3DFaceUVPointInsideManagerCreate
(A3DFaceUVPointInsideManagerData const *pData, A3DFaceUVPointInsideManager **pManager) Creates an A3DFaceUVPointInsideManager from an A3DFaceUVPointInsideManagerData structure.
- Version
- 5.2
Return values: - A3D_INVALID_DATA_STRUCT_SIZE –
- A3D_INVALID_DATA_STRUCT_NULL –
- A3D_SUCCESS –
Returns: A3D_SUCCESS
on success, or an error code on failure
-
A3DStatus
A3DFaceUVPointInsideManagerDelete
(A3DFaceUVPointInsideManager *pManager) Deletes an A3DFaceUVPointInsideManager.
- Version
- 5.2
Return values: - A3D_INVALID_ENTITY_TYPE –
- A3D_INVALID_DATA_STRUCT_NULL –
- A3D_SUCCESS –
Returns: A3D_SUCCESS
on success, or an error code on failure
-
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: - pManager – [in] The face manager.
- psFace – [in] The input face.
- pUVParameter – [in] The input UV Point.
- dTol3D – [in] Tolerance to check if the UV point is on the edge.
- puiUVInFace – [out] Status of the UV point on the face. 0 is outside, 1 is inside.
Return values: - A3D_SUCCESS –
- A3D_INVALID_ENTITY_TYPE –
- A3D_INVALID_ENTITY_NULL –
- A3D_TOPO_GEOMETRY_MISSING – - it’s missing UV curves
- A3D_ERROR –
Returns: A3D_SUCCESS
on success, or an error code on failure