When i am using Boolean cut operation the shape in viewer is coming perfectly. But when i am trying to retrive the shape as TopoDS_Shell or TopoDS_Solid i am getting runtime error. Following is the piece of code:
TopoDS_Solid base,prot; //Both are valid solids created earlier
TopoDS_Shell SL = TopoDS::Shell(CT.Shape());
The third line gives me runtime error, (when i am trying to build it as shell). Please help me out in this regard how to do it.
If i dont convert into shell and kep it as shape it comes out nicely in the viewer, but i need them as shells and in turn solids