API 文件集 > Geometry items > Object ProSurface > Function ProSurfaceParamEval
Function ProSurfaceParamEval
Description
Finds the closest corresponding UV point on the surface, given the xyz point. NOTE: This function returns the closest point in the geometric surface, not the closest point inside the surface contour (face) specified.
Replacement in Object TOOLKIT:
Synopsis
#include <ProSurface.h>
ProSurfaceParamEval
(
ProSolid solid_handle
/* (In)
The owner of the surface.
*/
ProSurface surface
/* (In)
The surface handle.
*/
ProVector xyz_point
/* (In)
The XYZ point. The point does not necessarily have to lie on the surface. If the point is off the surface, the function finds the closest surface point.
*/
ProUvParam uv_point
/* (Out)
The corresponding UV point on the surface.
*/
)
Returns
The function successfully evaluated the point.
One or more of input arguments are invalid.
Projection of the point to the surface was not found.
Sample Code References
這是否有幫助?