void ArbreRenduTest::testCentreSelection()
{
	NoeudAbstrait * zone = arbre_->chercher("zonedejeu");
	NoeudAbstrait * noeud = arbre_->creerNoeud(ArbreRenduINF2990::NOM_BUTOIRCIRCULAIRE);
	noeud->assignerPositionRelative(glm::dvec3(5, 10, 15));
	noeud->inverserSelection();
	zone->ajouter(noeud);

	noeud = arbre_->creerNoeud(ArbreRenduINF2990::NOM_BUTOIRCIRCULAIRE);
	noeud->assignerPositionRelative(glm::dvec3(-5, 7, 15));
	noeud->inverserSelection();
	zone->ajouter(noeud);

	noeud = arbre_->creerNoeud(ArbreRenduINF2990::NOM_BUTOIRCIRCULAIRE);
	noeud->assignerPositionRelative(glm::dvec3(10, 8, 15));
	noeud->inverserSelection();
	zone->ajouter(noeud);

	noeud = arbre_->creerNoeud(ArbreRenduINF2990::NOM_BUTOIRCIRCULAIRE);
	noeud->assignerPositionRelative(glm::dvec3(-3, -15, 15));
	noeud->inverserSelection();
	zone->ajouter(noeud);
	arbre_->calculerCentreSelection();
	glm::dvec3 centre = arbre_->obtenirCentreSelection();
	CPPUNIT_ASSERT(centre.x == 2.5);
	CPPUNIT_ASSERT(centre.y == -2.5);

}