/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        G E N E R A T I O N   D U   C U B E  :                                                                                     */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/Cube.01$vv$c' :                                                                                            */
/*                                                                                                                                   */
/*                    Jean-Francois COLONNA (LACTAMME, 20261008090016).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
#define   NSOMMETS  8
#define   NARETES   12
#include  "Polyedres.01.vv.I"
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        G E N E R A T I O N   D E S   S O M M E T S   D U   C U B E  :                                                             */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
double    Xmin_Cube=+INFINI,Ymin_Cube=+INFINI,Zmin_Cube=+INFINI;
double    Xmax_Cube=-INFINI,Ymax_Cube=-INFINI,Zmax_Cube=-INFINI;
                                        /* Extrema du dodecaedre=.                                                                   */
static    void      cube(void)
          {
          int       n=0;
          int       s1,s2,s3;
          for       (s1=-1; s1<=1; s1+=2)
                    {
                    for       (s2=-1; s2<=1; s2+=2)
                              {
                              for       (s3=-1; s3<=1; s3+=2)
                                        {
                                        p[n++] = (POINT){s1,s2,s3};
                                        /* Generation de 8 sommets {+/-1,+/-1,+/-1}.                                                 */
                                        }
                              }
                    }
          EXTREMA_SOMMETS(Xmin_Cube,Ymin_Cube,Zmin_Cube,Xmax_Cube,Ymax_Cube,Zmax_Cube);
          }
/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        P R O G R A M M E   P R I N C I P A L  :                                                                                   */
/*                                                                                                                                   */
/*************************************************************************************************************************************/
void      main(int argc,char *argv[])
          {
          if        (argc >= 2)
                    {
                    GET_ARGUMENT(1,futur_epsilon1,epsilon1);
                    if        (argc >= 3)
                              {
                              GET_ARGUMENT(2,futur_epsilon2,epsilon2);
                              if        (argc >= 4)
                                        {
                                        printf("Les arguments en sur-nombre sont ignores.\n");
                                        }
                              else
                                        {
                                        }
                              }
                    else
                              {
                              }
                    }
          else
                    {
                    }
          cube();
          EDITIONS_FINALES("Cube"
                          ,Xmin_Cube,Ymin_Cube,Zmin_Cube
                          ,Xmax_Cube,Ymax_Cube,Zmax_Cube
                           );
          bonds("Cube");
          return;
          }



Copyright © Jean-François Colonna, 2026-2026.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2026-2026.