Category Curve and edge geometry, Object ProEllipsedata

Function ProEllipsedataInit


Description
Initializes an ellipse data structure.
Synopsis
#include <ProCurvedata.h>
ProErrorProEllipsedataInit(
Pro3dPnt center
/* (In)
The center of the ellipse
*/
ProVector x_axis
/* (In)
First (x) axis vector of the ellipse
*/
ProVector plane_normal
/* (In)
The axis vector which is normal to the plane of ellipse
*/
double x_radius
/* (In)
The radius of the ellipse in the direction of 'x' axis
*/
double y_radius
/* (In)
The radius of the ellipse in the direction of 'y' axis
*/
double start_ang
/* (In)
The starting angular parameter (in radians) of the ellipse
*/
double end_ang
/* (In)
The end angular parameter (in radians) of the ellipse (The 'y' axis can found as a vector product of plane_normal on x_axis.)
*/
ProCurvedata* p_curve
/* (Out)
The ellipse data structure
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully initialized the ellipse data structure.
PRO_TK_BAD_INPUTSOne or more of the input arguments are invalid.

Manual References:

  1. Interface: Importing Features: Adding Edges
  2. Interface: Importing Features: Adding Edges

Sample Code References:

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