How to convert a TopoDS_Solid into a TopoDS_Shape?

Hi,

I have a TopoDS_Solid which is an sphere but I need convet this into a TopoDS_Shape, I know that this must be done with BrepBuilderAPI_MakeShape, but I really don't know how to do this.

Thanks.

Rob Bachrach's picture

A TopoDS_Solid is derived from a TopoDS_Shape. It, therefore, has all the functionality of a TopoDS_Shape and can be passed into any function that takes a reference to a TopoDS_Shape.