#include <Modeleur.hpp>
Inheritance diagram for VecAxisCAO::
Public Methods | |
VecAxisCAO (Cardinal c, Sommet3D *pf, UINT nbv, Vector3D *v, char *name=NULL) | |
int | GenerateVertex (FILE *f) |
numerotation * | AllocNumerotation () |
char * | GetErrorMsg () |
Public Attributes | |
Vector3D * | vectbl |
|
Definition at line 115 of file Modeleur.hpp. |
|
Reimplemented from AxisCAO. Definition at line 305 of file Modeleur.cpp. 00306 { 00307 if ( globalresult.type.pvert == VERT_CLOSE ) 00308 return new OuvertFerme(pas-1,cardprofil-2); 00309 00310 return new OuvertOuvert(pas-1,cardprofil-1); 00311 } |
|
Reimplemented from AxisCAO. Definition at line 256 of file Modeleur.cpp. 00257 { int error; 00258 Sommet3D* tbl; 00259 UINT card; 00260 00261 // on génère la forme. 00262 // ------------------- 00263 if ( ( error = ModeleurVector ( profil, 00264 (UINT ) cardprofil, 00265 &tbl, 00266 &card, 00267 &(globalresult.type), 00268 vectbl, 00269 pas ) 00270 ) != SUCCESS ) 00271 return globalresult.error =error; 00272 00273 // La boite limite. 00274 // ---------------- 00275 BoiteLim bl; 00276 SetBoiteLimite( tbl, card,&bl ); 00277 00278 // On sauve sur fichier. 00279 // --------------------- 00280 if ( fprintf ( f, "%f %f %f %f %f %f\n%u\n", bl.S1.x, 00281 bl.S1.y, 00282 bl.S1.z, 00283 bl.S2.x, 00284 bl.S2.y, 00285 bl.S2.z, 00286 card ) == EOF ) 00287 return globalresult.error =MOD_SOM_ERROR_BAD_FIC_WRITE; 00288 00289 for ( UINT i = 0; i != card; i ++ ) 00290 if ( fprintf ( f, "%lf %lf %lf\n", tbl[i].x, 00291 tbl[i].y, 00292 tbl[i].z ) == EOF ) 00293 return globalresult.error =MOD_SOM_ERROR_BAD_FIC_WRITE; 00294 00295 fprintf ( f, "\n" ); 00296 00297 // on met à jour les renseignements. 00298 // --------------------------------- 00299 globalresult.cardsommet = card; 00300 00301 return SUCCESS; 00302 } |
|
Reimplemented from AxisCAO. Definition at line 348 of file Modeleur.cpp. 00348 { 00349 if ( globalresult.error >= __ReservedMsg) 00350 return G_modetbmsg[ globalresult.error - __ReservedMsg ]; 00351 return GetModelVectorErrorMsg( globalresult.error ); 00352 } |
|
Definition at line 113 of file Modeleur.hpp. |