Category Curve and edge geometry, Object ProEllipsedata

Function ProEllipsedataGet


Description
Retrieves information from the ellipse data structure.

NOTE:

The function ignores the output arguments with null pointers.

Synopsis
#include <ProCurvedata.h>
ProErrorProEllipsedataGet(
ProCurvedata* p_curve
/* (In)
The ellipse data structure
*/
Pro3dPnt center
/* (Out)
The center of the ellipse
*/
ProVector x_axis
/* (Out)
First (x) axis vector of the ellipse
*/
ProVector plane_normal
/* (Out)
The axis vector which is normal to the plane of ellipse
*/
double* p_x_radius
/* (Out)
The radius of the ellipse in the direction of 'x_axis'
*/
double* p_y_radius
/* (Out)
The radius of the ellipse in the direction of 'y_axis'
*/
double* p_start_ang
/* (Out)
The starting angular parameter (in radians) of the ellipse
*/
double* p_end_ang
/* (Out)
The end angular parameter (in radians) of the ellipse (The 'y' axis can found as a vector product of plane_normal on x_axis.)
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_INVALID_TYPEThe specified data is not an ellipse data structure.
PRO_TK_BAD_INPUTSThe input argument is invalid.

Sample Code References:

  1. pt_examples ( TestGeomdata.c )
  2. pt_examples ( UtilIntfData.c )