73 else if(strcmp(
type_geo,
"OCCV2017")==0)
85 char *p=strchr(path2,
'.')+1;
102 ini(type,(
char*)nom);
141 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
147 std::pair<const unsigned long,MG_POINT*> tmp(mgpt->
get_id(),mgpt);
160 return ((*i).second);
172 for (
unsigned long j=0;j<num;j++) i++;
173 return ((*i).second);
212 for (
unsigned int k=0;k<num;k++) j++;
255 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
260 std::pair<const unsigned long,MG_COURBE*> tmp(mgcrb->
get_id(),mgcrb);
273 return ((*i).second);
286 for (
unsigned long j=0;j<num;j++) i++;
287 return ((*i).second);
326 for (
unsigned int k=0;k<num;k++) j++;
370 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
376 std::pair<const unsigned long,MG_SURFACE*> tmp(mgsrf->
get_id(),mgsrf);
389 return ((*i).second);
401 for (
unsigned long j=0;j<num;j++) i++;
402 return ((*i).second);
441 for (
unsigned int k=0;k<num;k++) j++;
486 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
492 std::pair<const unsigned long,MG_SOMMET*> tmp(somno->
get_id(),somno);
501 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
507 std::pair<const unsigned long,MG_SOMMET*> tmp(mgsom->
get_id(),mgsom);
520 return ((*i).second);
527 for (
int j=0;j<nb;j++)
531 if (idori==
id)
return sommet;
546 for (
unsigned long j=0;j<num;j++) i++;
547 return ((*i).second);
597 for (
unsigned int k=0;k<num;k++) j++;
647 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
653 std::pair<const unsigned long,MG_COSOMMET*> tmp(mgcosom->
get_id(),mgcosom);
663 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
670 std::pair<const unsigned long,MG_COSOMMET*> tmp(mgcosom->
get_id(),mgcosom);
680 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
687 std::pair<const unsigned long,MG_COSOMMET*> tmp(mgcosom->
get_id(),mgcosom);
712 if (mgcosommet==NULL)
753 return ((*i).second);
763 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
769 std::pair<const unsigned long,MG_ARETE*> tmp(mgarete->
get_id(),mgarete);
782 return ((*i).second);
789 for (
int j=0;j<nb;j++)
793 if (idori==
id)
return arete;
807 for (
unsigned long j=0;j<num;j++) i++;
808 return ((*i).second);
929 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
934 std::pair<const unsigned long,MG_COARETE*> tmp(mgcoarete->
get_id(),mgcoarete);
945 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
952 std::pair<const unsigned long,MG_COARETE*> tmp(mgcoarete->
get_id(),mgcoarete);
963 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
970 std::pair<const unsigned long,MG_COARETE*> tmp(mgcoarete->
get_id(),mgcoarete);
1000 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1036 return ((*i).second);
1045 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1050 std::pair<const unsigned long,MG_BOUCLE*> tmp(mgboucle->
get_id(),mgboucle);
1051 std::pair<LISTE_MG_BOUCLE::iterator,bool> p2 =
lst_mg_boucle.insert(tmp);
1059 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1065 std::pair<const unsigned long,MG_BOUCLE*> tmp(mgboucle->
get_id(),mgboucle);
1066 std::pair<LISTE_MG_BOUCLE::iterator,bool> p2 =
lst_mg_boucle.insert(tmp);
1075 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1081 std::pair<const unsigned long,MG_BOUCLE*> tmp(mgboucle->
get_id(),mgboucle);
1082 std::pair<LISTE_MG_BOUCLE::iterator,bool> p2 =
lst_mg_boucle.insert(tmp);
1095 return ((*i).second);
1107 for (
unsigned long j=0;j<num;j++) i++;
1108 return ((*i).second);
1127 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1152 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1155 for (
unsigned int k=0;k<num;k++) j++;
1177 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1214 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1220 std::pair<const unsigned long,MG_FACE*> tmp(mgface->
get_id(),mgface);
1233 return ((*i).second);
1240 for (
int j=0;j<nb;j++)
1244 if (idori==
id)
return face;
1258 for (
unsigned long j=0;j<num;j++) i++;
1259 return ((*i).second);
1279 std::cerr <<
"ERRCOFACE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" << std::endl;
1283 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1307 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1310 for (
unsigned int k=0;k<num;k++) j++;
1328 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1360 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1366 std::pair<const unsigned long,MG_COFACE*> tmp(mgcoface->
get_id(),mgcoface);
1376 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1383 std::pair<const unsigned long,MG_COFACE*> tmp(mgcoface->
get_id(),mgcoface);
1394 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1401 std::pair<const unsigned long,MG_COFACE*> tmp(mgcoface->
get_id(),mgcoface);
1414 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1431 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1467 return ((*i).second);
1477 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1482 std::pair<const unsigned long,MG_COQUILLE*> tmp(mgcoq->
get_id(),mgcoq);
1483 std::pair<LISTE_MG_COQUILLE::iterator,bool> p2 =
lst_mg_coquille.insert(tmp);
1491 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1497 std::pair<const unsigned long,MG_COQUILLE*> tmp(mgcoq->
get_id(),mgcoq);
1498 std::pair<LISTE_MG_COQUILLE::iterator,bool> p2 =
lst_mg_coquille.insert(tmp);
1508 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1514 std::pair<const unsigned long,MG_COQUILLE*> tmp(mgcoquille->
get_id(),mgcoquille);
1515 std::pair<LISTE_MG_COQUILLE::iterator,bool> p2 =
lst_mg_coquille.insert(tmp);
1528 return ((*i).second);
1540 for (
unsigned long j=0;j<num;j++) i++;
1541 return ((*i).second);
1570 if (mgcoquille==NULL)
1575 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1595 if (mgcoquille==NULL)
1600 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1603 for (
unsigned int k=0;k<num;k++) j++;
1625 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1646 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1652 std::pair<const unsigned long,MG_VOLUME*> tmp(mgvolume->
get_id(),mgvolume);
1665 return ((*i).second);
1672 for (
int j=0;j<nb;j++)
1676 if (idori==
id)
return volume;
1690 for (
unsigned long j=0;j<num;j++) i++;
1691 return ((*i).second);
1726 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1746 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1749 for (
unsigned int k=0;k<num;k++) j++;
1766 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1781 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1787 std::pair<const unsigned long,MG_COQUE*> tmp(mgcoque->
get_id(),mgcoque);
1800 return ((*i).second);
1807 for (
int j=0;j<nb;j++)
1811 if (idori==
id)
return coque;
1825 for (
unsigned long j=0;j<num;j++) i++;
1826 return ((*i).second);
1861 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1878 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1881 for (
unsigned int k=0;k<num;k++) j++;
1895 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
1908 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
1914 std::pair<const unsigned long,MG_POUTRE*> tmp(mgpoutre->
get_id(),mgpoutre);
1927 return ((*i).second);
1934 for (
int j=0;j<nb;j++)
1938 if (idori==
id)
return poutre;
1952 for (
unsigned long j=0;j<num;j++) i++;
1953 return ((*i).second);
1988 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2005 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2008 for (
unsigned int k=0;k<num;k++) j++;
2022 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2033 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
2039 std::pair<const unsigned long,MG_GROUPE_TOPOLOGIQUE*> tmp(mggroupe_topologique->
get_id(),mggroupe_topologique);
2052 return ((*i).second);
2064 for (
unsigned long j=0;j<num;j++) i++;
2065 return ((*i).second);
2095 if (mggroupe_topologique==NULL)
2100 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2104 delete mggroupe_topologique;
2112 if (mggroupe_topologique==NULL)
2117 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2120 for (
unsigned int k=0;k<num;k++) j++;
2122 delete mggroupe_topologique;
2134 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2137 delete mggroupe_topologique;
2145 std::pair<LISTE_ENTITE::iterator,bool> p=
lst_entite.insert(
id);
2151 std::pair<const unsigned long,MG_GEOM_FONCTION*> tmp(mggeomfon->
get_id(),mggeomfon);
2164 return ((*i).second);
2176 for (
unsigned long j=0;j<num;j++) i++;
2177 return ((*i).second);
2207 if (mggeomfon==NULL)
2212 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2224 if (mggeomfon==NULL)
2229 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2232 for (
unsigned int k=0;k<num;k++) j++;
2246 LISTE_ENTITE::iterator i=
lst_entite.find(
id);
2259 std::pair<const unsigned long,MG_VISU_COURBE*> tmp(mgvcrb->
get_id(),mgvcrb);
2272 return ((*i).second);
2285 for (
unsigned long j=0;j<num;j++) i++;
2286 return ((*i).second);
2336 for (
unsigned int k=0;k<num;k++) j++;
2355 switch(mg_element_topologique->
get_type())
2357 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::SOMMET:
2359 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::ARETE:
2361 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::FACE:
2363 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::COQUE:
2365 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::POUTRE:
2367 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::VOLUME:
2376 switch(mg_element_cotopologique->
get_type())
2378 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COSOMMET:
2380 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COARETE:
2382 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::BOUCLE:
2384 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COFACE:
2386 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COQUILLE:
2395 switch(mg_element_geometrique->
get_type())
2397 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::POINT:
2399 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::COURBE:
2401 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::SURFACE:
2409 switch(mg_element_topologique->
get_type())
2411 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::SOMMET:
2413 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::ARETE:
2415 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::FACE:
2417 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::COQUE:
2419 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::POUTRE:
2421 case MG_ELEMENT_TOPOLOGIQUE::TYPE_ELEMENT_TOPOLOGIQUE::VOLUME:
2429 switch(mg_element_cotopologique->
get_type())
2431 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COSOMMET:
2433 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COARETE:
2435 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::BOUCLE:
2437 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COFACE:
2439 case MG_ELEMENT_COTOPOLOGIQUE::TYPE_ELEMENT_COTOPOLOGIQUE::COQUILLE:
2448 switch(mg_element_geometrique->
get_type())
2450 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::POINT:
2452 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::COURBE:
2454 case MG_ELEMENT_GEOMETRIQUE::TYPE_ELEMENT_GEOMETRIQUE::SURFACE:
2531 LISTE_MG_SOMMET::iterator it_sommet;
2533 LISTE_MG_ARETE::iterator it_arete;
2535 LISTE_MG_FACE::iterator it_face;
2537 LISTE_MG_VOLUME::iterator it_volume;
2539 LISTE_MG_COQUE::iterator it_coque;
2541 LISTE_MG_POUTRE::iterator it_poutre;
2563 o <<
");" << std::endl;
2564 o <<
"%" <<
get_id() <<
"=GEOMETRIE_EPS(" <<
precision <<
");" << std::endl;
2565 LISTE_ENTITE::const_iterator i;
2567 (*i)->enregistrer(o,version);
2573 LISTE_ENTITE::const_iterator i;
2575 (*i)->get_fichier_dependant(liste_fichier);
2594 if (type==
"VIRTUEL")
res=
true;
2602 for (
int i=0;i<nbarete;i++)
2609 int nb_pas=(int)(20.*facteur);
2610 for (
int j=1;j<nb_pas+1;j++)
2612 double t=tmin+j*(tmax-tmin)/nb_pas;
2666 LISTE_MG_FACE::iterator itface;
2668 face->get_vectorisation();
2669 LISTE_MG_ARETE::iterator itarete;
2671 arete->get_vectorisation();
2672 LISTE_MG_SOMMET::iterator itsommet;
2674 som->get_vectorisation();
2675 LISTE_MG_SURFACE::iterator itsurface;
2677 surface->get_vectorisation();
2678 LISTE_MG_COURBE::iterator itcourbe;
2680 courb->get_vectorisation();
2681 LISTE_MG_POINT::iterator itpoint;
2683 point->get_vectorisation();
2721 LISTE_MG_VOLUME::iterator it;
2724 while (vol->get_nb_ccf()>0)
2725 vol->supprimer_ccf(0);
2730 LISTE_MG_FACE::iterator it;
2733 while (fac->get_nb_ccf()>0)
2734 fac->supprimer_ccf(0);
2739 LISTE_MG_ARETE::iterator it;
2742 while (are->get_nb_ccf()>0)
2743 are->supprimer_ccf(0);
2748 LISTE_MG_SOMMET::iterator it;
2751 while (som->get_nb_ccf()>0)
2752 som->supprimer_ccf(0);