Action:
|
Gets the radius and center of an arc tangent to three curves.
|
|
Prototype:
|
int bs3_curve_arc_3curve (
|
|
|
bs3_curve crv1,
|
|
// first curve
|
|
|
double& t1,
|
|
// parameter of
|
|
|
|
|
|
// tangency on first
|
|
|
|
|
|
// curve
|
|
|
bs3_curve crv2,
|
|
// second curve
|
|
|
double& t2,
|
|
// parameter of
|
|
|
|
|
|
// tangency on second
|
|
|
|
|
|
// curve
|
|
|
bs3_curve crv3,
|
|
// third curve
|
|
|
double& t3,
|
|
// parameter of
|
|
|
|
|
|
// tangency on third
|
|
|
|
|
|
// curve
|
|
|
const SPAunit_vector& normal,// normal to plane
|
|
|
|
|
|
// of all curves
|
|
|
double& radius,
|
|
// returned arc
|
|
|
|
|
|
// radius
|
|
|
SPAposition& center
|
|
// returned arc
|
|
|
|
|
|
// center
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "baseutil/vector/position.hxx"
|
|
#include "baseutil/vector/unitvec.hxx"
|
|
#include "kernel/spline/bs3_crv/bs3curve.hxx"
|
|
#include "kernel/spline/sg_bs3c/sps3crtn.hxx"
|
|
Description:
|
All three B-splines must lie in the same plane. There are potentially many circles lying tangent to the three curves.
t1,
t2, and
t3 provide starting guesses for the parameter value at the point of tangency. Upon successful completion, each contains the actual parameter value at the point of tangency. This function returns an error code, which is 0 if there is no error.
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/spline/sg_bs3c/sps3crtn.hxx
|
|
Effect:
|
Read-only
|