How to display a BSpline curve

How to display a BSpline curve in the AIS_InteractiveContext ?

Handle(Geom_BSplineCurve) SPL1 = GeomAPI_PointsToBSpline(array).Curve();

Thanks

DeleDivaneeh's picture

For example,like that :

Handle_Geom_BSplineCurve curve = aPTB.Curve();
BRepBuilderAPI_MakeEdge ME(curve);

Handle(AIS_Shape) aCrv = new AIS_Shape(ME.Edge());
conv->SetDisplayMode(aCrv,1);
conv->Display(aCrv);

// Handle_AIS_InteractiveContext conv;