|
Action:
|
Creates an
EDGE that represents a bounded elliptical arc.
|
|
|
Prototype:
|
outcome api_mk_ed_ellipse (
|
|
|
SPAposition const& center,
|
// center of arc
|
|
|
SPAunit_vector const& normal,// normal
|
|
|
SPAvector const& major_axis,
|
// major axis of arc
|
|
|
double radius_ratio,
|
|
// radius ratio
|
|
|
double start_angle,
|
|
// starting angle of
|
|
|
|
|
|
// arc
|
|
|
double end_angle,
|
|
// ending angle of
|
|
|
|
|
|
// arc
|
|
|
EDGE*& edge,
|
|
// edge returned
|
|
|
AcisOptions* ao = NULL
|
|
// acis options
|
|
|
);
|
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "constrct/kernapi/api/cstrapi.hxx"
|
|
#include "kernel/kernapi/api/api.hxx"
|
|
#include "kernel/kerndata/top/edge.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
#include "baseutil/vector/vector.hxx"
|
|
#include "kernel/kernapi/api/acis_options.hxx"
|
|
|
Description:
|
This API creates an
EDGE that represents a bounded elliptical arc.
|
|
|
Creates the underlying
ELLIPSE with the specified center, normal,
major_axis, and
radius_ratio.
|
|
|
By default, the direction of the
ELLIPSE is always in the direction indicated by the right hand rule relative to the normal.
|
|
|
The start and end angles (measured in radians) specify the start and end points of the elliptical arc. They are used to create vertices on the edge.
|
|
|
Errors:
|
Zero length normal vector.
|
|
Zero length major axis.
|
|
Major axis not perpendicular to normal vector.
|
|
Radius ratio less than
SPAresabs or greater than 1.0.
|
|
|
Library:
|
constrct
|
|
|
Filename:
|
cstr/constrct/kernapi/api/cstrapi.hxx
|
|
|
Effect:
|
Changes model
|