triangulation of a surface orientated outward

I have a closed solid, bounded by a number of surfaces. I need to get triangulations of all these surfaces (currently using BRep_Tool::Triangulation) but I need the triangles to point outward from the interior of the solid. Since the solid may be convex this is not easy to do using geometric post-processing. Is there a way to do this in OpenCascade?



Fabian Hachenberg's picture

shouldn't the normal vector of each face of your solid already point away from the inner half space of the solid?