make a hollow hemisphere

Why does the following fail (Standard_ConstructionError)?
If I do the same thing with cylinders it works perfectly.

// the outside
TopoDS_Shape oHemi = BRepPrimAPI_MakeSphere(radius,0,PI);
// the inside
TopoDS_Shape iHemi = BRepPrimAPI_MakeSphere(radius-thickness,0,PI);
// subtract the inside from the outside
TopoDS_Shape hemi = BRepAlgoAPI_Cut(oHemi,iHemi);


Stephane Routelous's picture

Hi Cory,

it is a very old bug in OpenCASCADE.
I thought it was solved :-(