TopoDS_Wire outerWire=BRepTools::OuterWire(face);

Hi All,

Has someone used

TopoDS_Wire outerWire=BRepTools::OuterWire(face);

successfully? When I try to use a wire explorer on the result it seems not to find any edges

Thanks for your help!

Laura

Laura's picture

Sorry, I have found the problem and it was not related to this function.

The face was somehow invalid. I got the first face from a TopTools_ListOfShape and then I removed it using RemoveFirst(). I expected the face to be still valid and just the reference to the face from the list to be removed but it seems not to be the case?

Davide Canalia's picture

AFAIK RemoveFirst remove the item from the list not from the shape