rem: udword PlaneMask = (1<<nb_planes)-1;  if(!model.HasLeafNodes()) { if(model.IsQuantized()) { const AABBQuantizedNoLeafTree* Tree = (const AABBQuantizedNoLeafTree*)model.GetTree();   mCenterCoeff	= Tree->mCenterCoeff; mExtentsCoeff	= Tree->mExtentsCoeff;   if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask); else						_Collide(Tree->GetNodes(), PlaneMask); } else { const AABBNoLeafTree* Tree = (const AABBNoLeafTree*)model.GetTree();   if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask); else						_Collide(Tree->GetNodes(), PlaneMask); } } else { if(model.IsQuantized()) { const AABBQuantizedTree* Tree = (const AABBQuantizedTree*)model.GetTree();   mCenterCoeff	= Tree->mCenterCoeff; mExtentsCoeff	= Tree->mExtentsCoeff;   if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask); else						_Collide(Tree->GetNodes(), PlaneMask); } else { const AABBCollisionTree* Tree = (const AABBCollisionTree*)model.GetTree();   if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask); else						_Collide(Tree->GetNodes(), PlaneMask); } } return true; }
add: return Collide(cache, PL, 6, model, worldm); }
context: bool PlanesCollider::Collide(PlanesCache& cache, const Plane* planes, udword nb_planes, const Model& model, const Matrix4x4* worldm){	// Checkings	if(!Setup(&model))	return false;	// Init collision query	if(InitQuery(cache, planes, nb_planes, worldm))	return true;	udword PlaneMask = (1<<nb_planes)-1;	if(!model.HasLeafNodes())	{		if(model.IsQuantized())		{			const AABBQuantizedNoLeafTree* Tree = (const AABBQuantizedNoLeafTree*)model.GetTree();			// Setup dequantization coeffs			mCenterCoeff	= Tree->mCenterCoeff;			mExtentsCoeff	= Tree->mExtentsCoeff;			// Perform collision query			if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask);			else						_Collide(Tree->GetNodes(), PlaneMask);		}		else		{			const AABBNoLeafTree* Tree = (const AABBNoLeafTree*)model.GetTree();			// Perform collision query			if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask);			else						_Collide(Tree->GetNodes(), PlaneMask);		}	}	else	{		if(model.IsQuantized())		{			const AABBQuantizedTree* Tree = (const AABBQuantizedTree*)model.GetTree();			// Setup dequantization coeffs			mCenterCoeff	= Tree->mCenterCoeff;			mExtentsCoeff	= Tree->mExtentsCoeff;			// Perform collision query			if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask);			else						_Collide(Tree->GetNodes(), PlaneMask);		}		else		{			const AABBCollisionTree* Tree = (const AABBCollisionTree*)model.GetTree();			// Perform collision query			if(SkipPrimitiveTests())	_CollideNoPrimitiveTest(Tree->GetNodes(), PlaneMask);			else						_Collide(Tree->GetNodes(), PlaneMask);		}	}	return true;}