Documentation de l'API > Sketches and sections > Object ProSection > Function ProSectionEntityParamEval
Function ProSectionEntityParamEval
Description
Finds the corresponding normalized parameter value on the curve, given the XY point. Its value ranges from 0 to 1.
Synopsis
#include <ProSection.h>
ProSectionEntityParamEval
(
ProSection section
/* (In)
The section
*/
int ent_id
/* (In)
The entity identifier
*/
Pro2dPnt xy_point
/* (In)
The XY point. The point does not necessarily have to lie on the entity. If the point is off the entity, the function finds the closest point.
*/
double* p_param
/* (Out)
The corresponding normalized parameter on the entity geometry.
*/
)
Returns
The function successfully evaluated the point.
One or more of the input arguments are invalid.
More than one param value found.
User Guide References
Est-ce que cela a été utile ?