Action:
|
Gets the radius and center of an arc tangent to three curves.
|
|
Prototype:
|
int bs3_curve_arc_3curve_modified (
|
|
|
bs3_curve crvs[3],
|
// array of bs3 curves
|
|
|
SPAposition pos[3],
|
// array of positions
|
|
|
double ts[3],
|
// array of tangency
|
|
|
|
|
// parameters
|
|
|
const SPAunit_vector& normal,// normal to plane
|
|
|
|
|
// of all curves
|
|
|
double& radius,
|
// radius
|
|
|
SPAposition& center
|
// 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:
|
Gets the radius and center of an arc tangent to three curves. One or two of the curves may degenerate to a point. If a curve degenerates to a point, this is signified by a
NULL curve pointer and a non-NULL position entry. It returns an error code which is 0 if no error.
|
|
|
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:
|
Changes model
|