A minor can show nudity in a film only if allowed by his/her parents ***and*** approved by a judge as not being gratuitous.

This was a problem the producers of American Beauty ran up against. Fortunately, the judge saw it their way. blush