#include "topolog.h"
#include "modgrf.h"
Go to the source code of this file.
Compounds | |
struct | __Result |
struct | AxisCAO |
struct | GenerateType |
struct | ProfToProfAxisCAO |
struct | RotAxisCAO |
struct | RotProfToProfAxisCAO |
struct | TransAxisCAO |
struct | VecAxisCAO |
Defines | |
#define | ShapeExt ".shp" |
#define | __ReservedMsg 100 |
#define | MOD_GENERATE_ERROR_OPEN_FIC 100 |
#define | MOD_SOM_ERROR_BAD_FIC_WRITE 101 |
Typedefs | |
typedef char | ShapeName [9] |
Functions | |
int | Generate (AxisCAO &m) |
|
Definition at line 25 of file Modeleur.hpp. |
|
Definition at line 26 of file Modeleur.hpp. |
|
Definition at line 22 of file Modeleur.hpp. |
|
Definition at line 24 of file Modeleur.hpp. |
|
Definition at line 20 of file Modeleur.hpp. |
|
Definition at line 314 of file Modeleur.cpp. 00315 { int error; 00316 char ficname[15]; 00317 00318 00319 FILE* f = fopen( strcat(strcpy(ficname,m.name),ShapeExt), "w" ); 00320 if ( !f ) return MOD_GENERATE_ERROR_OPEN_FIC; 00321 00322 if ( (error = m.GenerateVertex(f)) != SUCCESS ) 00323 { fclose(f); return error; } 00324 00325 if ( (error = m.GenerateArc(f)) != SUCCESS ) 00326 { fclose(f); return error; } 00327 00328 if ( (error = m.GenerateFace(f)) != SUCCESS ) 00329 { fclose(f); return error; } 00330 00331 fclose(f); 00332 00333 return SUCCESS; 00334 } |