BSpline Curves and tangency constraints

Hello,

Can you explain me how to build a BSplineCurve with tangency constraints on the first and last points ?

Thank you very much,

Norbert.

Stephane Routelous's picture

Hi,

GeomAPI_Interpolate algo(pnts,isPeriodic,Tol);
gp_Vec initialTangent = ...
gp_Vec finalTangent = ...
algo.Load(initialTangent,finalTangent);
algo.Perform();

if ( algo.IsDone() )
{
Handle_Geom_BSplineCurve BS = algo.Curve();
}

I didn't test it.
If it doesn't work ( but it should ) , report a bug.

HTH,

Stephane

Stephane
http://www.exotk.org

n-asselin's picture

Thank you very much Stephane,

I try this but for the moment it didn't works !
There seems to have a problem with the "algo.Load(initialTangent,finalTangent);" lign...

I'll read the doc until I find the solution !

I look at your web site ! very impressive!

If you have some times, just have a look at mine, you'll see my openCascade project.

Norbert

http://norbert.asselin.free.fr