BRepOffsetAPI_MakeThickSolid error!

hi everybody,

When I try to use BRepOffsetAPI_MakeThickSolid to shell a box(5 faces removed, one face remained), program broken and a "standard construction error BRepAlgo_Image::Bind" error message raised. I wonder if this is a bugs in offset algorithm? actually, BRepOffsetAPI_MakeThickSolid always abnormal when I use it. Anyone can help me? Thanks!

memscad's picture

here is the error source code:

TopoDS_Shape S1 = BRepPrimAPI_MakeBox(100,100,100);
TopTools_ListOfShape aList;
TopExp_Explorer Ex(S1,TopAbs_FACE);
for(int i=0;i<5;i++)
{
TopoDS_Shape aFace = Ex.Current();
Ex.Next();
aList.Append(aFace);
}

TopoDS_Shape aThickSolid = BRepOffsetAPI_MakeThickSolid(S1,aList,10,0.01);

memscad's picture

Anyone could tell me that if there is a robust way to make a shell-like solid from a set of surfaces on a solid? BRepOffsetAPI_MakeThickSolid and BRepOffsetAPI_MakeOffsetShape really make me tired for it always crashes even in some simpliest situation!