ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/criaqoperation/src/main.cpp
Revision: 673
Committed: Tue Jun 9 16:04:58 2015 UTC (10 years, 2 months ago) by sattarpa
File size: 21685 byte(s)
Log Message:
ajouter le calcule de aire de defaut.

File Contents

# Content
1 #include "gestionversion.h"
2 #include <stdio.h>
3 #include "mg_file.h"
4 #include "occ_import.h"
5 #include "fct_generateur_3d.h"
6 #include "mailleur.h"
7 #include "mailleur0d.h"
8 #include "mailleur1d.h"
9 #include "mailleur2d.h"
10 #include "mailleur3d.h"
11 #include "mg_geometrie_outils.h"
12 #include "magic_application.h"
13 #include "criaqoperators.h"
14
15 int main(int argc,char** argv)
16 {
17 std::vector<MAGIC_PARAMETRE_APPLICATION> lst;
18 MAGIC_PARAMETRE_APPLICATION p1(2,(char*)"-outputfilename",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de output");
19 MAGIC_PARAMETRE_APPLICATION p2(3,(char*)"-elementxtoutfile",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de elementxtoutfile");
20 MAGIC_PARAMETRE_APPLICATION p3(4,(char*)"-nodtxtoutfile",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de nodtxtoutfile");
21 MAGIC_PARAMETRE_APPLICATION p4(5,(char*)"-nummai",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de maillage - Defaut le premier");
22 MAGIC_PARAMETRE_APPLICATION p5(6,(char*)"-bumpndid",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"the id no of node for making bump");
23 MAGIC_PARAMETRE_APPLICATION p6(7,(char*)"-surfmaker_e1",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for surfmaker_e1");
24 MAGIC_PARAMETRE_APPLICATION p7(8,(char*)"-surfmaker_e2",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for surfmaker_e2");
25 MAGIC_PARAMETRE_APPLICATION p8(9,(char*)"-surfmaker_e3",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for surfmaker_e3");
26 MAGIC_PARAMETRE_APPLICATION p9(10,(char*)"-gnifformatmaker",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for gnifformatmaker");
27 MAGIC_PARAMETRE_APPLICATION p10(11,(char*)"-rmovscnprtfromdefrmdcad",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for rmovscnprtfromdefrmdcad");
28 MAGIC_PARAMETRE_APPLICATION p11(12,(char*)"-msh2dmakerfrommsh3d",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for msh2dmakerfrommsh3d");
29 MAGIC_PARAMETRE_APPLICATION p12(13,(char*)"-bumpmaker",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for bumpmaker");
30 MAGIC_PARAMETRE_APPLICATION p13(14,(char*)"-surfmaker_e2t",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for surfmaker_e2t");
31 MAGIC_PARAMETRE_APPLICATION p14(15,(char*)"-bumptip",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The hight of bumptip");
32 MAGIC_PARAMETRE_APPLICATION p15(16,(char*)"-importgnifmesh",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for import GNIF mesh to MAGIC format");
33 MAGIC_PARAMETRE_APPLICATION p16(17,(char*)"-gniftriangulationfile",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de gniftriangulationfile");
34 MAGIC_PARAMETRE_APPLICATION p17(18,(char*)"-vm_analysis",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action based on V.M. stress, to remove sample points on the defect areas and generate a new insert point list");
35 MAGIC_PARAMETRE_APPLICATION p18(19,(char*)"-femnummai",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de FEM maillage - Defaut le premier");
36 MAGIC_PARAMETRE_APPLICATION p19(20,(char*)"-femsolid",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro id de FEM SOLUTION");
37 MAGIC_PARAMETRE_APPLICATION p20(21,(char*)"-gnifinspointfile",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de gnifinspointfile");
38 MAGIC_PARAMETRE_APPLICATION p21(22,(char*)"-femsubsolno",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de FEM SUB_SOLUTION (0,1,2,...)");
39 MAGIC_PARAMETRE_APPLICATION p22(23,(char*)"-out_gnifinspointfile_removondefect",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de out_gnifinspointfile_removondefect");
40 MAGIC_PARAMETRE_APPLICATION p23(24,(char*)"-mshdistance_compare",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for comparing 2 mesheah by giving the distance based on ref. mesh");
41 MAGIC_PARAMETRE_APPLICATION p24(25,(char*)"-referencemagicfilename",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de referencemagicfilename");
42 MAGIC_PARAMETRE_APPLICATION p25(26,(char*)"-comparemagicfilename",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de comparemagicfilename");
43 MAGIC_PARAMETRE_APPLICATION p26(27,(char*)"-refmeshno",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de refmesh - Defaut le premier");
44 MAGIC_PARAMETRE_APPLICATION p27(28,(char*)"-compmeshno",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de compmesh - Defaut le premier");
45 MAGIC_PARAMETRE_APPLICATION p28(29,(char*)"-outputcomparefile",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de outputcomparefile");
46 MAGIC_PARAMETRE_APPLICATION p29(30,(char*)"-deformcorressmai",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for add defprmed mgmesh with correspondence to the main mesh");
47 MAGIC_PARAMETRE_APPLICATION p30(31,(char*)"-numsol1",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de solution1");
48 MAGIC_PARAMETRE_APPLICATION p31(32,(char*)"-numsol2",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de solution2");
49 MAGIC_PARAMETRE_APPLICATION p32(33,(char*)"-numsol3",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de solution3");
50 MAGIC_PARAMETRE_APPLICATION p33(34,(char*)"-numchamp1",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de champ1");
51 MAGIC_PARAMETRE_APPLICATION p34(35,(char*)"-numchamp2",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de champ2");
52 MAGIC_PARAMETRE_APPLICATION p35(36,(char*)"-numchamp3",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"Numéro de champ3");
53 MAGIC_PARAMETRE_APPLICATION p36(37,(char*)"-coefdef",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The coefficient value for deformation");
54 MAGIC_PARAMETRE_APPLICATION p37(38,(char*)"-curvtur_crit_remvsmp",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action based on curvature, to remove sample points on the defect areas and generate a new insert point list");
55 MAGIC_PARAMETRE_APPLICATION p38(39,(char*)"-correspondfilename",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de correspondfilename");
56 MAGIC_PARAMETRE_APPLICATION p39(40,(char*)"-out_gnifinspointfile_removondefect",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de out_gnifinspointfile_removondefect");
57 MAGIC_PARAMETRE_APPLICATION p40(41,(char*)"-search_radius",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The value for search_radius");
58 MAGIC_PARAMETRE_APPLICATION p41(42,(char*)"-curvdif_coef",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The coefficient value for curvdif_coef");
59 MAGIC_PARAMETRE_APPLICATION p42(43,(char*)"-vm_coef",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The coefficient value for vm_coef");
60 MAGIC_PARAMETRE_APPLICATION p43(44,(char*)"-gmsh_affiche",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"IF gmsh_affiche=1(diff), =2(CAD & defCAD relt), =3(CAD & defCAD)");
61 MAGIC_PARAMETRE_APPLICATION p44(45,(char*)"-relet_search_rad",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"The value for relet_search_rad");
62 MAGIC_PARAMETRE_APPLICATION p45(46,(char*)"-relet_curvature",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"if relet_curvature>0 => relet_curvature is calculated");
63 MAGIC_PARAMETRE_APPLICATION p46(47,(char*)"-samplepoints1",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de samplepoints1");
64 MAGIC_PARAMETRE_APPLICATION p47(48,(char*)"-samplepoints2",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de samplepoints2");
65 MAGIC_PARAMETRE_APPLICATION p48(49,(char*)"-sortedsmplpnts",MAGIC_PARAMETRE_APPLICATION::STRING,(char*)"Nom du fichier de sortedsmplpnts");
66 MAGIC_PARAMETRE_APPLICATION p49(50,(char*)"-smplpcompare",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for compare between two sets of sample points");
67 MAGIC_PARAMETRE_APPLICATION p50(51,(char*)"-bumparea_calcul",MAGIC_PARAMETRE_APPLICATION::ACTION,(char*)"Action for calculate area of bump");
68 MAGIC_PARAMETRE_APPLICATION p51(52,(char*)"-mgsolid",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"MG solution id");
69 MAGIC_PARAMETRE_APPLICATION p52(53,(char*)"-tolerance",MAGIC_PARAMETRE_APPLICATION::DOUBLE,(char*)"deformation tolerance value");
70 MAGIC_PARAMETRE_APPLICATION p53(54,(char*)"-defnodid",MAGIC_PARAMETRE_APPLICATION::INTEGER,(char*)"defnodid");
71
72
73 p6.ajouter_dependance(1);p6.ajouter_dependance(2);p6.ajouter_dependance(5);
74 p7.ajouter_dependance(1);p7.ajouter_dependance(2);p7.ajouter_dependance(5);
75 p8.ajouter_dependance(1);p8.ajouter_dependance(2);p8.ajouter_dependance(5);
76 p9.ajouter_dependance(1);p9.ajouter_dependance(5);p9.ajouter_dependance(3);p9.ajouter_dependance(4);
77 p10.ajouter_dependance(1);p10.ajouter_dependance(2);p10.ajouter_dependance(5);
78 p11.ajouter_dependance(1);p11.ajouter_dependance(2);p11.ajouter_dependance(5);
79 p12.ajouter_dependance(1);p12.ajouter_dependance(2);p12.ajouter_dependance(5);p12.ajouter_dependance(6);p12.ajouter_dependance(15);
80 p13.ajouter_dependance(1);p13.ajouter_dependance(2);p13.ajouter_dependance(5);
81 p15.ajouter_dependance(2);p15.ajouter_dependance(17);
82 p17.ajouter_dependance(1);p17.ajouter_dependance(19);p17.ajouter_dependance(20);p17.ajouter_dependance(22);p17.ajouter_dependance(21);p17.ajouter_dependance(23);p17.ajouter_dependance(41);p17.ajouter_dependance(43);
83 p23.ajouter_dependance(25);p23.ajouter_dependance(26);p23.ajouter_dependance(27);p23.ajouter_dependance(28);p23.ajouter_dependance(29);
84 p29.ajouter_dependance(1);p29.ajouter_dependance(5);p29.ajouter_dependance(31);p29.ajouter_dependance(32);p29.ajouter_dependance(33);p29.ajouter_dependance(34);p29.ajouter_dependance(35);p29.ajouter_dependance(36);p29.ajouter_dependance(37);
85 p37.ajouter_dependance(1);p37.ajouter_dependance(39);p37.ajouter_dependance(21);p37.ajouter_dependance(40);p37.ajouter_dependance(41);p37.ajouter_dependance(42);p37.ajouter_dependance(44);p37.ajouter_dependance(45);p37.ajouter_dependance(46);
86 p49.ajouter_dependance(47);p49.ajouter_dependance(48);p49.ajouter_dependance(49);
87 p50.ajouter_dependance(1);p50.ajouter_dependance(2);p50.ajouter_dependance(5);p50.ajouter_dependance(52);p50.ajouter_dependance(53);p50.ajouter_dependance(54);
88 lst.push_back(p1);
89 lst.push_back(p2);
90 lst.push_back(p3);
91 lst.push_back(p4);
92 lst.push_back(p5);
93 lst.push_back(p6);
94 lst.push_back(p7);
95 lst.push_back(p8);
96 lst.push_back(p9);
97 lst.push_back(p10);
98 lst.push_back(p11);
99 lst.push_back(p12);
100 lst.push_back(p13);
101 lst.push_back(p14);
102 lst.push_back(p15);
103 lst.push_back(p16);
104 lst.push_back(p17);
105 lst.push_back(p18);
106 lst.push_back(p19);
107 lst.push_back(p20);
108 lst.push_back(p21);
109 lst.push_back(p22);
110 lst.push_back(p23);
111 lst.push_back(p24);
112 lst.push_back(p25);
113 lst.push_back(p26);
114 lst.push_back(p27);
115 lst.push_back(p28);
116 lst.push_back(p29);
117 lst.push_back(p30);
118 lst.push_back(p31);
119 lst.push_back(p32);
120 lst.push_back(p33);
121 lst.push_back(p34);
122 lst.push_back(p35);
123 lst.push_back(p36);
124 lst.push_back(p37);
125 lst.push_back(p38);
126 lst.push_back(p39);
127 lst.push_back(p40);
128 lst.push_back(p41);
129 lst.push_back(p42);
130 lst.push_back(p43);
131 lst.push_back(p44);
132 lst.push_back(p45);
133 lst.push_back(p46);
134 lst.push_back(p47);
135 lst.push_back(p48);
136 lst.push_back(p49);
137 lst.push_back(p50);
138 lst.push_back(p51);
139 lst.push_back(p52);
140 lst.push_back(p53);
141
142 MAGIC_APPLICATION app((char*)"Tests preparation for CRIAQ project- MANU501",argc,argv,lst,true,false);
143 if (app.get_erreur()==true) return 0;
144
145 if(app.get_action()==50)
146 {
147 char samplepoints1[3000];
148 char samplepoints2[3000];
149 char sortedsmplpnts[3000];
150 app.recupere_parametre_string(47,samplepoints1,(char*)"Fichier samplepoints1 manquant");
151 app.recupere_parametre_string(48,samplepoints2,(char*)"Fichier samplepoints2 manquant");
152 app.recupere_parametre_string(49,sortedsmplpnts,(char*)"Fichier sortedsmplpnts manquant");
153 if (app.get_erreur()==true) return 0;
154 CRIAQOPERATORS criaq;
155 //criaq.active_affichage(app.affiche);
156 criaq.samplepoints_compare(samplepoints1,samplepoints2,sortedsmplpnts);
157 app.affiche((char*)"Fin");
158 }
159
160
161
162 if(app.get_action()==7)
163 {
164 char magicfilename[3000];
165 char outputfilename[3000];
166 int meshno;
167 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
168 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
169 app.recupere_parametre_int_avec_defaut(5,meshno,0);
170 if (app.get_erreur()==true) return 0;
171 CRIAQOPERATORS criaq;
172 //criaq.active_affichage(app.affiche);
173 criaq.surfmaker_e1(outputfilename,meshno,magicfilename);
174 app.affiche((char*)"Fin");
175 }
176 if(app.get_action()==8)
177 {
178 char magicfilename[3000];
179 char outputfilename[3000];
180 int meshno;
181 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
182 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
183 app.recupere_parametre_int_avec_defaut(5,meshno,0);
184 if (app.get_erreur()==true) return 0;
185 CRIAQOPERATORS criaq;
186 //criaq.active_affichage(app.affiche);
187 criaq.surfmaker_e2(outputfilename,meshno,magicfilename);
188 app.affiche((char*)"Fin");
189 }
190 if(app.get_action()==14)
191 {
192 char magicfilename[3000];
193 char outputfilename[3000];
194 int meshno;
195 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
196 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
197 app.recupere_parametre_int_avec_defaut(5,meshno,0);
198 if (app.get_erreur()==true) return 0;
199 CRIAQOPERATORS criaq;
200 //criaq.active_affichage(app.affiche);
201 criaq.surfmaker_e2t(outputfilename,meshno,magicfilename);
202 app.affiche((char*)"Fin");
203 }
204 if(app.get_action()==9)
205 {
206 char magicfilename[3000];
207 char outputfilename[3000];
208 int meshno;
209 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
210 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
211 app.recupere_parametre_int_avec_defaut(5,meshno,0);
212 if (app.get_erreur()==true) return 0;
213 CRIAQOPERATORS criaq;
214 //criaq.active_affichage(app.affiche);
215 criaq.surfmaker_e3(outputfilename,meshno,magicfilename);
216 app.affiche((char*)"Fin");
217 }
218 if(app.get_action()==10)
219 {
220 char magicfilename[3000];
221 char elementxtoutfile[3000];
222 char nodtxtoutfile[3000];
223 int meshno;
224 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
225 app.recupere_parametre_string(3,elementxtoutfile,(char*)"Fichier entrant manquant");
226 app.recupere_parametre_string(4,nodtxtoutfile,(char*)"Fichier entrant manquant");
227 app.recupere_parametre_int_avec_defaut(5,meshno,0);
228 if (app.get_erreur()==true) return 0;
229 CRIAQOPERATORS criaq;
230 //criaq.active_affichage(app.affiche);
231 criaq.gnifformatmaker(elementxtoutfile,nodtxtoutfile,meshno,magicfilename);
232 app.affiche((char*)"Fin");
233 }
234 if(app.get_action()==11)
235 {
236 char magicfilename[3000];
237 char outputfilename[3000];
238 int meshno;
239 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
240 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
241 app.recupere_parametre_int_avec_defaut(5,meshno,0);
242 if (app.get_erreur()==true) return 0;
243 CRIAQOPERATORS criaq;
244 //criaq.active_affichage(app.affiche);
245 criaq.rmovscnprtfromdefrmdcad(outputfilename,meshno,magicfilename);
246 app.affiche((char*)"Fin");
247 }
248 if(app.get_action()==12)
249 {
250 char magicfilename[3000];
251 char outputfilename[3000];
252 int meshno;
253 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
254 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
255 app.recupere_parametre_int_avec_defaut(5,meshno,0);
256 if (app.get_erreur()==true) return 0;
257 CRIAQOPERATORS criaq;
258 //criaq.active_affichage(app.affiche);
259 criaq.msh2dmakerfrommsh3d(outputfilename,meshno,magicfilename);
260 app.affiche((char*)"Fin");
261 }
262 if(app.get_action()==13)
263 {
264 char magicfilename[3000];
265 char outputfilename[3000];
266 int bumpndid;
267 int meshno;
268 double bumptip;
269 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
270 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
271 app.recupere_parametre_int_avec_defaut(5,meshno,0);
272 app.recupere_parametre_int(6,bumpndid,(char*)"bumpndid manquant");
273 app.recupere_parametre_double(15,bumptip,(char*)"bumptip manquant");
274 if (app.get_erreur()==true) return 0;
275 CRIAQOPERATORS criaq;
276 //criaq.active_affichage(app.affiche);
277 criaq.bumpmaker(outputfilename,bumpndid,bumptip,meshno,magicfilename);
278 app.affiche((char*)"Fin");
279 }
280 if(app.get_action()==16)
281 {
282 char outputfilename[3000];
283 char gniftriangulationfile[3000];
284 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
285 app.recupere_parametre_string(17,gniftriangulationfile,(char*)"Fichier entrant manquant");
286
287 if (app.get_erreur()==true) return 0;
288 CRIAQOPERATORS criaq;
289 //criaq.active_affichage(app.affiche);
290 criaq.import_triangulation_gnif(outputfilename,gniftriangulationfile);
291 app.affiche((char*)"Fin");
292 }
293 if(app.get_action()==18)
294 {
295 int femnummai;
296 char magicfilename[3000];
297 int femsolid;
298 int femsubsolno;
299 char gnifinspointfile[3000];
300 char out_gnifinspointfile_removondefect[3000];
301 double search_radius;
302 double vm_coef;
303 app.recupere_parametre_int_avec_defaut(19,femnummai,0);
304 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
305 app.recupere_parametre_int(20,femsolid,(char*)"femsolno manquant");
306 app.recupere_parametre_int(22,femsubsolno,(char*)"femsubsolno manquant");
307 app.recupere_parametre_string(21,gnifinspointfile,(char*)"Fichier insertpoints");
308 app.recupere_parametre_string(23,out_gnifinspointfile_removondefect,(char*)"Fichier soltxtoutfile");
309 app.recupere_parametre_double(41,search_radius,(char*)"search_radius is missed");
310 app.recupere_parametre_double(43,vm_coef,(char*)"vm_coef is missed");
311
312 if (app.get_erreur()==true) return 0;
313 CRIAQOPERATORS criaq;
314 //criaq.active_affichage(app.affiche);
315 criaq.vm_crit_remvsmp(femnummai,magicfilename,femsolid,femsubsolno,gnifinspointfile,out_gnifinspointfile_removondefect,search_radius,vm_coef);
316 app.affiche((char*)"Fin");
317 }
318 if(app.get_action()==24)
319 {
320 char referencemagicfilename[3000];
321 char comparemagicfilename[3000];
322 int refmeshno;
323 int compmeshno;
324 char outputcomparefile[3000];
325
326 app.recupere_parametre_string(25,referencemagicfilename,(char*)"Fichier referencemagicfilename");
327 app.recupere_parametre_string(26,comparemagicfilename,(char*)"Fichier comparemagicfilename");
328 app.recupere_parametre_int_avec_defaut(27,refmeshno,0);
329 app.recupere_parametre_int_avec_defaut(28,compmeshno,0);
330 app.recupere_parametre_string(29,outputcomparefile,(char*)"Fichier outputcomparefile");
331 if (app.get_erreur()==true) return 0;
332 CRIAQOPERATORS criaq;
333 //criaq.active_affichage(app.affiche);
334 criaq.meshdistance_compare(referencemagicfilename,refmeshno,comparemagicfilename,compmeshno,outputcomparefile);
335 app.affiche((char*)"Fin");
336 }
337 if(app.get_action()==30)
338 {
339 char magicfilename[3000];
340 int meshno;
341 int numsol1;
342 int numsol2;
343 int numsol3;
344 int numchamp1;
345 int numchamp2;
346 int numchamp3;
347 double coef;
348 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier referencemagicfilename");
349 app.recupere_parametre_int_avec_defaut(5,meshno,0);
350 app.recupere_parametre_int(31,numsol1,(char*)"numsol1 is missed");
351 app.recupere_parametre_int(32,numsol2,(char*)"numsol2 is missed");
352 app.recupere_parametre_int(33,numsol3,(char*)"numsol3 is missed");
353 app.recupere_parametre_int(34,numchamp1,(char*)"numchamp1 is missed");
354 app.recupere_parametre_int(35,numchamp2,(char*)"numchamp2 is missed");
355 app.recupere_parametre_int(36,numchamp3,(char*)"numchamp3 is missed");
356 app.recupere_parametre_double(37,coef,(char*)"coef is missed");
357 if (app.get_erreur()==true) return 0;
358 CRIAQOPERATORS criaq;
359 criaq.deformed_correspond_mgmaiadd(magicfilename,meshno,numsol1,numsol2,numsol3,numchamp1,numchamp2,numchamp3,coef);
360 //criaq.active_affichage(app.affiche);
361 app.affiche((char*)"Fin");
362 }
363 if(app.get_action()==38)
364 {
365 char magicfilename[3000];
366 char correspondfilename[3000];
367 char gnifinspointfile[3000];
368 char out_gnifinspointfile_removondefect[3000];
369 double search_radius;
370 double curvdif_coef;
371 int gmsh_affiche;
372 double relet_search_rad;
373 int relet_curvature;
374 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier referencemagicfilename");
375 app.recupere_parametre_string(39,correspondfilename,(char*)"Fichier referencemagicfilename");
376 app.recupere_parametre_string(21,gnifinspointfile,(char*)"Fichier referencemagicfilename");
377 app.recupere_parametre_string(40,out_gnifinspointfile_removondefect,(char*)"Fichier referencemagicfilename");
378 app.recupere_parametre_double(41,search_radius,(char*)"search_radius is missed");
379 app.recupere_parametre_double(42,curvdif_coef,(char*)"curvdif_coef is missed");
380 app.recupere_parametre_int_avec_defaut(44,gmsh_affiche,0);
381 app.recupere_parametre_double(45,relet_search_rad,(char*)"relet_search_rad is missed");
382 app.recupere_parametre_int(46,relet_curvature,(char*)"relet_curvature is missed");
383 if (app.get_erreur()==true) return 0;
384 CRIAQOPERATORS criaq;
385 criaq.curvtur_crit_remvsmp(magicfilename,correspondfilename,gnifinspointfile,out_gnifinspointfile_removondefect,search_radius,curvdif_coef,gmsh_affiche,relet_search_rad,relet_curvature);
386 //criaq.active_affichage(app.affiche);
387 app.affiche((char*)"Fin");
388 }
389 if(app.get_action()==51)
390 {
391 char magicfilename[3000];
392 int nummai;
393 int mgsolid;
394 double tolerance;
395 char outputfilename[3000];
396 int defnodid;
397 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier referencemagicfilename");
398 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
399 app.recupere_parametre_int_avec_defaut(5,nummai,0);
400 app.recupere_parametre_int(52,mgsolid,(char*)"mgsolid manquant");
401 app.recupere_parametre_double(53,tolerance,(char*)"tolerance manquant");
402 app.recupere_parametre_int(54,defnodid,(char*)"defnodid manquant");
403
404 if (app.get_erreur()==true) return 0;
405 CRIAQOPERATORS criaq;
406 criaq.bumparea_calcul(magicfilename,nummai,mgsolid,tolerance,outputfilename,defnodid);
407 //criaq.active_affichage(app.affiche);
408 app.affiche((char*)"Fin");
409 }
410
411 return 0;
412 }