Forum archiveIssue archiveOther usage issues

Archived discussion

BRepBuilderAPI_MakeWire crash

Other usage issuesFri, 05/12/2006 - 20:301 reply

Browse this forum
QuestionAuthor

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.

// OnGeometrie
TopLoc_Location location;
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
BRepBuilderAPI_MakeWire mw;
mw.Add(anEdgeDS);

I also tried :
BRepLib::BuildCurve3d(...);
ShapeAnalysis_Edge edgeFix

...without success.
Someone has an idea ?
Thanks for help.
Author.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

bug found : no limits given to the edge.

TopoDS_Edge anEdgeDS = BRepBuilderAPI_MakeEdge(aCurve, first, last);

works fine.