Fixed slowness in Debug build. Simplified cullLocalBox. Removed Transform type.