|
Action:
|
Creates a line tangent to two curves or through a position and tangent to a curve.
|
|
|
Prototype:
|
outcome api_curve_line_tangent (
|
|
|
const SPAposition* pt1,
|
|
|
// start position
|
|
|
|
|
|
|
// or NULL
|
|
|
const entity_with_ray* eray1,
|
// first curve
|
|
|
|
|
|
|
// plus tangent
|
|
|
|
|
|
|
// guess or NULL
|
|
|
const SPAposition* pt2,
|
|
|
// end position
|
|
|
|
|
|
|
// or NULL
|
|
|
const entity_with_ray* eray2,
|
// second curve
|
|
|
|
|
|
|
// plus tangent
|
|
|
|
|
|
|
// guess or NULL
|
|
|
EDGE*& line,
|
|
|
// created line
|
|
|
|
|
|
|
// returned
|
|
|
AcisOptions* ao = NULL
|
|
|
// acis options
|
|
|
);
|
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "constrct/kernapi/api/cstrapi.hxx"
|
|
#include "kernel/geomhusk/entwray.hxx"
|
|
#include "kernel/kernapi/api/api.hxx"
|
|
#include "kernel/kerndata/top/edge.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "kernel/kernapi/api/acis_options.hxx"
|
|
|
Description:
|
In this API, either
pt1 or
eray1 is
NULL, and either
pt2 or
eray2 is
NULL. If both
pt1 and
pt2 are non-NULL, this API creates a line between the two positions. If one of the positions is non-NULL and the other is
NULL, this API creates a line from the given position and tangent to the given curve. If both positions are
NULL, and both
entity_with_rays are non-NULL, this API creates a line tangent to the two curves.
|
|
|
The ray portion of the
entity_with_ray determines the tangent point to use if there is more than one and also determines the start point for computing the tangent point.
|
|
|
Library:
|
constrct
|
|
|
Filename:
|
cstr/constrct/kernapi/api/cstrapi.hxx
|
|
|
Effect:
|
Changes model
|