ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/lib/reconstruction/src/rec_face.cpp
Revision: 740
Committed: Wed Sep 30 22:24:50 2015 UTC (9 years, 7 months ago) by couturad
File size: 3550 byte(s)
Log Message:
Ajout d'assemblage dans un arbre caractéristique
Modification de la gestion des id de occ avec retro-compatibilité
script adaptable au assemblage

File Contents

# User Rev Content
1 louhichi 211 //---------------------------------------------------------------------------
2 5 #include "gestionversion.h"
3    
4     #pragma hdrstop
5    
6 francois 481 #include "occ_fonction.h"
7     #include "rec_face.h"
8 5 #include "tpl_map_entite.h"
9 francois 481 #include "rec_face_nurbs.h"
10     #include "rec_face_plane.h"
11     #include "rec_face_cylindrique.h"
12     #include "rec_face_conique.h"
13     #include "rec_face_torique.h"
14     #include "rec_face_spherique.h"
15 5 #include "constantegeo.h"
16 francois 309 #include "fem_element2.h"
17 5 #include "fem_noeud.h"
18     #include "fem_maillage.h"
19    
20 louhichi 211
21 5 //---------------------------------------------------------------------------
22    
23     #pragma package(smart_init)
24    
25 louhichi 211
26    
27    
28    
29    
30    
31    
32 couturad 740 REC_FACE::REC_FACE(FEM_MAILLAGE* fem_mai, int Idealise, OCC_FONCTION_RECONSTRUCTION& fonc, int test, int* faces): REC_BREP(fem_mai, Idealise, fonc), testo(test),faceso(faces)
33 5 {
34     }
35 louhichi 211
36    
37 5 REC_FACE::~REC_FACE()
38     {
39    
40     }
41    
42 louhichi 211 void REC_FACE::Reconstruire(MG_FACE* face, double coef)
43 5 {
44    
45     MG_SURFACE* surface = face->get_surface();
46     TPL_LISTE_ENTITE <double> Parametres;
47     int type_surface = surface->get_type_geometrique(Parametres);
48    
49 francois 38
50 5 if(testo == 0)
51     {
52 louhichi 211 REC_FACE_NURBS Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
53     Reconst.Reconstruire(face, coef);
54 5 }
55 louhichi 211
56 5 else
57     {
58     if(type_surface == MGCo_PLAN)
59     {
60 louhichi 211 REC_FACE_PLANE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
61     Reconst.Reconstruire(face, coef);
62 5 }
63     else
64     {
65     if(type_surface == MGCo_CYLINDRE)
66     {
67 louhichi 211 REC_FACE_CYLINDRIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
68     Reconst.Reconstruire(face, coef);
69 5 }
70     else
71     {
72     if(type_surface == MGCo_CONE)
73     {
74 louhichi 211 REC_FACE_CONIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
75     Reconst.Reconstruire(face, coef);
76 5 }
77     else
78     {
79     if(type_surface == MGCo_TORE)
80     {
81 louhichi 211 REC_FACE_TORIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
82     Reconst.Reconstruire(face, coef);
83 5 }
84     else
85     {
86     if(type_surface == MGCo_SPHERE)
87     {
88 louhichi 211 REC_FACE_SPHERIQUE Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
89     Reconst.Reconstruire(face, coef);
90 5 }
91     else
92     {
93 louhichi 211 REC_FACE_NURBS Reconst(fem_maillage, Idealiser, fonction, testo, faceso);
94     Reconst.Reconstruire(face, coef);
95 5 }
96     }
97     }
98     }
99     }
100     }
101    
102 louhichi 211
103 5 }
104    
105     void REC_FACE::Enregistrer(char *path)
106     {
107     }
108    
109    
110    
111    
112    
113    
114    
115    
116