if (clip.transformedRegion.intersect(bounds) == true && clip.switchState.currentSwitchOn) {
if (clip.transformedRegion != null && clip.transformedRegion.intersect(bounds) == true && clip.switchState.currentSwitchOn) {
    int processClips(ArrayList globalClips, BoundingSphere bounds, int nclips) {	int i;	int size = globalClips.size();	ClipRetained clip;		for (i=0 ; i<size; i++) {	    clip = (ClipRetained)globalClips.get(i);	    if (clip.transformedRegion.intersect(bounds) == true 		&& clip.switchState.currentSwitchOn) {		intersectedBounds[nclips] = clip.transformedRegion;		intersectedClips[nclips++] = clip;	    }	}	return nclips;    }