@Override
	public void mouseDragged(MouseEvent e) {
		int h = x - e.getX();
		int v = y - e.getY();

		if (ecran.getAffichage() == 2) {
			int points = 0;
			for (Model3D m : ecran.getModels()) {
				points += m.getPoints().size();
			}
			if (points > Parametre.nbLimitePoint) {
				ecran.setAffichage(0);
			}
			reaffichage2 = true;
		}
		for (Model3D m : modelSelect) {
			if (control && bouton == MouseEvent.BUTTON1) {
				if(Math.abs(h)>Math.abs(v)){
					m.pivoZ(h/ 360.0);
				}else{
					m.pivoZ(v/ 360.0);
				}
				
			}else if (bouton == MouseEvent.BUTTON1) {
				
				m.pivoH(h / 360.0);
				m.pivoV(v / 360.0);

			} else if (bouton == MouseEvent.BUTTON3) {
				m.deplacementH(h);
				m.deplacementV(v);
			}
		}
		x = e.getX();
		y = e.getY();
		ecran.repaint();
	}