Documentación de la API > Solids and parts > Object ProSolid > Function ProSolidProjectPoint
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:
Synopsis
#include <ProSolid.h>
ProSolidProjectPoint
(
ProSolid p_handle
/* (In)
Solid handle.
*/
/* (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
The function found a point on a surface within the tolerance.
The function failed to find a point on a surface within the tolerance.
One or more of the Input arguments being invalid.
Sample Code References
User Guide References
¿Fue esto útil?