Offset error

When I do offset to a object import from iges,
but I receieve a error message: "Incorrect set
of faces to remove,the remaining shell is not
connected." ,what can I do for it?
Somebody help me, thanks.

j-lin's picture

The following, my code:
Standard_Integer CImportExport::ReadIGES(const Standard_CString& aFileName, Handle(TopTools_HSequenceOfShape)& aHSequenceOfShape)
{

IGESControl_Reader Reader;

Standard_Integer status = Reader.ReadFile(aFileName);

if (status != IFSelect_RetDone) return status;

Reader.TransferRoots();

TopoDS_Shape aShape = Reader.OneShape();

TopoDS_Shape Shape1 =BRepOffsetAPI_MakeOffsetShape(aShape,50,0.01,BRepOffset_Skin,Standard_False,Standard_False,GeomAbs_Arc);

aHSequenceOfShape->Append(Shape1);

return status;
}