Check if face lies inside another face

Hello,
I was wondering if someone can helpe me. I need to know if an planar TopoDS_Face is inside another planar TopoDS_Face. I've tried using BRepExtrema_DistShapeShape but it only gives me the positive distance between two faces.

Also, is there an more general algorithm, whick would check if an shape is inside another?

Thanks in advance.

Shing Liu's picture

Hi,
I found one function:
BRepFeat::IsInside (const TopoDS_Face &F1, const TopoDS_Face &F2);

You can have a try...

Guilherme Praciano Karst Caminha's picture

Hello,
Thanks! It worked. I remember having found this function but I'm not sure why I haven't used it.