Voici le probleme, jobtient lerreur suivante lorsque jessaie de compiler mon fichier stl_import.cpp

stl_import.cpp:137: instantiated from here
../template/tpl_grille.h:214: error: no matching function for call to `BOITE_3D::BOITE_3D(BOITE_3D)'
../outil/ot_boite_3D.h:42: note: candidates are: BOITE_3D::BOITE_3D(BOITE_3D&)




Alors voici le code pour stl_import.cpp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
#include "mg_noeud.h"
...
TPL_GRILLE<MG_NOEUD*> grille;
MG_NOEUD* noeud=mai->get_mg_noeud(i);
grille.inserer(noeud); // ligne 137
tpl_grille.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
virtual void inserer(A a) // ligne 214
{
BOITE_3D bt=a->get_boite_3D();
...
}
mg_noeud.h
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
virtual class BOITE_3D get_boite_3D(void);
mg_noeud.cpp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
BOITE_3D MG_NOEUD::get_boite_3D(void)
{
BOITE_3D boite(xyz[0],xyz[1],xyz[2],xyz[0],xyz[1],xyz[2]);
return boite;
}

ot_boite_3d.cpp
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
BOITE_3D::BOITE_3D(BOITE_3D& mdd):x(mdd.x),y(mdd.y),z(mdd.z),dx(mdd.dx),dy(mdd.dy),dz(mdd.dz)
{
}
 
BOITE_3D::BOITE_3D(double xmin,double ymin,double zmin,double xmax,double ymax,double zmax):x(xmin),y(ymin),z(zmin),dx(xmax-xmin),dy(ymax-ymin),dz(zmax-zmin)
{
if (dx<0.0000001) dx=0.00000001;
if (dy<0.0000001) dy=0.00000001;
if (dz<0.0000001) dz=0.00000001;
}
Dites moi si il vous manque des informations


Je passe a cote de quelque chose??[/b]