I've obtained a Bspline_Curve and I want to display it. How can I do for displaying it in the current screen.
Thanks.
Kreshnik Tue, 06/14/2005 - 10:09
Here my code :
// Création d'une BSplineCurve a partir du tableau de points
GeomAPI_PointsToBSpline GeomAPI = GeomAPI_PointsToBSpline(col_array);
Handle(Geom_BSplineCurve) bsCurve = GeomAPI.Curve();
// Construction de la topologie
TopoDS_Edge myEdge = BRepBuilderAPI_MakeEdge(bsCurve);
Tue, 06/14/2005 - 10:09
Here my code :
// Création d'une BSplineCurve a partir du tableau de points
GeomAPI_PointsToBSpline GeomAPI = GeomAPI_PointsToBSpline(col_array);
Handle(Geom_BSplineCurve) bsCurve = GeomAPI.Curve();
// Construction de la topologie
TopoDS_Edge myEdge = BRepBuilderAPI_MakeEdge(bsCurve);
Tue, 06/14/2005 - 13:01
You need a Handle to an AIS_InteractiveContext let's call it myContext:
GeomAPI_PointsToBSpline PTBS = GeomAPI_PointsToBSpline(Points);
Handle(Geom_BSplineCurve) SPL1 = PTBS.Curve();
TopoDS_Edge aEdge = BRepBuilderAPI_MakeEdge( SPL1 );
myContext->Display(new AIS_Shape( aEdge ));