#include <Modeleur.hpp>
Inheritance diagram for ProfToProfAxisCAO::
Public Methods | |
ProfToProfAxisCAO (Cardinal c, Sommet3D *pf, Sommet3D *pf1, UINT nbv, Vector3D &v, char *name=NULL) | |
int | GenerateVertex (FILE *f) |
numerotation * | AllocNumerotation () |
char * | GetErrorMsg () |
Public Attributes | |
Sommet3D * | profil1 |
|
Definition at line 137 of file Modeleur.hpp. |
|
Reimplemented from AxisCAO. Definition at line 247 of file Modeleur.cpp. 00248 { 00249 if ( globalresult.type.pvert == VERT_CLOSE ) 00250 return new OuvertFerme(pas-1,cardprofil-2); 00251 00252 return new OuvertOuvert(pas-1,cardprofil-1); 00253 } |
|
Reimplemented from AxisCAO. Definition at line 198 of file Modeleur.cpp. 00198 { 00199 int error; 00200 Sommet3D* tbl; 00201 UINT card; 00202 00203 // on génère la forme. 00204 // ------------------- 00205 if ( ( error = ModeleurProfToProf( profil, 00206 profil1, 00207 (UINT) cardprofil, 00208 &tbl, 00209 &card, 00210 &(globalresult.type), 00211 axis, 00212 pas 00213 00214 ) ) != SUCCESS ) return globalresult.error = error; 00215 00216 // La boite limite. 00217 // ---------------- 00218 BoiteLim bl; 00219 SetBoiteLimite( tbl, card,&bl ); 00220 00221 // On sauve sur fichier. 00222 // --------------------- 00223 if ( fprintf ( f, "%f %f %f %f %f %f\n%u\n", bl.S1.x, 00224 bl.S1.y, 00225 bl.S1.z, 00226 bl.S2.x, 00227 bl.S2.y, 00228 bl.S2.z, 00229 card ) == EOF ) 00230 return globalresult.error =MOD_SOM_ERROR_BAD_FIC_WRITE; 00231 00232 for ( UINT i = 0; i != card; i ++ ) 00233 if ( fprintf ( f, "%lf %lf %lf\n", tbl[i].x, 00234 tbl[i].y, 00235 tbl[i].z ) == EOF ) 00236 return globalresult.error =MOD_SOM_ERROR_BAD_FIC_WRITE; 00237 00238 fprintf ( f, "\n" ); 00239 00240 // on met à jour les renseignements. 00241 // --------------------------------- 00242 globalresult.cardsommet = card; 00243 00244 return SUCCESS; } |
|
Reimplemented from AxisCAO. Definition at line 342 of file Modeleur.cpp. 00342 { 00343 if ( globalresult.error >= __ReservedMsg) 00344 return G_modetbmsg[ globalresult.error - __ReservedMsg ]; 00345 return GetModelProfToProfErrorMsg( globalresult.error ); 00346 } |
|
Definition at line 135 of file Modeleur.hpp. |