ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/geometrie/src/occ_face.cpp
Revision: 908
Committed: Tue Nov 21 15:33:21 2017 UTC (7 years, 5 months ago) by couturad
File size: 1429 byte(s)
Log Message:
Ajout des "#ifdef ALL_OCC" manquant

File Contents

# User Rev Content
1 couturad 908 #ifdef ALL_OCC
2 couturad 907 #include "occ_face.h"
3    
4    
5     OCC_FACE::OCC_FACE(std::string idori,unsigned long num,MG_SURFACE* srf,int sens,TopoDS_Face face,OCC_FONCTION* occ_fonction): MG_FACE(idori, num, srf, sens)
6     {
7     m_face=face;
8     m_occ_fonction=occ_fonction;
9     }
10    
11     OCC_FACE::OCC_FACE(std::string idori,MG_SURFACE* srf,int sens,TopoDS_Face face,OCC_FONCTION* occ_fonction): MG_FACE(idori, srf, sens)
12     {
13     m_face=face;
14     m_occ_fonction=occ_fonction;
15     }
16    
17     OCC_FACE::OCC_FACE(OCC_FACE& mdd): MG_FACE(mdd)
18     {
19     m_face=mdd.m_face;
20     m_occ_fonction=mdd.m_occ_fonction;
21     }
22    
23     OCC_FACE::~OCC_FACE()
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_FACE(this);
29     }
30     }
31    
32     TopoDS_Face OCC_FACE::get_TopoDS_Face(void)
33     {
34     return m_face;
35     }
36    
37     void OCC_FACE::change_TopoDS_Face(TopoDS_Face face)
38     {
39     m_face=face;
40     }
41    
42     void OCC_FACE::enregistrer(ostream& o, double version)
43     {
44     MG_FACE::enregistrer(o,version);
45     // o << "%" << get_id() << "=OCC_FACE("<< get_idoriginal() << ",$" << surface->get_id() << ",(";
46     // for (unsigned int i=0;i<lst_boucle.size();i++)
47     // {
48     // o << "$" << lst_boucle[i]->get_id();
49     // if (i!=lst_boucle.size()-1) o << ",";
50     // else o << ")";
51     // }
52     // int nb=get_nb_ccf();
53     // o << "," << orientation << "," << nb_pole << ",";
54     // enregistrer_ccf(o,version);
55     // o << ");" << std::endl;
56     }
57    
58    
59    
60 couturad 908 #endif