|
Action:
|
Creates a circle or circular arc given a center and two edge points.
|
|
|
Prototype:
|
outcome api_curve_arc_center_edge (
|
|
|
const SPAposition& center,
|
// center position
|
|
|
const SPAposition& pt1,
|
// start position
|
|
|
const SPAposition& pt2,
|
// end position
|
|
|
const SPAunit_vector* norm,// optional normal
|
|
|
|
|
// vector
|
|
|
|
|
// or NULL
|
|
|
EDGE*& arc,
|
// created arc 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 "kernel/kernapi/api/acis_options.hxx"
|
|
|
Description:
|
This API creates a circle or circular arc given a center and two edge points. If the optional
norm is non-NULL, the arc is created in the plane defined by
center and
norm. The projections of
pt1 and
pt2 onto this plane determine the start and end of the arc. If
norm is not specified, the arc is created in the plane defined by the first of the following cases that defines a valid plane normal vector (where
zaxis and
yaxis are the
z-axis and
y-axis of the active WCS):
|
|
|
1.
|
The plane defined by points.
|
|
|
|
(pt1-center) * (pt2-center)
|
|
|
2.
|
(Usually) the
xy-plane of active WCS.
|
|
|
|
((pt1-center) * zaxis) * (pt1-center)
|
|
|
3.
|
The
xz-plane of active WCS.
|
|
|
|
((pt1-center) * yaxis) * (pt1-center)
|
|
|
If
pt1 equals
pt2, this API creates a full circle.
|
|
|
Library:
|
constrct
|
|
|
Filename:
|
cstr/constrct/kernapi/api/cstrapi.hxx
|
|
|
Effect:
|
Changes model
|