ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/occ_coque.cpp
Revision: 1052
Committed: Tue Sep 29 15:14:03 2020 UTC (4 years, 7 months ago) by francois
File size: 1842 byte(s)
Log Message:
importation des coquilles ouvertes en coque dans la nouvelle version de d'importation OCC

File Contents

# User Rev Content
1 francois 1052 #include "gestionversion.h"
2     #ifdef ALL_OCC
3     #include "occ_coque.h"
4    
5     OCC_COQUE::OCC_COQUE(std::string idori, unsigned long num,TopoDS_Shell shell,OCC_FONCTION* occ_fonction): MG_COQUE(idori, num)
6     {
7     m_shell=shell;
8     m_occ_fonction=occ_fonction;
9     }
10    
11     OCC_COQUE::OCC_COQUE(std::string idori,TopoDS_Shell shell,OCC_FONCTION* occ_fonction): MG_COQUE(idori)
12     {
13     m_shell=shell;
14     m_occ_fonction=occ_fonction;
15     }
16    
17     OCC_COQUE::OCC_COQUE(OCC_COQUE& mdd): MG_COQUE(mdd)
18     {
19     m_shell=mdd.m_shell;
20     m_occ_fonction=mdd.m_occ_fonction;
21     }
22    
23     OCC_COQUE::~OCC_COQUE()
24     {
25     if(m_occ_fonction->get_version()=="OCCV2017")
26     {
27     OCC_FONCTION_V2017* occ_fonction_v2017 = (OCC_FONCTION_V2017*)m_occ_fonction;
28     occ_fonction_v2017->supprimer_OCC_COQUE(this);
29     }
30     }
31    
32     TopoDS_Shell OCC_COQUE::get_TopoDS_Shell(void)
33     {
34     return m_shell;
35     }
36    
37     void OCC_COQUE::change_TopoDS_Shell(TopoDS_Shell shell)
38     {
39     m_shell=shell;
40     }
41    
42     void OCC_COQUE::enregistrer(ostream& o, double version)
43     {
44     MG_COQUE::enregistrer(o,version);
45     // o << "%" << get_id() << "=OCC_VOLUME(" << get_idoriginal() << ",(";
46     // for (unsigned int i=0;i<lst_coquille.size();i++)
47     // {
48     // o << "$" << lst_coquille[i]->get_id();
49     // if (i!=lst_coquille.size()-1) o << ",";
50     // else o << ")";
51     // }
52     // int nb=get_nb_ccf();
53     // if (version>2.2)
54     // {
55     // if (mince) o << ",1" ;
56     // else o << ",0" ;
57     // if (mince)
58     // {
59     // o << ",(" ;
60     // for (int i=0;i<get_nb_face_correspondante()-1;i++)
61     // o << "$" << lst_base[i]->get_id() << "," << "$" << lst_extrude[i]->get_id() << "," ;
62     // o << "$" << lst_base[get_nb_face_correspondante()-1]->get_id() << "," << "$" << lst_extrude[get_nb_face_correspondante()-1]->get_id();
63     // o << ")" ;
64     // }
65     // }
66     // o << "," ;
67     // enregistrer_ccf(o,version);
68     // o << ");" << std::endl;
69    
70     }
71    
72    
73    
74     #endif