ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/REPOS_ERICCA/magic/app/criaqoperation/src/main.cpp
Revision: 650
Committed: Wed Feb 11 00:03:21 2015 UTC (10 years, 6 months ago) by sattarpa
File size: 18860 byte(s)
Log Message:
proximity parameters added to "mailleur2d_ins_noeud"
relative curvature calculation added to "criaqoperators"

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 the GNIF output of curvatures are needed, 1 for diff_affich, 2 for diff, deformed and cad affiche");
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 calculated");
63
64 p6.ajouter_dependance(1);p6.ajouter_dependance(2);p6.ajouter_dependance(5);
65 p7.ajouter_dependance(1);p7.ajouter_dependance(2);p7.ajouter_dependance(5);
66 p8.ajouter_dependance(1);p8.ajouter_dependance(2);p8.ajouter_dependance(5);
67 p9.ajouter_dependance(1);p9.ajouter_dependance(5);p9.ajouter_dependance(3);p9.ajouter_dependance(4);
68 p10.ajouter_dependance(1);p10.ajouter_dependance(2);p10.ajouter_dependance(5);
69 p11.ajouter_dependance(1);p11.ajouter_dependance(2);p11.ajouter_dependance(5);
70 p12.ajouter_dependance(1);p12.ajouter_dependance(2);p12.ajouter_dependance(5);p12.ajouter_dependance(6);p12.ajouter_dependance(15);
71 p13.ajouter_dependance(1);p13.ajouter_dependance(2);p13.ajouter_dependance(5);
72 p15.ajouter_dependance(2);p15.ajouter_dependance(17);
73 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);
74 p23.ajouter_dependance(25);p23.ajouter_dependance(26);p23.ajouter_dependance(27);p23.ajouter_dependance(28);p23.ajouter_dependance(29);
75 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);
76 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);
77 lst.push_back(p1);
78 lst.push_back(p2);
79 lst.push_back(p3);
80 lst.push_back(p4);
81 lst.push_back(p5);
82 lst.push_back(p6);
83 lst.push_back(p7);
84 lst.push_back(p8);
85 lst.push_back(p9);
86 lst.push_back(p10);
87 lst.push_back(p11);
88 lst.push_back(p12);
89 lst.push_back(p13);
90 lst.push_back(p14);
91 lst.push_back(p15);
92 lst.push_back(p16);
93 lst.push_back(p17);
94 lst.push_back(p18);
95 lst.push_back(p19);
96 lst.push_back(p20);
97 lst.push_back(p21);
98 lst.push_back(p22);
99 lst.push_back(p23);
100 lst.push_back(p24);
101 lst.push_back(p25);
102 lst.push_back(p26);
103 lst.push_back(p27);
104 lst.push_back(p28);
105 lst.push_back(p29);
106 lst.push_back(p30);
107 lst.push_back(p31);
108 lst.push_back(p32);
109 lst.push_back(p33);
110 lst.push_back(p34);
111 lst.push_back(p35);
112 lst.push_back(p36);
113 lst.push_back(p37);
114 lst.push_back(p38);
115 lst.push_back(p39);
116 lst.push_back(p40);
117 lst.push_back(p41);
118 lst.push_back(p42);
119 lst.push_back(p43);
120 lst.push_back(p44);
121 lst.push_back(p45);
122 MAGIC_APPLICATION app((char*)"Tests preparation for CRIAQ project- MANU501",argc,argv,lst,true,false);
123 if (app.get_erreur()==true) return 0;
124
125 if(app.get_action()==7)
126 {
127 char magicfilename[3000];
128 char outputfilename[3000];
129 int meshno;
130 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
131 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
132 app.recupere_parametre_int_avec_defaut(5,meshno,0);
133 if (app.get_erreur()==true) return 0;
134 CRIAQOPERATORS criaq;
135 //criaq.active_affichage(app.affiche);
136 criaq.surfmaker_e1(outputfilename,meshno,magicfilename);
137 app.affiche((char*)"Fin");
138 }
139 if(app.get_action()==8)
140 {
141 char magicfilename[3000];
142 char outputfilename[3000];
143 int meshno;
144 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
145 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
146 app.recupere_parametre_int_avec_defaut(5,meshno,0);
147 if (app.get_erreur()==true) return 0;
148 CRIAQOPERATORS criaq;
149 //criaq.active_affichage(app.affiche);
150 criaq.surfmaker_e2(outputfilename,meshno,magicfilename);
151 app.affiche((char*)"Fin");
152 }
153 if(app.get_action()==14)
154 {
155 char magicfilename[3000];
156 char outputfilename[3000];
157 int meshno;
158 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
159 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
160 app.recupere_parametre_int_avec_defaut(5,meshno,0);
161 if (app.get_erreur()==true) return 0;
162 CRIAQOPERATORS criaq;
163 //criaq.active_affichage(app.affiche);
164 criaq.surfmaker_e2t(outputfilename,meshno,magicfilename);
165 app.affiche((char*)"Fin");
166 }
167 if(app.get_action()==9)
168 {
169 char magicfilename[3000];
170 char outputfilename[3000];
171 int meshno;
172 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
173 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
174 app.recupere_parametre_int_avec_defaut(5,meshno,0);
175 if (app.get_erreur()==true) return 0;
176 CRIAQOPERATORS criaq;
177 //criaq.active_affichage(app.affiche);
178 criaq.surfmaker_e3(outputfilename,meshno,magicfilename);
179 app.affiche((char*)"Fin");
180 }
181 if(app.get_action()==10)
182 {
183 char magicfilename[3000];
184 char elementxtoutfile[3000];
185 char nodtxtoutfile[3000];
186 int meshno;
187 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
188 app.recupere_parametre_string(3,elementxtoutfile,(char*)"Fichier entrant manquant");
189 app.recupere_parametre_string(4,nodtxtoutfile,(char*)"Fichier entrant manquant");
190 app.recupere_parametre_int_avec_defaut(5,meshno,0);
191 if (app.get_erreur()==true) return 0;
192 CRIAQOPERATORS criaq;
193 //criaq.active_affichage(app.affiche);
194 criaq.gnifformatmaker(elementxtoutfile,nodtxtoutfile,meshno,magicfilename);
195 app.affiche((char*)"Fin");
196 }
197 if(app.get_action()==11)
198 {
199 char magicfilename[3000];
200 char outputfilename[3000];
201 int meshno;
202 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
203 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
204 app.recupere_parametre_int_avec_defaut(5,meshno,0);
205 if (app.get_erreur()==true) return 0;
206 CRIAQOPERATORS criaq;
207 //criaq.active_affichage(app.affiche);
208 criaq.rmovscnprtfromdefrmdcad(outputfilename,meshno,magicfilename);
209 app.affiche((char*)"Fin");
210 }
211 if(app.get_action()==12)
212 {
213 char magicfilename[3000];
214 char outputfilename[3000];
215 int meshno;
216 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
217 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
218 app.recupere_parametre_int_avec_defaut(5,meshno,0);
219 if (app.get_erreur()==true) return 0;
220 CRIAQOPERATORS criaq;
221 //criaq.active_affichage(app.affiche);
222 criaq.msh2dmakerfrommsh3d(outputfilename,meshno,magicfilename);
223 app.affiche((char*)"Fin");
224 }
225 if(app.get_action()==13)
226 {
227 char magicfilename[3000];
228 char outputfilename[3000];
229 int bumpndid;
230 int meshno;
231 double bumptip;
232 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
233 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
234 app.recupere_parametre_int_avec_defaut(5,meshno,0);
235 app.recupere_parametre_int(6,bumpndid,(char*)"bumpndid manquant");
236 app.recupere_parametre_double(15,bumptip,(char*)"bumptip manquant");
237 if (app.get_erreur()==true) return 0;
238 CRIAQOPERATORS criaq;
239 //criaq.active_affichage(app.affiche);
240 criaq.bumpmaker(outputfilename,bumpndid,bumptip,meshno,magicfilename);
241 app.affiche((char*)"Fin");
242 }
243 if(app.get_action()==16)
244 {
245 char outputfilename[3000];
246 char gniftriangulationfile[3000];
247 app.recupere_parametre_string(2,outputfilename,(char*)"Fichier entrant manquant");
248 app.recupere_parametre_string(17,gniftriangulationfile,(char*)"Fichier entrant manquant");
249
250 if (app.get_erreur()==true) return 0;
251 CRIAQOPERATORS criaq;
252 //criaq.active_affichage(app.affiche);
253 criaq.import_triangulation_gnif(outputfilename,gniftriangulationfile);
254 app.affiche((char*)"Fin");
255 }
256 if(app.get_action()==18)
257 {
258 int femnummai;
259 char magicfilename[3000];
260 int femsolid;
261 int femsubsolno;
262 char gnifinspointfile[3000];
263 char out_gnifinspointfile_removondefect[3000];
264 double search_radius;
265 double vm_coef;
266 app.recupere_parametre_int_avec_defaut(19,femnummai,0);
267 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier d'entrée manquant");
268 app.recupere_parametre_int(20,femsolid,(char*)"femsolno manquant");
269 app.recupere_parametre_int(22,femsubsolno,(char*)"femsubsolno manquant");
270 app.recupere_parametre_string(21,gnifinspointfile,(char*)"Fichier insertpoints");
271 app.recupere_parametre_string(23,out_gnifinspointfile_removondefect,(char*)"Fichier soltxtoutfile");
272 app.recupere_parametre_double(41,search_radius,(char*)"search_radius is missed");
273 app.recupere_parametre_double(43,vm_coef,(char*)"vm_coef is missed");
274
275 if (app.get_erreur()==true) return 0;
276 CRIAQOPERATORS criaq;
277 //criaq.active_affichage(app.affiche);
278 criaq.vm_crit_remvsmp(femnummai,magicfilename,femsolid,femsubsolno,gnifinspointfile,out_gnifinspointfile_removondefect,search_radius,vm_coef);
279 app.affiche((char*)"Fin");
280 }
281 if(app.get_action()==24)
282 {
283 char referencemagicfilename[3000];
284 char comparemagicfilename[3000];
285 int refmeshno;
286 int compmeshno;
287 char outputcomparefile[3000];
288
289 app.recupere_parametre_string(25,referencemagicfilename,(char*)"Fichier referencemagicfilename");
290 app.recupere_parametre_string(26,comparemagicfilename,(char*)"Fichier comparemagicfilename");
291 app.recupere_parametre_int_avec_defaut(27,refmeshno,0);
292 app.recupere_parametre_int_avec_defaut(28,compmeshno,0);
293 app.recupere_parametre_string(29,outputcomparefile,(char*)"Fichier outputcomparefile");
294 if (app.get_erreur()==true) return 0;
295 CRIAQOPERATORS criaq;
296 //criaq.active_affichage(app.affiche);
297 criaq.meshdistance_compare(referencemagicfilename,refmeshno,comparemagicfilename,compmeshno,outputcomparefile);
298 app.affiche((char*)"Fin");
299 }
300 if(app.get_action()==30)
301 {
302 char magicfilename[3000];
303 int meshno;
304 int numsol1;
305 int numsol2;
306 int numsol3;
307 int numchamp1;
308 int numchamp2;
309 int numchamp3;
310 double coef;
311 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier referencemagicfilename");
312 app.recupere_parametre_int_avec_defaut(5,meshno,0);
313 app.recupere_parametre_int(31,numsol1,(char*)"numsol1 is missed");
314 app.recupere_parametre_int(32,numsol2,(char*)"numsol2 is missed");
315 app.recupere_parametre_int(33,numsol3,(char*)"numsol3 is missed");
316 app.recupere_parametre_int(34,numchamp1,(char*)"numchamp1 is missed");
317 app.recupere_parametre_int(35,numchamp2,(char*)"numchamp2 is missed");
318 app.recupere_parametre_int(36,numchamp3,(char*)"numchamp3 is missed");
319 app.recupere_parametre_double(37,coef,(char*)"coef is missed");
320 if (app.get_erreur()==true) return 0;
321 CRIAQOPERATORS criaq;
322 criaq.deformed_correspond_mgmaiadd(magicfilename,meshno,numsol1,numsol2,numsol3,numchamp1,numchamp2,numchamp3,coef);
323 //criaq.active_affichage(app.affiche);
324 app.affiche((char*)"Fin");
325 }
326 if(app.get_action()==38)
327 {
328 char magicfilename[3000];
329 char correspondfilename[3000];
330 char gnifinspointfile[3000];
331 char out_gnifinspointfile_removondefect[3000];
332 double search_radius;
333 double curvdif_coef;
334 int gmsh_affiche;
335 double relet_search_rad;
336 int relet_curvature;
337 app.recupere_parametre_string(1,magicfilename,(char*)"Fichier referencemagicfilename");
338 app.recupere_parametre_string(39,correspondfilename,(char*)"Fichier referencemagicfilename");
339 app.recupere_parametre_string(21,gnifinspointfile,(char*)"Fichier referencemagicfilename");
340 app.recupere_parametre_string(40,out_gnifinspointfile_removondefect,(char*)"Fichier referencemagicfilename");
341 app.recupere_parametre_double(41,search_radius,(char*)"search_radius is missed");
342 app.recupere_parametre_double(42,curvdif_coef,(char*)"curvdif_coef is missed");
343 app.recupere_parametre_int_avec_defaut(44,gmsh_affiche,0);
344 app.recupere_parametre_double(45,relet_search_rad,(char*)"relet_search_rad is missed");
345 app.recupere_parametre_int(46,relet_curvature,(char*)"relet_curvature is missed");
346 if (app.get_erreur()==true) return 0;
347 CRIAQOPERATORS criaq;
348 criaq.curvtur_crit_remvsmp(magicfilename,correspondfilename,gnifinspointfile,out_gnifinspointfile_removondefect,search_radius,curvdif_coef,gmsh_affiche,relet_search_rad,relet_curvature);
349 //criaq.active_affichage(app.affiche);
350 app.affiche((char*)"Fin");
351 }
352
353 return 0;
354 }