Category Solids and parts, Object ProSolid

Function ProSolidProjectPoint


Description
Given a solid, a point, and a maximum distance, this function finds a surface from the solid within the maximum distance, and returns the UV point of the projection of the point to that surface. This does not necessarily find the nearest surface on the solid; any surface within the tolerance could be returned.

NOTE:

This function supports parts only, not assemblies.

Replacement in Object TOOLKIT: wfcWSolid::ProjectPoint
Synopsis
#include <ProSolid.h>
ProErrorProSolidProjectPoint(
ProSolid p_handle
/* (In)
Solid handle.
*/
Pro3dPnt xyz
/* (In)
The point to project.
*/
double tolerance
/* (In)
Maximum allowed distance from the point to the solid.
*/
ProSurface* p_surface
/* (Out)
Surface where the point is projected.
*/
ProUvParam uv_point
/* (Out)
The corresponding UV point on the surface.
*/
)
Returns
PRO_TK_NO_ERRORThe function found a point on a surface within the tolerance.
PRO_TK_NOT_EXISTThe function failed to find a point on a surface within the tolerance.
PRO_TK_BAD_INPUTSOne or more of the Input arguments being invalid.

Manual References:

  1. Core: 3D Geometry: Geometry at Points

Sample Code References:

  1. pt_examples ( TestSolid.c )