Hi there, i have created an EDGE in 2 different ways from this array of Points:
1. Way one relies on TopoDS Package:
TopoDS_Edge edge1 = BRepBuilderAPI_MakeEdge(PList1(1), PList1(2));
2. Way two will make a BSpline first and then use Adaptor Package to get to the Spline:
GeomAPI_PointsToBSpline spline = GeomAPI_PointsToBSpline(PList1);
Handle(Geom_Curve) curve= spline.Curve();
TopoDS_Edge edge2 = BRepBuilderAPI_MakeEdge(curve);
It should be obvious, that edge1 should be == edge2.
Unfortunately, when i try to convert edge1 to Geom,it compiles just fine but an exeption raises when running it.
Edge2 can be reconverted to Geom without a problem.
Can someone explain the difference between the two construction methods?