implemented bounceContain for brepEnv