I have quite a stupid problem.
Here is what I do:
I get the intersection curve between 2 Shapes
TopoDS_Shape myShape = BRepAlgo_Section(...);
=> I check myShape graphically and it looks quite well.
Now I need to convert myShape into a Geom_Curve.
Handle(Geom_Curve) my Curve = BRep_Tool::Curve( TopoDS::Edge( myTopoDS_Shape), First, Last);
Result: Segmentation Fault
What the heck is going on with BRep_Tool ?
Maybe shall I trim myShape ? But how ? It should first be a Geom_Curve.
Later on I wanted to convert it into a spline, to read out all pole-information.
Handle(Geom_BSplineCurve) myBSplCurve = Handle(Geom_BSplineCurve)::DownCast( myCurve);
Any other way to get the "poles" from myShape ?
Some other conversion ?
Please reply soon, any hint is welcome !