hole count in a face

Hi, is there a way to learn the number of holes in a face ? Thanks

Rob Bachrach's picture

My guess would be that you could use a TopExp_Explorer to count the number of wires in the face. The number of holes should be the total number of wires minus 1 (for the outer wire).