Inside closed mesh goal

I think the code I posted in this thread might be what you need: