Category Geometry items, Object ProPoint3d

Function ProPoint3dOnsurfaceFind


Description
Determines if distance between the specified point and the specified surface is less than the Creo Parametric model accuracy set in the active Creo Parametric session. You can also set accuracy with function ProSolidAccuracySet().

For more details on setting accuracy, refer to Technical Documents "Detailed Information Regarding Model Accuracy", number 32869, and "New Config.pro Option "Enable_Assembly_Accuracy" is Available in Release 20 9823 or Later", number 22077. These documents are available at HTTP://WWW.PTC.COM.

Replacement in Object TOOLKIT: pfcSurface::EvalClosestPointOnSurface
Synopsis
#include <ProPoint.h>
ProErrorProPoint3dOnsurfaceFind(
ProPoint3d xyz
/* (In)
Handle for specified point, must not be NULL.
*/
ProSurface surface
/* (In)
Handle for specified surface, must not be NULL.
*/
ProBoolean* on_surf
/* (Out)
The point is ON (PRO_B_TRUE) or OFF (PRO_B_FALSE) the surface; must not be NULL.
*/
ProPoint3d closest_pt
/* (Out)
Handle for location of closest point to surface; may be NULL.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSAn input argument is invalid.

Manual References:

  1. Core: 3D Geometry: Geometry at Points
  2. Core: 3D Geometry: Geometry at Points

Sample Code References:

  1. pt_examples ( TestGeom.c )