I'm using MakeWire after building a TopoDS_Edge from a Geom_Curve.
It always crashes (memory problem).
I took a look at the TopoloyBuilding sample (mfc).
The CTopologyBuildingDoc::OnGeometrie() method is quite similar as mine.
If i add the last two lines, i obtain the same crash.
Standard_Real first, last;
Handle (Geom_Curve) aCurve = BRep_Tool::Curve(anEdge,location,first,last);
TopoDS_Edge anEdgeDS = BRepBuilderAPI_MakeEdge(aCurve);
// If i had these 2 lines :: crash
I also tried :
Someone has an idea ?
Thanks for help.